Skip to content

Commit 2f985da

Browse files
ci: apply automated fixes
1 parent f3c947c commit 2f985da

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

examples/react/shadcn-basic/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

examples/react/shadcn-basic/src/components/ui/table.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
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

5-
function Table({ className, ...props }: React.ComponentProps<"table">) {
5+
function Table({ className, ...props }: React.ComponentProps<'table'>) {
66
return (
77
<div className="relative w-full overflow-auto">
88
<table
99
data-slot="table"
10-
className={cn("w-full caption-bottom text-sm", className)}
10+
className={cn('w-full caption-bottom text-sm', className)}
1111
{...props}
1212
/>
1313
</div>
1414
)
1515
}
1616

17-
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
17+
function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {
1818
return (
1919
<thead
2020
data-slot="table-header"
21-
className={cn("[&_tr]:border-b", className)}
21+
className={cn('[&_tr]:border-b', className)}
2222
{...props}
2323
/>
2424
)
2525
}
2626

27-
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
27+
function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {
2828
return (
2929
<tbody
3030
data-slot="table-body"
31-
className={cn("[&_tr:last-child]:border-0", className)}
31+
className={cn('[&_tr:last-child]:border-0', className)}
3232
{...props}
3333
/>
3434
)
3535
}
3636

37-
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
37+
function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {
3838
return (
3939
<tfoot
4040
data-slot="table-footer"
4141
className={cn(
42-
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
43-
className
42+
'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',
43+
className,
4444
)}
4545
{...props}
4646
/>
4747
)
4848
}
4949

50-
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
50+
function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
5151
return (
5252
<tr
5353
data-slot="table-row"
5454
className={cn(
55-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
56-
className
55+
'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
56+
className,
5757
)}
5858
{...props}
5959
/>
6060
)
6161
}
6262

63-
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
63+
function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
6464
return (
6565
<th
6666
data-slot="table-head"
6767
className={cn(
68-
"text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
69-
className
68+
'text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
69+
className,
7070
)}
7171
{...props}
7272
/>
7373
)
7474
}
7575

76-
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
76+
function TableCell({ className, ...props }: React.ComponentProps<'td'>) {
7777
return (
7878
<td
7979
data-slot="table-cell"
8080
className={cn(
81-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
82-
className
81+
'p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
82+
className,
8383
)}
8484
{...props}
8585
/>
@@ -89,11 +89,11 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {
8989
function TableCaption({
9090
className,
9191
...props
92-
}: React.ComponentProps<"caption">) {
92+
}: React.ComponentProps<'caption'>) {
9393
return (
9494
<caption
9595
data-slot="table-caption"
96-
className={cn("text-muted-foreground mt-4 text-sm", className)}
96+
className={cn('text-muted-foreground mt-4 text-sm', className)}
9797
{...props}
9898
/>
9999
)

examples/react/shadcn-kitchen-sink/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

examples/react/shadcn-kitchen-sink/src/components/ui/badge.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
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 badgeVariants = cva(
7-
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
7+
'inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
88
{
99
variants: {
1010
variant: {
1111
default:
12-
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
12+
'border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80',
1313
secondary:
14-
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
14+
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
1515
destructive:
16-
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
17-
outline: "text-foreground",
16+
'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80',
17+
outline: 'text-foreground',
1818
},
1919
},
2020
defaultVariants: {
21-
variant: "default",
21+
variant: 'default',
2222
},
23-
}
23+
},
2424
)
2525

2626
export interface BadgeProps

0 commit comments

Comments
 (0)