Skip to content

Commit 6fce4ef

Browse files
committed
chore(*): ran formatting
1 parent ab9b5f2 commit 6fce4ef

File tree

19 files changed

+210
-332
lines changed

19 files changed

+210
-332
lines changed

examples/nextjs/lib/examples/2/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@
1717
"use client";
1818

1919
import { useState } from "react";
20-
import { EmailPasswordForm, RegisterForm, Card, CardHeader, CardTitle, CardSubtitle } from "@invertase/firebaseui-react";
20+
import {
21+
EmailPasswordForm,
22+
RegisterForm,
23+
Card,
24+
CardHeader,
25+
CardTitle,
26+
CardSubtitle,
27+
} from "@invertase/firebaseui-react";
2128

2229
export default function Example2() {
2330
const [showRegister, setShowRegister] = useState(false);

examples/nextjs/next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import type { NextConfig } from "next";
1818

1919
const nextConfig: NextConfig = {
20-
output: 'export',
20+
output: "export",
2121
trailingSlash: true,
2222
images: {
23-
unoptimized: true
24-
}
23+
unoptimized: true,
24+
},
2525
};
2626

2727
export default nextConfig;

examples/shadcn/src/components/sign-in-auth-form.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
"use client";
22

33
import type { SignInAuthFormSchema } from "@invertase/firebaseui-core";
4-
import { useSignInAuthFormAction, useSignInAuthFormSchema, useUI, type SignInAuthFormProps } from "@invertase/firebaseui-react";
4+
import {
5+
useSignInAuthFormAction,
6+
useSignInAuthFormSchema,
7+
useUI,
8+
type SignInAuthFormProps,
9+
} from "@invertase/firebaseui-react";
510
import { useForm } from "react-hook-form";
611
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
712
import { FirebaseUIError, getTranslation } from "@invertase/firebaseui-core";
Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as React from "react"
2-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { cva, type VariantProps } from "class-variance-authority";
33

4-
import { cn } from "@/lib/utils"
4+
import { cn } from "@/lib/utils";
55

66
const alertVariants = cva(
77
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
@@ -17,40 +17,23 @@ const alertVariants = cva(
1717
variant: "default",
1818
},
1919
}
20-
)
20+
);
2121

22-
function Alert({
23-
className,
24-
variant,
25-
...props
26-
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
27-
return (
28-
<div
29-
data-slot="alert"
30-
role="alert"
31-
className={cn(alertVariants({ variant }), className)}
32-
{...props}
33-
/>
34-
)
22+
function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
23+
return <div data-slot="alert" role="alert" className={cn(alertVariants({ variant }), className)} {...props} />;
3524
}
3625

3726
function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
3827
return (
3928
<div
4029
data-slot="alert-title"
41-
className={cn(
42-
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
43-
className
44-
)}
30+
className={cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)}
4531
{...props}
4632
/>
47-
)
33+
);
4834
}
4935

50-
function AlertDescription({
51-
className,
52-
...props
53-
}: React.ComponentProps<"div">) {
36+
function AlertDescription({ className, ...props }: React.ComponentProps<"div">) {
5437
return (
5538
<div
5639
data-slot="alert-description"
@@ -60,7 +43,7 @@ function AlertDescription({
6043
)}
6144
{...props}
6245
/>
63-
)
46+
);
6447
}
6548

66-
export { Alert, AlertTitle, AlertDescription }
49+
export { Alert, AlertTitle, AlertDescription };
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { Slot } from "@radix-ui/react-slot";
3+
import { cva, type VariantProps } from "class-variance-authority";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

77
const buttonVariants = cva(
88
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -14,10 +14,8 @@ const buttonVariants = cva(
1414
"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
1515
outline:
1616
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
17-
secondary:
18-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
19-
ghost:
20-
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
17+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
18+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
2119
link: "text-primary underline-offset-4 hover:underline",
2220
},
2321
size: {
@@ -34,7 +32,7 @@ const buttonVariants = cva(
3432
size: "default",
3533
},
3634
}
37-
)
35+
);
3836

3937
function Button({
4038
className,
@@ -44,17 +42,11 @@ function Button({
4442
...props
4543
}: React.ComponentProps<"button"> &
4644
VariantProps<typeof buttonVariants> & {
47-
asChild?: boolean
45+
asChild?: boolean;
4846
}) {
49-
const Comp = asChild ? Slot : "button"
47+
const Comp = asChild ? Slot : "button";
5048

51-
return (
52-
<Comp
53-
data-slot="button"
54-
className={cn(buttonVariants({ variant, size, className }))}
55-
{...props}
56-
/>
57-
)
49+
return <Comp data-slot="button" className={cn(buttonVariants({ variant, size, className }))} {...props} />;
5850
}
5951

60-
export { Button, buttonVariants }
52+
export { Button, buttonVariants };
Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
import * as React from "react"
1+
import * as React from "react";
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from "@/lib/utils";
44

55
function Card({ className, ...props }: React.ComponentProps<"div">) {
66
return (
77
<div
88
data-slot="card"
9-
className={cn(
10-
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11-
className
12-
)}
9+
className={cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)}
1310
{...props}
1411
/>
15-
)
12+
);
1613
}
1714

1815
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -25,68 +22,35 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
2522
)}
2623
{...props}
2724
/>
28-
)
25+
);
2926
}
3027

3128
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
32-
return (
33-
<div
34-
data-slot="card-title"
35-
className={cn("leading-none font-semibold", className)}
36-
{...props}
37-
/>
38-
)
29+
return <div data-slot="card-title" className={cn("leading-none font-semibold", className)} {...props} />;
3930
}
4031

4132
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
42-
return (
43-
<div
44-
data-slot="card-description"
45-
className={cn("text-muted-foreground text-sm", className)}
46-
{...props}
47-
/>
48-
)
33+
return <div data-slot="card-description" className={cn("text-muted-foreground text-sm", className)} {...props} />;
4934
}
5035

5136
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5237
return (
5338
<div
5439
data-slot="card-action"
55-
className={cn(
56-
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57-
className
58-
)}
40+
className={cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className)}
5941
{...props}
6042
/>
61-
)
43+
);
6244
}
6345

6446
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
65-
return (
66-
<div
67-
data-slot="card-content"
68-
className={cn("px-6", className)}
69-
{...props}
70-
/>
71-
)
47+
return <div data-slot="card-content" className={cn("px-6", className)} {...props} />;
7248
}
7349

7450
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
7551
return (
76-
<div
77-
data-slot="card-footer"
78-
className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
79-
{...props}
80-
/>
81-
)
52+
<div data-slot="card-footer" className={cn("flex items-center px-6 [.border-t]:pt-6", className)} {...props} />
53+
);
8254
}
8355

84-
export {
85-
Card,
86-
CardHeader,
87-
CardFooter,
88-
CardTitle,
89-
CardAction,
90-
CardDescription,
91-
CardContent,
92-
}
56+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };

0 commit comments

Comments
 (0)