@zimyo/ui 1.0.1 → 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 +5 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -11
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Command as Command$1 } from 'cmdk';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { Dialog } from './dialog.js';
|
|
4
5
|
import 'radix-ui';
|
|
5
6
|
|
|
6
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>):
|
|
7
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
8
9
|
title?: string;
|
|
9
10
|
description?: string;
|
|
10
11
|
className?: string;
|
|
11
12
|
showCloseButton?: boolean;
|
|
12
|
-
}):
|
|
13
|
-
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>):
|
|
14
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>):
|
|
15
|
-
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>):
|
|
16
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>):
|
|
17
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>):
|
|
18
|
-
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>):
|
|
19
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
20
21
|
|
|
21
22
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,8 +1,7 @@
|
|
|
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 { Command as _e } from '../../node_modules/cmdk/dist/index.js';
|
|
4
4
|
import { SearchIcon } from 'lucide-react';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent } from './dialog.js';
|
|
7
6
|
import { cn } from '../../lib/utils.js';
|
|
8
7
|
|
|
@@ -11,7 +10,7 @@ function Command(_a) {
|
|
|
11
10
|
className
|
|
12
11
|
} = _a,
|
|
13
12
|
props = __rest(_a, ["className"]);
|
|
14
|
-
return
|
|
13
|
+
return jsx(_e, Object.assign({
|
|
15
14
|
"data-slot": "command",
|
|
16
15
|
className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className)
|
|
17
16
|
}, props));
|
|
@@ -25,43 +24,53 @@ function CommandDialog(_a) {
|
|
|
25
24
|
showCloseButton = true
|
|
26
25
|
} = _a,
|
|
27
26
|
props = __rest(_a, ["title", "description", "children", "className", "showCloseButton"]);
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
return jsxs(Dialog, Object.assign({}, props, {
|
|
28
|
+
children: [jsxs(DialogHeader, {
|
|
29
|
+
className: "sr-only",
|
|
30
|
+
children: [jsx(DialogTitle, {
|
|
31
|
+
children: title
|
|
32
|
+
}), jsx(DialogDescription, {
|
|
33
|
+
children: description
|
|
34
|
+
})]
|
|
35
|
+
}), jsx(DialogContent, {
|
|
36
|
+
className: cn("overflow-hidden p-0", className),
|
|
37
|
+
showCloseButton: showCloseButton,
|
|
38
|
+
children: jsx(Command, {
|
|
39
|
+
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
40
|
+
children: children
|
|
41
|
+
})
|
|
42
|
+
})]
|
|
43
|
+
}));
|
|
36
44
|
}
|
|
37
45
|
function CommandInput(_a) {
|
|
38
46
|
var {
|
|
39
47
|
className
|
|
40
48
|
} = _a,
|
|
41
49
|
props = __rest(_a, ["className"]);
|
|
42
|
-
return
|
|
50
|
+
return jsxs("div", {
|
|
43
51
|
"data-slot": "command-input-wrapper",
|
|
44
|
-
className: "flex h-9 items-center gap-2 border-b px-3"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
53
|
+
children: [jsx(SearchIcon, {
|
|
54
|
+
className: "size-4 shrink-0 opacity-50"
|
|
55
|
+
}), jsx(_e.Input, Object.assign({
|
|
56
|
+
"data-slot": "command-input",
|
|
57
|
+
className: cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className)
|
|
58
|
+
}, props))]
|
|
59
|
+
});
|
|
51
60
|
}
|
|
52
61
|
function CommandList(_a) {
|
|
53
62
|
var {
|
|
54
63
|
className
|
|
55
64
|
} = _a,
|
|
56
65
|
props = __rest(_a, ["className"]);
|
|
57
|
-
return
|
|
66
|
+
return jsx(_e.List, Object.assign({
|
|
58
67
|
"data-slot": "command-list",
|
|
59
68
|
className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className)
|
|
60
69
|
}, props));
|
|
61
70
|
}
|
|
62
71
|
function CommandEmpty(_a) {
|
|
63
72
|
var props = __rest(_a, []);
|
|
64
|
-
return
|
|
73
|
+
return jsx(_e.Empty, Object.assign({
|
|
65
74
|
"data-slot": "command-empty",
|
|
66
75
|
className: "py-6 text-center text-sm"
|
|
67
76
|
}, props));
|
|
@@ -71,7 +80,7 @@ function CommandGroup(_a) {
|
|
|
71
80
|
className
|
|
72
81
|
} = _a,
|
|
73
82
|
props = __rest(_a, ["className"]);
|
|
74
|
-
return
|
|
83
|
+
return jsx(_e.Group, Object.assign({
|
|
75
84
|
"data-slot": "command-group",
|
|
76
85
|
className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className)
|
|
77
86
|
}, props));
|
|
@@ -81,7 +90,7 @@ function CommandSeparator(_a) {
|
|
|
81
90
|
className
|
|
82
91
|
} = _a,
|
|
83
92
|
props = __rest(_a, ["className"]);
|
|
84
|
-
return
|
|
93
|
+
return jsx(_e.Separator, Object.assign({
|
|
85
94
|
"data-slot": "command-separator",
|
|
86
95
|
className: cn("bg-border -mx-1 h-px", className)
|
|
87
96
|
}, props));
|
|
@@ -91,7 +100,7 @@ function CommandItem(_a) {
|
|
|
91
100
|
className
|
|
92
101
|
} = _a,
|
|
93
102
|
props = __rest(_a, ["className"]);
|
|
94
|
-
return
|
|
103
|
+
return jsx(_e.Item, Object.assign({
|
|
95
104
|
"data-slot": "command-item",
|
|
96
105
|
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
97
106
|
}, props));
|
|
@@ -101,7 +110,7 @@ function CommandShortcut(_a) {
|
|
|
101
110
|
className
|
|
102
111
|
} = _a,
|
|
103
112
|
props = __rest(_a, ["className"]);
|
|
104
|
-
return
|
|
113
|
+
return jsx("span", Object.assign({
|
|
105
114
|
"data-slot": "command-shortcut",
|
|
106
115
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className)
|
|
107
116
|
}, props));
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ContextMenu as ContextMenu$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenu$1.Root>):
|
|
5
|
-
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenu$1.Trigger>):
|
|
6
|
-
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.Group>):
|
|
7
|
-
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenu$1.Portal>):
|
|
8
|
-
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenu$1.Sub>):
|
|
9
|
-
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>):
|
|
5
|
+
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
10
11
|
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
|
|
11
12
|
inset?: boolean;
|
|
12
|
-
}):
|
|
13
|
-
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.SubContent>):
|
|
14
|
-
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Content>):
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
15
16
|
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenu$1.Item> & {
|
|
16
17
|
inset?: boolean;
|
|
17
18
|
variant?: "default" | "destructive";
|
|
18
|
-
}):
|
|
19
|
-
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>):
|
|
20
|
-
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenu$1.RadioItem>):
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
21
22
|
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenu$1.Label> & {
|
|
22
23
|
inset?: boolean;
|
|
23
|
-
}):
|
|
24
|
-
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Separator>):
|
|
25
|
-
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
26
27
|
|
|
27
28
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -1,43 +1,42 @@
|
|
|
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 { ContextMenu as ContextMenu$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function ContextMenu(_a) {
|
|
9
8
|
var props = __rest(_a, []);
|
|
10
|
-
return
|
|
9
|
+
return jsx(ContextMenu$1.Root, Object.assign({
|
|
11
10
|
"data-slot": "context-menu"
|
|
12
11
|
}, props));
|
|
13
12
|
}
|
|
14
13
|
function ContextMenuTrigger(_a) {
|
|
15
14
|
var props = __rest(_a, []);
|
|
16
|
-
return
|
|
15
|
+
return jsx(ContextMenu$1.Trigger, Object.assign({
|
|
17
16
|
"data-slot": "context-menu-trigger"
|
|
18
17
|
}, props));
|
|
19
18
|
}
|
|
20
19
|
function ContextMenuGroup(_a) {
|
|
21
20
|
var props = __rest(_a, []);
|
|
22
|
-
return
|
|
21
|
+
return jsx(ContextMenu$1.Group, Object.assign({
|
|
23
22
|
"data-slot": "context-menu-group"
|
|
24
23
|
}, props));
|
|
25
24
|
}
|
|
26
25
|
function ContextMenuPortal(_a) {
|
|
27
26
|
var props = __rest(_a, []);
|
|
28
|
-
return
|
|
27
|
+
return jsx(ContextMenu$1.Portal, Object.assign({
|
|
29
28
|
"data-slot": "context-menu-portal"
|
|
30
29
|
}, props));
|
|
31
30
|
}
|
|
32
31
|
function ContextMenuSub(_a) {
|
|
33
32
|
var props = __rest(_a, []);
|
|
34
|
-
return
|
|
33
|
+
return jsx(ContextMenu$1.Sub, Object.assign({
|
|
35
34
|
"data-slot": "context-menu-sub"
|
|
36
35
|
}, props));
|
|
37
36
|
}
|
|
38
37
|
function ContextMenuRadioGroup(_a) {
|
|
39
38
|
var props = __rest(_a, []);
|
|
40
|
-
return
|
|
39
|
+
return jsx(ContextMenu$1.RadioGroup, Object.assign({
|
|
41
40
|
"data-slot": "context-menu-radio-group"
|
|
42
41
|
}, props));
|
|
43
42
|
}
|
|
@@ -48,12 +47,14 @@ function ContextMenuSubTrigger(_a) {
|
|
|
48
47
|
children
|
|
49
48
|
} = _a,
|
|
50
49
|
props = __rest(_a, ["className", "inset", "children"]);
|
|
51
|
-
return
|
|
50
|
+
return jsxs(ContextMenu$1.SubTrigger, Object.assign({
|
|
52
51
|
"data-slot": "context-menu-sub-trigger",
|
|
53
52
|
"data-inset": inset,
|
|
54
53
|
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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
55
|
-
}, props
|
|
56
|
-
|
|
54
|
+
}, props, {
|
|
55
|
+
children: [children, jsx(ChevronRightIcon, {
|
|
56
|
+
className: "ml-auto"
|
|
57
|
+
})]
|
|
57
58
|
}));
|
|
58
59
|
}
|
|
59
60
|
function ContextMenuSubContent(_a) {
|
|
@@ -61,7 +62,7 @@ function ContextMenuSubContent(_a) {
|
|
|
61
62
|
className
|
|
62
63
|
} = _a,
|
|
63
64
|
props = __rest(_a, ["className"]);
|
|
64
|
-
return
|
|
65
|
+
return jsx(ContextMenu$1.SubContent, Object.assign({
|
|
65
66
|
"data-slot": "context-menu-sub-content",
|
|
66
67
|
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-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className)
|
|
67
68
|
}, props));
|
|
@@ -71,10 +72,12 @@ function ContextMenuContent(_a) {
|
|
|
71
72
|
className
|
|
72
73
|
} = _a,
|
|
73
74
|
props = __rest(_a, ["className"]);
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
return jsx(ContextMenu$1.Portal, {
|
|
76
|
+
children: jsx(ContextMenu$1.Content, Object.assign({
|
|
77
|
+
"data-slot": "context-menu-content",
|
|
78
|
+
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-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className)
|
|
79
|
+
}, props))
|
|
80
|
+
});
|
|
78
81
|
}
|
|
79
82
|
function ContextMenuItem(_a) {
|
|
80
83
|
var {
|
|
@@ -83,7 +86,7 @@ function ContextMenuItem(_a) {
|
|
|
83
86
|
variant = "default"
|
|
84
87
|
} = _a,
|
|
85
88
|
props = __rest(_a, ["className", "inset", "variant"]);
|
|
86
|
-
return
|
|
89
|
+
return jsx(ContextMenu$1.Item, Object.assign({
|
|
87
90
|
"data-slot": "context-menu-item",
|
|
88
91
|
"data-inset": inset,
|
|
89
92
|
"data-variant": variant,
|
|
@@ -97,15 +100,20 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
97
100
|
checked
|
|
98
101
|
} = _a,
|
|
99
102
|
props = __rest(_a, ["className", "children", "checked"]);
|
|
100
|
-
return
|
|
103
|
+
return jsxs(ContextMenu$1.CheckboxItem, Object.assign({
|
|
101
104
|
"data-slot": "context-menu-checkbox-item",
|
|
102
105
|
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),
|
|
103
106
|
checked: checked
|
|
104
|
-
}, props
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
}, props, {
|
|
108
|
+
children: [jsx("span", {
|
|
109
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
110
|
+
children: jsx(ContextMenu$1.ItemIndicator, {
|
|
111
|
+
children: jsx(CheckIcon, {
|
|
112
|
+
className: "size-4"
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
}), children]
|
|
116
|
+
}));
|
|
109
117
|
}
|
|
110
118
|
function ContextMenuRadioItem(_a) {
|
|
111
119
|
var {
|
|
@@ -113,14 +121,19 @@ function ContextMenuRadioItem(_a) {
|
|
|
113
121
|
children
|
|
114
122
|
} = _a,
|
|
115
123
|
props = __rest(_a, ["className", "children"]);
|
|
116
|
-
return
|
|
124
|
+
return jsxs(ContextMenu$1.RadioItem, Object.assign({
|
|
117
125
|
"data-slot": "context-menu-radio-item",
|
|
118
126
|
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)
|
|
119
|
-
}, props
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
}, props, {
|
|
128
|
+
children: [jsx("span", {
|
|
129
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
130
|
+
children: jsx(ContextMenu$1.ItemIndicator, {
|
|
131
|
+
children: jsx(CircleIcon, {
|
|
132
|
+
className: "size-2 fill-current"
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
}), children]
|
|
136
|
+
}));
|
|
124
137
|
}
|
|
125
138
|
function ContextMenuLabel(_a) {
|
|
126
139
|
var {
|
|
@@ -128,7 +141,7 @@ function ContextMenuLabel(_a) {
|
|
|
128
141
|
inset
|
|
129
142
|
} = _a,
|
|
130
143
|
props = __rest(_a, ["className", "inset"]);
|
|
131
|
-
return
|
|
144
|
+
return jsx(ContextMenu$1.Label, Object.assign({
|
|
132
145
|
"data-slot": "context-menu-label",
|
|
133
146
|
"data-inset": inset,
|
|
134
147
|
className: cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className)
|
|
@@ -139,7 +152,7 @@ function ContextMenuSeparator(_a) {
|
|
|
139
152
|
className
|
|
140
153
|
} = _a,
|
|
141
154
|
props = __rest(_a, ["className"]);
|
|
142
|
-
return
|
|
155
|
+
return jsx(ContextMenu$1.Separator, Object.assign({
|
|
143
156
|
"data-slot": "context-menu-separator",
|
|
144
157
|
className: cn("bg-border -mx-1 my-1 h-px", className)
|
|
145
158
|
}, props));
|
|
@@ -149,7 +162,7 @@ function ContextMenuShortcut(_a) {
|
|
|
149
162
|
className
|
|
150
163
|
} = _a,
|
|
151
164
|
props = __rest(_a, ["className"]);
|
|
152
|
-
return
|
|
165
|
+
return jsx("span", Object.assign({
|
|
153
166
|
"data-slot": "context-menu-shortcut",
|
|
154
167
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className)
|
|
155
168
|
}, props));
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Dialog as Dialog$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>):
|
|
5
|
-
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>):
|
|
6
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>):
|
|
7
|
-
declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>):
|
|
8
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Overlay>):
|
|
5
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & {
|
|
10
11
|
showCloseButton?: boolean;
|
|
11
|
-
}):
|
|
12
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
13
|
-
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
14
|
-
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>):
|
|
15
|
-
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>):
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -1,31 +1,30 @@
|
|
|
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 { XIcon } from 'lucide-react';
|
|
4
4
|
import { Dialog as Dialog$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function Dialog(_a) {
|
|
9
8
|
var props = __rest(_a, []);
|
|
10
|
-
return
|
|
9
|
+
return jsx(Dialog$1.Root, Object.assign({
|
|
11
10
|
"data-slot": "dialog"
|
|
12
11
|
}, props));
|
|
13
12
|
}
|
|
14
13
|
function DialogTrigger(_a) {
|
|
15
14
|
var props = __rest(_a, []);
|
|
16
|
-
return
|
|
15
|
+
return jsx(Dialog$1.Trigger, Object.assign({
|
|
17
16
|
"data-slot": "dialog-trigger"
|
|
18
17
|
}, props));
|
|
19
18
|
}
|
|
20
19
|
function DialogPortal(_a) {
|
|
21
20
|
var props = __rest(_a, []);
|
|
22
|
-
return
|
|
21
|
+
return jsx(Dialog$1.Portal, Object.assign({
|
|
23
22
|
"data-slot": "dialog-portal"
|
|
24
23
|
}, props));
|
|
25
24
|
}
|
|
26
25
|
function DialogClose(_a) {
|
|
27
26
|
var props = __rest(_a, []);
|
|
28
|
-
return
|
|
27
|
+
return jsx(Dialog$1.Close, Object.assign({
|
|
29
28
|
"data-slot": "dialog-close"
|
|
30
29
|
}, props));
|
|
31
30
|
}
|
|
@@ -34,7 +33,7 @@ function DialogOverlay(_a) {
|
|
|
34
33
|
className
|
|
35
34
|
} = _a,
|
|
36
35
|
props = __rest(_a, ["className"]);
|
|
37
|
-
return
|
|
36
|
+
return jsx(Dialog$1.Overlay, Object.assign({
|
|
38
37
|
"data-slot": "dialog-overlay",
|
|
39
38
|
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)
|
|
40
39
|
}, props));
|
|
@@ -46,24 +45,29 @@ function DialogContent(_a) {
|
|
|
46
45
|
showCloseButton = true
|
|
47
46
|
} = _a,
|
|
48
47
|
props = __rest(_a, ["className", "children", "showCloseButton"]);
|
|
49
|
-
return
|
|
50
|
-
"data-slot": "dialog-portal"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
48
|
+
return jsxs(DialogPortal, {
|
|
49
|
+
"data-slot": "dialog-portal",
|
|
50
|
+
children: [jsx(DialogOverlay, {}), jsxs(Dialog$1.Content, Object.assign({
|
|
51
|
+
"data-slot": "dialog-content",
|
|
52
|
+
className: cn("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className)
|
|
53
|
+
}, props, {
|
|
54
|
+
children: [children, showCloseButton && jsxs(Dialog$1.Close, {
|
|
55
|
+
"data-slot": "dialog-close",
|
|
56
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
57
|
+
children: [jsx(XIcon, {}), jsx("span", {
|
|
58
|
+
className: "sr-only",
|
|
59
|
+
children: "Close"
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
}))]
|
|
63
|
+
});
|
|
60
64
|
}
|
|
61
65
|
function DialogHeader(_a) {
|
|
62
66
|
var {
|
|
63
67
|
className
|
|
64
68
|
} = _a,
|
|
65
69
|
props = __rest(_a, ["className"]);
|
|
66
|
-
return
|
|
70
|
+
return jsx("div", Object.assign({
|
|
67
71
|
"data-slot": "dialog-header",
|
|
68
72
|
className: cn("flex flex-col gap-2 text-center sm:text-left", className)
|
|
69
73
|
}, props));
|
|
@@ -73,7 +77,7 @@ function DialogFooter(_a) {
|
|
|
73
77
|
className
|
|
74
78
|
} = _a,
|
|
75
79
|
props = __rest(_a, ["className"]);
|
|
76
|
-
return
|
|
80
|
+
return jsx("div", Object.assign({
|
|
77
81
|
"data-slot": "dialog-footer",
|
|
78
82
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)
|
|
79
83
|
}, props));
|
|
@@ -83,7 +87,7 @@ function DialogTitle(_a) {
|
|
|
83
87
|
className
|
|
84
88
|
} = _a,
|
|
85
89
|
props = __rest(_a, ["className"]);
|
|
86
|
-
return
|
|
90
|
+
return jsx(Dialog$1.Title, Object.assign({
|
|
87
91
|
"data-slot": "dialog-title",
|
|
88
92
|
className: cn("text-lg leading-none font-semibold", className)
|
|
89
93
|
}, props));
|
|
@@ -93,7 +97,7 @@ function DialogDescription(_a) {
|
|
|
93
97
|
className
|
|
94
98
|
} = _a,
|
|
95
99
|
props = __rest(_a, ["className"]);
|
|
96
|
-
return
|
|
100
|
+
return jsx(Dialog$1.Description, Object.assign({
|
|
97
101
|
"data-slot": "dialog-description",
|
|
98
102
|
className: cn("text-muted-foreground text-sm", className)
|
|
99
103
|
}, props));
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
3
4
|
|
|
4
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>):
|
|
5
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>):
|
|
6
|
-
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>):
|
|
7
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>):
|
|
8
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>):
|
|
9
|
-
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>):
|
|
10
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>):
|
|
13
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>):
|
|
5
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
15
16
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|