@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,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 { Progress as Progress$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function Progress(_a) {
|
|
@@ -10,15 +9,17 @@ function Progress(_a) {
|
|
|
10
9
|
value
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className", "value"]);
|
|
13
|
-
return
|
|
12
|
+
return jsx(Progress$1.Root, Object.assign({
|
|
14
13
|
"data-slot": "progress",
|
|
15
|
-
className: cn("
|
|
16
|
-
}, props
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
className: cn("relative h-2 w-full overflow-hidden rounded-full", className)
|
|
15
|
+
}, props, {
|
|
16
|
+
children: jsx(Progress$1.Indicator, {
|
|
17
|
+
"data-slot": "progress-indicator",
|
|
18
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
19
|
+
style: {
|
|
20
|
+
transform: `translateX(-${100 - (value || 0)}%)`
|
|
21
|
+
}
|
|
22
|
+
})
|
|
22
23
|
}));
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { RadioGroup as RadioGroup$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>):
|
|
5
|
-
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Item>):
|
|
5
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime.JSX.Element;
|
|
6
7
|
|
|
7
8
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -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 } from 'react/jsx-runtime';
|
|
3
3
|
import { CircleIcon } from 'lucide-react';
|
|
4
4
|
import { RadioGroup as RadioGroup$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function RadioGroup(_a) {
|
|
@@ -10,7 +9,7 @@ function RadioGroup(_a) {
|
|
|
10
9
|
className
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className"]);
|
|
13
|
-
return
|
|
12
|
+
return jsx(RadioGroup$1.Root, Object.assign({
|
|
14
13
|
"data-slot": "radio-group",
|
|
15
14
|
className: cn("grid gap-3", className)
|
|
16
15
|
}, props));
|
|
@@ -20,15 +19,18 @@ function RadioGroupItem(_a) {
|
|
|
20
19
|
className
|
|
21
20
|
} = _a,
|
|
22
21
|
props = __rest(_a, ["className"]);
|
|
23
|
-
return
|
|
22
|
+
return jsx(RadioGroup$1.Item, Object.assign({
|
|
24
23
|
"data-slot": "radio-group-item",
|
|
25
24
|
className: cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className)
|
|
26
|
-
}, props
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
}, props, {
|
|
26
|
+
children: jsx(RadioGroup$1.Indicator, {
|
|
27
|
+
"data-slot": "radio-group-indicator",
|
|
28
|
+
className: "relative flex items-center justify-center",
|
|
29
|
+
children: jsx(CircleIcon, {
|
|
30
|
+
className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
}));
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
4
|
|
|
4
|
-
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>):
|
|
5
|
-
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>):
|
|
5
|
+
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
6
7
|
declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
7
8
|
withHandle?: boolean;
|
|
8
|
-
}):
|
|
9
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
10
|
|
|
10
11
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -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 { GripVerticalIcon } from 'lucide-react';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { PanelResizeHandle, Panel, PanelGroup } from '../../node_modules/react-resizable-panels/dist/react-resizable-panels.js';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
@@ -10,14 +9,14 @@ function ResizablePanelGroup(_a) {
|
|
|
10
9
|
className
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className"]);
|
|
13
|
-
return
|
|
12
|
+
return jsx(PanelGroup, Object.assign({
|
|
14
13
|
"data-slot": "resizable-panel-group",
|
|
15
14
|
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className)
|
|
16
15
|
}, props));
|
|
17
16
|
}
|
|
18
17
|
function ResizablePanel(_a) {
|
|
19
18
|
var props = __rest(_a, []);
|
|
20
|
-
return
|
|
19
|
+
return jsx(Panel, Object.assign({
|
|
21
20
|
"data-slot": "resizable-panel"
|
|
22
21
|
}, props));
|
|
23
22
|
}
|
|
@@ -27,14 +26,17 @@ function ResizableHandle(_a) {
|
|
|
27
26
|
className
|
|
28
27
|
} = _a,
|
|
29
28
|
props = __rest(_a, ["withHandle", "className"]);
|
|
30
|
-
return
|
|
29
|
+
return jsx(PanelResizeHandle, Object.assign({
|
|
31
30
|
"data-slot": "resizable-handle",
|
|
32
31
|
className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className)
|
|
33
|
-
}, props
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
}, props, {
|
|
33
|
+
children: withHandle && jsx("div", {
|
|
34
|
+
className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
|
|
35
|
+
children: jsx(GripVerticalIcon, {
|
|
36
|
+
className: "size-2.5"
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
}));
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ScrollArea as ScrollArea$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollArea$1.Root>):
|
|
5
|
-
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>):
|
|
5
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
6
7
|
|
|
7
8
|
export { ScrollArea, ScrollBar };
|
|
@@ -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 { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { ScrollArea as ScrollArea$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function ScrollArea(_a) {
|
|
@@ -10,13 +9,16 @@ function ScrollArea(_a) {
|
|
|
10
9
|
children
|
|
11
10
|
} = _a,
|
|
12
11
|
props = __rest(_a, ["className", "children"]);
|
|
13
|
-
return
|
|
12
|
+
return jsxs(ScrollArea$1.Root, Object.assign({
|
|
14
13
|
"data-slot": "scroll-area",
|
|
15
14
|
className: cn("relative", className)
|
|
16
|
-
}, props
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
}, props, {
|
|
16
|
+
children: [jsx(ScrollArea$1.Viewport, {
|
|
17
|
+
"data-slot": "scroll-area-viewport",
|
|
18
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
19
|
+
children: children
|
|
20
|
+
}), jsx(ScrollBar, {}), jsx(ScrollArea$1.Corner, {})]
|
|
21
|
+
}));
|
|
20
22
|
}
|
|
21
23
|
function ScrollBar(_a) {
|
|
22
24
|
var {
|
|
@@ -24,13 +26,15 @@ function ScrollBar(_a) {
|
|
|
24
26
|
orientation = "vertical"
|
|
25
27
|
} = _a,
|
|
26
28
|
props = __rest(_a, ["className", "orientation"]);
|
|
27
|
-
return
|
|
29
|
+
return jsx(ScrollArea$1.ScrollAreaScrollbar, Object.assign({
|
|
28
30
|
"data-slot": "scroll-area-scrollbar",
|
|
29
31
|
orientation: orientation,
|
|
30
32
|
className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", className)
|
|
31
|
-
}, props
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
}, props, {
|
|
34
|
+
children: jsx(ScrollArea$1.ScrollAreaThumb, {
|
|
35
|
+
"data-slot": "scroll-area-thumb",
|
|
36
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
37
|
+
})
|
|
34
38
|
}));
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Select as Select$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>):
|
|
5
|
-
declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>):
|
|
6
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>):
|
|
5
|
+
declare function Select({ ...props }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
|
|
8
9
|
size?: "sm" | "default";
|
|
9
|
-
}):
|
|
10
|
-
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Select$1.Content>):
|
|
11
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.Label>):
|
|
12
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>):
|
|
13
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>):
|
|
14
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpButton>):
|
|
15
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>):
|
|
10
|
+
}): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -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, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
4
4
|
import { Select as Select$1 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function Select(_a) {
|
|
9
8
|
var props = __rest(_a, []);
|
|
10
|
-
return
|
|
9
|
+
return jsx(Select$1.Root, Object.assign({
|
|
11
10
|
"data-slot": "select"
|
|
12
11
|
}, props));
|
|
13
12
|
}
|
|
14
13
|
function SelectGroup(_a) {
|
|
15
14
|
var props = __rest(_a, []);
|
|
16
|
-
return
|
|
15
|
+
return jsx(Select$1.Group, Object.assign({
|
|
17
16
|
"data-slot": "select-group"
|
|
18
17
|
}, props));
|
|
19
18
|
}
|
|
20
19
|
function SelectValue(_a) {
|
|
21
20
|
var props = __rest(_a, []);
|
|
22
|
-
return
|
|
21
|
+
return jsx(Select$1.Value, Object.assign({
|
|
23
22
|
"data-slot": "select-value"
|
|
24
23
|
}, props));
|
|
25
24
|
}
|
|
@@ -30,15 +29,18 @@ function SelectTrigger(_a) {
|
|
|
30
29
|
children
|
|
31
30
|
} = _a,
|
|
32
31
|
props = __rest(_a, ["className", "size", "children"]);
|
|
33
|
-
return
|
|
32
|
+
return jsxs(Select$1.Trigger, Object.assign({
|
|
34
33
|
"data-slot": "select-trigger",
|
|
35
34
|
"data-size": size,
|
|
36
35
|
className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
|
|
37
|
-
}, props
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
}, props, {
|
|
37
|
+
children: [children, jsx(Select$1.Icon, {
|
|
38
|
+
asChild: true,
|
|
39
|
+
children: jsx(ChevronDownIcon, {
|
|
40
|
+
className: "size-4 opacity-50"
|
|
41
|
+
})
|
|
42
|
+
})]
|
|
43
|
+
}));
|
|
42
44
|
}
|
|
43
45
|
function SelectContent(_a) {
|
|
44
46
|
var {
|
|
@@ -47,20 +49,25 @@ function SelectContent(_a) {
|
|
|
47
49
|
position = "popper"
|
|
48
50
|
} = _a,
|
|
49
51
|
props = __rest(_a, ["className", "children", "position"]);
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
return jsx(Select$1.Portal, {
|
|
53
|
+
children: jsxs(Select$1.Content, Object.assign({
|
|
54
|
+
"data-slot": "select-content",
|
|
55
|
+
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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
56
|
+
position: position
|
|
57
|
+
}, props, {
|
|
58
|
+
children: [jsx(SelectScrollUpButton, {}), jsx(Select$1.Viewport, {
|
|
59
|
+
className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
60
|
+
children: children
|
|
61
|
+
}), jsx(SelectScrollDownButton, {})]
|
|
62
|
+
}))
|
|
63
|
+
});
|
|
57
64
|
}
|
|
58
65
|
function SelectLabel(_a) {
|
|
59
66
|
var {
|
|
60
67
|
className
|
|
61
68
|
} = _a,
|
|
62
69
|
props = __rest(_a, ["className"]);
|
|
63
|
-
return
|
|
70
|
+
return jsx(Select$1.Label, Object.assign({
|
|
64
71
|
"data-slot": "select-label",
|
|
65
72
|
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className)
|
|
66
73
|
}, props));
|
|
@@ -71,21 +78,28 @@ function SelectItem(_a) {
|
|
|
71
78
|
children
|
|
72
79
|
} = _a,
|
|
73
80
|
props = __rest(_a, ["className", "children"]);
|
|
74
|
-
return
|
|
81
|
+
return jsxs(Select$1.Item, Object.assign({
|
|
75
82
|
"data-slot": "select-item",
|
|
76
83
|
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className)
|
|
77
|
-
}, props
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
}, props, {
|
|
85
|
+
children: [jsx("span", {
|
|
86
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
87
|
+
children: jsx(Select$1.ItemIndicator, {
|
|
88
|
+
children: jsx(CheckIcon, {
|
|
89
|
+
className: "size-4"
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
}), jsx(Select$1.ItemText, {
|
|
93
|
+
children: children
|
|
94
|
+
})]
|
|
95
|
+
}));
|
|
82
96
|
}
|
|
83
97
|
function SelectSeparator(_a) {
|
|
84
98
|
var {
|
|
85
99
|
className
|
|
86
100
|
} = _a,
|
|
87
101
|
props = __rest(_a, ["className"]);
|
|
88
|
-
return
|
|
102
|
+
return jsx(Select$1.Separator, Object.assign({
|
|
89
103
|
"data-slot": "select-separator",
|
|
90
104
|
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)
|
|
91
105
|
}, props));
|
|
@@ -95,11 +109,13 @@ function SelectScrollUpButton(_a) {
|
|
|
95
109
|
className
|
|
96
110
|
} = _a,
|
|
97
111
|
props = __rest(_a, ["className"]);
|
|
98
|
-
return
|
|
112
|
+
return jsx(Select$1.ScrollUpButton, Object.assign({
|
|
99
113
|
"data-slot": "select-scroll-up-button",
|
|
100
114
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
101
|
-
}, props
|
|
102
|
-
|
|
115
|
+
}, props, {
|
|
116
|
+
children: jsx(ChevronUpIcon, {
|
|
117
|
+
className: "size-4"
|
|
118
|
+
})
|
|
103
119
|
}));
|
|
104
120
|
}
|
|
105
121
|
function SelectScrollDownButton(_a) {
|
|
@@ -107,11 +123,13 @@ function SelectScrollDownButton(_a) {
|
|
|
107
123
|
className
|
|
108
124
|
} = _a,
|
|
109
125
|
props = __rest(_a, ["className"]);
|
|
110
|
-
return
|
|
126
|
+
return jsx(Select$1.ScrollDownButton, Object.assign({
|
|
111
127
|
"data-slot": "select-scroll-down-button",
|
|
112
128
|
className: cn("flex cursor-default items-center justify-center py-1", className)
|
|
113
|
-
}, props
|
|
114
|
-
|
|
129
|
+
}, props, {
|
|
130
|
+
children: jsx(ChevronDownIcon, {
|
|
131
|
+
className: "size-4"
|
|
132
|
+
})
|
|
115
133
|
}));
|
|
116
134
|
}
|
|
117
135
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Separator as Separator$1 } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof Separator$1.Root>):
|
|
5
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime.JSX.Element;
|
|
5
6
|
|
|
6
7
|
export { Separator };
|
|
@@ -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 { Separator as Separator$1 } from 'radix-ui';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
import { cn } from '../../lib/utils.js';
|
|
6
5
|
|
|
7
6
|
function Separator(_a) {
|
|
@@ -11,7 +10,7 @@ function Separator(_a) {
|
|
|
11
10
|
decorative = true
|
|
12
11
|
} = _a,
|
|
13
12
|
props = __rest(_a, ["className", "orientation", "decorative"]);
|
|
14
|
-
return
|
|
13
|
+
return jsx(Separator$1.Root, Object.assign({
|
|
15
14
|
"data-slot": "separator",
|
|
16
15
|
decorative: decorative,
|
|
17
16
|
orientation: orientation,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { Dialog } from 'radix-ui';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
|
|
4
|
-
declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog.Root>):
|
|
5
|
-
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog.Trigger>):
|
|
6
|
-
declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog.Close>):
|
|
5
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof Dialog.Content> & {
|
|
8
9
|
side?: "top" | "right" | "bottom" | "left";
|
|
9
|
-
}):
|
|
10
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
11
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
-
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof Dialog.Title>):
|
|
13
|
-
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof Dialog.Description>):
|
|
10
|
+
}): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime.JSX.Element;
|
|
14
15
|
|
|
15
16
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -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 } from 'radix-ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
5
|
import { cn } from '../../lib/utils.js';
|
|
7
6
|
|
|
8
7
|
function Sheet(_a) {
|
|
9
8
|
var props = __rest(_a, []);
|
|
10
|
-
return
|
|
9
|
+
return jsx(Dialog.Root, Object.assign({
|
|
11
10
|
"data-slot": "sheet"
|
|
12
11
|
}, props));
|
|
13
12
|
}
|
|
14
13
|
function SheetTrigger(_a) {
|
|
15
14
|
var props = __rest(_a, []);
|
|
16
|
-
return
|
|
15
|
+
return jsx(Dialog.Trigger, Object.assign({
|
|
17
16
|
"data-slot": "sheet-trigger"
|
|
18
17
|
}, props));
|
|
19
18
|
}
|
|
20
19
|
function SheetClose(_a) {
|
|
21
20
|
var props = __rest(_a, []);
|
|
22
|
-
return
|
|
21
|
+
return jsx(Dialog.Close, Object.assign({
|
|
23
22
|
"data-slot": "sheet-close"
|
|
24
23
|
}, props));
|
|
25
24
|
}
|
|
26
25
|
function SheetPortal(_a) {
|
|
27
26
|
var props = __rest(_a, []);
|
|
28
|
-
return
|
|
27
|
+
return jsx(Dialog.Portal, Object.assign({
|
|
29
28
|
"data-slot": "sheet-portal"
|
|
30
29
|
}, props));
|
|
31
30
|
}
|
|
@@ -34,7 +33,7 @@ function SheetOverlay(_a) {
|
|
|
34
33
|
className
|
|
35
34
|
} = _a,
|
|
36
35
|
props = __rest(_a, ["className"]);
|
|
37
|
-
return
|
|
36
|
+
return jsx(Dialog.Overlay, Object.assign({
|
|
38
37
|
"data-slot": "sheet-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,23 +45,29 @@ function SheetContent(_a) {
|
|
|
46
45
|
side = "right"
|
|
47
46
|
} = _a,
|
|
48
47
|
props = __rest(_a, ["className", "children", "side"]);
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
return jsxs(SheetPortal, {
|
|
49
|
+
children: [jsx(SheetOverlay, {}), jsxs(Dialog.Content, Object.assign({
|
|
50
|
+
"data-slot": "sheet-content",
|
|
51
|
+
className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className)
|
|
52
|
+
}, props, {
|
|
53
|
+
children: [children, jsxs(Dialog.Close, {
|
|
54
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary 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",
|
|
55
|
+
children: [jsx(XIcon, {
|
|
56
|
+
className: "size-4"
|
|
57
|
+
}), jsx("span", {
|
|
58
|
+
className: "sr-only",
|
|
59
|
+
children: "Close"
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
}))]
|
|
63
|
+
});
|
|
59
64
|
}
|
|
60
65
|
function SheetHeader(_a) {
|
|
61
66
|
var {
|
|
62
67
|
className
|
|
63
68
|
} = _a,
|
|
64
69
|
props = __rest(_a, ["className"]);
|
|
65
|
-
return
|
|
70
|
+
return jsx("div", Object.assign({
|
|
66
71
|
"data-slot": "sheet-header",
|
|
67
72
|
className: cn("flex flex-col gap-1.5 p-4", className)
|
|
68
73
|
}, props));
|
|
@@ -72,7 +77,7 @@ function SheetFooter(_a) {
|
|
|
72
77
|
className
|
|
73
78
|
} = _a,
|
|
74
79
|
props = __rest(_a, ["className"]);
|
|
75
|
-
return
|
|
80
|
+
return jsx("div", Object.assign({
|
|
76
81
|
"data-slot": "sheet-footer",
|
|
77
82
|
className: cn("mt-auto flex flex-col gap-2 p-4", className)
|
|
78
83
|
}, props));
|
|
@@ -82,7 +87,7 @@ function SheetTitle(_a) {
|
|
|
82
87
|
className
|
|
83
88
|
} = _a,
|
|
84
89
|
props = __rest(_a, ["className"]);
|
|
85
|
-
return
|
|
90
|
+
return jsx(Dialog.Title, Object.assign({
|
|
86
91
|
"data-slot": "sheet-title",
|
|
87
92
|
className: cn("text-foreground font-semibold", className)
|
|
88
93
|
}, props));
|
|
@@ -92,7 +97,7 @@ function SheetDescription(_a) {
|
|
|
92
97
|
className
|
|
93
98
|
} = _a,
|
|
94
99
|
props = __rest(_a, ["className"]);
|
|
95
|
-
return
|
|
100
|
+
return jsx(Dialog.Description, Object.assign({
|
|
96
101
|
"data-slot": "sheet-description",
|
|
97
102
|
className: cn("text-muted-foreground text-sm", className)
|
|
98
103
|
}, props));
|