Skip to content

Commit cb71546

Browse files
committed
wip
1 parent dee79ce commit cb71546

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed
Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
import * as React from "react"
2-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
3-
import { Check } from "lucide-react"
1+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2+
import { Check } from 'lucide-react';
3+
import * as React from 'react';
44

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

7-
const Checkbox = React.forwardRef<
8-
React.ElementRef<typeof CheckboxPrimitive.Root>,
9-
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
10-
>(({ className, ...props }, ref) => (
11-
<CheckboxPrimitive.Root
12-
ref={ref}
13-
className={cn(
14-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
15-
className
16-
)}
17-
{...props}
18-
>
19-
<CheckboxPrimitive.Indicator
20-
className={cn("flex items-center justify-center text-current")}
21-
>
22-
<Check className="h-4 w-4" />
23-
</CheckboxPrimitive.Indicator>
24-
</CheckboxPrimitive.Root>
25-
))
26-
Checkbox.displayName = CheckboxPrimitive.Root.displayName
7+
const Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>, React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>>(
8+
({ className, ...props }, ref) => (
9+
<CheckboxPrimitive.Root
10+
ref={ref}
11+
className={cn(
12+
'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
13+
className,
14+
)}
15+
{...props}
16+
>
17+
<CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>
18+
<Check className="h-4 w-4" />
19+
</CheckboxPrimitive.Indicator>
20+
</CheckboxPrimitive.Root>
21+
),
22+
);
23+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
2724

28-
export { Checkbox }
25+
export { Checkbox };

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
/* Completeness */
108108
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
109-
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
109+
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
110110
"baseUrl": ".",
111111
"paths": {
112112
"@/*": ["./resources/js/*"],

0 commit comments

Comments
 (0)