@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,7 +1,6 @@
|
|
|
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 { Label as Label$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function Label(_a) {
|
|
@@ -9,7 +8,7 @@ function Label(_a) {
|
|
|
9
8
|
className
|
|
10
9
|
} = _a,
|
|
11
10
|
props = __rest(_a, ["className"]);
|
|
12
|
-
return
|
|
11
|
+
return jsx(Label$1.Root, Object.assign({
|
|
13
12
|
"data-slot": "label",
|
|
14
13
|
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className)
|
|
15
14
|
}, props));
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Menubar as Menubar$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Menubar({ className, ...props }: React.ComponentProps<typeof Menubar$1.Root>):
|
|
5
|
-
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof Menubar$1.Menu>):
|
|
6
|
-
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof Menubar$1.Group>):
|
|
7
|
-
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof Menubar$1.Portal>):
|
|
8
|
-
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof Menubar$1.RadioGroup>):
|
|
9
|
-
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof Menubar$1.Trigger>):
|
|
10
|
-
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof Menubar$1.Content>):
|
|
5
|
+
declare function Menubar({ className, ...props }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime.JSX.Element;
|
|
11
12
|
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof Menubar$1.Item> & {
|
|
12
13
|
inset?: boolean;
|
|
13
14
|
variant?: "default" | "destructive";
|
|
14
|
-
}):
|
|
15
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof Menubar$1.CheckboxItem>):
|
|
16
|
-
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof Menubar$1.RadioItem>):
|
|
15
|
+
}): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
17
18
|
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof Menubar$1.Label> & {
|
|
18
19
|
inset?: boolean;
|
|
19
|
-
}):
|
|
20
|
-
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof Menubar$1.Separator>):
|
|
21
|
-
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
22
|
-
declare function MenubarSub({ ...props }: React.ComponentProps<typeof Menubar$1.Sub>):
|
|
20
|
+
}): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
23
24
|
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
|
|
24
25
|
inset?: boolean;
|
|
25
|
-
}):
|
|
26
|
-
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof Menubar$1.SubContent>):
|
|
26
|
+
}): react_jsx_runtime.JSX.Element;
|
|
27
|
+
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
27
28
|
|
|
28
29
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -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 { CheckIcon, CircleIcon, ChevronRightIcon } from 'lucide-react';
|
|
4
4
|
import { Menubar as Menubar$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function Menubar(_a) {
|
|
@@ -10,32 +9,32 @@ function Menubar(_a) {
|
|
|
10
9
|
className
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className"]);
|
|
13
|
-
return
|
|
12
|
+
return jsx(Menubar$1.Root, Object.assign({
|
|
14
13
|
"data-slot": "menubar",
|
|
15
14
|
className: cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", className)
|
|
16
15
|
}, props));
|
|
17
16
|
}
|
|
18
17
|
function MenubarMenu(_a) {
|
|
19
18
|
var props = __rest(_a, []);
|
|
20
|
-
return
|
|
19
|
+
return jsx(Menubar$1.Menu, Object.assign({
|
|
21
20
|
"data-slot": "menubar-menu"
|
|
22
21
|
}, props));
|
|
23
22
|
}
|
|
24
23
|
function MenubarGroup(_a) {
|
|
25
24
|
var props = __rest(_a, []);
|
|
26
|
-
return
|
|
25
|
+
return jsx(Menubar$1.Group, Object.assign({
|
|
27
26
|
"data-slot": "menubar-group"
|
|
28
27
|
}, props));
|
|
29
28
|
}
|
|
30
29
|
function MenubarPortal(_a) {
|
|
31
30
|
var props = __rest(_a, []);
|
|
32
|
-
return
|
|
31
|
+
return jsx(Menubar$1.Portal, Object.assign({
|
|
33
32
|
"data-slot": "menubar-portal"
|
|
34
33
|
}, props));
|
|
35
34
|
}
|
|
36
35
|
function MenubarRadioGroup(_a) {
|
|
37
36
|
var props = __rest(_a, []);
|
|
38
|
-
return
|
|
37
|
+
return jsx(Menubar$1.RadioGroup, Object.assign({
|
|
39
38
|
"data-slot": "menubar-radio-group"
|
|
40
39
|
}, props));
|
|
41
40
|
}
|
|
@@ -44,7 +43,7 @@ function MenubarTrigger(_a) {
|
|
|
44
43
|
className
|
|
45
44
|
} = _a,
|
|
46
45
|
props = __rest(_a, ["className"]);
|
|
47
|
-
return
|
|
46
|
+
return jsx(Menubar$1.Trigger, Object.assign({
|
|
48
47
|
"data-slot": "menubar-trigger",
|
|
49
48
|
className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", className)
|
|
50
49
|
}, props));
|
|
@@ -57,13 +56,15 @@ function MenubarContent(_a) {
|
|
|
57
56
|
sideOffset = 8
|
|
58
57
|
} = _a,
|
|
59
58
|
props = __rest(_a, ["className", "align", "alignOffset", "sideOffset"]);
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
return jsx(MenubarPortal, {
|
|
60
|
+
children: jsx(Menubar$1.Content, Object.assign({
|
|
61
|
+
"data-slot": "menubar-content",
|
|
62
|
+
align: align,
|
|
63
|
+
alignOffset: alignOffset,
|
|
64
|
+
sideOffset: sideOffset,
|
|
65
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", className)
|
|
66
|
+
}, props))
|
|
67
|
+
});
|
|
67
68
|
}
|
|
68
69
|
function MenubarItem(_a) {
|
|
69
70
|
var {
|
|
@@ -72,7 +73,7 @@ function MenubarItem(_a) {
|
|
|
72
73
|
variant = "default"
|
|
73
74
|
} = _a,
|
|
74
75
|
props = __rest(_a, ["className", "inset", "variant"]);
|
|
75
|
-
return
|
|
76
|
+
return jsx(Menubar$1.Item, Object.assign({
|
|
76
77
|
"data-slot": "menubar-item",
|
|
77
78
|
"data-inset": inset,
|
|
78
79
|
"data-variant": variant,
|
|
@@ -86,15 +87,20 @@ function MenubarCheckboxItem(_a) {
|
|
|
86
87
|
checked
|
|
87
88
|
} = _a,
|
|
88
89
|
props = __rest(_a, ["className", "children", "checked"]);
|
|
89
|
-
return
|
|
90
|
+
return jsxs(Menubar$1.CheckboxItem, Object.assign({
|
|
90
91
|
"data-slot": "menubar-checkbox-item",
|
|
91
92
|
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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),
|
|
92
93
|
checked: checked
|
|
93
|
-
}, props
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
}, props, {
|
|
95
|
+
children: [jsx("span", {
|
|
96
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
97
|
+
children: jsx(Menubar$1.ItemIndicator, {
|
|
98
|
+
children: jsx(CheckIcon, {
|
|
99
|
+
className: "size-4"
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
}), children]
|
|
103
|
+
}));
|
|
98
104
|
}
|
|
99
105
|
function MenubarRadioItem(_a) {
|
|
100
106
|
var {
|
|
@@ -102,14 +108,19 @@ function MenubarRadioItem(_a) {
|
|
|
102
108
|
children
|
|
103
109
|
} = _a,
|
|
104
110
|
props = __rest(_a, ["className", "children"]);
|
|
105
|
-
return
|
|
111
|
+
return jsxs(Menubar$1.RadioItem, Object.assign({
|
|
106
112
|
"data-slot": "menubar-radio-item",
|
|
107
113
|
className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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)
|
|
108
|
-
}, props
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
}, props, {
|
|
115
|
+
children: [jsx("span", {
|
|
116
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
117
|
+
children: jsx(Menubar$1.ItemIndicator, {
|
|
118
|
+
children: jsx(CircleIcon, {
|
|
119
|
+
className: "size-2 fill-current"
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
}), children]
|
|
123
|
+
}));
|
|
113
124
|
}
|
|
114
125
|
function MenubarLabel(_a) {
|
|
115
126
|
var {
|
|
@@ -117,7 +128,7 @@ function MenubarLabel(_a) {
|
|
|
117
128
|
inset
|
|
118
129
|
} = _a,
|
|
119
130
|
props = __rest(_a, ["className", "inset"]);
|
|
120
|
-
return
|
|
131
|
+
return jsx(Menubar$1.Label, Object.assign({
|
|
121
132
|
"data-slot": "menubar-label",
|
|
122
133
|
"data-inset": inset,
|
|
123
134
|
className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className)
|
|
@@ -128,7 +139,7 @@ function MenubarSeparator(_a) {
|
|
|
128
139
|
className
|
|
129
140
|
} = _a,
|
|
130
141
|
props = __rest(_a, ["className"]);
|
|
131
|
-
return
|
|
142
|
+
return jsx(Menubar$1.Separator, Object.assign({
|
|
132
143
|
"data-slot": "menubar-separator",
|
|
133
144
|
className: cn("bg-border -mx-1 my-1 h-px", className)
|
|
134
145
|
}, props));
|
|
@@ -138,14 +149,14 @@ function MenubarShortcut(_a) {
|
|
|
138
149
|
className
|
|
139
150
|
} = _a,
|
|
140
151
|
props = __rest(_a, ["className"]);
|
|
141
|
-
return
|
|
152
|
+
return jsx("span", Object.assign({
|
|
142
153
|
"data-slot": "menubar-shortcut",
|
|
143
154
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className)
|
|
144
155
|
}, props));
|
|
145
156
|
}
|
|
146
157
|
function MenubarSub(_a) {
|
|
147
158
|
var props = __rest(_a, []);
|
|
148
|
-
return
|
|
159
|
+
return jsx(Menubar$1.Sub, Object.assign({
|
|
149
160
|
"data-slot": "menubar-sub"
|
|
150
161
|
}, props));
|
|
151
162
|
}
|
|
@@ -156,12 +167,14 @@ function MenubarSubTrigger(_a) {
|
|
|
156
167
|
children
|
|
157
168
|
} = _a,
|
|
158
169
|
props = __rest(_a, ["className", "inset", "children"]);
|
|
159
|
-
return
|
|
170
|
+
return jsxs(Menubar$1.SubTrigger, Object.assign({
|
|
160
171
|
"data-slot": "menubar-sub-trigger",
|
|
161
172
|
"data-inset": inset,
|
|
162
173
|
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-none select-none data-[inset]:pl-8", className)
|
|
163
|
-
}, props
|
|
164
|
-
|
|
174
|
+
}, props, {
|
|
175
|
+
children: [children, jsx(ChevronRightIcon, {
|
|
176
|
+
className: "ml-auto h-4 w-4"
|
|
177
|
+
})]
|
|
165
178
|
}));
|
|
166
179
|
}
|
|
167
180
|
function MenubarSubContent(_a) {
|
|
@@ -169,7 +182,7 @@ function MenubarSubContent(_a) {
|
|
|
169
182
|
className
|
|
170
183
|
} = _a,
|
|
171
184
|
props = __rest(_a, ["className"]);
|
|
172
|
-
return
|
|
185
|
+
return jsx(Menubar$1.SubContent, Object.assign({
|
|
173
186
|
"data-slot": "menubar-sub-content",
|
|
174
187
|
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-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className)
|
|
175
188
|
}, props));
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import { NavigationMenu as NavigationMenu$1 } from 'radix-ui';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
|
|
5
6
|
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenu$1.Root> & {
|
|
6
7
|
viewport?: boolean;
|
|
7
|
-
}):
|
|
8
|
-
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.List>):
|
|
9
|
-
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Item>):
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime.JSX.Element;
|
|
10
11
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
|
|
11
|
-
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenu$1.Trigger>):
|
|
12
|
-
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Content>):
|
|
13
|
-
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Viewport>):
|
|
14
|
-
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Link>):
|
|
15
|
-
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Indicator>):
|
|
12
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
|
|
4
4
|
import { ChevronDownIcon } from 'lucide-react';
|
|
5
5
|
import { NavigationMenu as NavigationMenu$1 } from 'radix-ui';
|
|
6
|
-
import * as React from 'react';
|
|
7
6
|
import { cn } from '../../lib/utils.js';
|
|
8
7
|
|
|
9
8
|
function NavigationMenu(_a) {
|
|
@@ -13,18 +12,20 @@ function NavigationMenu(_a) {
|
|
|
13
12
|
viewport = true
|
|
14
13
|
} = _a,
|
|
15
14
|
props = __rest(_a, ["className", "children", "viewport"]);
|
|
16
|
-
return
|
|
15
|
+
return jsxs(NavigationMenu$1.Root, Object.assign({
|
|
17
16
|
"data-slot": "navigation-menu",
|
|
18
17
|
"data-viewport": viewport,
|
|
19
18
|
className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className)
|
|
20
|
-
}, props
|
|
19
|
+
}, props, {
|
|
20
|
+
children: [children, viewport && jsx(NavigationMenuViewport, {})]
|
|
21
|
+
}));
|
|
21
22
|
}
|
|
22
23
|
function NavigationMenuList(_a) {
|
|
23
24
|
var {
|
|
24
25
|
className
|
|
25
26
|
} = _a,
|
|
26
27
|
props = __rest(_a, ["className"]);
|
|
27
|
-
return
|
|
28
|
+
return jsx(NavigationMenu$1.List, Object.assign({
|
|
28
29
|
"data-slot": "navigation-menu-list",
|
|
29
30
|
className: cn("group flex flex-1 list-none items-center justify-center gap-1", className)
|
|
30
31
|
}, props));
|
|
@@ -34,7 +35,7 @@ function NavigationMenuItem(_a) {
|
|
|
34
35
|
className
|
|
35
36
|
} = _a,
|
|
36
37
|
props = __rest(_a, ["className"]);
|
|
37
|
-
return
|
|
38
|
+
return jsx(NavigationMenu$1.Item, Object.assign({
|
|
38
39
|
"data-slot": "navigation-menu-item",
|
|
39
40
|
className: cn("relative", className)
|
|
40
41
|
}, props));
|
|
@@ -46,12 +47,14 @@ function NavigationMenuTrigger(_a) {
|
|
|
46
47
|
children
|
|
47
48
|
} = _a,
|
|
48
49
|
props = __rest(_a, ["className", "children"]);
|
|
49
|
-
return
|
|
50
|
+
return jsxs(NavigationMenu$1.Trigger, Object.assign({
|
|
50
51
|
"data-slot": "navigation-menu-trigger",
|
|
51
52
|
className: cn(navigationMenuTriggerStyle(), "group", className)
|
|
52
|
-
}, props
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
}, props, {
|
|
54
|
+
children: [children, " ", jsx(ChevronDownIcon, {
|
|
55
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
})]
|
|
55
58
|
}));
|
|
56
59
|
}
|
|
57
60
|
function NavigationMenuContent(_a) {
|
|
@@ -59,7 +62,7 @@ function NavigationMenuContent(_a) {
|
|
|
59
62
|
className
|
|
60
63
|
} = _a,
|
|
61
64
|
props = __rest(_a, ["className"]);
|
|
62
|
-
return
|
|
65
|
+
return jsx(NavigationMenu$1.Content, Object.assign({
|
|
63
66
|
"data-slot": "navigation-menu-content",
|
|
64
67
|
className: cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", className)
|
|
65
68
|
}, props));
|
|
@@ -69,19 +72,20 @@ function NavigationMenuViewport(_a) {
|
|
|
69
72
|
className
|
|
70
73
|
} = _a,
|
|
71
74
|
props = __rest(_a, ["className"]);
|
|
72
|
-
return
|
|
73
|
-
className: cn("absolute top-full left-0 isolate z-50 flex justify-center")
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
return jsx("div", {
|
|
76
|
+
className: cn("absolute top-full left-0 isolate z-50 flex justify-center"),
|
|
77
|
+
children: jsx(NavigationMenu$1.Viewport, Object.assign({
|
|
78
|
+
"data-slot": "navigation-menu-viewport",
|
|
79
|
+
className: cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", className)
|
|
80
|
+
}, props))
|
|
81
|
+
});
|
|
78
82
|
}
|
|
79
83
|
function NavigationMenuLink(_a) {
|
|
80
84
|
var {
|
|
81
85
|
className
|
|
82
86
|
} = _a,
|
|
83
87
|
props = __rest(_a, ["className"]);
|
|
84
|
-
return
|
|
88
|
+
return jsx(NavigationMenu$1.Link, Object.assign({
|
|
85
89
|
"data-slot": "navigation-menu-link",
|
|
86
90
|
className: cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className)
|
|
87
91
|
}, props));
|
|
@@ -91,11 +95,13 @@ function NavigationMenuIndicator(_a) {
|
|
|
91
95
|
className
|
|
92
96
|
} = _a,
|
|
93
97
|
props = __rest(_a, ["className"]);
|
|
94
|
-
return
|
|
98
|
+
return jsx(NavigationMenu$1.Indicator, Object.assign({
|
|
95
99
|
"data-slot": "navigation-menu-indicator",
|
|
96
100
|
className: cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className)
|
|
97
|
-
}, props
|
|
98
|
-
|
|
101
|
+
}, props, {
|
|
102
|
+
children: jsx("div", {
|
|
103
|
+
className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"
|
|
104
|
+
})
|
|
99
105
|
}));
|
|
100
106
|
}
|
|
101
107
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { Button } from './button.js';
|
|
3
4
|
import 'class-variance-authority/dist/types';
|
|
4
5
|
import 'class-variance-authority';
|
|
5
6
|
|
|
6
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">):
|
|
7
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">):
|
|
8
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<"li">):
|
|
7
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
9
10
|
type PaginationLinkProps = {
|
|
10
11
|
isActive?: boolean;
|
|
11
12
|
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
12
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
13
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
14
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
15
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">):
|
|
13
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { MoreHorizontalIcon, ChevronRightIcon, ChevronLeftIcon } from 'lucide-react';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { buttonVariants } from './button.js';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
@@ -10,7 +9,7 @@ function Pagination(_a) {
|
|
|
10
9
|
className
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className"]);
|
|
13
|
-
return
|
|
12
|
+
return jsx("nav", Object.assign({
|
|
14
13
|
role: "navigation",
|
|
15
14
|
"aria-label": "pagination",
|
|
16
15
|
"data-slot": "pagination",
|
|
@@ -22,14 +21,14 @@ function PaginationContent(_a) {
|
|
|
22
21
|
className
|
|
23
22
|
} = _a,
|
|
24
23
|
props = __rest(_a, ["className"]);
|
|
25
|
-
return
|
|
24
|
+
return jsx("ul", Object.assign({
|
|
26
25
|
"data-slot": "pagination-content",
|
|
27
26
|
className: cn("flex flex-row items-center gap-1", className)
|
|
28
27
|
}, props));
|
|
29
28
|
}
|
|
30
29
|
function PaginationItem(_a) {
|
|
31
30
|
var props = __rest(_a, []);
|
|
32
|
-
return
|
|
31
|
+
return jsx("li", Object.assign({
|
|
33
32
|
"data-slot": "pagination-item"
|
|
34
33
|
}, props));
|
|
35
34
|
}
|
|
@@ -40,7 +39,7 @@ function PaginationLink(_a) {
|
|
|
40
39
|
size = "icon"
|
|
41
40
|
} = _a,
|
|
42
41
|
props = __rest(_a, ["className", "isActive", "size"]);
|
|
43
|
-
return
|
|
42
|
+
return jsx("a", Object.assign({
|
|
44
43
|
"aria-current": isActive ? "page" : undefined,
|
|
45
44
|
"data-slot": "pagination-link",
|
|
46
45
|
"data-active": isActive,
|
|
@@ -55,41 +54,50 @@ function PaginationPrevious(_a) {
|
|
|
55
54
|
className
|
|
56
55
|
} = _a,
|
|
57
56
|
props = __rest(_a, ["className"]);
|
|
58
|
-
return
|
|
57
|
+
return jsxs(PaginationLink, Object.assign({
|
|
59
58
|
"aria-label": "Go to previous page",
|
|
60
59
|
size: "default",
|
|
61
60
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className)
|
|
62
|
-
}, props
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
}, props, {
|
|
62
|
+
children: [jsx(ChevronLeftIcon, {}), jsx("span", {
|
|
63
|
+
className: "hidden sm:block",
|
|
64
|
+
children: "Previous"
|
|
65
|
+
})]
|
|
66
|
+
}));
|
|
65
67
|
}
|
|
66
68
|
function PaginationNext(_a) {
|
|
67
69
|
var {
|
|
68
70
|
className
|
|
69
71
|
} = _a,
|
|
70
72
|
props = __rest(_a, ["className"]);
|
|
71
|
-
return
|
|
73
|
+
return jsxs(PaginationLink, Object.assign({
|
|
72
74
|
"aria-label": "Go to next page",
|
|
73
75
|
size: "default",
|
|
74
76
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className)
|
|
75
|
-
}, props
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
}, props, {
|
|
78
|
+
children: [jsx("span", {
|
|
79
|
+
className: "hidden sm:block",
|
|
80
|
+
children: "Next"
|
|
81
|
+
}), jsx(ChevronRightIcon, {})]
|
|
82
|
+
}));
|
|
78
83
|
}
|
|
79
84
|
function PaginationEllipsis(_a) {
|
|
80
85
|
var {
|
|
81
86
|
className
|
|
82
87
|
} = _a,
|
|
83
88
|
props = __rest(_a, ["className"]);
|
|
84
|
-
return
|
|
89
|
+
return jsxs("span", Object.assign({
|
|
85
90
|
"aria-hidden": true,
|
|
86
91
|
"data-slot": "pagination-ellipsis",
|
|
87
92
|
className: cn("flex size-9 items-center justify-center", className)
|
|
88
|
-
}, props
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
}, props, {
|
|
94
|
+
children: [jsx(MoreHorizontalIcon, {
|
|
95
|
+
className: "size-4"
|
|
96
|
+
}), jsx("span", {
|
|
97
|
+
className: "sr-only",
|
|
98
|
+
children: "More pages"
|
|
99
|
+
})]
|
|
100
|
+
}));
|
|
93
101
|
}
|
|
94
102
|
|
|
95
103
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Popover as Popover$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>):
|
|
5
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>):
|
|
6
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof Popover$1.Content>):
|
|
7
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof Popover$1.Anchor>):
|
|
5
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime.JSX.Element;
|
|
8
9
|
|
|
9
10
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -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 { Popover as Popover$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function Popover(_a) {
|
|
8
7
|
var props = __rest(_a, []);
|
|
9
|
-
return
|
|
8
|
+
return jsx(Popover$1.Root, Object.assign({
|
|
10
9
|
"data-slot": "popover"
|
|
11
10
|
}, props));
|
|
12
11
|
}
|
|
13
12
|
function PopoverTrigger(_a) {
|
|
14
13
|
var props = __rest(_a, []);
|
|
15
|
-
return
|
|
14
|
+
return jsx(Popover$1.Trigger, Object.assign({
|
|
16
15
|
"data-slot": "popover-trigger"
|
|
17
16
|
}, props));
|
|
18
17
|
}
|
|
@@ -23,16 +22,18 @@ function PopoverContent(_a) {
|
|
|
23
22
|
sideOffset = 4
|
|
24
23
|
} = _a,
|
|
25
24
|
props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
return jsx(Popover$1.Portal, {
|
|
26
|
+
children: jsx(Popover$1.Content, Object.assign({
|
|
27
|
+
"data-slot": "popover-content",
|
|
28
|
+
align: align,
|
|
29
|
+
sideOffset: sideOffset,
|
|
30
|
+
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-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className)
|
|
31
|
+
}, props))
|
|
32
|
+
});
|
|
32
33
|
}
|
|
33
34
|
function PopoverAnchor(_a) {
|
|
34
35
|
var props = __rest(_a, []);
|
|
35
|
-
return
|
|
36
|
+
return jsx(Popover$1.Anchor, Object.assign({
|
|
36
37
|
"data-slot": "popover-anchor"
|
|
37
38
|
}, props));
|
|
38
39
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Progress as Progress$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof Progress$1.Root>):
|
|
5
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime.JSX.Element;
|
|
5
6
|
|
|
6
7
|
export { Progress };
|