@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.
- package/changelog.md +4 -0
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/carousel.js +1 -1
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -2
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +30 -2
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/field.d.ts +1 -0
- package/dist/components/ui/field.d.ts.map +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/field.js.map +1 -1
- package/dist/components/ui/form.js +1 -1
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +0 -1
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +3 -2
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +2 -1
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +3 -2
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/accordion.tsx +3 -3
- package/src/components/ui/alert-dialog.tsx +6 -6
- package/src/components/ui/alert.tsx +1 -0
- package/src/components/ui/avatar.tsx +12 -11
- package/src/components/ui/calendar.tsx +2 -0
- package/src/components/ui/carousel.tsx +1 -1
- package/src/components/ui/chart.tsx +3 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/collapsible.tsx +1 -3
- package/src/components/ui/command.tsx +8 -7
- package/src/components/ui/context-menu.tsx +8 -8
- package/src/components/ui/dialog.tsx +4 -4
- package/src/components/ui/drawer.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +8 -8
- package/src/components/ui/field.tsx +4 -3
- package/src/components/ui/form.tsx +4 -4
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-otp.tsx +5 -5
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +10 -10
- package/src/components/ui/navigation-menu.tsx +6 -7
- package/src/components/ui/pagination.tsx +1 -0
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +2 -1
- package/src/components/ui/scroll-area.tsx +2 -2
- package/src/components/ui/select.tsx +7 -7
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +4 -4
- package/src/components/ui/sidebar.tsx +20 -14
- package/src/components/ui/slider.tsx +14 -13
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/toggle-group.tsx +2 -2
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const ScrollArea = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof ScrollAreaPrimitive.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
|
11
11
|
>(({className, children, ...props}, ref) => (
|
|
12
12
|
<ScrollAreaPrimitive.Root
|
|
@@ -21,7 +21,7 @@ const ScrollArea = React.forwardRef<
|
|
|
21
21
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
22
22
|
|
|
23
23
|
const ScrollBar = React.forwardRef<
|
|
24
|
-
React.
|
|
24
|
+
React.ComponentRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
25
25
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
26
26
|
>(({className, orientation = "vertical", ...props}, ref) => (
|
|
27
27
|
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
@@ -13,7 +13,7 @@ const SelectGroup = SelectPrimitive.Group;
|
|
|
13
13
|
const SelectValue = SelectPrimitive.Value;
|
|
14
14
|
|
|
15
15
|
const SelectTrigger = React.forwardRef<
|
|
16
|
-
React.
|
|
16
|
+
React.ComponentRef<typeof SelectPrimitive.Trigger>,
|
|
17
17
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
|
|
18
18
|
>(({className, children, ...props}, ref) => (
|
|
19
19
|
<SelectPrimitive.Trigger
|
|
@@ -32,7 +32,7 @@ const SelectTrigger = React.forwardRef<
|
|
|
32
32
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
33
33
|
|
|
34
34
|
const SelectScrollUpButton = React.forwardRef<
|
|
35
|
-
React.
|
|
35
|
+
React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>,
|
|
36
36
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
|
|
37
37
|
>(({className, ...props}, ref) => (
|
|
38
38
|
<SelectPrimitive.ScrollUpButton
|
|
@@ -45,7 +45,7 @@ const SelectScrollUpButton = React.forwardRef<
|
|
|
45
45
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
46
46
|
|
|
47
47
|
const SelectScrollDownButton = React.forwardRef<
|
|
48
|
-
React.
|
|
48
|
+
React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>,
|
|
49
49
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
|
|
50
50
|
>(({className, ...props}, ref) => (
|
|
51
51
|
<SelectPrimitive.ScrollDownButton
|
|
@@ -58,7 +58,7 @@ const SelectScrollDownButton = React.forwardRef<
|
|
|
58
58
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
59
59
|
|
|
60
60
|
const SelectContent = React.forwardRef<
|
|
61
|
-
React.
|
|
61
|
+
React.ComponentRef<typeof SelectPrimitive.Content>,
|
|
62
62
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
|
|
63
63
|
>(({className, children, position = "popper", ...props}, ref) => (
|
|
64
64
|
<SelectPrimitive.Portal>
|
|
@@ -87,7 +87,7 @@ const SelectContent = React.forwardRef<
|
|
|
87
87
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
88
88
|
|
|
89
89
|
const SelectLabel = React.forwardRef<
|
|
90
|
-
React.
|
|
90
|
+
React.ComponentRef<typeof SelectPrimitive.Label>,
|
|
91
91
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
|
|
92
92
|
>(({className, ...props}, ref) => (
|
|
93
93
|
<SelectPrimitive.Label
|
|
@@ -99,7 +99,7 @@ const SelectLabel = React.forwardRef<
|
|
|
99
99
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
100
100
|
|
|
101
101
|
const SelectItem = React.forwardRef<
|
|
102
|
-
React.
|
|
102
|
+
React.ComponentRef<typeof SelectPrimitive.Item>,
|
|
103
103
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
|
|
104
104
|
>(({className, children, ...props}, ref) => (
|
|
105
105
|
<SelectPrimitive.Item
|
|
@@ -120,7 +120,7 @@ const SelectItem = React.forwardRef<
|
|
|
120
120
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
121
121
|
|
|
122
122
|
const SelectSeparator = React.forwardRef<
|
|
123
|
-
React.
|
|
123
|
+
React.ComponentRef<typeof SelectPrimitive.Separator>,
|
|
124
124
|
React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
|
|
125
125
|
>(({className, ...props}, ref) => (
|
|
126
126
|
<SelectPrimitive.Separator
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const Separator = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof SeparatorPrimitive.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
|
|
11
11
|
>(({className, orientation = "horizontal", decorative = true, ...props}, ref) => (
|
|
12
12
|
<SeparatorPrimitive.Root
|
|
@@ -16,7 +16,7 @@ const SheetClose = SheetPrimitive.Close;
|
|
|
16
16
|
const SheetPortal = SheetPrimitive.Portal;
|
|
17
17
|
|
|
18
18
|
const SheetOverlay = React.forwardRef<
|
|
19
|
-
React.
|
|
19
|
+
React.ComponentRef<typeof SheetPrimitive.Overlay>,
|
|
20
20
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
|
|
21
21
|
>(({className, ...props}, ref) => (
|
|
22
22
|
<SheetPrimitive.Overlay
|
|
@@ -50,7 +50,7 @@ const sheetVariants = cva(
|
|
|
50
50
|
|
|
51
51
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
|
|
52
52
|
|
|
53
|
-
const SheetContent = React.forwardRef<React.
|
|
53
|
+
const SheetContent = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Content>, SheetContentProps>(
|
|
54
54
|
({side = "right", className, children, ...props}, ref) => (
|
|
55
55
|
<SheetPortal>
|
|
56
56
|
<SheetOverlay />
|
|
@@ -86,7 +86,7 @@ const SheetFooter = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>
|
|
|
86
86
|
SheetFooter.displayName = "SheetFooter";
|
|
87
87
|
|
|
88
88
|
const SheetTitle = React.forwardRef<
|
|
89
|
-
React.
|
|
89
|
+
React.ComponentRef<typeof SheetPrimitive.Title>,
|
|
90
90
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
|
|
91
91
|
>(({className, ...props}, ref) => (
|
|
92
92
|
<SheetPrimitive.Title
|
|
@@ -98,7 +98,7 @@ const SheetTitle = React.forwardRef<
|
|
|
98
98
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
99
99
|
|
|
100
100
|
const SheetDescription = React.forwardRef<
|
|
101
|
-
React.
|
|
101
|
+
React.ComponentRef<typeof SheetPrimitive.Description>,
|
|
102
102
|
React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
|
|
103
103
|
>(({className, ...props}, ref) => (
|
|
104
104
|
<SheetPrimitive.Description
|
|
@@ -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.
|
|
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.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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.
|
|
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<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<SliderPrimitive.
|
|
18
|
-
</SliderPrimitive.
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
const Slider = React.forwardRef<
|
|
9
|
+
React.ComponentRef<typeof SliderPrimitive.Root>,
|
|
10
|
+
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
|
|
11
|
+
>(({className, ...props}, ref) => (
|
|
12
|
+
<SliderPrimitive.Root
|
|
13
|
+
ref={ref}
|
|
14
|
+
className={cn("relative flex w-full touch-none items-center select-none", className)}
|
|
15
|
+
{...props}>
|
|
16
|
+
<SliderPrimitive.Track className='relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-900/20 dark:bg-neutral-50/20'>
|
|
17
|
+
<SliderPrimitive.Range className='absolute h-full bg-neutral-900 dark:bg-neutral-50' />
|
|
18
|
+
</SliderPrimitive.Track>
|
|
19
|
+
<SliderPrimitive.Thumb className='block h-4 w-4 rounded-full border border-neutral-200 border-neutral-900/50 bg-white shadow transition-colors focus-visible:ring-1 focus-visible:ring-neutral-950 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 dark:border-neutral-50/50 dark:border-neutral-800 dark:bg-neutral-950 dark:focus-visible:ring-neutral-300' />
|
|
20
|
+
</SliderPrimitive.Root>
|
|
21
|
+
));
|
|
21
22
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
22
23
|
|
|
23
24
|
export {Slider};
|
|
@@ -6,7 +6,7 @@ import * as React from "react";
|
|
|
6
6
|
import {cn} from "@/lib/utilities";
|
|
7
7
|
|
|
8
8
|
const Switch = React.forwardRef<
|
|
9
|
-
React.
|
|
9
|
+
React.ComponentRef<typeof SwitchPrimitives.Root>,
|
|
10
10
|
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
|
|
11
11
|
>(({className, ...props}, ref) => (
|
|
12
12
|
<SwitchPrimitives.Root
|
|
@@ -7,7 +7,7 @@ import {cn} from "@/lib/utilities";
|
|
|
7
7
|
|
|
8
8
|
const Tabs = TabsPrimitive.Root;
|
|
9
9
|
|
|
10
|
-
const TabsList = React.forwardRef<React.
|
|
10
|
+
const TabsList = React.forwardRef<React.ComponentRef<typeof TabsPrimitive.List>, React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>>(
|
|
11
11
|
({className, ...props}, ref) => (
|
|
12
12
|
<TabsPrimitive.List
|
|
13
13
|
ref={ref}
|
|
@@ -22,7 +22,7 @@ const TabsList = React.forwardRef<React.ElementRef<typeof TabsPrimitive.List>, R
|
|
|
22
22
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
23
23
|
|
|
24
24
|
const TabsTrigger = React.forwardRef<
|
|
25
|
-
React.
|
|
25
|
+
React.ComponentRef<typeof TabsPrimitive.Trigger>,
|
|
26
26
|
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
|
|
27
27
|
>(({className, ...props}, ref) => (
|
|
28
28
|
<TabsPrimitive.Trigger
|
|
@@ -37,7 +37,7 @@ const TabsTrigger = React.forwardRef<
|
|
|
37
37
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
38
38
|
|
|
39
39
|
const TabsContent = React.forwardRef<
|
|
40
|
-
React.
|
|
40
|
+
React.ComponentRef<typeof TabsPrimitive.Content>,
|
|
41
41
|
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
|
|
42
42
|
>(({className, ...props}, ref) => (
|
|
43
43
|
<TabsPrimitive.Content
|
|
@@ -13,7 +13,7 @@ const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariant
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const ToggleGroup = React.forwardRef<
|
|
16
|
-
React.
|
|
16
|
+
React.ComponentRef<typeof ToggleGroupPrimitive.Root>,
|
|
17
17
|
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>
|
|
18
18
|
>(({className, variant, size, children, ...props}, ref) => (
|
|
19
19
|
<ToggleGroupPrimitive.Root
|
|
@@ -27,7 +27,7 @@ const ToggleGroup = React.forwardRef<
|
|
|
27
27
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
28
28
|
|
|
29
29
|
const ToggleGroupItem = React.forwardRef<
|
|
30
|
-
React.
|
|
30
|
+
React.ComponentRef<typeof ToggleGroupPrimitive.Item>,
|
|
31
31
|
React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>
|
|
32
32
|
>(({className, children, variant, size, ...props}, ref) => {
|
|
33
33
|
const context = React.useContext(ToggleGroupContext);
|
|
@@ -29,7 +29,7 @@ const toggleVariants = cva(
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
const Toggle = React.forwardRef<
|
|
32
|
-
React.
|
|
32
|
+
React.ComponentRef<typeof TogglePrimitive.Root>,
|
|
33
33
|
React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>
|
|
34
34
|
>(({className, variant, size, ...props}, ref) => (
|
|
35
35
|
<TogglePrimitive.Root
|
|
@@ -12,7 +12,7 @@ const Tooltip = TooltipPrimitive.Root;
|
|
|
12
12
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
13
13
|
|
|
14
14
|
const TooltipContent = React.forwardRef<
|
|
15
|
-
React.
|
|
15
|
+
React.ComponentRef<typeof TooltipPrimitive.Content>,
|
|
16
16
|
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
|
17
17
|
>(({className, sideOffset = 4, ...props}, ref) => (
|
|
18
18
|
<TooltipPrimitive.Portal>
|