@zimyo/ui 1.0.0 → 1.0.2
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/components/index.d.ts +1 -0
- package/dist/components/ui/accordion.d.ts +5 -4
- package/dist/components/ui/accordion.js +21 -16
- package/dist/components/ui/alert-dialog.d.ts +12 -11
- package/dist/components/ui/alert-dialog.js +17 -16
- package/dist/components/ui/alert.d.ts +4 -3
- package/dist/components/ui/alert.js +4 -5
- package/dist/components/ui/aspect-ratio.d.ts +2 -2
- package/dist/components/ui/aspect-ratio.js +2 -2
- package/dist/components/ui/avatar.d.ts +4 -3
- package/dist/components/ui/avatar.js +4 -5
- package/dist/components/ui/badge.d.ts +3 -2
- package/dist/components/ui/badge.js +2 -3
- package/dist/components/ui/breadcrumb.d.ts +8 -7
- package/dist/components/ui/breadcrumb.js +19 -15
- package/dist/components/ui/button.d.ts +3 -2
- package/dist/components/ui/button.js +2 -3
- package/dist/components/ui/calendar.d.ts +3 -2
- package/dist/components/ui/calendar.js +13 -10
- package/dist/components/ui/card.d.ts +8 -7
- package/dist/components/ui/card.js +8 -9
- package/dist/components/ui/carousel.d.ts +6 -5
- package/dist/components/ui/carousel.js +34 -24
- package/dist/components/ui/chart.d.ts +5 -4
- package/dist/components/ui/chart.js +81 -65
- package/dist/components/ui/checkbox.d.ts +2 -1
- package/dist/components/ui/checkbox.js +11 -9
- package/dist/components/ui/collapsible.d.ts +4 -4
- package/dist/components/ui/collapsible.js +4 -4
- package/dist/components/ui/command.d.ts +10 -9
- package/dist/components/ui/command.js +34 -25
- package/dist/components/ui/context-menu.d.ts +16 -15
- package/dist/components/ui/context-menu.js +45 -32
- package/dist/components/ui/dialog.d.ts +11 -10
- package/dist/components/ui/dialog.js +26 -22
- package/dist/components/ui/drawer.d.ts +11 -10
- package/dist/components/ui/drawer.js +21 -19
- package/dist/components/ui/dropdown-menu.d.ts +16 -15
- package/dist/components/ui/dropdown-menu.js +46 -33
- package/dist/components/ui/form.d.ts +7 -6
- package/dist/components/ui/form.js +19 -15
- package/dist/components/ui/hover-card.d.ts +4 -3
- package/dist/components/ui/hover-card.js +12 -12
- package/dist/components/ui/input-otp.d.ts +5 -4
- package/dist/components/ui/input-otp.js +16 -11
- package/dist/components/ui/input.d.ts +2 -1
- package/dist/components/ui/input.js +2 -3
- package/dist/components/ui/label.d.ts +2 -1
- package/dist/components/ui/label.js +2 -3
- package/dist/components/ui/menubar.d.ts +17 -16
- package/dist/components/ui/menubar.js +49 -36
- package/dist/components/ui/navigation-menu.d.ts +9 -8
- package/dist/components/ui/navigation-menu.js +27 -21
- package/dist/components/ui/pagination.d.ts +8 -7
- package/dist/components/ui/pagination.js +28 -20
- package/dist/components/ui/popover.d.ts +5 -4
- package/dist/components/ui/popover.js +12 -11
- package/dist/components/ui/progress.d.ts +2 -1
- package/dist/components/ui/progress.js +11 -10
- package/dist/components/ui/radio-group.d.ts +3 -2
- package/dist/components/ui/radio-group.js +12 -10
- package/dist/components/ui/resizable.d.ts +4 -3
- package/dist/components/ui/resizable.js +12 -10
- package/dist/components/ui/scroll-area.d.ts +3 -2
- package/dist/components/ui/scroll-area.js +15 -11
- package/dist/components/ui/select.d.ts +11 -10
- package/dist/components/ui/select.js +50 -32
- package/dist/components/ui/separator.d.ts +2 -1
- package/dist/components/ui/separator.js +2 -3
- package/dist/components/ui/sheet.d.ts +9 -8
- package/dist/components/ui/sheet.js +26 -21
- package/dist/components/ui/sidebar.d.ts +24 -23
- package/dist/components/ui/sidebar.js +112 -85
- package/dist/components/ui/skeleton.d.ts +2 -2
- package/dist/components/ui/skeleton.js +2 -2
- package/dist/components/ui/slider.d.ts +2 -1
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/sonner.d.ts +2 -2
- package/dist/components/ui/sonner.js +2 -2
- package/dist/components/ui/switch.d.ts +2 -1
- package/dist/components/ui/switch.js +7 -6
- package/dist/components/ui/table.d.ts +9 -8
- package/dist/components/ui/table.js +15 -15
- package/dist/components/ui/tabs.d.ts +5 -4
- package/dist/components/ui/tabs.js +5 -6
- package/dist/components/ui/textarea.d.ts +2 -1
- package/dist/components/ui/textarea.js +2 -3
- package/dist/components/ui/toggle-group.d.ts +3 -2
- package/dist/components/ui/toggle-group.js +15 -10
- package/dist/components/ui/toggle.d.ts +2 -1
- package/dist/components/ui/toggle.js +2 -3
- package/dist/components/ui/tooltip.d.ts +5 -4
- package/dist/components/ui/tooltip.js +19 -14
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/providers/ThemeProvider.d.ts +12 -0
- package/dist/providers/ThemeProvider.js +27 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/styles.css +1 -1
- package/package.json +9 -3
- package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -11
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
3
|
-
import
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
3
|
import { Drawer as Drawer$1 } from '../../node_modules/vaul/dist/index.js';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function Drawer(_a) {
|
|
8
7
|
var props = __rest(_a, []);
|
|
9
|
-
return
|
|
8
|
+
return jsx(Drawer$1.Root, Object.assign({
|
|
10
9
|
"data-slot": "drawer"
|
|
11
10
|
}, props));
|
|
12
11
|
}
|
|
13
12
|
function DrawerTrigger(_a) {
|
|
14
13
|
var props = __rest(_a, []);
|
|
15
|
-
return
|
|
14
|
+
return jsx(Drawer$1.Trigger, Object.assign({
|
|
16
15
|
"data-slot": "drawer-trigger"
|
|
17
16
|
}, props));
|
|
18
17
|
}
|
|
19
18
|
function DrawerPortal(_a) {
|
|
20
19
|
var props = __rest(_a, []);
|
|
21
|
-
return
|
|
20
|
+
return jsx(Drawer$1.Portal, Object.assign({
|
|
22
21
|
"data-slot": "drawer-portal"
|
|
23
22
|
}, props));
|
|
24
23
|
}
|
|
25
24
|
function DrawerClose(_a) {
|
|
26
25
|
var props = __rest(_a, []);
|
|
27
|
-
return
|
|
26
|
+
return jsx(Drawer$1.Close, Object.assign({
|
|
28
27
|
"data-slot": "drawer-close"
|
|
29
28
|
}, props));
|
|
30
29
|
}
|
|
@@ -33,7 +32,7 @@ function DrawerOverlay(_a) {
|
|
|
33
32
|
className
|
|
34
33
|
} = _a,
|
|
35
34
|
props = __rest(_a, ["className"]);
|
|
36
|
-
return
|
|
35
|
+
return jsx(Drawer$1.Overlay, Object.assign({
|
|
37
36
|
"data-slot": "drawer-overlay",
|
|
38
37
|
className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className)
|
|
39
38
|
}, props));
|
|
@@ -44,21 +43,24 @@ function DrawerContent(_a) {
|
|
|
44
43
|
children
|
|
45
44
|
} = _a,
|
|
46
45
|
props = __rest(_a, ["className", "children"]);
|
|
47
|
-
return
|
|
48
|
-
"data-slot": "drawer-portal"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
return jsxs(DrawerPortal, {
|
|
47
|
+
"data-slot": "drawer-portal",
|
|
48
|
+
children: [jsx(DrawerOverlay, {}), jsxs(Drawer$1.Content, Object.assign({
|
|
49
|
+
"data-slot": "drawer-content",
|
|
50
|
+
className: cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", className)
|
|
51
|
+
}, props, {
|
|
52
|
+
children: [jsx("div", {
|
|
53
|
+
className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
|
|
54
|
+
}), children]
|
|
55
|
+
}))]
|
|
56
|
+
});
|
|
55
57
|
}
|
|
56
58
|
function DrawerHeader(_a) {
|
|
57
59
|
var {
|
|
58
60
|
className
|
|
59
61
|
} = _a,
|
|
60
62
|
props = __rest(_a, ["className"]);
|
|
61
|
-
return
|
|
63
|
+
return jsx("div", Object.assign({
|
|
62
64
|
"data-slot": "drawer-header",
|
|
63
65
|
className: cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className)
|
|
64
66
|
}, props));
|
|
@@ -68,7 +70,7 @@ function DrawerFooter(_a) {
|
|
|
68
70
|
className
|
|
69
71
|
} = _a,
|
|
70
72
|
props = __rest(_a, ["className"]);
|
|
71
|
-
return
|
|
73
|
+
return jsx("div", Object.assign({
|
|
72
74
|
"data-slot": "drawer-footer",
|
|
73
75
|
className: cn("mt-auto flex flex-col gap-2 p-4", className)
|
|
74
76
|
}, props));
|
|
@@ -78,7 +80,7 @@ function DrawerTitle(_a) {
|
|
|
78
80
|
className
|
|
79
81
|
} = _a,
|
|
80
82
|
props = __rest(_a, ["className"]);
|
|
81
|
-
return
|
|
83
|
+
return jsx(Drawer$1.Title, Object.assign({
|
|
82
84
|
"data-slot": "drawer-title",
|
|
83
85
|
className: cn("text-foreground font-semibold", className)
|
|
84
86
|
}, props));
|
|
@@ -88,7 +90,7 @@ function DrawerDescription(_a) {
|
|
|
88
90
|
className
|
|
89
91
|
} = _a,
|
|
90
92
|
props = __rest(_a, ["className"]);
|
|
91
|
-
return
|
|
93
|
+
return jsx(Drawer$1.Description, Object.assign({
|
|
92
94
|
"data-slot": "drawer-description",
|
|
93
95
|
className: cn("text-muted-foreground text-sm", className)
|
|
94
96
|
}, props));
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>):
|
|
5
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Portal>):
|
|
6
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>):
|
|
7
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>):
|
|
8
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>):
|
|
5
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
10
11
|
inset?: boolean;
|
|
11
12
|
variant?: "default" | "destructive";
|
|
12
|
-
}):
|
|
13
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>):
|
|
14
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>):
|
|
15
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>):
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
17
18
|
inset?: boolean;
|
|
18
|
-
}):
|
|
19
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>):
|
|
20
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
21
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>):
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
22
23
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
23
24
|
inset?: boolean;
|
|
24
|
-
}):
|
|
25
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>):
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
26
27
|
|
|
27
28
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { CheckIcon, CircleIcon, ChevronRightIcon } from 'lucide-react';
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function DropdownMenu(_a) {
|
|
9
8
|
var props = __rest(_a, []);
|
|
10
|
-
return
|
|
9
|
+
return jsx(DropdownMenu$1.Root, Object.assign({
|
|
11
10
|
"data-slot": "dropdown-menu"
|
|
12
11
|
}, props));
|
|
13
12
|
}
|
|
14
13
|
function DropdownMenuPortal(_a) {
|
|
15
14
|
var props = __rest(_a, []);
|
|
16
|
-
return
|
|
15
|
+
return jsx(DropdownMenu$1.Portal, Object.assign({
|
|
17
16
|
"data-slot": "dropdown-menu-portal"
|
|
18
17
|
}, props));
|
|
19
18
|
}
|
|
20
19
|
function DropdownMenuTrigger(_a) {
|
|
21
20
|
var props = __rest(_a, []);
|
|
22
|
-
return
|
|
21
|
+
return jsx(DropdownMenu$1.Trigger, Object.assign({
|
|
23
22
|
"data-slot": "dropdown-menu-trigger"
|
|
24
23
|
}, props));
|
|
25
24
|
}
|
|
@@ -29,15 +28,17 @@ function DropdownMenuContent(_a) {
|
|
|
29
28
|
sideOffset = 4
|
|
30
29
|
} = _a,
|
|
31
30
|
props = __rest(_a, ["className", "sideOffset"]);
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
return jsx(DropdownMenu$1.Portal, {
|
|
32
|
+
children: jsx(DropdownMenu$1.Content, Object.assign({
|
|
33
|
+
"data-slot": "dropdown-menu-content",
|
|
34
|
+
sideOffset: sideOffset,
|
|
35
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className)
|
|
36
|
+
}, props))
|
|
37
|
+
});
|
|
37
38
|
}
|
|
38
39
|
function DropdownMenuGroup(_a) {
|
|
39
40
|
var props = __rest(_a, []);
|
|
40
|
-
return
|
|
41
|
+
return jsx(DropdownMenu$1.Group, Object.assign({
|
|
41
42
|
"data-slot": "dropdown-menu-group"
|
|
42
43
|
}, props));
|
|
43
44
|
}
|
|
@@ -48,7 +49,7 @@ function DropdownMenuItem(_a) {
|
|
|
48
49
|
variant = "default"
|
|
49
50
|
} = _a,
|
|
50
51
|
props = __rest(_a, ["className", "inset", "variant"]);
|
|
51
|
-
return
|
|
52
|
+
return jsx(DropdownMenu$1.Item, Object.assign({
|
|
52
53
|
"data-slot": "dropdown-menu-item",
|
|
53
54
|
"data-inset": inset,
|
|
54
55
|
"data-variant": variant,
|
|
@@ -62,19 +63,24 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
62
63
|
checked
|
|
63
64
|
} = _a,
|
|
64
65
|
props = __rest(_a, ["className", "children", "checked"]);
|
|
65
|
-
return
|
|
66
|
+
return jsxs(DropdownMenu$1.CheckboxItem, Object.assign({
|
|
66
67
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
67
68
|
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
68
69
|
checked: checked
|
|
69
|
-
}, props
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
}, props, {
|
|
71
|
+
children: [jsx("span", {
|
|
72
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
73
|
+
children: jsx(DropdownMenu$1.ItemIndicator, {
|
|
74
|
+
children: jsx(CheckIcon, {
|
|
75
|
+
className: "size-4"
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
}), children]
|
|
79
|
+
}));
|
|
74
80
|
}
|
|
75
81
|
function DropdownMenuRadioGroup(_a) {
|
|
76
82
|
var props = __rest(_a, []);
|
|
77
|
-
return
|
|
83
|
+
return jsx(DropdownMenu$1.RadioGroup, Object.assign({
|
|
78
84
|
"data-slot": "dropdown-menu-radio-group"
|
|
79
85
|
}, props));
|
|
80
86
|
}
|
|
@@ -84,14 +90,19 @@ function DropdownMenuRadioItem(_a) {
|
|
|
84
90
|
children
|
|
85
91
|
} = _a,
|
|
86
92
|
props = __rest(_a, ["className", "children"]);
|
|
87
|
-
return
|
|
93
|
+
return jsxs(DropdownMenu$1.RadioItem, Object.assign({
|
|
88
94
|
"data-slot": "dropdown-menu-radio-item",
|
|
89
95
|
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
90
|
-
}, props
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
}, props, {
|
|
97
|
+
children: [jsx("span", {
|
|
98
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
99
|
+
children: jsx(DropdownMenu$1.ItemIndicator, {
|
|
100
|
+
children: jsx(CircleIcon, {
|
|
101
|
+
className: "size-2 fill-current"
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
}), children]
|
|
105
|
+
}));
|
|
95
106
|
}
|
|
96
107
|
function DropdownMenuLabel(_a) {
|
|
97
108
|
var {
|
|
@@ -99,7 +110,7 @@ function DropdownMenuLabel(_a) {
|
|
|
99
110
|
inset
|
|
100
111
|
} = _a,
|
|
101
112
|
props = __rest(_a, ["className", "inset"]);
|
|
102
|
-
return
|
|
113
|
+
return jsx(DropdownMenu$1.Label, Object.assign({
|
|
103
114
|
"data-slot": "dropdown-menu-label",
|
|
104
115
|
"data-inset": inset,
|
|
105
116
|
className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className)
|
|
@@ -110,7 +121,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
110
121
|
className
|
|
111
122
|
} = _a,
|
|
112
123
|
props = __rest(_a, ["className"]);
|
|
113
|
-
return
|
|
124
|
+
return jsx(DropdownMenu$1.Separator, Object.assign({
|
|
114
125
|
"data-slot": "dropdown-menu-separator",
|
|
115
126
|
className: cn("bg-border -mx-1 my-1 h-px", className)
|
|
116
127
|
}, props));
|
|
@@ -120,14 +131,14 @@ function DropdownMenuShortcut(_a) {
|
|
|
120
131
|
className
|
|
121
132
|
} = _a,
|
|
122
133
|
props = __rest(_a, ["className"]);
|
|
123
|
-
return
|
|
134
|
+
return jsx("span", Object.assign({
|
|
124
135
|
"data-slot": "dropdown-menu-shortcut",
|
|
125
136
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className)
|
|
126
137
|
}, props));
|
|
127
138
|
}
|
|
128
139
|
function DropdownMenuSub(_a) {
|
|
129
140
|
var props = __rest(_a, []);
|
|
130
|
-
return
|
|
141
|
+
return jsx(DropdownMenu$1.Sub, Object.assign({
|
|
131
142
|
"data-slot": "dropdown-menu-sub"
|
|
132
143
|
}, props));
|
|
133
144
|
}
|
|
@@ -138,12 +149,14 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
138
149
|
children
|
|
139
150
|
} = _a,
|
|
140
151
|
props = __rest(_a, ["className", "inset", "children"]);
|
|
141
|
-
return
|
|
152
|
+
return jsxs(DropdownMenu$1.SubTrigger, Object.assign({
|
|
142
153
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
143
154
|
"data-inset": inset,
|
|
144
155
|
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", className)
|
|
145
|
-
}, props
|
|
146
|
-
|
|
156
|
+
}, props, {
|
|
157
|
+
children: [children, jsx(ChevronRightIcon, {
|
|
158
|
+
className: "ml-auto size-4"
|
|
159
|
+
})]
|
|
147
160
|
}));
|
|
148
161
|
}
|
|
149
162
|
function DropdownMenuSubContent(_a) {
|
|
@@ -151,7 +164,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
151
164
|
className
|
|
152
165
|
} = _a,
|
|
153
166
|
props = __rest(_a, ["className"]);
|
|
154
|
-
return
|
|
167
|
+
return jsx(DropdownMenu$1.SubContent, Object.assign({
|
|
155
168
|
"data-slot": "dropdown-menu-sub-content",
|
|
156
169
|
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className)
|
|
157
170
|
}, props));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react_hook_form from 'react-hook-form';
|
|
2
3
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
3
4
|
import { Slot, Label } from 'radix-ui';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
|
|
6
7
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
7
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) =>
|
|
8
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare const useFormField: () => {
|
|
9
10
|
invalid: boolean;
|
|
10
11
|
isDirty: boolean;
|
|
@@ -17,10 +18,10 @@ declare const useFormField: () => {
|
|
|
17
18
|
formDescriptionId: string;
|
|
18
19
|
formMessageId: string;
|
|
19
20
|
};
|
|
20
|
-
declare function FormItem({ className, ...props }: React.ComponentProps<"div">):
|
|
21
|
-
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label.Root>):
|
|
22
|
-
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot.Slot>):
|
|
23
|
-
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">):
|
|
24
|
-
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">):
|
|
21
|
+
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label.Root>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot.Slot>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
25
26
|
|
|
26
27
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Slot } from 'radix-ui';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { FormProvider, Controller, useFormContext, useFormState } from '../../node_modules/react-hook-form/dist/index.esm.js';
|
|
@@ -10,11 +10,12 @@ const Form = FormProvider;
|
|
|
10
10
|
const FormFieldContext = /*#__PURE__*/React.createContext({});
|
|
11
11
|
const FormField = _a => {
|
|
12
12
|
var props = __rest(_a, []);
|
|
13
|
-
return
|
|
13
|
+
return jsx(FormFieldContext.Provider, {
|
|
14
14
|
value: {
|
|
15
15
|
name: props.name
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
},
|
|
17
|
+
children: jsx(Controller, Object.assign({}, props))
|
|
18
|
+
});
|
|
18
19
|
};
|
|
19
20
|
const useFormField = () => {
|
|
20
21
|
const fieldContext = React.useContext(FormFieldContext);
|
|
@@ -47,14 +48,15 @@ function FormItem(_a) {
|
|
|
47
48
|
} = _a,
|
|
48
49
|
props = __rest(_a, ["className"]);
|
|
49
50
|
const id = React.useId();
|
|
50
|
-
return
|
|
51
|
+
return jsx(FormItemContext.Provider, {
|
|
51
52
|
value: {
|
|
52
53
|
id
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
},
|
|
55
|
+
children: jsx("div", Object.assign({
|
|
56
|
+
"data-slot": "form-item",
|
|
57
|
+
className: cn("grid gap-2", className)
|
|
58
|
+
}, props))
|
|
59
|
+
});
|
|
58
60
|
}
|
|
59
61
|
function FormLabel(_a) {
|
|
60
62
|
var {
|
|
@@ -65,7 +67,7 @@ function FormLabel(_a) {
|
|
|
65
67
|
error,
|
|
66
68
|
formItemId
|
|
67
69
|
} = useFormField();
|
|
68
|
-
return
|
|
70
|
+
return jsx(Label, Object.assign({
|
|
69
71
|
"data-slot": "form-label",
|
|
70
72
|
"data-error": !!error,
|
|
71
73
|
className: cn("data-[error=true]:text-destructive", className),
|
|
@@ -80,7 +82,7 @@ function FormControl(_a) {
|
|
|
80
82
|
formDescriptionId,
|
|
81
83
|
formMessageId
|
|
82
84
|
} = useFormField();
|
|
83
|
-
return
|
|
85
|
+
return jsx(Slot.Slot, Object.assign({
|
|
84
86
|
"data-slot": "form-control",
|
|
85
87
|
id: formItemId,
|
|
86
88
|
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
@@ -95,7 +97,7 @@ function FormDescription(_a) {
|
|
|
95
97
|
const {
|
|
96
98
|
formDescriptionId
|
|
97
99
|
} = useFormField();
|
|
98
|
-
return
|
|
100
|
+
return jsx("p", Object.assign({
|
|
99
101
|
"data-slot": "form-description",
|
|
100
102
|
id: formDescriptionId,
|
|
101
103
|
className: cn("text-muted-foreground text-sm", className)
|
|
@@ -115,11 +117,13 @@ function FormMessage(_a) {
|
|
|
115
117
|
if (!body) {
|
|
116
118
|
return null;
|
|
117
119
|
}
|
|
118
|
-
return
|
|
120
|
+
return jsx("p", Object.assign({
|
|
119
121
|
"data-slot": "form-message",
|
|
120
122
|
id: formMessageId,
|
|
121
123
|
className: cn("text-destructive text-sm", className)
|
|
122
|
-
}, props
|
|
124
|
+
}, props, {
|
|
125
|
+
children: body
|
|
126
|
+
}));
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { HoverCard as HoverCard$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCard$1.Root>):
|
|
5
|
-
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCard$1.Trigger>):
|
|
6
|
-
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCard$1.Content>):
|
|
5
|
+
declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
|
|
8
9
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { HoverCard as HoverCard$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function HoverCard(_a) {
|
|
8
7
|
var props = __rest(_a, []);
|
|
9
|
-
return
|
|
8
|
+
return jsx(HoverCard$1.Root, Object.assign({
|
|
10
9
|
"data-slot": "hover-card"
|
|
11
10
|
}, props));
|
|
12
11
|
}
|
|
13
12
|
function HoverCardTrigger(_a) {
|
|
14
13
|
var props = __rest(_a, []);
|
|
15
|
-
return
|
|
14
|
+
return jsx(HoverCard$1.Trigger, Object.assign({
|
|
16
15
|
"data-slot": "hover-card-trigger"
|
|
17
16
|
}, props));
|
|
18
17
|
}
|
|
@@ -23,14 +22,15 @@ function HoverCardContent(_a) {
|
|
|
23
22
|
sideOffset = 4
|
|
24
23
|
} = _a,
|
|
25
24
|
props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
26
|
-
return
|
|
27
|
-
"data-slot": "hover-card-portal"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
return jsx(HoverCard$1.Portal, {
|
|
26
|
+
"data-slot": "hover-card-portal",
|
|
27
|
+
children: jsx(HoverCard$1.Content, Object.assign({
|
|
28
|
+
"data-slot": "hover-card-content",
|
|
29
|
+
align: align,
|
|
30
|
+
sideOffset: sideOffset,
|
|
31
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className)
|
|
32
|
+
}, props))
|
|
33
|
+
});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { OTPInput } from 'input-otp';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
5
|
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
5
6
|
containerClassName?: string;
|
|
6
|
-
}):
|
|
7
|
-
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">):
|
|
7
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
9
10
|
index: number;
|
|
10
|
-
}):
|
|
11
|
-
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">):
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
13
|
|
|
13
14
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { OTPInput as Lt, OTPInputContext as jt } from '../../node_modules/input-otp/dist/index.js';
|
|
4
4
|
import { MinusIcon } from 'lucide-react';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -11,7 +11,7 @@ function InputOTP(_a) {
|
|
|
11
11
|
containerClassName
|
|
12
12
|
} = _a,
|
|
13
13
|
props = __rest(_a, ["className", "containerClassName"]);
|
|
14
|
-
return
|
|
14
|
+
return jsx(Lt, Object.assign({
|
|
15
15
|
"data-slot": "input-otp",
|
|
16
16
|
containerClassName: cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName),
|
|
17
17
|
className: cn("disabled:cursor-not-allowed", className)
|
|
@@ -22,7 +22,7 @@ function InputOTPGroup(_a) {
|
|
|
22
22
|
className
|
|
23
23
|
} = _a,
|
|
24
24
|
props = __rest(_a, ["className"]);
|
|
25
|
-
return
|
|
25
|
+
return jsx("div", Object.assign({
|
|
26
26
|
"data-slot": "input-otp-group",
|
|
27
27
|
className: cn("flex items-center", className)
|
|
28
28
|
}, props));
|
|
@@ -40,22 +40,27 @@ function InputOTPSlot(_a) {
|
|
|
40
40
|
hasFakeCaret,
|
|
41
41
|
isActive
|
|
42
42
|
} = (_b = inputOTPContext === null || inputOTPContext === void 0 ? void 0 : inputOTPContext.slots[index]) !== null && _b !== void 0 ? _b : {};
|
|
43
|
-
return
|
|
43
|
+
return jsxs("div", Object.assign({
|
|
44
44
|
"data-slot": "input-otp-slot",
|
|
45
45
|
"data-active": isActive,
|
|
46
46
|
className: cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", className)
|
|
47
|
-
}, props
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
}, props, {
|
|
48
|
+
children: [char, hasFakeCaret && jsx("div", {
|
|
49
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
50
|
+
children: jsx("div", {
|
|
51
|
+
className: "animate-caret-blink bg-foreground h-4 w-px duration-1000"
|
|
52
|
+
})
|
|
53
|
+
})]
|
|
54
|
+
}));
|
|
52
55
|
}
|
|
53
56
|
function InputOTPSeparator(_a) {
|
|
54
57
|
var props = __rest(_a, []);
|
|
55
|
-
return
|
|
58
|
+
return jsx("div", Object.assign({
|
|
56
59
|
"data-slot": "input-otp-separator",
|
|
57
60
|
role: "separator"
|
|
58
|
-
}, props
|
|
61
|
+
}, props, {
|
|
62
|
+
children: jsx(MinusIcon, {})
|
|
63
|
+
}));
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<"input">):
|
|
4
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Input };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
3
|
-
import
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import { cn } from '../../lib/utils.js';
|
|
5
4
|
|
|
6
5
|
function Input(_a) {
|
|
@@ -9,7 +8,7 @@ function Input(_a) {
|
|
|
9
8
|
type
|
|
10
9
|
} = _a,
|
|
11
10
|
props = __rest(_a, ["className", "type"]);
|
|
12
|
-
return
|
|
11
|
+
return jsx("input", Object.assign({
|
|
13
12
|
type: type,
|
|
14
13
|
"data-slot": "input",
|
|
15
14
|
className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Label as Label$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Label({ className, ...props }: React.ComponentProps<typeof Label$1.Root>):
|
|
5
|
+
declare function Label({ className, ...props }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime.JSX.Element;
|
|
5
6
|
|
|
6
7
|
export { Label };
|