@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.
Files changed (133) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.mjs +3 -3
  3. package/dist/alert-dialog.cjs +2 -2
  4. package/dist/alert-dialog.mjs +16 -16
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.mjs +1 -1
  7. package/dist/avatar.cjs +1 -1
  8. package/dist/avatar.mjs +34 -34
  9. package/dist/badge.cjs +1 -1
  10. package/dist/badge.mjs +1 -1
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.mjs +1 -1
  13. package/dist/button.cjs +1 -1
  14. package/dist/button.mjs +1 -1
  15. package/dist/calendar.cjs +1 -1
  16. package/dist/calendar.mjs +1 -1
  17. package/dist/card.cjs +1 -1
  18. package/dist/card.mjs +1 -1
  19. package/dist/carousel.cjs +1 -1
  20. package/dist/carousel.mjs +1 -1
  21. package/dist/chart.cjs +1 -1
  22. package/dist/chart.mjs +1 -1
  23. package/dist/checkbox.cjs +1 -1
  24. package/dist/checkbox.mjs +2 -2
  25. package/dist/command.cjs +1 -1
  26. package/dist/command.mjs +114 -114
  27. package/dist/context-menu.cjs +1 -1
  28. package/dist/context-menu.mjs +68 -68
  29. package/dist/dialog.cjs +1 -1
  30. package/dist/dialog.mjs +21 -21
  31. package/dist/drawer.cjs +1 -1
  32. package/dist/drawer.mjs +16 -16
  33. package/dist/dropdown-menu.cjs +1 -1
  34. package/dist/dropdown-menu.mjs +43 -43
  35. package/dist/form.cjs +1 -1
  36. package/dist/form.mjs +1 -1
  37. package/dist/hover-card.cjs +1 -1
  38. package/dist/hover-card.mjs +2 -2
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.ts +28 -0
  41. package/dist/index.mjs +22 -20
  42. package/dist/input.cjs +1 -1
  43. package/dist/input.mjs +1 -1
  44. package/dist/label.cjs +1 -1
  45. package/dist/label.mjs +2 -2
  46. package/dist/menubar.cjs +1 -1
  47. package/dist/menubar.mjs +77 -77
  48. package/dist/navigation-menu.cjs +1 -1
  49. package/dist/navigation-menu.mjs +57 -57
  50. package/dist/pagination.cjs +1 -1
  51. package/dist/pagination.mjs +1 -1
  52. package/dist/popover.cjs +1 -1
  53. package/dist/popover.mjs +62 -62
  54. package/dist/progress.cjs +2 -2
  55. package/dist/progress.mjs +2 -2
  56. package/dist/radio-group.cjs +1 -1
  57. package/dist/radio-group.mjs +36 -36
  58. package/dist/resizable.cjs +1 -1
  59. package/dist/resizable.mjs +1 -1
  60. package/dist/scroll-area.cjs +1 -1
  61. package/dist/scroll-area.mjs +88 -88
  62. package/dist/search.cjs +1 -1
  63. package/dist/search.mjs +1 -1
  64. package/dist/select.cjs +1 -1
  65. package/dist/select.mjs +74 -74
  66. package/dist/separator.cjs +1 -1
  67. package/dist/separator.mjs +9 -9
  68. package/dist/sheet.cjs +1 -1
  69. package/dist/sheet.mjs +12 -12
  70. package/dist/skeleton.cjs +1 -1
  71. package/dist/skeleton.mjs +1 -1
  72. package/dist/slider.cjs +1 -1
  73. package/dist/slider.mjs +2 -2
  74. package/dist/switch.cjs +1 -1
  75. package/dist/switch.mjs +12 -12
  76. package/dist/table-of-contents.cjs +1 -0
  77. package/dist/table-of-contents.d.ts +35 -0
  78. package/dist/table-of-contents.mjs +160 -0
  79. package/dist/table.cjs +1 -1
  80. package/dist/table.mjs +1 -1
  81. package/dist/tabs.cjs +1 -1
  82. package/dist/tabs.mjs +41 -41
  83. package/dist/text.cjs +1 -1
  84. package/dist/text.mjs +1 -1
  85. package/dist/textarea.cjs +1 -1
  86. package/dist/textarea.mjs +1 -1
  87. package/dist/{theme-toggle-B4VZTDpe.js → theme-toggle-DXQGNfCe.js} +1 -1
  88. package/dist/{theme-toggle-WtPW9UZi.mjs → theme-toggle-tHXIbr8W.mjs} +1 -1
  89. package/dist/theme-toggle.cjs +1 -1
  90. package/dist/theme-toggle.mjs +2 -2
  91. package/dist/toast.cjs +1 -1
  92. package/dist/toast.mjs +35 -35
  93. package/dist/toggle-group.cjs +1 -1
  94. package/dist/toggle-group.mjs +15 -15
  95. package/dist/toggle.cjs +1 -1
  96. package/dist/toggle.mjs +4 -4
  97. package/dist/tooltip.cjs +1 -1
  98. package/dist/tooltip.mjs +3 -3
  99. package/dist/utils-DY6fhrgS.mjs +12 -0
  100. package/dist/utils-cdbZV8DZ.js +1 -0
  101. package/package.json +1 -1
  102. package/src/accordion.tsx +2 -2
  103. package/src/alert-dialog.tsx +6 -6
  104. package/src/avatar.tsx +3 -3
  105. package/src/checkbox.tsx +1 -1
  106. package/src/command.tsx +7 -7
  107. package/src/context-menu.tsx +8 -8
  108. package/src/dialog.tsx +4 -4
  109. package/src/drawer.tsx +3 -3
  110. package/src/dropdown-menu.tsx +8 -8
  111. package/src/hover-card.tsx +1 -1
  112. package/src/index.ts +4 -1
  113. package/src/label.tsx +1 -1
  114. package/src/lib/utils.ts +10 -0
  115. package/src/menubar.tsx +10 -10
  116. package/src/navigation-menu.tsx +6 -6
  117. package/src/popover.tsx +1 -1
  118. package/src/progress.tsx +1 -1
  119. package/src/radio-group.tsx +2 -2
  120. package/src/scroll-area.tsx +2 -2
  121. package/src/select.tsx +7 -7
  122. package/src/separator.tsx +1 -1
  123. package/src/sheet.tsx +4 -4
  124. package/src/slider.tsx +1 -1
  125. package/src/switch.tsx +1 -1
  126. package/src/table-of-contents.tsx +285 -0
  127. package/src/tabs.tsx +3 -3
  128. package/src/toast.tsx +6 -6
  129. package/src/toggle-group.tsx +2 -2
  130. package/src/toggle.tsx +1 -1
  131. package/src/tooltip.tsx +2 -2
  132. package/dist/utils-B6yFEsav.mjs +0 -8
  133. package/dist/utils-IjLH3w2e.js +0 -1
@@ -34,7 +34,7 @@ const AlertDialogOverlay = React.forwardRef<
34
34
  ref={ref}
35
35
  />
36
36
  ));
37
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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} />;
@@ -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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
86
+ DrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';
87
87
 
88
88
  export {
89
89
  Drawer,
@@ -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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
169
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';
170
170
 
171
171
  const DropdownMenuShortcut = ({
172
172
  className,
@@ -25,7 +25,7 @@ const HoverCardContent = React.forwardRef<
25
25
  {...props}
26
26
  />
27
27
  ));
28
- HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
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
- // sync
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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} />;
@@ -30,7 +30,7 @@ const NavigationMenu = React.forwardRef<
30
30
  <NavigationMenuViewport />
31
31
  </NavigationMenuPrimitive.Root>
32
32
  ));
33
- NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
25
+ Progress.displayName = ProgressPrimitive.Root?.displayName || 'Progress';
26
26
 
27
27
  export { Progress };
28
28
  export type { ProgressBaseProps as ProgressProps };
@@ -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.displayName;
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.displayName;
40
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item?.displayName || 'RadioGroupItem';
41
41
 
42
42
  export { RadioGroup, RadioGroupItem };
@@ -16,7 +16,7 @@ const ScrollArea = React.forwardRef<
16
16
  <ScrollAreaPrimitive.Corner />
17
17
  </ScrollAreaPrimitive.Root>
18
18
  ));
19
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
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.displayName;
143
+ SelectSeparator.displayName = SelectPrimitive.Separator?.displayName || 'SelectSeparator';
144
144
 
145
145
  export {
146
146
  Select,