@arolariu/components 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXAMPLES.md +1035 -1035
- package/changelog.md +9 -0
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/background-beams.js.map +1 -1
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble-background.js.map +1 -1
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/counting-number.js.map +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dot-background.js.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdrawer.js.map +1 -1
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/field.js +2 -2
- package/dist/components/ui/field.js.map +1 -1
- package/dist/components/ui/fireworks-background.js.map +1 -1
- package/dist/components/ui/flip-button.js.map +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/form.js +5 -4
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/gradient-background.js.map +1 -1
- package/dist/components/ui/gradient-text.js.map +1 -1
- package/dist/components/ui/highlight-text.js.map +1 -1
- package/dist/components/ui/hole-background.js.map +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/item.js.map +1 -1
- package/dist/components/ui/kbd.js.map +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +0 -1
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +3 -2
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +2 -1
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/ripple-button.js.map +1 -1
- package/dist/components/ui/scratcher.js.map +1 -1
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +3 -2
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/spinner.js.map +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/ui/typewriter.js +6 -2
- package/dist/components/ui/typewriter.js.map +1 -1
- package/dist/hooks/useIsMobile.js.map +1 -1
- package/dist/hooks/useWindowSize.js.map +1 -1
- package/dist/index.css +25 -1779
- package/dist/index.css.map +1 -1
- package/dist/lib/utilities.js.map +1 -1
- package/package.json +2 -15
- package/src/components/ui/accordion.tsx +3 -3
- package/src/components/ui/alert-dialog.tsx +6 -6
- package/src/components/ui/alert.tsx +1 -0
- package/src/components/ui/avatar.tsx +12 -11
- package/src/components/ui/calendar.tsx +2 -0
- package/src/components/ui/carousel.tsx +1 -1
- package/src/components/ui/chart.tsx +2 -0
- package/src/components/ui/checkbox.tsx +3 -3
- package/src/components/ui/command.tsx +8 -7
- package/src/components/ui/context-menu.tsx +8 -8
- package/src/components/ui/dialog.tsx +4 -4
- package/src/components/ui/drawer.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +8 -8
- package/src/components/ui/field.tsx +5 -4
- package/src/components/ui/form.tsx +12 -8
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +2 -0
- package/src/components/ui/input-otp.tsx +5 -5
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +10 -10
- package/src/components/ui/navigation-menu.tsx +6 -7
- package/src/components/ui/pagination.tsx +1 -0
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +2 -1
- package/src/components/ui/scroll-area.tsx +2 -2
- package/src/components/ui/select.tsx +7 -7
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +4 -4
- package/src/components/ui/sidebar.tsx +22 -14
- package/src/components/ui/slider.tsx +14 -13
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/table.tsx +2 -0
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/toggle-group.tsx +2 -2
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/ui/typewriter.tsx +2 -2
- package/src/index.css +6 -6
- package/dist/components/ui/field.d.ts +0 -25
- package/dist/components/ui/field.d.ts.map +0 -1
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
|
|
7
7
|
import {cn} from "@/lib/utilities";
|
|
8
8
|
|
|
9
|
-
const InputOTP = React.forwardRef<React.
|
|
9
|
+
const InputOTP = React.forwardRef<React.ComponentRef<typeof OTPInput>, React.ComponentPropsWithoutRef<typeof OTPInput>>(
|
|
10
10
|
({className, containerClassName, ...props}, ref) => (
|
|
11
11
|
<OTPInput
|
|
12
12
|
ref={ref}
|
|
@@ -18,7 +18,7 @@ const InputOTP = React.forwardRef<React.ElementRef<typeof OTPInput>, React.Compo
|
|
|
18
18
|
);
|
|
19
19
|
InputOTP.displayName = "InputOTP";
|
|
20
20
|
|
|
21
|
-
const InputOTPGroup = React.forwardRef<React.
|
|
21
|
+
const InputOTPGroup = React.forwardRef<React.ComponentRef<"div">, React.ComponentPropsWithoutRef<"div">>(({className, ...props}, ref) => (
|
|
22
22
|
<div
|
|
23
23
|
ref={ref}
|
|
24
24
|
className={cn("flex items-center", className)}
|
|
@@ -27,7 +27,7 @@ const InputOTPGroup = React.forwardRef<React.ElementRef<"div">, React.ComponentP
|
|
|
27
27
|
));
|
|
28
28
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
29
29
|
|
|
30
|
-
const InputOTPSlot = React.forwardRef<React.
|
|
30
|
+
const InputOTPSlot = React.forwardRef<React.ComponentRef<"div">, React.ComponentPropsWithoutRef<"div"> & {index: number}>(
|
|
31
31
|
({index, className, ...props}, ref) => {
|
|
32
32
|
const inputOTPContext = React.useContext(OTPInputContext);
|
|
33
33
|
const {char, hasFakeCaret, isActive} = inputOTPContext.slots[index];
|
|
@@ -42,7 +42,7 @@ const InputOTPSlot = React.forwardRef<React.ElementRef<"div">, React.ComponentPr
|
|
|
42
42
|
)}
|
|
43
43
|
{...props}>
|
|
44
44
|
{char}
|
|
45
|
-
{hasFakeCaret && (
|
|
45
|
+
{Boolean(hasFakeCaret) && (
|
|
46
46
|
<div className='pointer-events-none absolute inset-0 flex items-center justify-center'>
|
|
47
47
|
<div className='animate-caret-blink h-4 w-px bg-neutral-950 duration-1000 dark:bg-neutral-50' />
|
|
48
48
|
</div>
|
|
@@ -53,7 +53,7 @@ const InputOTPSlot = React.forwardRef<React.ElementRef<"div">, React.ComponentPr
|
|
|
53
53
|
);
|
|
54
54
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
55
55
|
|
|
56
|
-
const InputOTPSeparator = React.forwardRef<React.
|
|
56
|
+
const InputOTPSeparator = React.forwardRef<React.ComponentRef<"div">, React.ComponentPropsWithoutRef<"div">>(({...props}, ref) => (
|
|
57
57
|
<div
|
|
58
58
|
ref={ref}
|
|
59
59
|
role='separator'
|
|
@@ -9,7 +9,7 @@ import {cn} from "@/lib/utilities";
|
|
|
9
9
|
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
10
10
|
|
|
11
11
|
const Label = React.forwardRef<
|
|
12
|
-
React.
|
|
12
|
+
React.ComponentRef<typeof LabelPrimitive.Root>,
|
|
13
13
|
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
|
|
14
14
|
>(({className, ...props}, ref) => (
|
|
15
15
|
<LabelPrimitive.Root
|
|
@@ -32,7 +32,7 @@ function MenubarSub({...props}: React.ComponentProps<typeof MenubarPrimitive.Sub
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const Menubar = React.forwardRef<
|
|
35
|
-
React.
|
|
35
|
+
React.ComponentRef<typeof MenubarPrimitive.Root>,
|
|
36
36
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>
|
|
37
37
|
>(({className, ...props}, ref) => (
|
|
38
38
|
<MenubarPrimitive.Root
|
|
@@ -47,7 +47,7 @@ const Menubar = React.forwardRef<
|
|
|
47
47
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
48
48
|
|
|
49
49
|
const MenubarTrigger = React.forwardRef<
|
|
50
|
-
React.
|
|
50
|
+
React.ComponentRef<typeof MenubarPrimitive.Trigger>,
|
|
51
51
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>
|
|
52
52
|
>(({className, ...props}, ref) => (
|
|
53
53
|
<MenubarPrimitive.Trigger
|
|
@@ -62,7 +62,7 @@ const MenubarTrigger = React.forwardRef<
|
|
|
62
62
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
63
63
|
|
|
64
64
|
const MenubarSubTrigger = React.forwardRef<
|
|
65
|
-
React.
|
|
65
|
+
React.ComponentRef<typeof MenubarPrimitive.SubTrigger>,
|
|
66
66
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {
|
|
67
67
|
inset?: boolean;
|
|
68
68
|
}
|
|
@@ -82,7 +82,7 @@ const MenubarSubTrigger = React.forwardRef<
|
|
|
82
82
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
83
83
|
|
|
84
84
|
const MenubarSubContent = React.forwardRef<
|
|
85
|
-
React.
|
|
85
|
+
React.ComponentRef<typeof MenubarPrimitive.SubContent>,
|
|
86
86
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>
|
|
87
87
|
>(({className, ...props}, ref) => (
|
|
88
88
|
<MenubarPrimitive.SubContent
|
|
@@ -97,7 +97,7 @@ const MenubarSubContent = React.forwardRef<
|
|
|
97
97
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
98
98
|
|
|
99
99
|
const MenubarContent = React.forwardRef<
|
|
100
|
-
React.
|
|
100
|
+
React.ComponentRef<typeof MenubarPrimitive.Content>,
|
|
101
101
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>
|
|
102
102
|
>(({className, align = "start", alignOffset = -4, sideOffset = 8, ...props}, ref) => (
|
|
103
103
|
<MenubarPrimitive.Portal>
|
|
@@ -117,7 +117,7 @@ const MenubarContent = React.forwardRef<
|
|
|
117
117
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
118
118
|
|
|
119
119
|
const MenubarItem = React.forwardRef<
|
|
120
|
-
React.
|
|
120
|
+
React.ComponentRef<typeof MenubarPrimitive.Item>,
|
|
121
121
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {
|
|
122
122
|
inset?: boolean;
|
|
123
123
|
}
|
|
@@ -135,7 +135,7 @@ const MenubarItem = React.forwardRef<
|
|
|
135
135
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
136
136
|
|
|
137
137
|
const MenubarCheckboxItem = React.forwardRef<
|
|
138
|
-
React.
|
|
138
|
+
React.ComponentRef<typeof MenubarPrimitive.CheckboxItem>,
|
|
139
139
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>
|
|
140
140
|
>(({className, children, checked, ...props}, ref) => (
|
|
141
141
|
<MenubarPrimitive.CheckboxItem
|
|
@@ -157,7 +157,7 @@ const MenubarCheckboxItem = React.forwardRef<
|
|
|
157
157
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
158
158
|
|
|
159
159
|
const MenubarRadioItem = React.forwardRef<
|
|
160
|
-
React.
|
|
160
|
+
React.ComponentRef<typeof MenubarPrimitive.RadioItem>,
|
|
161
161
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>
|
|
162
162
|
>(({className, children, ...props}, ref) => (
|
|
163
163
|
<MenubarPrimitive.RadioItem
|
|
@@ -178,7 +178,7 @@ const MenubarRadioItem = React.forwardRef<
|
|
|
178
178
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
179
179
|
|
|
180
180
|
const MenubarLabel = React.forwardRef<
|
|
181
|
-
React.
|
|
181
|
+
React.ComponentRef<typeof MenubarPrimitive.Label>,
|
|
182
182
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {
|
|
183
183
|
inset?: boolean;
|
|
184
184
|
}
|
|
@@ -192,7 +192,7 @@ const MenubarLabel = React.forwardRef<
|
|
|
192
192
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
193
193
|
|
|
194
194
|
const MenubarSeparator = React.forwardRef<
|
|
195
|
-
React.
|
|
195
|
+
React.ComponentRef<typeof MenubarPrimitive.Separator>,
|
|
196
196
|
React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>
|
|
197
197
|
>(({className, ...props}, ref) => (
|
|
198
198
|
<MenubarPrimitive.Separator
|
|
@@ -8,7 +8,7 @@ import * as React from "react";
|
|
|
8
8
|
import {cn} from "@/lib/utilities";
|
|
9
9
|
|
|
10
10
|
const NavigationMenu = React.forwardRef<
|
|
11
|
-
React.
|
|
11
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.Root>,
|
|
12
12
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
|
|
13
13
|
>(({className, children, ...props}, ref) => (
|
|
14
14
|
<NavigationMenuPrimitive.Root
|
|
@@ -22,7 +22,7 @@ const NavigationMenu = React.forwardRef<
|
|
|
22
22
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
23
23
|
|
|
24
24
|
const NavigationMenuList = React.forwardRef<
|
|
25
|
-
React.
|
|
25
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.List>,
|
|
26
26
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
|
|
27
27
|
>(({className, ...props}, ref) => (
|
|
28
28
|
<NavigationMenuPrimitive.List
|
|
@@ -40,7 +40,7 @@ const navigationMenuTriggerStyle = cva(
|
|
|
40
40
|
);
|
|
41
41
|
|
|
42
42
|
const NavigationMenuTrigger = React.forwardRef<
|
|
43
|
-
React.
|
|
43
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.Trigger>,
|
|
44
44
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
|
|
45
45
|
>(({className, children, ...props}, ref) => (
|
|
46
46
|
<NavigationMenuPrimitive.Trigger
|
|
@@ -48,7 +48,6 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
48
48
|
className={cn(navigationMenuTriggerStyle(), "group", className)}
|
|
49
49
|
{...props}>
|
|
50
50
|
{children}
|
|
51
|
-
{""}
|
|
52
51
|
<ChevronDown
|
|
53
52
|
className='relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180'
|
|
54
53
|
aria-hidden='true'
|
|
@@ -58,7 +57,7 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
58
57
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
59
58
|
|
|
60
59
|
const NavigationMenuContent = React.forwardRef<
|
|
61
|
-
React.
|
|
60
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.Content>,
|
|
62
61
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
|
|
63
62
|
>(({className, ...props}, ref) => (
|
|
64
63
|
<NavigationMenuPrimitive.Content
|
|
@@ -75,7 +74,7 @@ NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
|
75
74
|
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
76
75
|
|
|
77
76
|
const NavigationMenuViewport = React.forwardRef<
|
|
78
|
-
React.
|
|
77
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.Viewport>,
|
|
79
78
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
|
|
80
79
|
>(({className, ...props}, ref) => (
|
|
81
80
|
<div className={cn("absolute top-full left-0 flex justify-center")}>
|
|
@@ -92,7 +91,7 @@ const NavigationMenuViewport = React.forwardRef<
|
|
|
92
91
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
93
92
|
|
|
94
93
|
const NavigationMenuIndicator = React.forwardRef<
|
|
95
|
-
React.
|
|
94
|
+
React.ComponentRef<typeof NavigationMenuPrimitive.Indicator>,
|
|
96
95
|
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
|
|
97
96
|
>(({className, ...props}, ref) => (
|
|
98
97
|
<NavigationMenuPrimitive.Indicator
|
|
@@ -40,6 +40,7 @@ type PaginationLinkProps = {
|
|
|
40
40
|
& React.ComponentProps<"a">;
|
|
41
41
|
|
|
42
42
|
const PaginationLink = ({className, isActive, size = "icon", ...props}: PaginationLinkProps) => (
|
|
43
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content -- the link will have children.
|
|
43
44
|
<a
|
|
44
45
|
aria-current={isActive ? "page" : undefined}
|
|
45
46
|
className={cn(
|
|
@@ -12,7 +12,7 @@ const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
|
12
12
|
const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
13
13
|
|
|
14
14
|
const PopoverContent = React.forwardRef<
|
|
15
|
-
React.
|
|
15
|
+
React.ComponentRef<typeof PopoverPrimitive.Content>,
|
|
16
16
|
React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
|
|
17
17
|
>(({className, align = "center", sideOffset = 4, ...props}, ref) => (
|
|
18
18
|
<PopoverPrimitive.Portal>
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const Progress = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof ProgressPrimitive.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
|
|
11
11
|
>(({className, value, ...props}, ref) => (
|
|
12
12
|
<ProgressPrimitive.Root
|
|
@@ -7,7 +7,7 @@ import * as React from "react";
|
|
|
7
7
|
import {cn} from "@/lib/utilities";
|
|
8
8
|
|
|
9
9
|
const RadioGroup = React.forwardRef<
|
|
10
|
-
React.
|
|
10
|
+
React.ComponentRef<typeof RadioGroupPrimitive.Root>,
|
|
11
11
|
React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>
|
|
12
12
|
>(({className, ...props}, ref) => {
|
|
13
13
|
return (
|
|
@@ -21,7 +21,7 @@ const RadioGroup = React.forwardRef<
|
|
|
21
21
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
22
22
|
|
|
23
23
|
const RadioGroupItem = React.forwardRef<
|
|
24
|
-
React.
|
|
24
|
+
React.ComponentRef<typeof RadioGroupPrimitive.Item>,
|
|
25
25
|
React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>
|
|
26
26
|
>(({className, ...props}, ref) => {
|
|
27
27
|
return (
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import {GripVertical} from "lucide-react";
|
|
4
|
+
import * as React from "react";
|
|
4
5
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
5
6
|
|
|
6
7
|
import {cn} from "@/lib/utilities";
|
|
@@ -27,7 +28,7 @@ const ResizableHandle = ({
|
|
|
27
28
|
className,
|
|
28
29
|
)}
|
|
29
30
|
{...props}>
|
|
30
|
-
{withHandle && (
|
|
31
|
+
{Boolean(withHandle) && (
|
|
31
32
|
<div className='z-10 flex h-4 w-3 items-center justify-center rounded-sm border border-neutral-200 bg-neutral-200 dark:border-neutral-800 dark:bg-neutral-800'>
|
|
32
33
|
<GripVertical className='h-2.5 w-2.5' />
|
|
33
34
|
</div>
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const ScrollArea = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof ScrollAreaPrimitive.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
|
11
11
|
>(({className, children, ...props}, ref) => (
|
|
12
12
|
<ScrollAreaPrimitive.Root
|
|
@@ -21,7 +21,7 @@ const ScrollArea = React.forwardRef<
|
|
|
21
21
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
22
22
|
|
|
23
23
|
const ScrollBar = React.forwardRef<
|
|
24
|
-
React.
|
|
24
|
+
React.ComponentRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
25
25
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
26
26
|
>(({className, orientation = "vertical", ...props}, ref) => (
|
|
27
27
|
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
@@ -13,7 +13,7 @@ const SelectGroup = SelectPrimitive.Group;
|
|
|
13
13
|
const SelectValue = SelectPrimitive.Value;
|
|
14
14
|
|
|
15
15
|
const SelectTrigger = React.forwardRef<
|
|
16
|
-
React.
|
|
16
|
+
React.ComponentRef<typeof SelectPrimitive.Trigger>,
|
|
17
17
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
|
|
18
18
|
>(({className, children, ...props}, ref) => (
|
|
19
19
|
<SelectPrimitive.Trigger
|
|
@@ -32,7 +32,7 @@ const SelectTrigger = React.forwardRef<
|
|
|
32
32
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
33
33
|
|
|
34
34
|
const SelectScrollUpButton = React.forwardRef<
|
|
35
|
-
React.
|
|
35
|
+
React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>,
|
|
36
36
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
|
|
37
37
|
>(({className, ...props}, ref) => (
|
|
38
38
|
<SelectPrimitive.ScrollUpButton
|
|
@@ -45,7 +45,7 @@ const SelectScrollUpButton = React.forwardRef<
|
|
|
45
45
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
46
46
|
|
|
47
47
|
const SelectScrollDownButton = React.forwardRef<
|
|
48
|
-
React.
|
|
48
|
+
React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>,
|
|
49
49
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
|
|
50
50
|
>(({className, ...props}, ref) => (
|
|
51
51
|
<SelectPrimitive.ScrollDownButton
|
|
@@ -58,7 +58,7 @@ const SelectScrollDownButton = React.forwardRef<
|
|
|
58
58
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
59
59
|
|
|
60
60
|
const SelectContent = React.forwardRef<
|
|
61
|
-
React.
|
|
61
|
+
React.ComponentRef<typeof SelectPrimitive.Content>,
|
|
62
62
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
|
|
63
63
|
>(({className, children, position = "popper", ...props}, ref) => (
|
|
64
64
|
<SelectPrimitive.Portal>
|
|
@@ -87,7 +87,7 @@ const SelectContent = React.forwardRef<
|
|
|
87
87
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
88
88
|
|
|
89
89
|
const SelectLabel = React.forwardRef<
|
|
90
|
-
React.
|
|
90
|
+
React.ComponentRef<typeof SelectPrimitive.Label>,
|
|
91
91
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
|
|
92
92
|
>(({className, ...props}, ref) => (
|
|
93
93
|
<SelectPrimitive.Label
|
|
@@ -99,7 +99,7 @@ const SelectLabel = React.forwardRef<
|
|
|
99
99
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
100
100
|
|
|
101
101
|
const SelectItem = React.forwardRef<
|
|
102
|
-
React.
|
|
102
|
+
React.ComponentRef<typeof SelectPrimitive.Item>,
|
|
103
103
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
|
|
104
104
|
>(({className, children, ...props}, ref) => (
|
|
105
105
|
<SelectPrimitive.Item
|
|
@@ -120,7 +120,7 @@ const SelectItem = React.forwardRef<
|
|
|
120
120
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
121
121
|
|
|
122
122
|
const SelectSeparator = React.forwardRef<
|
|
123
|
-
React.
|
|
123
|
+
React.ComponentRef<typeof SelectPrimitive.Separator>,
|
|
124
124
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
|
|
125
125
|
>(({className, ...props}, ref) => (
|
|
126
126
|
<SelectPrimitive.Separator
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const Separator = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof SeparatorPrimitive.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
|
|
11
11
|
>(({className, orientation = "horizontal", decorative = true, ...props}, ref) => (
|
|
12
12
|
<SeparatorPrimitive.Root
|
|
@@ -16,7 +16,7 @@ const SheetClose = SheetPrimitive.Close;
|
|
|
16
16
|
const SheetPortal = SheetPrimitive.Portal;
|
|
17
17
|
|
|
18
18
|
const SheetOverlay = React.forwardRef<
|
|
19
|
-
React.
|
|
19
|
+
React.ComponentRef<typeof SheetPrimitive.Overlay>,
|
|
20
20
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
|
|
21
21
|
>(({className, ...props}, ref) => (
|
|
22
22
|
<SheetPrimitive.Overlay
|
|
@@ -50,7 +50,7 @@ const sheetVariants = cva(
|
|
|
50
50
|
|
|
51
51
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
|
|
52
52
|
|
|
53
|
-
const SheetContent = React.forwardRef<React.
|
|
53
|
+
const SheetContent = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Content>, SheetContentProps>(
|
|
54
54
|
({side = "right", className, children, ...props}, ref) => (
|
|
55
55
|
<SheetPortal>
|
|
56
56
|
<SheetOverlay />
|
|
@@ -86,7 +86,7 @@ const SheetFooter = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>
|
|
|
86
86
|
SheetFooter.displayName = "SheetFooter";
|
|
87
87
|
|
|
88
88
|
const SheetTitle = React.forwardRef<
|
|
89
|
-
React.
|
|
89
|
+
React.ComponentRef<typeof SheetPrimitive.Title>,
|
|
90
90
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
|
|
91
91
|
>(({className, ...props}, ref) => (
|
|
92
92
|
<SheetPrimitive.Title
|
|
@@ -98,7 +98,7 @@ const SheetTitle = React.forwardRef<
|
|
|
98
98
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
99
99
|
|
|
100
100
|
const SheetDescription = React.forwardRef<
|
|
101
|
-
React.
|
|
101
|
+
React.ComponentRef<typeof SheetPrimitive.Description>,
|
|
102
102
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
|
|
103
103
|
>(({className, ...props}, ref) => (
|
|
104
104
|
<SheetPrimitive.Description
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
3
5
|
import {Slot} from "@radix-ui/react-slot";
|
|
4
6
|
import {VariantProps, cva} from "class-variance-authority";
|
|
5
7
|
import {PanelLeft} from "lucide-react";
|
|
@@ -86,8 +88,8 @@ const SidebarProvider = React.forwardRef<
|
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
90
|
|
|
89
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
90
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
91
|
+
globalThis.window.addEventListener("keydown", handleKeyDown);
|
|
92
|
+
return () => globalThis.window.removeEventListener("keydown", handleKeyDown);
|
|
91
93
|
}, [toggleSidebar]);
|
|
92
94
|
|
|
93
95
|
// We add a state so that we can do data-state="expanded" or "collapsed".
|
|
@@ -219,7 +221,7 @@ const Sidebar = React.forwardRef<
|
|
|
219
221
|
});
|
|
220
222
|
Sidebar.displayName = "Sidebar";
|
|
221
223
|
|
|
222
|
-
const SidebarTrigger = React.forwardRef<React.
|
|
224
|
+
const SidebarTrigger = React.forwardRef<React.ComponentRef<typeof Button>, React.ComponentProps<typeof Button>>(
|
|
223
225
|
({className, onClick, ...props}, ref) => {
|
|
224
226
|
const {toggleSidebar} = useSidebar();
|
|
225
227
|
|
|
@@ -252,6 +254,7 @@ const SidebarRail = React.forwardRef<HTMLButtonElement, React.ComponentProps<"bu
|
|
|
252
254
|
data-sidebar='rail'
|
|
253
255
|
aria-label='Toggle Sidebar'
|
|
254
256
|
tabIndex={-1}
|
|
257
|
+
type='button'
|
|
255
258
|
onClick={toggleSidebar}
|
|
256
259
|
title='Toggle Sidebar'
|
|
257
260
|
className={cn(
|
|
@@ -284,16 +287,21 @@ const SidebarInset = React.forwardRef<HTMLDivElement, React.ComponentProps<"main
|
|
|
284
287
|
});
|
|
285
288
|
SidebarInset.displayName = "SidebarInset";
|
|
286
289
|
|
|
287
|
-
const SidebarInput = React.forwardRef<React.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
290
|
+
const SidebarInput = React.forwardRef<React.ComponentRef<typeof Input>, React.ComponentProps<typeof Input>>(
|
|
291
|
+
({className, ...props}, ref) => {
|
|
292
|
+
return (
|
|
293
|
+
<Input
|
|
294
|
+
ref={ref}
|
|
295
|
+
data-sidebar='input'
|
|
296
|
+
className={cn(
|
|
297
|
+
"focus-visible:ring-sidebar-ring h-8 w-full bg-white shadow-none focus-visible:ring-2 dark:bg-neutral-950",
|
|
298
|
+
className,
|
|
299
|
+
)}
|
|
300
|
+
{...props}
|
|
301
|
+
/>
|
|
302
|
+
);
|
|
303
|
+
},
|
|
304
|
+
);
|
|
297
305
|
SidebarInput.displayName = "SidebarInput";
|
|
298
306
|
|
|
299
307
|
const SidebarHeader = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({className, ...props}, ref) => {
|
|
@@ -320,7 +328,7 @@ const SidebarFooter = React.forwardRef<HTMLDivElement, React.ComponentProps<"div
|
|
|
320
328
|
});
|
|
321
329
|
SidebarFooter.displayName = "SidebarFooter";
|
|
322
330
|
|
|
323
|
-
const SidebarSeparator = React.forwardRef<React.
|
|
331
|
+
const SidebarSeparator = React.forwardRef<React.ComponentRef<typeof Separator>, React.ComponentProps<typeof Separator>>(
|
|
324
332
|
({className, ...props}, ref) => {
|
|
325
333
|
return (
|
|
326
334
|
<Separator
|
|
@@ -5,19 +5,20 @@ import * as React from "react";
|
|
|
5
5
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
|
-
const Slider = React.forwardRef<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<SliderPrimitive.
|
|
18
|
-
</SliderPrimitive.
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
const Slider = React.forwardRef<
|
|
9
|
+
React.ComponentRef<typeof SliderPrimitive.Root>,
|
|
10
|
+
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
|
|
11
|
+
>(({className, ...props}, ref) => (
|
|
12
|
+
<SliderPrimitive.Root
|
|
13
|
+
ref={ref}
|
|
14
|
+
className={cn("relative flex w-full touch-none items-center select-none", className)}
|
|
15
|
+
{...props}>
|
|
16
|
+
<SliderPrimitive.Track className='relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-900/20 dark:bg-neutral-50/20'>
|
|
17
|
+
<SliderPrimitive.Range className='absolute h-full bg-neutral-900 dark:bg-neutral-50' />
|
|
18
|
+
</SliderPrimitive.Track>
|
|
19
|
+
<SliderPrimitive.Thumb className='block h-4 w-4 rounded-full border border-neutral-200 border-neutral-900/50 bg-white shadow transition-colors focus-visible:ring-1 focus-visible:ring-neutral-950 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 dark:border-neutral-50/50 dark:border-neutral-800 dark:bg-neutral-950 dark:focus-visible:ring-neutral-300' />
|
|
20
|
+
</SliderPrimitive.Root>
|
|
21
|
+
));
|
|
21
22
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
22
23
|
|
|
23
24
|
export {Slider};
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const Switch = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof SwitchPrimitives.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
|
|
11
11
|
>(({className, ...props}, ref) => (
|
|
12
12
|
<SwitchPrimitives.Root
|
|
@@ -7,7 +7,7 @@ import {cn} from "@/lib/utilities";
|
|
|
7
7
|
|
|
8
8
|
const Tabs = TabsPrimitive.Root;
|
|
9
9
|
|
|
10
|
-
const TabsList = React.forwardRef<React.
|
|
10
|
+
const TabsList = React.forwardRef<React.ComponentRef<typeof TabsPrimitive.List>, React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>>(
|
|
11
11
|
({className, ...props}, ref) => (
|
|
12
12
|
<TabsPrimitive.List
|
|
13
13
|
ref={ref}
|
|
@@ -22,7 +22,7 @@ const TabsList = React.forwardRef<React.ElementRef<typeof TabsPrimitive.List>, R
|
|
|
22
22
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
23
23
|
|
|
24
24
|
const TabsTrigger = React.forwardRef<
|
|
25
|
-
React.
|
|
25
|
+
React.ComponentRef<typeof TabsPrimitive.Trigger>,
|
|
26
26
|
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
|
|
27
27
|
>(({className, ...props}, ref) => (
|
|
28
28
|
<TabsPrimitive.Trigger
|
|
@@ -37,7 +37,7 @@ const TabsTrigger = React.forwardRef<
|
|
|
37
37
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
38
38
|
|
|
39
39
|
const TabsContent = React.forwardRef<
|
|
40
|
-
React.
|
|
40
|
+
React.ComponentRef<typeof TabsPrimitive.Content>,
|
|
41
41
|
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
|
|
42
42
|
>(({className, ...props}, ref) => (
|
|
43
43
|
<TabsPrimitive.Content
|
|
@@ -13,7 +13,7 @@ const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariant
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const ToggleGroup = React.forwardRef<
|
|
16
|
-
React.
|
|
16
|
+
React.ComponentRef<typeof ToggleGroupPrimitive.Root>,
|
|
17
17
|
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>
|
|
18
18
|
>(({className, variant, size, children, ...props}, ref) => (
|
|
19
19
|
<ToggleGroupPrimitive.Root
|
|
@@ -27,7 +27,7 @@ const ToggleGroup = React.forwardRef<
|
|
|
27
27
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
28
28
|
|
|
29
29
|
const ToggleGroupItem = React.forwardRef<
|
|
30
|
-
React.
|
|
30
|
+
React.ComponentRef<typeof ToggleGroupPrimitive.Item>,
|
|
31
31
|
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>
|
|
32
32
|
>(({className, children, variant, size, ...props}, ref) => {
|
|
33
33
|
const context = React.useContext(ToggleGroupContext);
|
|
@@ -29,7 +29,7 @@ const toggleVariants = cva(
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
const Toggle = React.forwardRef<
|
|
32
|
-
React.
|
|
32
|
+
React.ComponentRef<typeof TogglePrimitive.Root>,
|
|
33
33
|
React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>
|
|
34
34
|
>(({className, variant, size, ...props}, ref) => (
|
|
35
35
|
<TogglePrimitive.Root
|
|
@@ -12,7 +12,7 @@ const Tooltip = TooltipPrimitive.Root;
|
|
|
12
12
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
13
13
|
|
|
14
14
|
const TooltipContent = React.forwardRef<
|
|
15
|
-
React.
|
|
15
|
+
React.ComponentRef<typeof TooltipPrimitive.Content>,
|
|
16
16
|
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
|
17
17
|
>(({className, sideOffset = 4, ...props}, ref) => (
|
|
18
18
|
<TooltipPrimitive.Portal>
|
|
@@ -20,7 +20,7 @@ export const TypewriterText = ({
|
|
|
20
20
|
const wordsArray = words.map((word) => {
|
|
21
21
|
return {
|
|
22
22
|
...word,
|
|
23
|
-
text: word.text
|
|
23
|
+
text: [...word.text],
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -105,7 +105,7 @@ export const TypewriterTextSmooth = ({
|
|
|
105
105
|
const wordsArray = words.map((word) => {
|
|
106
106
|
return {
|
|
107
107
|
...word,
|
|
108
|
-
text: word.text
|
|
108
|
+
text: [...word.text],
|
|
109
109
|
};
|
|
110
110
|
});
|
|
111
111
|
const renderWords = () => {
|