Skip to content

Commit 100954b

Browse files
authored
Merge pull request #6 from authsignal/fix-classes
Fix tailwind classes
2 parents 6dc33ff + 3e59676 commit 100954b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@authsignal/react",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.mjs",

src/components/challenge/challenge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function Challenge({
143143
{isDesktop ? (
144144
<Dialog open={open} onOpenChange={handleOpenChange}>
145145
<DialogContent
146-
className="sm:max-w-[425px] pb-10"
146+
className="sm:as-max-w-[425px] as-pb-10"
147147
aria-describedby={undefined}
148148
>
149149
{content}

src/ui/dialog.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DialogOverlay = React.forwardRef<
1919
<DialogPrimitive.Overlay
2020
ref={ref}
2121
className={cn(
22-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
22+
"as-fixed as-inset-0 as-z-50 as-bg-black/80 data-[state=open]:as-animate-in data-[state=closed]:as-animate-out data-[state=closed]:as-fade-out-0 data-[state=open]:as-fade-in-0",
2323
className,
2424
)}
2525
{...props}
@@ -36,14 +36,14 @@ const DialogContent = React.forwardRef<
3636
<DialogPrimitive.Content
3737
ref={ref}
3838
className={cn(
39-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
39+
"as-fixed as-left-[50%] as-top-[50%] as-z-50 as-grid as-w-full as-max-w-lg as-translate-x-[-50%] as-translate-y-[-50%] as-gap-4 as-border as-bg-background as-p-6 as-shadow-lg as-duration-200 data-[state=open]:as-animate-in data-[state=closed]:as-animate-out data-[state=closed]:as-fade-out-0 data-[state=open]:as-fade-in-0 data-[state=closed]:as-zoom-out-95 data-[state=open]:as-zoom-in-95 data-[state=closed]:as-slide-out-to-left-1/2 data-[state=closed]:as-slide-out-to-top-[48%] data-[state=open]:as-slide-in-from-left-1/2 data-[state=open]:as-slide-in-from-top-[48%] sm:as-rounded-lg",
4040
className,
4141
)}
4242
{...props}
4343
>
4444
{children}
45-
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
46-
<Cross2Icon className="h-4 w-4" />
45+
<DialogPrimitive.Close className="as-absolute as-right-4 as-top-4 as-rounded-sm as-opacity-70 as-ring-offset-background as-transition-opacity hover:as-opacity-100 focus:as-outline-none focus:as-ring-2 focus:as-ring-ring focus:as-ring-offset-2 disabled:as-pointer-events-none data-[state=open]:as-bg-accent data-[state=open]:as-text-muted-foreground">
46+
<Cross2Icon className="as-h-4 as-w-4" />
4747
<span className="sr-only">Close</span>
4848
</DialogPrimitive.Close>
4949
</DialogPrimitive.Content>
@@ -57,7 +57,7 @@ const DialogHeader = ({
5757
}: React.HTMLAttributes<HTMLDivElement>) => (
5858
<div
5959
className={cn(
60-
"flex flex-col space-y-1.5 text-center sm:text-left",
60+
"as-flex as-flex-col as-space-y-1.5 as-text-center sm:as-text-left",
6161
className,
6262
)}
6363
{...props}
@@ -71,7 +71,7 @@ const DialogFooter = ({
7171
}: React.HTMLAttributes<HTMLDivElement>) => (
7272
<div
7373
className={cn(
74-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
74+
"as-flex as-flex-col-reverse sm:as-flex-row sm:as-justify-end sm:as-space-x-2",
7575
className,
7676
)}
7777
{...props}
@@ -86,7 +86,7 @@ const DialogTitle = React.forwardRef<
8686
<DialogPrimitive.Title
8787
ref={ref}
8888
className={cn(
89-
"text-lg font-semibold leading-none tracking-tight",
89+
"as-text-lg as-font-semibold as-leading-none as-tracking-tight",
9090
className,
9191
)}
9292
{...props}
@@ -100,7 +100,7 @@ const DialogDescription = React.forwardRef<
100100
>(({ className, ...props }, ref) => (
101101
<DialogPrimitive.Description
102102
ref={ref}
103-
className={cn("text-sm text-muted-foreground", className)}
103+
className={cn("as-text-sm as-text-muted-foreground", className)}
104104
{...props}
105105
/>
106106
));

0 commit comments

Comments
 (0)