@clasing/ui 0.1.123 → 0.1.124
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/badge-BnerQ2lF.js +85 -0
- package/dist/badge-Czof3oqL.cjs +1 -0
- package/dist/button-Cegl49Yi.cjs +1 -0
- package/dist/button-DddHyyHa.js +504 -0
- package/dist/calendar-BAQkzm4v.js +117 -0
- package/dist/calendar-DL8gqdRp.cjs +1 -0
- package/dist/card-BCgtou88.cjs +1 -0
- package/dist/card-BfBXE5Kq.js +90 -0
- package/dist/chip-A32aAc-8.cjs +1 -0
- package/dist/chip-ZZHZ8i1Q.js +127 -0
- package/dist/command-BGCSJ9vX.js +506 -0
- package/dist/command-D9M8dk1M.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -0
- package/dist/components/accordion.es.js +70 -0
- package/dist/components/alert-dialog.cjs.js +1 -0
- package/dist/components/alert-dialog.es.js +146 -0
- package/dist/components/alert.cjs.js +1 -0
- package/dist/components/alert.es.js +97 -0
- package/dist/components/avatar.cjs.js +1 -0
- package/dist/components/avatar.es.js +53 -0
- package/dist/components/badge.cjs.js +1 -0
- package/dist/components/badge.es.js +4 -0
- package/dist/components/blocks/date-picker.cjs.js +1 -0
- package/dist/components/blocks/date-picker.es.js +181 -0
- package/dist/components/blocks/date-range-picker.cjs.js +1 -0
- package/dist/components/blocks/date-range-picker.es.js +238 -0
- package/dist/components/blocks/interactive-card.cjs.js +1 -0
- package/dist/components/blocks/interactive-card.es.js +138 -0
- package/dist/components/blocks/selectable-chips.cjs.js +1 -0
- package/dist/components/blocks/selectable-chips.es.js +57 -0
- package/dist/components/breadcrumb.cjs.js +1 -0
- package/dist/components/breadcrumb.es.js +106 -0
- package/dist/components/button.cjs.js +1 -0
- package/dist/components/button.es.js +7 -0
- package/dist/components/calendar.cjs.js +1 -0
- package/dist/components/calendar.es.js +4 -0
- package/dist/components/card.cjs.js +1 -0
- package/dist/components/card.es.js +10 -0
- package/dist/components/chart.cjs.js +7 -0
- package/dist/components/chart.es.js +213 -0
- package/dist/components/checkbox.cjs.js +1 -0
- package/dist/components/checkbox.es.js +31 -0
- package/dist/components/chip.cjs.js +1 -0
- package/dist/components/chip.es.js +5 -0
- package/dist/components/collapsible.cjs.js +1 -0
- package/dist/components/collapsible.es.js +34 -0
- package/dist/components/command.cjs.js +1 -0
- package/dist/components/command.es.js +12 -0
- package/dist/components/context-menu.cjs.js +1 -0
- package/dist/components/context-menu.es.js +229 -0
- package/dist/components/dialog.cjs.js +1 -0
- package/dist/components/dialog.es.js +13 -0
- package/dist/components/divider.cjs.js +1 -0
- package/dist/components/divider.es.js +21 -0
- package/dist/components/drawer.cjs.js +3 -0
- package/dist/components/drawer.es.js +1161 -0
- package/dist/components/dropdown-menu.cjs.js +1 -0
- package/dist/components/dropdown-menu.es.js +237 -0
- package/dist/components/hover-card.cjs.js +1 -0
- package/dist/components/hover-card.es.js +38 -0
- package/dist/components/icon-component.cjs.js +1 -0
- package/dist/components/icon-component.es.js +4 -0
- package/dist/components/input-otp.cjs.js +20 -0
- package/dist/components/input-otp.es.js +253 -0
- package/dist/components/input.cjs.js +1 -0
- package/dist/components/input.es.js +4 -0
- package/dist/components/label.cjs.js +1 -0
- package/dist/components/label.es.js +4 -0
- package/dist/components/menubar.cjs.js +1 -0
- package/dist/components/menubar.es.js +257 -0
- package/dist/components/multi-select.cjs.js +1 -0
- package/dist/components/multi-select.es.js +233 -0
- package/dist/components/navigation-menu.cjs.js +1 -0
- package/dist/components/navigation-menu.es.js +171 -0
- package/dist/components/phone-input.cjs.js +1 -0
- package/dist/components/phone-input.es.js +253 -0
- package/dist/components/popover.cjs.js +1 -0
- package/dist/components/popover.es.js +7 -0
- package/dist/components/progress.cjs.js +1 -0
- package/dist/components/progress.es.js +31 -0
- package/dist/components/resizable.cjs.js +1 -0
- package/dist/components/resizable.es.js +1551 -0
- package/dist/components/scroll-area.cjs.js +1 -0
- package/dist/components/scroll-area.es.js +5 -0
- package/dist/components/select.cjs.js +1 -0
- package/dist/components/select.es.js +179 -0
- package/dist/components/sheet.cjs.js +1 -0
- package/dist/components/sheet.es.js +126 -0
- package/dist/components/skeleton.cjs.js +1 -0
- package/dist/components/skeleton.es.js +15 -0
- package/dist/components/slider.cjs.js +1 -0
- package/dist/components/slider.es.js +63 -0
- package/dist/components/sonner.cjs.js +1 -0
- package/dist/components/sonner.es.js +68 -0
- package/dist/components/switch.cjs.js +1 -0
- package/dist/components/switch.es.js +82 -0
- package/dist/components/table.cjs.js +1 -0
- package/dist/components/table.es.js +114 -0
- package/dist/components/toggle-group.cjs.js +1 -0
- package/dist/components/toggle-group.es.js +62 -0
- package/dist/components/toggle.cjs.js +1 -0
- package/dist/components/toggle.es.js +5 -0
- package/dist/components/tooltip.cjs.js +1 -0
- package/dist/components/tooltip.es.js +7 -0
- package/dist/dialog-BKm2PZl2.cjs +1 -0
- package/dist/dialog-DZpF7OXg.js +136 -0
- package/dist/hooks/useOutsideClick.cjs.js +1 -0
- package/dist/hooks/useOutsideClick.es.js +14 -0
- package/dist/icon-component-BZ-4FDV6.js +49 -0
- package/dist/icon-component-LY_vGYHZ.cjs +1 -0
- package/dist/index-BqtVL8d-.js +34 -0
- package/dist/index-C8P6Mn4U.cjs +1 -0
- package/dist/index-CRiPKpXj.js +2743 -0
- package/dist/index-DoxiiusW.cjs +1 -0
- package/dist/input-DFPJ_mtM.cjs +1 -0
- package/dist/input-DwPDvbRE.js +174 -0
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/jsx-runtime-DUiatUiq.cjs +22 -0
- package/dist/label-BpDUqtrC.js +22 -0
- package/dist/label-CbzkBbPT.cjs +1 -0
- package/dist/popover-B8wp2cHF.cjs +1 -0
- package/dist/popover-BoDRCUh2.js +44 -0
- package/dist/scroll-area-CNsThIs_.js +60 -0
- package/dist/scroll-area-Dr-7opp_.cjs +1 -0
- package/dist/style-BNIXVvBA.js +1172 -0
- package/dist/style-CA5976Oh.cjs +1 -0
- package/dist/toggle-Dgd7L2Mq.cjs +1 -0
- package/dist/toggle-DjbiWYXD.js +44 -0
- package/dist/tooltip-Btr9ROSo.js +55 -0
- package/dist/tooltip-W9iE1O--.cjs +1 -0
- package/dist/ui.css +427 -16
- package/dist/utils/types.cjs.js +1 -0
- package/dist/utils/types.es.js +1 -0
- package/package.json +299 -37
- package/dist/index.d.ts +0 -566
- package/dist/index.es.js +0 -7538
- package/dist/index.umd.js +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../scroll-area-Dr-7opp_.cjs");exports.ScrollArea=r.ScrollArea;exports.ScrollBar=r.ScrollBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-DUiatUiq.cjs"),d=require("@radix-ui/react-select"),r=require("../index-DoxiiusW.cjs"),l=require("../icon-component-LY_vGYHZ.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const n=u(d);function x({...e}){return t.jsxRuntimeExports.jsx(n.Root,{"data-slot":"select",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(n.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(n.Value,{"data-slot":"select-value",...e})}function g({className:e,size:s="md",children:o,...a}){return t.jsxRuntimeExports.jsxs(n.Trigger,{"data-slot":"select-trigger","data-size":s,className:r.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 whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *: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",s==="xs"&&'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"text-label-md h-8 px-2 py-1",s==="md"&&"text-label-lg h-12 px-3 py-1",s==="lg"&&"text-label-xl h-16 px-4 py-2",e),...a,children:[o,t.jsxRuntimeExports.jsx(n.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",className:"size-4 opacity-50"})})]})}function f({className:e,children:s,position:o="popper",...a}){return t.jsxRuntimeExports.jsx(n.Portal,{children:t.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"select-content",className:r.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",o==="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",e),position:o,...a,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(n.Viewport,{className:r.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function j({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Label,{"data-slot":"select-label",className:r.cn("text-muted-foreground px-2 py-1.5 text-xs",e),...s})}function b({className:e,children:s,...o}){return t.jsxRuntimeExports.jsxs(n.Item,{"data-slot":"select-item",className:r.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",e),...o,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(n.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),t.jsxRuntimeExports.jsx(n.ItemText,{children:s})]})}function v({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Separator,{"data-slot":"select-separator",className:r.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronUp",className:"size-4"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",className:"size-4"})})}exports.Select=x;exports.SelectContent=f;exports.SelectGroup=p;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as s from "@radix-ui/react-select";
|
|
3
|
+
import { c as o } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as n } from "../icon-component-BZ-4FDV6.js";
|
|
5
|
+
function m({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e.jsx(s.Root, { "data-slot": "select", ...t });
|
|
9
|
+
}
|
|
10
|
+
function x({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e.jsx(s.Group, { "data-slot": "select-group", ...t });
|
|
14
|
+
}
|
|
15
|
+
function f({
|
|
16
|
+
...t
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ e.jsx(s.Value, { "data-slot": "select-value", ...t });
|
|
19
|
+
}
|
|
20
|
+
function g({
|
|
21
|
+
className: t,
|
|
22
|
+
size: a = "md",
|
|
23
|
+
children: r,
|
|
24
|
+
...l
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ e.jsxs(
|
|
27
|
+
s.Trigger,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "select-trigger",
|
|
30
|
+
"data-size": a,
|
|
31
|
+
className: o(
|
|
32
|
+
"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 whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *: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",
|
|
33
|
+
a === "xs" && 'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
|
|
34
|
+
a === "sm" && "text-label-md h-8 px-2 py-1",
|
|
35
|
+
a === "md" && "text-label-lg h-12 px-3 py-1",
|
|
36
|
+
a === "lg" && "text-label-xl h-16 px-4 py-2",
|
|
37
|
+
t
|
|
38
|
+
),
|
|
39
|
+
...l,
|
|
40
|
+
children: [
|
|
41
|
+
r,
|
|
42
|
+
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
43
|
+
n,
|
|
44
|
+
{
|
|
45
|
+
iconName: "IconChevronDown",
|
|
46
|
+
className: "size-4 opacity-50"
|
|
47
|
+
}
|
|
48
|
+
) })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function v({
|
|
54
|
+
className: t,
|
|
55
|
+
children: a,
|
|
56
|
+
position: r = "popper",
|
|
57
|
+
...l
|
|
58
|
+
}) {
|
|
59
|
+
return /* @__PURE__ */ e.jsx(s.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
60
|
+
s.Content,
|
|
61
|
+
{
|
|
62
|
+
"data-slot": "select-content",
|
|
63
|
+
className: o(
|
|
64
|
+
"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",
|
|
65
|
+
r === "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",
|
|
66
|
+
t
|
|
67
|
+
),
|
|
68
|
+
position: r,
|
|
69
|
+
...l,
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e.jsx(i, {}),
|
|
72
|
+
/* @__PURE__ */ e.jsx(
|
|
73
|
+
s.Viewport,
|
|
74
|
+
{
|
|
75
|
+
className: o(
|
|
76
|
+
"p-1",
|
|
77
|
+
r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
78
|
+
),
|
|
79
|
+
children: a
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ e.jsx(c, {})
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
) });
|
|
86
|
+
}
|
|
87
|
+
function h({
|
|
88
|
+
className: t,
|
|
89
|
+
...a
|
|
90
|
+
}) {
|
|
91
|
+
return /* @__PURE__ */ e.jsx(
|
|
92
|
+
s.Label,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "select-label",
|
|
95
|
+
className: o("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
96
|
+
...a
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function b({
|
|
101
|
+
className: t,
|
|
102
|
+
children: a,
|
|
103
|
+
...r
|
|
104
|
+
}) {
|
|
105
|
+
return /* @__PURE__ */ e.jsxs(
|
|
106
|
+
s.Item,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "select-item",
|
|
109
|
+
className: o(
|
|
110
|
+
"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",
|
|
111
|
+
t
|
|
112
|
+
),
|
|
113
|
+
...r,
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(n, { iconName: "IconCheck", className: "size-4" }) }) }),
|
|
116
|
+
/* @__PURE__ */ e.jsx(s.ItemText, { children: a })
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
function j({
|
|
122
|
+
className: t,
|
|
123
|
+
...a
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ e.jsx(
|
|
126
|
+
s.Separator,
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "select-separator",
|
|
129
|
+
className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
130
|
+
...a
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function i({
|
|
135
|
+
className: t,
|
|
136
|
+
...a
|
|
137
|
+
}) {
|
|
138
|
+
return /* @__PURE__ */ e.jsx(
|
|
139
|
+
s.ScrollUpButton,
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "select-scroll-up-button",
|
|
142
|
+
className: o(
|
|
143
|
+
"flex cursor-default items-center justify-center py-1",
|
|
144
|
+
t
|
|
145
|
+
),
|
|
146
|
+
...a,
|
|
147
|
+
children: /* @__PURE__ */ e.jsx(n, { iconName: "IconChevronUp", className: "size-4" })
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
function c({
|
|
152
|
+
className: t,
|
|
153
|
+
...a
|
|
154
|
+
}) {
|
|
155
|
+
return /* @__PURE__ */ e.jsx(
|
|
156
|
+
s.ScrollDownButton,
|
|
157
|
+
{
|
|
158
|
+
"data-slot": "select-scroll-down-button",
|
|
159
|
+
className: o(
|
|
160
|
+
"flex cursor-default items-center justify-center py-1",
|
|
161
|
+
t
|
|
162
|
+
),
|
|
163
|
+
...a,
|
|
164
|
+
children: /* @__PURE__ */ e.jsx(n, { iconName: "IconChevronDown", className: "size-4" })
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
m as Select,
|
|
170
|
+
v as SelectContent,
|
|
171
|
+
x as SelectGroup,
|
|
172
|
+
b as SelectItem,
|
|
173
|
+
h as SelectLabel,
|
|
174
|
+
c as SelectScrollDownButton,
|
|
175
|
+
i as SelectScrollUpButton,
|
|
176
|
+
j as SelectSeparator,
|
|
177
|
+
g as SelectTrigger,
|
|
178
|
+
f as SelectValue
|
|
179
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-DUiatUiq.cjs"),i=require("@radix-ui/react-dialog"),a=require("../index-DoxiiusW.cjs"),l=require("../icon-component-LY_vGYHZ.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const n=d(i);function c({...t}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"sheet",...t})}function u({...t}){return o.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"sheet-trigger",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(n.Close,{"data-slot":"sheet-close",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"sheet-portal",...t})}function p({className:t,...e}){return o.jsxRuntimeExports.jsx(n.Overlay,{"data-slot":"sheet-overlay",className:a.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",t),...e})}function f({className:t,children:e,side:s="right",...r}){return o.jsxRuntimeExports.jsxs(m,{children:[o.jsxRuntimeExports.jsx(p,{}),o.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"sheet-content",className:a.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",s==="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",s==="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",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxRuntimeExports.jsxs(n.Close,{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",children:[o.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconX",className:"size-4"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:a.cn("flex flex-col gap-1.5 p-4",t),...e})}function g({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:a.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx(n.Title,{"data-slot":"sheet-title",className:a.cn("text-foreground font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(n.Description,{"data-slot":"sheet-description",className:a.cn("text-muted-foreground text-sm",t),...e})}exports.Sheet=c;exports.SheetClose=x;exports.SheetContent=f;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetTitle=j;exports.SheetTrigger=u;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as a from "@radix-ui/react-dialog";
|
|
3
|
+
import { c as s } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as i } from "../icon-component-BZ-4FDV6.js";
|
|
5
|
+
function m({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t });
|
|
7
|
+
}
|
|
8
|
+
function h({
|
|
9
|
+
...t
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ e.jsx(a.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
12
|
+
}
|
|
13
|
+
function p({
|
|
14
|
+
...t
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ e.jsx(a.Close, { "data-slot": "sheet-close", ...t });
|
|
17
|
+
}
|
|
18
|
+
function l({
|
|
19
|
+
...t
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ e.jsx(a.Portal, { "data-slot": "sheet-portal", ...t });
|
|
22
|
+
}
|
|
23
|
+
function d({
|
|
24
|
+
className: t,
|
|
25
|
+
...o
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ e.jsx(
|
|
28
|
+
a.Overlay,
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "sheet-overlay",
|
|
31
|
+
className: s(
|
|
32
|
+
"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",
|
|
33
|
+
t
|
|
34
|
+
),
|
|
35
|
+
...o
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function x({
|
|
40
|
+
className: t,
|
|
41
|
+
children: o,
|
|
42
|
+
side: n = "right",
|
|
43
|
+
...r
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
46
|
+
/* @__PURE__ */ e.jsx(d, {}),
|
|
47
|
+
/* @__PURE__ */ e.jsxs(
|
|
48
|
+
a.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "sheet-content",
|
|
51
|
+
className: s(
|
|
52
|
+
"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",
|
|
53
|
+
n === "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",
|
|
54
|
+
n === "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",
|
|
55
|
+
n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
56
|
+
n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
57
|
+
t
|
|
58
|
+
),
|
|
59
|
+
...r,
|
|
60
|
+
children: [
|
|
61
|
+
o,
|
|
62
|
+
/* @__PURE__ */ e.jsxs(a.Close, { 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", children: [
|
|
63
|
+
/* @__PURE__ */ e.jsx(i, { iconName: "IconX", className: "size-4" }),
|
|
64
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
function g({ className: t, ...o }) {
|
|
72
|
+
return /* @__PURE__ */ e.jsx(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "sheet-header",
|
|
76
|
+
className: s("flex flex-col gap-1.5 p-4", t),
|
|
77
|
+
...o
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function b({ className: t, ...o }) {
|
|
82
|
+
return /* @__PURE__ */ e.jsx(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "sheet-footer",
|
|
86
|
+
className: s("mt-auto flex flex-col gap-2 p-4", t),
|
|
87
|
+
...o
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function j({
|
|
92
|
+
className: t,
|
|
93
|
+
...o
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ e.jsx(
|
|
96
|
+
a.Title,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "sheet-title",
|
|
99
|
+
className: s("text-foreground font-semibold", t),
|
|
100
|
+
...o
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function y({
|
|
105
|
+
className: t,
|
|
106
|
+
...o
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ e.jsx(
|
|
109
|
+
a.Description,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "sheet-description",
|
|
112
|
+
className: s("text-muted-foreground text-sm", t),
|
|
113
|
+
...o
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
m as Sheet,
|
|
119
|
+
p as SheetClose,
|
|
120
|
+
x as SheetContent,
|
|
121
|
+
y as SheetDescription,
|
|
122
|
+
b as SheetFooter,
|
|
123
|
+
g as SheetHeader,
|
|
124
|
+
j as SheetTitle,
|
|
125
|
+
h as SheetTrigger
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),o=require("../index-DoxiiusW.cjs");function s({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:o.cn("bg-accent animate-pulse rounded-md",e),...t})}exports.Skeleton=s;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as n } from "../index-CRiPKpXj.js";
|
|
3
|
+
function r({ className: t, ...e }) {
|
|
4
|
+
return /* @__PURE__ */ o.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "skeleton",
|
|
8
|
+
className: n("bg-accent animate-pulse rounded-md", t),
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
r as Skeleton
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-DUiatUiq.cjs"),b=require("@radix-ui/react-slider"),f=require("react"),s=require("../index-DoxiiusW.cjs");function l(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const n=l(b),h=l(f);function m({className:r,defaultValue:t,value:e,min:i=0,max:a=100,...c}){const d=h.useMemo(()=>Array.isArray(e)?e:Array.isArray(t)?t:[i,a],[e,t,i,a]);return o.jsxRuntimeExports.jsxs(n.Root,{"data-slot":"slider",defaultValue:t,value:e,min:i,max:a,className:s.cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...c,children:[o.jsxRuntimeExports.jsx(n.Track,{"data-slot":"slider-track",className:s.cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:o.jsxRuntimeExports.jsx(n.Range,{"data-slot":"slider-range",className:s.cn("bg-secondary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(g,u)=>o.jsxRuntimeExports.jsx(n.Thumb,{"data-slot":"slider-thumb",className:"border-secondary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},u))]})}exports.Slider=m;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as a from "@radix-ui/react-slider";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import { c as n } from "../index-CRiPKpXj.js";
|
|
5
|
+
function u({
|
|
6
|
+
className: l,
|
|
7
|
+
defaultValue: t,
|
|
8
|
+
value: r,
|
|
9
|
+
min: i = 0,
|
|
10
|
+
max: e = 100,
|
|
11
|
+
...s
|
|
12
|
+
}) {
|
|
13
|
+
const d = h.useMemo(
|
|
14
|
+
() => Array.isArray(r) ? r : Array.isArray(t) ? t : [i, e],
|
|
15
|
+
[r, t, i, e]
|
|
16
|
+
);
|
|
17
|
+
return /* @__PURE__ */ o.jsxs(
|
|
18
|
+
a.Root,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "slider",
|
|
21
|
+
defaultValue: t,
|
|
22
|
+
value: r,
|
|
23
|
+
min: i,
|
|
24
|
+
max: e,
|
|
25
|
+
className: n(
|
|
26
|
+
"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
|
|
27
|
+
l
|
|
28
|
+
),
|
|
29
|
+
...s,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ o.jsx(
|
|
32
|
+
a.Track,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "slider-track",
|
|
35
|
+
className: n(
|
|
36
|
+
"bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
37
|
+
),
|
|
38
|
+
children: /* @__PURE__ */ o.jsx(
|
|
39
|
+
a.Range,
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "slider-range",
|
|
42
|
+
className: n(
|
|
43
|
+
"bg-secondary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
Array.from({ length: d.length }, (m, c) => /* @__PURE__ */ o.jsx(
|
|
50
|
+
a.Thumb,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "slider-thumb",
|
|
53
|
+
className: "border-secondary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
54
|
+
},
|
|
55
|
+
c
|
|
56
|
+
))
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
u as Slider
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../jsx-runtime-DUiatUiq.cjs"),v=require("../index-DoxiiusW.cjs"),S=require("react"),w=require("sonner");function T(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const l=T(S);var j=(e,r,o,n,i,s,d,m)=>{let a=document.documentElement,g=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(u=>{let f=u==="class",y=f&&s?i.map(b=>s[b]||b):i;f?(a.classList.remove(...y),a.classList.add(s&&s[t]?s[t]:t)):a.setAttribute(u,t)}),p(t)}function p(t){m&&g.includes(t)&&(a.style.colorScheme=t)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)c(n);else try{let t=localStorage.getItem(r)||o,u=d&&t==="system"?h():t;c(u)}catch{}},O=l.createContext(void 0),k={setTheme:e=>{},themes:[]},M=()=>{var e;return(e=l.useContext(O))!=null?e:k};l.memo(({forcedTheme:e,storageKey:r,attribute:o,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:d,themes:m,nonce:a,scriptProps:g})=>{let c=JSON.stringify([o,r,s,e,m,d,n,i]).slice(1,-1);return l.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${j.toString()})(${c})`}})});const _=({...e})=>{const{theme:r="system"}=M();return x.jsxRuntimeExports.jsx(w.Toaster,{theme:r,className:"toaster group",toastOptions:{classNames:{toast:"rounded-2xl!",description:"text-muted-foreground!",actionButton:"bg-primary! rounded-full!",info:"bg-info-light! border-info-main/30! text-info-main!",success:v.cn("bg-success-light! border-success-main/30! text-success-main!"),warning:"bg-warning-light! border-warning-main/30! text-warning-main!",error:"bg-error-light! border-error-main/30! text-error-main!",cancelButton:"text-muted-foreground! bg-muted! rounded-full!",closeButton:"text-muted-foreground! bg-muted! rounded-full! border-border!",icon:"self-start mt-1"}},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=_;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { j as y } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as v } from "../index-CRiPKpXj.js";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { Toaster as w } from "sonner";
|
|
5
|
+
var S = (t, n, l, s, a, r, d, u) => {
|
|
6
|
+
let o = document.documentElement, g = ["light", "dark"];
|
|
7
|
+
function i(e) {
|
|
8
|
+
(Array.isArray(t) ? t : [t]).forEach((m) => {
|
|
9
|
+
let f = m === "class", x = f && r ? a.map((p) => r[p] || p) : a;
|
|
10
|
+
f ? (o.classList.remove(...x), o.classList.add(r && r[e] ? r[e] : e)) : o.setAttribute(m, e);
|
|
11
|
+
}), b(e);
|
|
12
|
+
}
|
|
13
|
+
function b(e) {
|
|
14
|
+
u && g.includes(e) && (o.style.colorScheme = e);
|
|
15
|
+
}
|
|
16
|
+
function h() {
|
|
17
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
18
|
+
}
|
|
19
|
+
if (s) i(s);
|
|
20
|
+
else try {
|
|
21
|
+
let e = localStorage.getItem(n) || l, m = d && e === "system" ? h() : e;
|
|
22
|
+
i(m);
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
}, T = c.createContext(void 0), k = { setTheme: (t) => {
|
|
26
|
+
}, themes: [] }, E = () => {
|
|
27
|
+
var t;
|
|
28
|
+
return (t = c.useContext(T)) != null ? t : k;
|
|
29
|
+
};
|
|
30
|
+
c.memo(({ forcedTheme: t, storageKey: n, attribute: l, enableSystem: s, enableColorScheme: a, defaultTheme: r, value: d, themes: u, nonce: o, scriptProps: g }) => {
|
|
31
|
+
let i = JSON.stringify([l, n, r, t, u, d, s, a]).slice(1, -1);
|
|
32
|
+
return c.createElement("script", { ...g, suppressHydrationWarning: !0, nonce: typeof window > "u" ? o : "", dangerouslySetInnerHTML: { __html: `(${S.toString()})(${i})` } });
|
|
33
|
+
});
|
|
34
|
+
const C = ({ ...t }) => {
|
|
35
|
+
const { theme: n = "system" } = E();
|
|
36
|
+
return /* @__PURE__ */ y.jsx(
|
|
37
|
+
w,
|
|
38
|
+
{
|
|
39
|
+
theme: n,
|
|
40
|
+
className: "toaster group",
|
|
41
|
+
toastOptions: {
|
|
42
|
+
classNames: {
|
|
43
|
+
toast: "rounded-2xl!",
|
|
44
|
+
description: "text-muted-foreground!",
|
|
45
|
+
actionButton: "bg-primary! rounded-full!",
|
|
46
|
+
info: "bg-info-light! border-info-main/30! text-info-main!",
|
|
47
|
+
success: v(
|
|
48
|
+
"bg-success-light! border-success-main/30! text-success-main!"
|
|
49
|
+
),
|
|
50
|
+
warning: "bg-warning-light! border-warning-main/30! text-warning-main!",
|
|
51
|
+
error: "bg-error-light! border-error-main/30! text-error-main!",
|
|
52
|
+
cancelButton: "text-muted-foreground! bg-muted! rounded-full!",
|
|
53
|
+
closeButton: "text-muted-foreground! bg-muted! rounded-full! border-border!",
|
|
54
|
+
icon: "self-start mt-1"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
"--normal-bg": "var(--popover)",
|
|
59
|
+
"--normal-text": "var(--popover-foreground)",
|
|
60
|
+
"--normal-border": "var(--border)"
|
|
61
|
+
},
|
|
62
|
+
...t
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
C as Toaster
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../jsx-runtime-DUiatUiq.cjs"),m=require("../index-DoxiiusW.cjs"),d=require("../index-C8P6Mn4U.cjs"),o=require("react"),g=d.cva("border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",{variants:{switchSize:{sm:"h-[18px] w-8",md:"h-[22px] w-11"}},defaultVariants:{switchSize:"md"}}),v=d.cva("data-[state=unchecked]:bg-neutral-000 pointer-events-none block rounded-full ring-0 transition-transform data-[state=checked]:bg-white data-[state=unchecked]:translate-x-px",{variants:{switchSize:{sm:"h-3.5 w-3.5 data-[state=checked]:translate-x-[15px]",md:"h-[18px] w-[18px] data-[state=checked]:translate-x-[23px]"}},defaultVariants:{switchSize:"md"}}),l=o.forwardRef(({className:h,defaultChecked:u,checked:n,onCheckedChange:f,disabled:s,switchSize:a,...k},w)=>{const[x,b]=o.useState(u||!1),c=n!==void 0,t=c?n:x,i=()=>{if(s)return;const e=!t;c||b(e),f?.(e)},p=e=>{(e.key===" "||e.key==="Enter")&&(e.preventDefault(),i())};return r.jsxRuntimeExports.jsx("button",{ref:w,type:"button",role:"switch","aria-checked":t,"data-state":t?"checked":"unchecked",onClick:i,onKeyDown:p,disabled:s,className:m.cn(g({switchSize:a,className:h})),...k,children:r.jsxRuntimeExports.jsx("span",{"data-state":t?"checked":"unchecked",className:v({switchSize:a})})})});l.displayName="Switch";exports.Switch=l;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as w } from "../index-CRiPKpXj.js";
|
|
3
|
+
import { c as r } from "../index-BqtVL8d-.js";
|
|
4
|
+
import { forwardRef as b, useState as x } from "react";
|
|
5
|
+
const g = r(
|
|
6
|
+
"border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
switchSize: {
|
|
10
|
+
sm: "h-[18px] w-8",
|
|
11
|
+
md: "h-[22px] w-11"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
switchSize: "md"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
), v = r(
|
|
19
|
+
"data-[state=unchecked]:bg-neutral-000 pointer-events-none block rounded-full ring-0 transition-transform data-[state=checked]:bg-white data-[state=unchecked]:translate-x-px",
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
switchSize: {
|
|
23
|
+
sm: "h-3.5 w-3.5 data-[state=checked]:translate-x-[15px]",
|
|
24
|
+
md: "h-[18px] w-[18px] data-[state=checked]:translate-x-[23px]"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
switchSize: "md"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
), y = b(
|
|
32
|
+
({
|
|
33
|
+
className: d,
|
|
34
|
+
defaultChecked: h,
|
|
35
|
+
checked: a,
|
|
36
|
+
onCheckedChange: l,
|
|
37
|
+
disabled: s,
|
|
38
|
+
switchSize: n,
|
|
39
|
+
...u
|
|
40
|
+
}, f) => {
|
|
41
|
+
const [m, p] = x(
|
|
42
|
+
h || !1
|
|
43
|
+
), c = a !== void 0, t = c ? a : m, i = () => {
|
|
44
|
+
if (s) return;
|
|
45
|
+
const e = !t;
|
|
46
|
+
c || p(e), l?.(e);
|
|
47
|
+
}, k = (e) => {
|
|
48
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), i());
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ o.jsx(
|
|
51
|
+
"button",
|
|
52
|
+
{
|
|
53
|
+
ref: f,
|
|
54
|
+
type: "button",
|
|
55
|
+
role: "switch",
|
|
56
|
+
"aria-checked": t,
|
|
57
|
+
"data-state": t ? "checked" : "unchecked",
|
|
58
|
+
onClick: i,
|
|
59
|
+
onKeyDown: k,
|
|
60
|
+
disabled: s,
|
|
61
|
+
className: w(
|
|
62
|
+
g({
|
|
63
|
+
switchSize: n,
|
|
64
|
+
className: d
|
|
65
|
+
})
|
|
66
|
+
),
|
|
67
|
+
...u,
|
|
68
|
+
children: /* @__PURE__ */ o.jsx(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
"data-state": t ? "checked" : "unchecked",
|
|
72
|
+
className: v({ switchSize: n })
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
y.displayName = "Switch";
|
|
80
|
+
export {
|
|
81
|
+
y as Switch
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-DUiatUiq.cjs"),o=require("../index-DoxiiusW.cjs");function l({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("w-full caption-bottom text-sm",t),...e})})}function r({className:t,...e}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",t),...e})}function s({className:t,...e}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",t),...e})}function n({className:t,...e}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...e})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.cn("text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function d({className:t,...e}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function i({className:t,...e}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground mt-4 text-sm",t),...e})}exports.Table=l;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=c;exports.TableHeader=r;exports.TableRow=b;
|