@arolariu/components 0.3.0 → 0.3.1

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 (100) hide show
  1. package/changelog.md +4 -0
  2. package/dist/components/ui/accordion.js.map +1 -1
  3. package/dist/components/ui/alert-dialog.js.map +1 -1
  4. package/dist/components/ui/alert.d.ts.map +1 -1
  5. package/dist/components/ui/alert.js.map +1 -1
  6. package/dist/components/ui/avatar.d.ts.map +1 -1
  7. package/dist/components/ui/avatar.js.map +1 -1
  8. package/dist/components/ui/calendar.d.ts.map +1 -1
  9. package/dist/components/ui/calendar.js.map +1 -1
  10. package/dist/components/ui/carousel.js +1 -1
  11. package/dist/components/ui/carousel.js.map +1 -1
  12. package/dist/components/ui/chart.d.ts.map +1 -1
  13. package/dist/components/ui/chart.js.map +1 -1
  14. package/dist/components/ui/checkbox.js.map +1 -1
  15. package/dist/components/ui/collapsible.d.ts +1 -2
  16. package/dist/components/ui/collapsible.d.ts.map +1 -1
  17. package/dist/components/ui/collapsible.js +30 -2
  18. package/dist/components/ui/collapsible.js.map +1 -1
  19. package/dist/components/ui/command.d.ts.map +1 -1
  20. package/dist/components/ui/command.js.map +1 -1
  21. package/dist/components/ui/context-menu.js.map +1 -1
  22. package/dist/components/ui/dialog.js.map +1 -1
  23. package/dist/components/ui/drawer.js.map +1 -1
  24. package/dist/components/ui/dropdown-menu.js.map +1 -1
  25. package/dist/components/ui/field.d.ts +1 -0
  26. package/dist/components/ui/field.d.ts.map +1 -1
  27. package/dist/components/ui/field.js +1 -1
  28. package/dist/components/ui/field.js.map +1 -1
  29. package/dist/components/ui/form.js +1 -1
  30. package/dist/components/ui/form.js.map +1 -1
  31. package/dist/components/ui/hover-card.js.map +1 -1
  32. package/dist/components/ui/input-otp.d.ts.map +1 -1
  33. package/dist/components/ui/input-otp.js +1 -1
  34. package/dist/components/ui/input-otp.js.map +1 -1
  35. package/dist/components/ui/label.js.map +1 -1
  36. package/dist/components/ui/menubar.js.map +1 -1
  37. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  38. package/dist/components/ui/navigation-menu.js +0 -1
  39. package/dist/components/ui/navigation-menu.js.map +1 -1
  40. package/dist/components/ui/pagination.d.ts.map +1 -1
  41. package/dist/components/ui/pagination.js.map +1 -1
  42. package/dist/components/ui/popover.js.map +1 -1
  43. package/dist/components/ui/progress.js.map +1 -1
  44. package/dist/components/ui/radio-group.js.map +1 -1
  45. package/dist/components/ui/resizable.d.ts +3 -2
  46. package/dist/components/ui/resizable.d.ts.map +1 -1
  47. package/dist/components/ui/resizable.js +2 -1
  48. package/dist/components/ui/resizable.js.map +1 -1
  49. package/dist/components/ui/scroll-area.js.map +1 -1
  50. package/dist/components/ui/select.js.map +1 -1
  51. package/dist/components/ui/separator.js.map +1 -1
  52. package/dist/components/ui/sheet.js.map +1 -1
  53. package/dist/components/ui/sidebar.d.ts.map +1 -1
  54. package/dist/components/ui/sidebar.js +3 -2
  55. package/dist/components/ui/sidebar.js.map +1 -1
  56. package/dist/components/ui/slider.d.ts.map +1 -1
  57. package/dist/components/ui/slider.js.map +1 -1
  58. package/dist/components/ui/switch.js.map +1 -1
  59. package/dist/components/ui/tabs.js.map +1 -1
  60. package/dist/components/ui/toggle-group.js.map +1 -1
  61. package/dist/components/ui/toggle.js.map +1 -1
  62. package/dist/components/ui/tooltip.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/components/ui/accordion.tsx +3 -3
  65. package/src/components/ui/alert-dialog.tsx +6 -6
  66. package/src/components/ui/alert.tsx +1 -0
  67. package/src/components/ui/avatar.tsx +12 -11
  68. package/src/components/ui/calendar.tsx +2 -0
  69. package/src/components/ui/carousel.tsx +1 -1
  70. package/src/components/ui/chart.tsx +3 -1
  71. package/src/components/ui/checkbox.tsx +1 -1
  72. package/src/components/ui/collapsible.tsx +1 -3
  73. package/src/components/ui/command.tsx +8 -7
  74. package/src/components/ui/context-menu.tsx +8 -8
  75. package/src/components/ui/dialog.tsx +4 -4
  76. package/src/components/ui/drawer.tsx +4 -4
  77. package/src/components/ui/dropdown-menu.tsx +8 -8
  78. package/src/components/ui/field.tsx +4 -3
  79. package/src/components/ui/form.tsx +4 -4
  80. package/src/components/ui/hover-card.tsx +1 -1
  81. package/src/components/ui/input-otp.tsx +5 -5
  82. package/src/components/ui/label.tsx +1 -1
  83. package/src/components/ui/menubar.tsx +10 -10
  84. package/src/components/ui/navigation-menu.tsx +6 -7
  85. package/src/components/ui/pagination.tsx +1 -0
  86. package/src/components/ui/popover.tsx +1 -1
  87. package/src/components/ui/progress.tsx +1 -1
  88. package/src/components/ui/radio-group.tsx +2 -2
  89. package/src/components/ui/resizable.tsx +2 -1
  90. package/src/components/ui/scroll-area.tsx +2 -2
  91. package/src/components/ui/select.tsx +7 -7
  92. package/src/components/ui/separator.tsx +1 -1
  93. package/src/components/ui/sheet.tsx +4 -4
  94. package/src/components/ui/sidebar.tsx +20 -14
  95. package/src/components/ui/slider.tsx +14 -13
  96. package/src/components/ui/switch.tsx +1 -1
  97. package/src/components/ui/tabs.tsx +3 -3
  98. package/src/components/ui/toggle-group.tsx +2 -2
  99. package/src/components/ui/toggle.tsx +1 -1
  100. package/src/components/ui/tooltip.tsx +1 -1
@@ -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.ElementRef<typeof ScrollAreaPrimitive.Root>,
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.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
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.ElementRef<typeof SelectPrimitive.Trigger>,
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.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
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.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
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.ElementRef<typeof SelectPrimitive.Content>,
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.ElementRef<typeof SelectPrimitive.Label>,
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.ElementRef<typeof SelectPrimitive.Item>,
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.ElementRef<typeof SelectPrimitive.Separator>,
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.ElementRef<typeof SeparatorPrimitive.Root>,
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.ElementRef<typeof SheetPrimitive.Overlay>,
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.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(
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.ElementRef<typeof SheetPrimitive.Title>,
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.ElementRef<typeof SheetPrimitive.Description>,
101
+ React.ComponentRef<typeof SheetPrimitive.Description>,
102
102
  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
103
103
  >(({className, ...props}, ref) => (
104
104
  <SheetPrimitive.Description
@@ -86,8 +86,8 @@ const SidebarProvider = React.forwardRef<
86
86
  }
87
87
  };
88
88
 
89
- window.addEventListener("keydown", handleKeyDown);
90
- return () => window.removeEventListener("keydown", handleKeyDown);
89
+ globalThis.window.addEventListener("keydown", handleKeyDown);
90
+ return () => globalThis.window.removeEventListener("keydown", handleKeyDown);
91
91
  }, [toggleSidebar]);
92
92
 
93
93
  // We add a state so that we can do data-state="expanded" or "collapsed".
@@ -219,7 +219,7 @@ const Sidebar = React.forwardRef<
219
219
  });
220
220
  Sidebar.displayName = "Sidebar";
221
221
 
222
- const SidebarTrigger = React.forwardRef<React.ElementRef<typeof Button>, React.ComponentProps<typeof Button>>(
222
+ const SidebarTrigger = React.forwardRef<React.ComponentRef<typeof Button>, React.ComponentProps<typeof Button>>(
223
223
  ({className, onClick, ...props}, ref) => {
224
224
  const {toggleSidebar} = useSidebar();
225
225
 
@@ -252,6 +252,7 @@ const SidebarRail = React.forwardRef<HTMLButtonElement, React.ComponentProps<"bu
252
252
  data-sidebar='rail'
253
253
  aria-label='Toggle Sidebar'
254
254
  tabIndex={-1}
255
+ type='button'
255
256
  onClick={toggleSidebar}
256
257
  title='Toggle Sidebar'
257
258
  className={cn(
@@ -284,16 +285,21 @@ const SidebarInset = React.forwardRef<HTMLDivElement, React.ComponentProps<"main
284
285
  });
285
286
  SidebarInset.displayName = "SidebarInset";
286
287
 
287
- const SidebarInput = React.forwardRef<React.ElementRef<typeof Input>, React.ComponentProps<typeof Input>>(({className, ...props}, ref) => {
288
- return (
289
- <Input
290
- ref={ref}
291
- data-sidebar='input'
292
- className={cn("focus-visible:ring-sidebar-ring h-8 w-full bg-white shadow-none focus-visible:ring-2 dark:bg-neutral-950", className)}
293
- {...props}
294
- />
295
- );
296
- });
288
+ const SidebarInput = React.forwardRef<React.ComponentRef<typeof Input>, React.ComponentProps<typeof Input>>(
289
+ ({className, ...props}, ref) => {
290
+ return (
291
+ <Input
292
+ ref={ref}
293
+ data-sidebar='input'
294
+ className={cn(
295
+ "focus-visible:ring-sidebar-ring h-8 w-full bg-white shadow-none focus-visible:ring-2 dark:bg-neutral-950",
296
+ className,
297
+ )}
298
+ {...props}
299
+ />
300
+ );
301
+ },
302
+ );
297
303
  SidebarInput.displayName = "SidebarInput";
298
304
 
299
305
  const SidebarHeader = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({className, ...props}, ref) => {
@@ -320,7 +326,7 @@ const SidebarFooter = React.forwardRef<HTMLDivElement, React.ComponentProps<"div
320
326
  });
321
327
  SidebarFooter.displayName = "SidebarFooter";
322
328
 
323
- const SidebarSeparator = React.forwardRef<React.ElementRef<typeof Separator>, React.ComponentProps<typeof Separator>>(
329
+ const SidebarSeparator = React.forwardRef<React.ComponentRef<typeof Separator>, React.ComponentProps<typeof Separator>>(
324
330
  ({className, ...props}, ref) => {
325
331
  return (
326
332
  <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<React.ElementRef<typeof SliderPrimitive.Root>, React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>>(
9
- ({className, ...props}, ref) => (
10
- <SliderPrimitive.Root
11
- ref={ref}
12
- className={cn("relative flex w-full touch-none items-center select-none", className)}
13
- {...props}>
14
- <SliderPrimitive.Track className='relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-900/20 dark:bg-neutral-50/20'>
15
- <SliderPrimitive.Range className='absolute h-full bg-neutral-900 dark:bg-neutral-50' />
16
- </SliderPrimitive.Track>
17
- <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' />
18
- </SliderPrimitive.Root>
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.ElementRef<typeof SwitchPrimitives.Root>,
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.ElementRef<typeof TabsPrimitive.List>, React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>>(
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.ElementRef<typeof TabsPrimitive.Trigger>,
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.ElementRef<typeof TabsPrimitive.Content>,
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.ElementRef<typeof ToggleGroupPrimitive.Root>,
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.ElementRef<typeof ToggleGroupPrimitive.Item>,
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.ElementRef<typeof TogglePrimitive.Root>,
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.ElementRef<typeof TooltipPrimitive.Content>,
15
+ React.ComponentRef<typeof TooltipPrimitive.Content>,
16
16
  React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
17
17
  >(({className, sideOffset = 4, ...props}, ref) => (
18
18
  <TooltipPrimitive.Portal>