@gv-tech/ui-web 2.15.2 → 2.16.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/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +3 -3
- package/dist/alert-dialog.cjs +2 -2
- package/dist/alert-dialog.mjs +16 -16
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +34 -34
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +114 -114
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +68 -68
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +21 -21
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +16 -16
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +43 -43
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +28 -0
- package/dist/index.mjs +22 -20
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +2 -2
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +77 -77
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +57 -57
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +62 -62
- package/dist/progress.cjs +2 -2
- package/dist/progress.mjs +2 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +36 -36
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +88 -88
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +74 -74
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +9 -9
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +12 -12
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +2 -2
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +12 -12
- package/dist/table-of-contents.cjs +1 -0
- package/dist/table-of-contents.d.ts +35 -0
- package/dist/table-of-contents.mjs +160 -0
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +41 -41
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-B4VZTDpe.js → theme-toggle-DXQGNfCe.js} +1 -1
- package/dist/{theme-toggle-WtPW9UZi.mjs → theme-toggle-tHXIbr8W.mjs} +1 -1
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +35 -35
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +15 -15
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +4 -4
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +3 -3
- package/dist/utils-DY6fhrgS.mjs +12 -0
- package/dist/utils-cdbZV8DZ.js +1 -0
- package/package.json +1 -1
- package/src/accordion.tsx +2 -2
- package/src/alert-dialog.tsx +6 -6
- package/src/avatar.tsx +3 -3
- package/src/checkbox.tsx +1 -1
- package/src/command.tsx +7 -7
- package/src/context-menu.tsx +8 -8
- package/src/dialog.tsx +4 -4
- package/src/drawer.tsx +3 -3
- package/src/dropdown-menu.tsx +8 -8
- package/src/hover-card.tsx +1 -1
- package/src/index.ts +4 -1
- package/src/label.tsx +1 -1
- package/src/lib/utils.ts +10 -0
- package/src/menubar.tsx +10 -10
- package/src/navigation-menu.tsx +6 -6
- package/src/popover.tsx +1 -1
- package/src/progress.tsx +1 -1
- package/src/radio-group.tsx +2 -2
- package/src/scroll-area.tsx +2 -2
- package/src/select.tsx +7 -7
- package/src/separator.tsx +1 -1
- package/src/sheet.tsx +4 -4
- package/src/slider.tsx +1 -1
- package/src/switch.tsx +1 -1
- package/src/table-of-contents.tsx +285 -0
- package/src/tabs.tsx +3 -3
- package/src/toast.tsx +6 -6
- package/src/toggle-group.tsx +2 -2
- package/src/toggle.tsx +1 -1
- package/src/tooltip.tsx +2 -2
- package/dist/utils-B6yFEsav.mjs +0 -8
- package/dist/utils-IjLH3w2e.js +0 -1
package/src/alert-dialog.tsx
CHANGED
|
@@ -34,7 +34,7 @@ const AlertDialogOverlay = React.forwardRef<
|
|
|
34
34
|
ref={ref}
|
|
35
35
|
/>
|
|
36
36
|
));
|
|
37
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay
|
|
37
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay?.displayName || 'AlertDialogOverlay';
|
|
38
38
|
|
|
39
39
|
const AlertDialogContent = React.forwardRef<
|
|
40
40
|
React.ElementRef<typeof AlertDialogPrimitive.Content>,
|
|
@@ -52,7 +52,7 @@ const AlertDialogContent = React.forwardRef<
|
|
|
52
52
|
/>
|
|
53
53
|
</AlertDialogPortal>
|
|
54
54
|
));
|
|
55
|
-
AlertDialogContent.displayName = AlertDialogPrimitive.Content
|
|
55
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content?.displayName || 'AlertDialogContent';
|
|
56
56
|
|
|
57
57
|
const AlertDialogHeader = ({
|
|
58
58
|
className,
|
|
@@ -76,7 +76,7 @@ const AlertDialogTitle = React.forwardRef<
|
|
|
76
76
|
>(({ className, ...props }, ref) => (
|
|
77
77
|
<AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />
|
|
78
78
|
));
|
|
79
|
-
AlertDialogTitle.displayName = AlertDialogPrimitive.Title
|
|
79
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title?.displayName || 'AlertDialogTitle';
|
|
80
80
|
|
|
81
81
|
const AlertDialogDescription = React.forwardRef<
|
|
82
82
|
React.ElementRef<typeof AlertDialogPrimitive.Description>,
|
|
@@ -84,7 +84,7 @@ const AlertDialogDescription = React.forwardRef<
|
|
|
84
84
|
>(({ className, ...props }, ref) => (
|
|
85
85
|
<AlertDialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />
|
|
86
86
|
));
|
|
87
|
-
AlertDialogDescription.displayName = AlertDialogPrimitive.Description
|
|
87
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description?.displayName || 'AlertDialogDescription';
|
|
88
88
|
|
|
89
89
|
const AlertDialogAction = React.forwardRef<
|
|
90
90
|
React.ElementRef<typeof AlertDialogPrimitive.Action>,
|
|
@@ -92,7 +92,7 @@ const AlertDialogAction = React.forwardRef<
|
|
|
92
92
|
>(({ className, ...props }, ref) => (
|
|
93
93
|
<AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
|
|
94
94
|
));
|
|
95
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action
|
|
95
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action?.displayName || 'AlertDialogAction';
|
|
96
96
|
|
|
97
97
|
const AlertDialogCancel = React.forwardRef<
|
|
98
98
|
React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
|
|
@@ -104,7 +104,7 @@ const AlertDialogCancel = React.forwardRef<
|
|
|
104
104
|
{...props}
|
|
105
105
|
/>
|
|
106
106
|
));
|
|
107
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel
|
|
107
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel?.displayName || 'AlertDialogCancel';
|
|
108
108
|
|
|
109
109
|
export {
|
|
110
110
|
AlertDialog,
|
package/src/avatar.tsx
CHANGED
|
@@ -15,7 +15,7 @@ const Avatar = React.forwardRef<
|
|
|
15
15
|
{...props}
|
|
16
16
|
/>
|
|
17
17
|
));
|
|
18
|
-
Avatar.displayName = AvatarPrimitive.Root
|
|
18
|
+
Avatar.displayName = AvatarPrimitive.Root?.displayName || 'Avatar';
|
|
19
19
|
|
|
20
20
|
const AvatarImage = React.forwardRef<
|
|
21
21
|
React.ElementRef<typeof AvatarPrimitive.Image>,
|
|
@@ -23,7 +23,7 @@ const AvatarImage = React.forwardRef<
|
|
|
23
23
|
>(({ className, ...props }, ref) => (
|
|
24
24
|
<AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />
|
|
25
25
|
));
|
|
26
|
-
AvatarImage.displayName = AvatarPrimitive.Image
|
|
26
|
+
AvatarImage.displayName = AvatarPrimitive.Image?.displayName || 'AvatarImage';
|
|
27
27
|
|
|
28
28
|
const AvatarFallback = React.forwardRef<
|
|
29
29
|
React.ElementRef<typeof AvatarPrimitive.Fallback>,
|
|
@@ -35,7 +35,7 @@ const AvatarFallback = React.forwardRef<
|
|
|
35
35
|
{...props}
|
|
36
36
|
/>
|
|
37
37
|
));
|
|
38
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback
|
|
38
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback?.displayName || 'AvatarFallback';
|
|
39
39
|
|
|
40
40
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
41
41
|
export type { AvatarBaseProps as AvatarProps };
|
package/src/checkbox.tsx
CHANGED
|
@@ -27,6 +27,6 @@ const Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root
|
|
|
27
27
|
</CheckboxPrimitive.Root>
|
|
28
28
|
),
|
|
29
29
|
);
|
|
30
|
-
Checkbox.displayName = CheckboxPrimitive.Root
|
|
30
|
+
Checkbox.displayName = CheckboxPrimitive.Root?.displayName || 'Checkbox';
|
|
31
31
|
|
|
32
32
|
export { Checkbox };
|
package/src/command.tsx
CHANGED
|
@@ -31,7 +31,7 @@ const Command = React.forwardRef<
|
|
|
31
31
|
{...props}
|
|
32
32
|
/>
|
|
33
33
|
));
|
|
34
|
-
Command.displayName = CommandPrimitive
|
|
34
|
+
Command.displayName = CommandPrimitive?.displayName || 'Command';
|
|
35
35
|
|
|
36
36
|
const CommandDialog = ({ children, ...props }: DialogProps) => {
|
|
37
37
|
return (
|
|
@@ -64,7 +64,7 @@ const CommandInput = React.forwardRef<
|
|
|
64
64
|
</div>
|
|
65
65
|
));
|
|
66
66
|
|
|
67
|
-
CommandInput.displayName = CommandPrimitive.Input
|
|
67
|
+
CommandInput.displayName = CommandPrimitive.Input?.displayName || 'CommandInput';
|
|
68
68
|
|
|
69
69
|
const CommandList = React.forwardRef<
|
|
70
70
|
React.ElementRef<typeof CommandPrimitive.List>,
|
|
@@ -77,14 +77,14 @@ const CommandList = React.forwardRef<
|
|
|
77
77
|
/>
|
|
78
78
|
));
|
|
79
79
|
|
|
80
|
-
CommandList.displayName = CommandPrimitive.List
|
|
80
|
+
CommandList.displayName = CommandPrimitive.List?.displayName || 'CommandList';
|
|
81
81
|
|
|
82
82
|
const CommandEmpty = React.forwardRef<
|
|
83
83
|
React.ElementRef<typeof CommandPrimitive.Empty>,
|
|
84
84
|
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & CommandEmptyBaseProps
|
|
85
85
|
>((props, ref) => <CommandPrimitive.Empty ref={ref} className="py-6 text-center text-sm" {...props} />);
|
|
86
86
|
|
|
87
|
-
CommandEmpty.displayName = CommandPrimitive.Empty
|
|
87
|
+
CommandEmpty.displayName = CommandPrimitive.Empty?.displayName || 'CommandEmpty';
|
|
88
88
|
|
|
89
89
|
const CommandGroup = React.forwardRef<
|
|
90
90
|
React.ElementRef<typeof CommandPrimitive.Group>,
|
|
@@ -100,7 +100,7 @@ const CommandGroup = React.forwardRef<
|
|
|
100
100
|
/>
|
|
101
101
|
));
|
|
102
102
|
|
|
103
|
-
CommandGroup.displayName = CommandPrimitive.Group
|
|
103
|
+
CommandGroup.displayName = CommandPrimitive.Group?.displayName || 'CommandGroup';
|
|
104
104
|
|
|
105
105
|
const CommandSeparator = React.forwardRef<
|
|
106
106
|
React.ElementRef<typeof CommandPrimitive.Separator>,
|
|
@@ -108,7 +108,7 @@ const CommandSeparator = React.forwardRef<
|
|
|
108
108
|
>(({ className, ...props }, ref) => (
|
|
109
109
|
<CommandPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 h-px', className)} {...props} />
|
|
110
110
|
));
|
|
111
|
-
CommandSeparator.displayName = CommandPrimitive.Separator
|
|
111
|
+
CommandSeparator.displayName = CommandPrimitive.Separator?.displayName || 'CommandSeparator';
|
|
112
112
|
|
|
113
113
|
const CommandItem = React.forwardRef<
|
|
114
114
|
React.ElementRef<typeof CommandPrimitive.Item>,
|
|
@@ -124,7 +124,7 @@ const CommandItem = React.forwardRef<
|
|
|
124
124
|
/>
|
|
125
125
|
));
|
|
126
126
|
|
|
127
|
-
CommandItem.displayName = CommandPrimitive.Item
|
|
127
|
+
CommandItem.displayName = CommandPrimitive.Item?.displayName || 'CommandItem';
|
|
128
128
|
|
|
129
129
|
const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutBaseProps) => {
|
|
130
130
|
return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;
|
package/src/context-menu.tsx
CHANGED
|
@@ -50,7 +50,7 @@ const ContextMenuSubTrigger = React.forwardRef<
|
|
|
50
50
|
<ChevronRight className="ml-auto h-4 w-4" />
|
|
51
51
|
</ContextMenuPrimitive.SubTrigger>
|
|
52
52
|
));
|
|
53
|
-
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger
|
|
53
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger?.displayName || 'ContextMenuSubTrigger';
|
|
54
54
|
|
|
55
55
|
const ContextMenuSubContent = React.forwardRef<
|
|
56
56
|
React.ElementRef<typeof ContextMenuPrimitive.SubContent>,
|
|
@@ -65,7 +65,7 @@ const ContextMenuSubContent = React.forwardRef<
|
|
|
65
65
|
{...props}
|
|
66
66
|
/>
|
|
67
67
|
));
|
|
68
|
-
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent
|
|
68
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent?.displayName || 'ContextMenuSubContent';
|
|
69
69
|
|
|
70
70
|
const ContextMenuContent = React.forwardRef<
|
|
71
71
|
React.ElementRef<typeof ContextMenuPrimitive.Content>,
|
|
@@ -82,7 +82,7 @@ const ContextMenuContent = React.forwardRef<
|
|
|
82
82
|
/>
|
|
83
83
|
</ContextMenuPrimitive.Portal>
|
|
84
84
|
));
|
|
85
|
-
ContextMenuContent.displayName = ContextMenuPrimitive.Content
|
|
85
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content?.displayName || 'ContextMenuContent';
|
|
86
86
|
|
|
87
87
|
const ContextMenuItem = React.forwardRef<
|
|
88
88
|
React.ElementRef<typeof ContextMenuPrimitive.Item>,
|
|
@@ -98,7 +98,7 @@ const ContextMenuItem = React.forwardRef<
|
|
|
98
98
|
{...props}
|
|
99
99
|
/>
|
|
100
100
|
));
|
|
101
|
-
ContextMenuItem.displayName = ContextMenuPrimitive.Item
|
|
101
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item?.displayName || 'ContextMenuItem';
|
|
102
102
|
|
|
103
103
|
const ContextMenuCheckboxItem = React.forwardRef<
|
|
104
104
|
React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,
|
|
@@ -121,7 +121,7 @@ const ContextMenuCheckboxItem = React.forwardRef<
|
|
|
121
121
|
{children}
|
|
122
122
|
</ContextMenuPrimitive.CheckboxItem>
|
|
123
123
|
));
|
|
124
|
-
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem
|
|
124
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem?.displayName || 'ContextMenuCheckboxItem';
|
|
125
125
|
|
|
126
126
|
const ContextMenuRadioItem = React.forwardRef<
|
|
127
127
|
React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,
|
|
@@ -143,7 +143,7 @@ const ContextMenuRadioItem = React.forwardRef<
|
|
|
143
143
|
{children}
|
|
144
144
|
</ContextMenuPrimitive.RadioItem>
|
|
145
145
|
));
|
|
146
|
-
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem
|
|
146
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem?.displayName || 'ContextMenuRadioItem';
|
|
147
147
|
|
|
148
148
|
const ContextMenuLabel = React.forwardRef<
|
|
149
149
|
React.ElementRef<typeof ContextMenuPrimitive.Label>,
|
|
@@ -155,7 +155,7 @@ const ContextMenuLabel = React.forwardRef<
|
|
|
155
155
|
{...props}
|
|
156
156
|
/>
|
|
157
157
|
));
|
|
158
|
-
ContextMenuLabel.displayName = ContextMenuPrimitive.Label
|
|
158
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive.Label?.displayName || 'ContextMenuLabel';
|
|
159
159
|
|
|
160
160
|
const ContextMenuSeparator = React.forwardRef<
|
|
161
161
|
React.ElementRef<typeof ContextMenuPrimitive.Separator>,
|
|
@@ -163,7 +163,7 @@ const ContextMenuSeparator = React.forwardRef<
|
|
|
163
163
|
>(({ className, ...props }, ref) => (
|
|
164
164
|
<ContextMenuPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 my-1 h-px', className)} {...props} />
|
|
165
165
|
));
|
|
166
|
-
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator
|
|
166
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator?.displayName || 'ContextMenuSeparator';
|
|
167
167
|
|
|
168
168
|
const ContextMenuShortcut = ({
|
|
169
169
|
className,
|
package/src/dialog.tsx
CHANGED
|
@@ -26,7 +26,7 @@ const DialogOverlay = React.forwardRef<
|
|
|
26
26
|
{...props}
|
|
27
27
|
/>
|
|
28
28
|
));
|
|
29
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay
|
|
29
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay?.displayName || 'DialogOverlay';
|
|
30
30
|
|
|
31
31
|
const DialogContent = React.forwardRef<
|
|
32
32
|
React.ElementRef<typeof DialogPrimitive.Content>,
|
|
@@ -50,7 +50,7 @@ const DialogContent = React.forwardRef<
|
|
|
50
50
|
</DialogPrimitive.Content>
|
|
51
51
|
</DialogPortal>
|
|
52
52
|
));
|
|
53
|
-
DialogContent.displayName = DialogPrimitive.Content
|
|
53
|
+
DialogContent.displayName = DialogPrimitive.Content?.displayName || 'DialogContent';
|
|
54
54
|
|
|
55
55
|
const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
56
56
|
<div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />
|
|
@@ -72,7 +72,7 @@ const DialogTitle = React.forwardRef<
|
|
|
72
72
|
{...props}
|
|
73
73
|
/>
|
|
74
74
|
));
|
|
75
|
-
DialogTitle.displayName = DialogPrimitive.Title
|
|
75
|
+
DialogTitle.displayName = DialogPrimitive.Title?.displayName || 'DialogTitle';
|
|
76
76
|
|
|
77
77
|
const DialogDescription = React.forwardRef<
|
|
78
78
|
React.ElementRef<typeof DialogPrimitive.Description>,
|
|
@@ -80,7 +80,7 @@ const DialogDescription = React.forwardRef<
|
|
|
80
80
|
>(({ className, ...props }, ref) => (
|
|
81
81
|
<DialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />
|
|
82
82
|
));
|
|
83
|
-
DialogDescription.displayName = DialogPrimitive.Description
|
|
83
|
+
DialogDescription.displayName = DialogPrimitive.Description?.displayName || 'DialogDescription';
|
|
84
84
|
|
|
85
85
|
export {
|
|
86
86
|
Dialog,
|
package/src/drawer.tsx
CHANGED
|
@@ -32,7 +32,7 @@ const DrawerOverlay = React.forwardRef<
|
|
|
32
32
|
>(({ className, ...props }, ref) => (
|
|
33
33
|
<DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />
|
|
34
34
|
));
|
|
35
|
-
DrawerOverlay.displayName = DrawerPrimitive.Overlay
|
|
35
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';
|
|
36
36
|
|
|
37
37
|
const DrawerContent = React.forwardRef<
|
|
38
38
|
React.ElementRef<typeof DrawerPrimitive.Content>,
|
|
@@ -75,7 +75,7 @@ const DrawerTitle = React.forwardRef<
|
|
|
75
75
|
{...props}
|
|
76
76
|
/>
|
|
77
77
|
));
|
|
78
|
-
DrawerTitle.displayName = DrawerPrimitive.Title
|
|
78
|
+
DrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';
|
|
79
79
|
|
|
80
80
|
const DrawerDescription = React.forwardRef<
|
|
81
81
|
React.ElementRef<typeof DrawerPrimitive.Description>,
|
|
@@ -83,7 +83,7 @@ const DrawerDescription = React.forwardRef<
|
|
|
83
83
|
>(({ className, ...props }, ref) => (
|
|
84
84
|
<DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />
|
|
85
85
|
));
|
|
86
|
-
DrawerDescription.displayName = DrawerPrimitive.Description
|
|
86
|
+
DrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';
|
|
87
87
|
|
|
88
88
|
export {
|
|
89
89
|
Drawer,
|
package/src/dropdown-menu.tsx
CHANGED
|
@@ -51,7 +51,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
|
|
51
51
|
<ChevronRight className="ml-auto" />
|
|
52
52
|
</DropdownMenuPrimitive.SubTrigger>
|
|
53
53
|
));
|
|
54
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger
|
|
54
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger?.displayName || 'DropdownMenuSubTrigger';
|
|
55
55
|
|
|
56
56
|
const DropdownMenuSubContent = React.forwardRef<
|
|
57
57
|
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
|
|
@@ -66,7 +66,7 @@ const DropdownMenuSubContent = React.forwardRef<
|
|
|
66
66
|
{...props}
|
|
67
67
|
/>
|
|
68
68
|
));
|
|
69
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent
|
|
69
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent?.displayName || 'DropdownMenuSubContent';
|
|
70
70
|
|
|
71
71
|
const DropdownMenuContent = React.forwardRef<
|
|
72
72
|
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
|
|
@@ -85,7 +85,7 @@ const DropdownMenuContent = React.forwardRef<
|
|
|
85
85
|
/>
|
|
86
86
|
</DropdownMenuPrimitive.Portal>
|
|
87
87
|
));
|
|
88
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content
|
|
88
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content?.displayName || 'DropdownMenuContent';
|
|
89
89
|
|
|
90
90
|
const DropdownMenuItem = React.forwardRef<
|
|
91
91
|
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
|
|
@@ -101,7 +101,7 @@ const DropdownMenuItem = React.forwardRef<
|
|
|
101
101
|
{...props}
|
|
102
102
|
/>
|
|
103
103
|
));
|
|
104
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item
|
|
104
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item?.displayName || 'DropdownMenuItem';
|
|
105
105
|
|
|
106
106
|
const DropdownMenuCheckboxItem = React.forwardRef<
|
|
107
107
|
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
|
|
@@ -124,7 +124,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
|
|
124
124
|
{children}
|
|
125
125
|
</DropdownMenuPrimitive.CheckboxItem>
|
|
126
126
|
));
|
|
127
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem
|
|
127
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem?.displayName || 'DropdownMenuCheckboxItem';
|
|
128
128
|
|
|
129
129
|
const DropdownMenuRadioItem = React.forwardRef<
|
|
130
130
|
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
|
|
@@ -146,7 +146,7 @@ const DropdownMenuRadioItem = React.forwardRef<
|
|
|
146
146
|
{children}
|
|
147
147
|
</DropdownMenuPrimitive.RadioItem>
|
|
148
148
|
));
|
|
149
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem
|
|
149
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem?.displayName || 'DropdownMenuRadioItem';
|
|
150
150
|
|
|
151
151
|
const DropdownMenuLabel = React.forwardRef<
|
|
152
152
|
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
|
|
@@ -158,7 +158,7 @@ const DropdownMenuLabel = React.forwardRef<
|
|
|
158
158
|
{...props}
|
|
159
159
|
/>
|
|
160
160
|
));
|
|
161
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label
|
|
161
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label?.displayName || 'DropdownMenuLabel';
|
|
162
162
|
|
|
163
163
|
const DropdownMenuSeparator = React.forwardRef<
|
|
164
164
|
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
|
|
@@ -166,7 +166,7 @@ const DropdownMenuSeparator = React.forwardRef<
|
|
|
166
166
|
>(({ className, ...props }, ref) => (
|
|
167
167
|
<DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />
|
|
168
168
|
));
|
|
169
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator
|
|
169
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';
|
|
170
170
|
|
|
171
171
|
const DropdownMenuShortcut = ({
|
|
172
172
|
className,
|
package/src/hover-card.tsx
CHANGED
|
@@ -25,7 +25,7 @@ const HoverCardContent = React.forwardRef<
|
|
|
25
25
|
{...props}
|
|
26
26
|
/>
|
|
27
27
|
));
|
|
28
|
-
HoverCardContent.displayName = HoverCardPrimitive.Content
|
|
28
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content?.displayName || 'HoverCardContent';
|
|
29
29
|
|
|
30
30
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
31
31
|
export type {
|
package/src/index.ts
CHANGED
|
@@ -476,4 +476,7 @@ export { useTheme } from './hooks/use-theme';
|
|
|
476
476
|
export type { ToasterBaseProps as ToasterProps } from '@gv-tech/ui-core';
|
|
477
477
|
export { toast, useToast } from './hooks/use-toast';
|
|
478
478
|
export { Toaster } from './toaster';
|
|
479
|
-
|
|
479
|
+
|
|
480
|
+
// Table Of Contents
|
|
481
|
+
export { TableOfContents } from './table-of-contents';
|
|
482
|
+
export type { TableOfContentsProps } from './table-of-contents';
|
package/src/label.tsx
CHANGED
|
@@ -15,7 +15,7 @@ const Label = React.forwardRef<
|
|
|
15
15
|
>(({ className, ...props }, ref) => (
|
|
16
16
|
<LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
|
|
17
17
|
));
|
|
18
|
-
Label.displayName = LabelPrimitive.Root
|
|
18
|
+
Label.displayName = LabelPrimitive.Root?.displayName || 'Label';
|
|
19
19
|
|
|
20
20
|
export { Label };
|
|
21
21
|
export type { LabelBaseProps as LabelProps };
|
package/src/lib/utils.ts
CHANGED
|
@@ -4,3 +4,13 @@ import { twMerge } from 'tailwind-merge';
|
|
|
4
4
|
export function cn(...inputs: ClassValue[]) {
|
|
5
5
|
return twMerge(clsx(inputs));
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
export function slugify(text: string): string {
|
|
9
|
+
return text
|
|
10
|
+
.toString()
|
|
11
|
+
.toLowerCase()
|
|
12
|
+
.trim()
|
|
13
|
+
.replace(/\s+/g, '-') // Replace spaces with -
|
|
14
|
+
.replace(/[^\w-]+/g, '') // Remove all non-word chars
|
|
15
|
+
.replace(/--+/g, '-'); // Replace multiple - with single -
|
|
16
|
+
}
|
package/src/menubar.tsx
CHANGED
|
@@ -51,7 +51,7 @@ const Menubar = React.forwardRef<
|
|
|
51
51
|
{...props}
|
|
52
52
|
/>
|
|
53
53
|
));
|
|
54
|
-
Menubar.displayName = MenubarPrimitive.Root
|
|
54
|
+
Menubar.displayName = MenubarPrimitive.Root?.displayName || 'Menubar';
|
|
55
55
|
|
|
56
56
|
const MenubarTrigger = React.forwardRef<
|
|
57
57
|
React.ElementRef<typeof MenubarPrimitive.Trigger>,
|
|
@@ -66,7 +66,7 @@ const MenubarTrigger = React.forwardRef<
|
|
|
66
66
|
{...props}
|
|
67
67
|
/>
|
|
68
68
|
));
|
|
69
|
-
MenubarTrigger.displayName = MenubarPrimitive.Trigger
|
|
69
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger?.displayName || 'MenubarTrigger';
|
|
70
70
|
|
|
71
71
|
const MenubarSubTrigger = React.forwardRef<
|
|
72
72
|
React.ElementRef<typeof MenubarPrimitive.SubTrigger>,
|
|
@@ -85,7 +85,7 @@ const MenubarSubTrigger = React.forwardRef<
|
|
|
85
85
|
<ChevronRight className="ml-auto h-4 w-4" />
|
|
86
86
|
</MenubarPrimitive.SubTrigger>
|
|
87
87
|
));
|
|
88
|
-
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger
|
|
88
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger?.displayName || 'MenubarSubTrigger';
|
|
89
89
|
|
|
90
90
|
const MenubarSubContent = React.forwardRef<
|
|
91
91
|
React.ElementRef<typeof MenubarPrimitive.SubContent>,
|
|
@@ -100,7 +100,7 @@ const MenubarSubContent = React.forwardRef<
|
|
|
100
100
|
{...props}
|
|
101
101
|
/>
|
|
102
102
|
));
|
|
103
|
-
MenubarSubContent.displayName = MenubarPrimitive.SubContent
|
|
103
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent?.displayName || 'MenubarSubContent';
|
|
104
104
|
|
|
105
105
|
const MenubarContent = React.forwardRef<
|
|
106
106
|
React.ElementRef<typeof MenubarPrimitive.Content>,
|
|
@@ -120,7 +120,7 @@ const MenubarContent = React.forwardRef<
|
|
|
120
120
|
/>
|
|
121
121
|
</MenubarPrimitive.Portal>
|
|
122
122
|
));
|
|
123
|
-
MenubarContent.displayName = MenubarPrimitive.Content
|
|
123
|
+
MenubarContent.displayName = MenubarPrimitive.Content?.displayName || 'MenubarContent';
|
|
124
124
|
|
|
125
125
|
const MenubarItem = React.forwardRef<
|
|
126
126
|
React.ElementRef<typeof MenubarPrimitive.Item>,
|
|
@@ -136,7 +136,7 @@ const MenubarItem = React.forwardRef<
|
|
|
136
136
|
{...props}
|
|
137
137
|
/>
|
|
138
138
|
));
|
|
139
|
-
MenubarItem.displayName = MenubarPrimitive.Item
|
|
139
|
+
MenubarItem.displayName = MenubarPrimitive.Item?.displayName || 'MenubarItem';
|
|
140
140
|
|
|
141
141
|
const MenubarCheckboxItem = React.forwardRef<
|
|
142
142
|
React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,
|
|
@@ -159,7 +159,7 @@ const MenubarCheckboxItem = React.forwardRef<
|
|
|
159
159
|
{children}
|
|
160
160
|
</MenubarPrimitive.CheckboxItem>
|
|
161
161
|
));
|
|
162
|
-
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem
|
|
162
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem?.displayName || 'MenubarCheckboxItem';
|
|
163
163
|
|
|
164
164
|
const MenubarRadioItem = React.forwardRef<
|
|
165
165
|
React.ElementRef<typeof MenubarPrimitive.RadioItem>,
|
|
@@ -181,7 +181,7 @@ const MenubarRadioItem = React.forwardRef<
|
|
|
181
181
|
{children}
|
|
182
182
|
</MenubarPrimitive.RadioItem>
|
|
183
183
|
));
|
|
184
|
-
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem
|
|
184
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem?.displayName || 'MenubarRadioItem';
|
|
185
185
|
|
|
186
186
|
const MenubarLabel = React.forwardRef<
|
|
187
187
|
React.ElementRef<typeof MenubarPrimitive.Label>,
|
|
@@ -193,7 +193,7 @@ const MenubarLabel = React.forwardRef<
|
|
|
193
193
|
{...props}
|
|
194
194
|
/>
|
|
195
195
|
));
|
|
196
|
-
MenubarLabel.displayName = MenubarPrimitive.Label
|
|
196
|
+
MenubarLabel.displayName = MenubarPrimitive.Label?.displayName || 'MenubarLabel';
|
|
197
197
|
|
|
198
198
|
const MenubarSeparator = React.forwardRef<
|
|
199
199
|
React.ElementRef<typeof MenubarPrimitive.Separator>,
|
|
@@ -201,7 +201,7 @@ const MenubarSeparator = React.forwardRef<
|
|
|
201
201
|
>(({ className, ...props }, ref) => (
|
|
202
202
|
<MenubarPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />
|
|
203
203
|
));
|
|
204
|
-
MenubarSeparator.displayName = MenubarPrimitive.Separator
|
|
204
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator?.displayName || 'MenubarSeparator';
|
|
205
205
|
|
|
206
206
|
const MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & MenubarShortcutBaseProps) => {
|
|
207
207
|
return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;
|
package/src/navigation-menu.tsx
CHANGED
|
@@ -30,7 +30,7 @@ const NavigationMenu = React.forwardRef<
|
|
|
30
30
|
<NavigationMenuViewport />
|
|
31
31
|
</NavigationMenuPrimitive.Root>
|
|
32
32
|
));
|
|
33
|
-
NavigationMenu.displayName = NavigationMenuPrimitive.Root
|
|
33
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root?.displayName || 'NavigationMenu';
|
|
34
34
|
|
|
35
35
|
const NavigationMenuList = React.forwardRef<
|
|
36
36
|
React.ElementRef<typeof NavigationMenuPrimitive.List>,
|
|
@@ -42,7 +42,7 @@ const NavigationMenuList = React.forwardRef<
|
|
|
42
42
|
{...props}
|
|
43
43
|
/>
|
|
44
44
|
));
|
|
45
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List
|
|
45
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List?.displayName || 'NavigationMenuList';
|
|
46
46
|
|
|
47
47
|
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
48
48
|
|
|
@@ -66,7 +66,7 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
66
66
|
/>
|
|
67
67
|
</NavigationMenuPrimitive.Trigger>
|
|
68
68
|
));
|
|
69
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger
|
|
69
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger?.displayName || 'NavigationMenuTrigger';
|
|
70
70
|
|
|
71
71
|
const NavigationMenuContent = React.forwardRef<
|
|
72
72
|
React.ElementRef<typeof NavigationMenuPrimitive.Content>,
|
|
@@ -81,7 +81,7 @@ const NavigationMenuContent = React.forwardRef<
|
|
|
81
81
|
{...props}
|
|
82
82
|
/>
|
|
83
83
|
));
|
|
84
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content
|
|
84
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content?.displayName || 'NavigationMenuContent';
|
|
85
85
|
|
|
86
86
|
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
87
87
|
|
|
@@ -100,7 +100,7 @@ const NavigationMenuViewport = React.forwardRef<
|
|
|
100
100
|
/>
|
|
101
101
|
</div>
|
|
102
102
|
));
|
|
103
|
-
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport
|
|
103
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport?.displayName || 'NavigationMenuViewport';
|
|
104
104
|
|
|
105
105
|
const NavigationMenuIndicator = React.forwardRef<
|
|
106
106
|
React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,
|
|
@@ -117,7 +117,7 @@ const NavigationMenuIndicator = React.forwardRef<
|
|
|
117
117
|
<div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" />
|
|
118
118
|
</NavigationMenuPrimitive.Indicator>
|
|
119
119
|
));
|
|
120
|
-
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator
|
|
120
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator?.displayName || 'NavigationMenuIndicator';
|
|
121
121
|
|
|
122
122
|
export {
|
|
123
123
|
NavigationMenu,
|
package/src/popover.tsx
CHANGED
|
@@ -34,7 +34,7 @@ const PopoverContent = React.forwardRef<
|
|
|
34
34
|
/>
|
|
35
35
|
</PopoverPrimitive.Portal>
|
|
36
36
|
));
|
|
37
|
-
PopoverContent.displayName = PopoverPrimitive.Content
|
|
37
|
+
PopoverContent.displayName = PopoverPrimitive.Content?.displayName || 'PopoverContent';
|
|
38
38
|
|
|
39
39
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
40
40
|
export type {
|
package/src/progress.tsx
CHANGED
|
@@ -22,7 +22,7 @@ const Progress = React.forwardRef<
|
|
|
22
22
|
/>
|
|
23
23
|
</ProgressPrimitive.Root>
|
|
24
24
|
));
|
|
25
|
-
Progress.displayName = ProgressPrimitive.Root
|
|
25
|
+
Progress.displayName = ProgressPrimitive.Root?.displayName || 'Progress';
|
|
26
26
|
|
|
27
27
|
export { Progress };
|
|
28
28
|
export type { ProgressBaseProps as ProgressProps };
|
package/src/radio-group.tsx
CHANGED
|
@@ -14,7 +14,7 @@ const RadioGroup = React.forwardRef<React.ElementRef<typeof RadioGroupPrimitive.
|
|
|
14
14
|
return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;
|
|
15
15
|
},
|
|
16
16
|
);
|
|
17
|
-
RadioGroup.displayName = RadioGroupPrimitive.Root
|
|
17
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root?.displayName || 'RadioGroup';
|
|
18
18
|
|
|
19
19
|
export interface RadioGroupItemProps
|
|
20
20
|
extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemBaseProps {}
|
|
@@ -37,6 +37,6 @@ const RadioGroupItem = React.forwardRef<React.ElementRef<typeof RadioGroupPrimit
|
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
39
|
);
|
|
40
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item
|
|
40
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item?.displayName || 'RadioGroupItem';
|
|
41
41
|
|
|
42
42
|
export { RadioGroup, RadioGroupItem };
|
package/src/scroll-area.tsx
CHANGED
|
@@ -16,7 +16,7 @@ const ScrollArea = React.forwardRef<
|
|
|
16
16
|
<ScrollAreaPrimitive.Corner />
|
|
17
17
|
</ScrollAreaPrimitive.Root>
|
|
18
18
|
));
|
|
19
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root
|
|
19
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root?.displayName || 'ScrollArea';
|
|
20
20
|
|
|
21
21
|
const ScrollBar = React.forwardRef<
|
|
22
22
|
React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
@@ -36,7 +36,7 @@ const ScrollBar = React.forwardRef<
|
|
|
36
36
|
<ScrollAreaPrimitive.ScrollAreaThumb className="bg-border relative flex-1 rounded-full" />
|
|
37
37
|
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
38
38
|
));
|
|
39
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
39
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar?.displayName || 'ScrollBar';
|
|
40
40
|
|
|
41
41
|
export { ScrollArea, ScrollBar };
|
|
42
42
|
export type { ScrollAreaBaseProps as ScrollAreaProps, ScrollBarBaseProps as ScrollBarProps };
|
package/src/select.tsx
CHANGED
|
@@ -42,7 +42,7 @@ const SelectTrigger = React.forwardRef<
|
|
|
42
42
|
</SelectPrimitive.Icon>
|
|
43
43
|
</SelectPrimitive.Trigger>
|
|
44
44
|
));
|
|
45
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger
|
|
45
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger?.displayName || 'SelectTrigger';
|
|
46
46
|
|
|
47
47
|
const SelectScrollUpButton = React.forwardRef<
|
|
48
48
|
React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
|
|
@@ -56,7 +56,7 @@ const SelectScrollUpButton = React.forwardRef<
|
|
|
56
56
|
<ChevronUp className="h-4 w-4" />
|
|
57
57
|
</SelectPrimitive.ScrollUpButton>
|
|
58
58
|
));
|
|
59
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton
|
|
59
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton?.displayName || 'SelectScrollUpButton';
|
|
60
60
|
|
|
61
61
|
const SelectScrollDownButton = React.forwardRef<
|
|
62
62
|
React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
|
|
@@ -70,7 +70,7 @@ const SelectScrollDownButton = React.forwardRef<
|
|
|
70
70
|
<ChevronDown className="h-4 w-4" />
|
|
71
71
|
</SelectPrimitive.ScrollDownButton>
|
|
72
72
|
));
|
|
73
|
-
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton
|
|
73
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton?.displayName || 'SelectScrollDownButton';
|
|
74
74
|
|
|
75
75
|
const SelectContent = React.forwardRef<
|
|
76
76
|
React.ElementRef<typeof SelectPrimitive.Content>,
|
|
@@ -102,7 +102,7 @@ const SelectContent = React.forwardRef<
|
|
|
102
102
|
</SelectPrimitive.Content>
|
|
103
103
|
</SelectPrimitive.Portal>
|
|
104
104
|
));
|
|
105
|
-
SelectContent.displayName = SelectPrimitive.Content
|
|
105
|
+
SelectContent.displayName = SelectPrimitive.Content?.displayName || 'SelectContent';
|
|
106
106
|
|
|
107
107
|
const SelectLabel = React.forwardRef<
|
|
108
108
|
React.ElementRef<typeof SelectPrimitive.Label>,
|
|
@@ -110,7 +110,7 @@ const SelectLabel = React.forwardRef<
|
|
|
110
110
|
>(({ className, ...props }, ref) => (
|
|
111
111
|
<SelectPrimitive.Label ref={ref} className={cn('px-2 py-1.5 text-sm font-semibold', className)} {...props} />
|
|
112
112
|
));
|
|
113
|
-
SelectLabel.displayName = SelectPrimitive.Label
|
|
113
|
+
SelectLabel.displayName = SelectPrimitive.Label?.displayName || 'SelectLabel';
|
|
114
114
|
|
|
115
115
|
const SelectItem = React.forwardRef<
|
|
116
116
|
React.ElementRef<typeof SelectPrimitive.Item>,
|
|
@@ -132,7 +132,7 @@ const SelectItem = React.forwardRef<
|
|
|
132
132
|
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
133
133
|
</SelectPrimitive.Item>
|
|
134
134
|
));
|
|
135
|
-
SelectItem.displayName = SelectPrimitive.Item
|
|
135
|
+
SelectItem.displayName = SelectPrimitive.Item?.displayName || 'SelectItem';
|
|
136
136
|
|
|
137
137
|
const SelectSeparator = React.forwardRef<
|
|
138
138
|
React.ElementRef<typeof SelectPrimitive.Separator>,
|
|
@@ -140,7 +140,7 @@ const SelectSeparator = React.forwardRef<
|
|
|
140
140
|
>(({ className, ...props }, ref) => (
|
|
141
141
|
<SelectPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />
|
|
142
142
|
));
|
|
143
|
-
SelectSeparator.displayName = SelectPrimitive.Separator
|
|
143
|
+
SelectSeparator.displayName = SelectPrimitive.Separator?.displayName || 'SelectSeparator';
|
|
144
144
|
|
|
145
145
|
export {
|
|
146
146
|
Select,
|