@clasing/ui 2.6.0 → 2.7.1
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-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-DNjJookC.cjs +35 -0
- package/dist/command-peXi2dFX.js +209 -0
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +70 -1
- package/dist/components/context-menu.es.js +95 -14
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +70 -1
- package/dist/components/dropdown-menu.es.js +133 -52
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +14 -2
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +74 -1
- package/dist/components/menubar.es.js +121 -36
- package/dist/components/multi-select.cjs.js +22 -1
- package/dist/components/multi-select.es.js +54 -27
- package/dist/components/navigation-menu.cjs.js +70 -1
- package/dist/components/navigation-menu.es.js +85 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +56 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +86 -27
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/dialog-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/{popover-BzUZg2od.js → popover-eQq2Is-I.js} +14 -2
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +210 -210
- package/package.json +32 -28
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-BIGg5o8m.js +0 -213
- package/dist/button-BsQuxg6u.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CGrOI2Z9.js +0 -169
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BdGPpUZ8.js +0 -82
- package/dist/input-DDgYyRSP.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-Cj78cvz1.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-CHBabriJ.js +0 -56
- package/dist/tooltip-Dd6ylN0m.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as d } from "../index-
|
|
1
|
+
import { j as t, c as d } from "../index-CwFDnnd3.js";
|
|
2
2
|
import { Drawer as e } from "vaul";
|
|
3
3
|
function c({
|
|
4
4
|
...r
|
|
@@ -10,7 +10,7 @@ function u({
|
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "drawer-trigger", ...r });
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function n({
|
|
14
14
|
...r
|
|
15
15
|
}) {
|
|
16
16
|
return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "drawer-portal", ...r });
|
|
@@ -20,7 +20,7 @@ function w({
|
|
|
20
20
|
}) {
|
|
21
21
|
return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "drawer-close", ...r });
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function i({
|
|
24
24
|
className: r,
|
|
25
25
|
...a
|
|
26
26
|
}) {
|
|
@@ -29,7 +29,11 @@ function n({
|
|
|
29
29
|
{
|
|
30
30
|
"data-slot": "drawer-overlay",
|
|
31
31
|
className: d(
|
|
32
|
-
|
|
32
|
+
`
|
|
33
|
+
fixed inset-0 z-50 bg-black/50
|
|
34
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
35
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
36
|
+
`,
|
|
33
37
|
r
|
|
34
38
|
),
|
|
35
39
|
...a
|
|
@@ -41,23 +45,60 @@ function m({
|
|
|
41
45
|
children: a,
|
|
42
46
|
...o
|
|
43
47
|
}) {
|
|
44
|
-
return /* @__PURE__ */ t.jsxs(
|
|
45
|
-
/* @__PURE__ */ t.jsx(
|
|
48
|
+
return /* @__PURE__ */ t.jsxs(n, { "data-slot": "drawer-portal", children: [
|
|
49
|
+
/* @__PURE__ */ t.jsx(i, {}),
|
|
46
50
|
/* @__PURE__ */ t.jsxs(
|
|
47
51
|
e.Content,
|
|
48
52
|
{
|
|
49
53
|
"data-slot": "drawer-content",
|
|
50
54
|
className: d(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
`
|
|
56
|
+
group/drawer-content fixed z-50 flex h-auto flex-col bg-background
|
|
57
|
+
text-foreground
|
|
58
|
+
`,
|
|
59
|
+
`
|
|
60
|
+
data-[vaul-drawer-direction=top]:inset-x-0
|
|
61
|
+
data-[vaul-drawer-direction=top]:top-0
|
|
62
|
+
data-[vaul-drawer-direction=top]:mb-24
|
|
63
|
+
data-[vaul-drawer-direction=top]:max-h-[80vh]
|
|
64
|
+
data-[vaul-drawer-direction=top]:rounded-b-lg
|
|
65
|
+
data-[vaul-drawer-direction=top]:border-b
|
|
66
|
+
`,
|
|
67
|
+
`
|
|
68
|
+
data-[vaul-drawer-direction=bottom]:inset-x-0
|
|
69
|
+
data-[vaul-drawer-direction=bottom]:bottom-0
|
|
70
|
+
data-[vaul-drawer-direction=bottom]:mt-24
|
|
71
|
+
data-[vaul-drawer-direction=bottom]:max-h-[80vh]
|
|
72
|
+
data-[vaul-drawer-direction=bottom]:rounded-t-lg
|
|
73
|
+
data-[vaul-drawer-direction=bottom]:border-t
|
|
74
|
+
`,
|
|
75
|
+
`
|
|
76
|
+
data-[vaul-drawer-direction=right]:inset-y-0
|
|
77
|
+
data-[vaul-drawer-direction=right]:right-0
|
|
78
|
+
data-[vaul-drawer-direction=right]:w-3/4
|
|
79
|
+
data-[vaul-drawer-direction=right]:border-l
|
|
80
|
+
data-[vaul-drawer-direction=right]:sm:max-w-sm
|
|
81
|
+
`,
|
|
82
|
+
`
|
|
83
|
+
data-[vaul-drawer-direction=left]:inset-y-0
|
|
84
|
+
data-[vaul-drawer-direction=left]:left-0
|
|
85
|
+
data-[vaul-drawer-direction=left]:w-3/4
|
|
86
|
+
data-[vaul-drawer-direction=left]:border-r
|
|
87
|
+
data-[vaul-drawer-direction=left]:sm:max-w-sm
|
|
88
|
+
`,
|
|
56
89
|
r
|
|
57
90
|
),
|
|
58
91
|
...o,
|
|
59
92
|
children: [
|
|
60
|
-
/* @__PURE__ */ t.jsx(
|
|
93
|
+
/* @__PURE__ */ t.jsx(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: `\r
|
|
97
|
+
mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted\r
|
|
98
|
+
group-data-[vaul-drawer-direction=bottom]/drawer-content:block\r
|
|
99
|
+
`
|
|
100
|
+
}
|
|
101
|
+
),
|
|
61
102
|
a
|
|
62
103
|
]
|
|
63
104
|
}
|
|
@@ -70,7 +111,12 @@ function x({ className: r, ...a }) {
|
|
|
70
111
|
{
|
|
71
112
|
"data-slot": "drawer-header",
|
|
72
113
|
className: d(
|
|
73
|
-
|
|
114
|
+
`
|
|
115
|
+
flex flex-col gap-0.5 p-4
|
|
116
|
+
group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
|
|
117
|
+
group-data-[vaul-drawer-direction=top]/drawer-content:text-center
|
|
118
|
+
md:gap-1.5 md:text-left
|
|
119
|
+
`,
|
|
74
120
|
r
|
|
75
121
|
),
|
|
76
122
|
...a
|
|
@@ -95,7 +141,7 @@ function v({
|
|
|
95
141
|
e.Title,
|
|
96
142
|
{
|
|
97
143
|
"data-slot": "drawer-title",
|
|
98
|
-
className: d("text-foreground
|
|
144
|
+
className: d("font-semibold text-foreground", r),
|
|
99
145
|
...a
|
|
100
146
|
}
|
|
101
147
|
);
|
|
@@ -108,7 +154,7 @@ function p({
|
|
|
108
154
|
e.Description,
|
|
109
155
|
{
|
|
110
156
|
"data-slot": "drawer-description",
|
|
111
|
-
className: d("text-muted-foreground
|
|
157
|
+
className: d("paragraph-sm text-muted-foreground", r),
|
|
112
158
|
...a
|
|
113
159
|
}
|
|
114
160
|
);
|
|
@@ -120,8 +166,8 @@ export {
|
|
|
120
166
|
p as DrawerDescription,
|
|
121
167
|
f as DrawerFooter,
|
|
122
168
|
x as DrawerHeader,
|
|
123
|
-
|
|
124
|
-
|
|
169
|
+
i as DrawerOverlay,
|
|
170
|
+
n as DrawerPortal,
|
|
125
171
|
v as DrawerTitle,
|
|
126
172
|
u as DrawerTrigger
|
|
127
173
|
};
|
|
@@ -1 +1,70 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-Bfismeyo.cjs"),d=require("@radix-ui/react-dropdown-menu"),s=require("@phosphor-icons/react");function i(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const o=i(d);function u({...e}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dropdown-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function c({...e}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function l({className:e,sideOffset:n=4,collisionPadding:r=24,...a}){return t.jsxRuntimeExports.jsx(o.Portal,{children:t.jsxRuntimeExports.jsx(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:t.cn(`
|
|
2
|
+
z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32
|
|
3
|
+
origin-(--radix-dropdown-menu-content-transform-origin)
|
|
4
|
+
overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1
|
|
5
|
+
text-popover-foreground shadow-md
|
|
6
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
7
|
+
data-[side=left]:slide-in-from-right-2
|
|
8
|
+
data-[side=right]:slide-in-from-left-2
|
|
9
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
10
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
11
|
+
data-[state=closed]:zoom-out-95
|
|
12
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
13
|
+
data-[state=open]:zoom-in-95
|
|
14
|
+
`,e),collisionPadding:r,...a})})}function m({...e}){return t.jsxRuntimeExports.jsx(o.Group,{"data-slot":"dropdown-menu-group",...e})}function x({className:e,inset:n,variant:r="default",...a}){return t.jsxRuntimeExports.jsx(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:t.cn(`
|
|
15
|
+
relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
16
|
+
paragraph-sm outline-hidden select-none
|
|
17
|
+
focus:bg-accent focus:text-accent-foreground
|
|
18
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
19
|
+
data-inset:pl-8
|
|
20
|
+
data-[variant=destructive]:text-destructive-foreground
|
|
21
|
+
data-[variant=destructive]:focus:bg-destructive
|
|
22
|
+
data-[variant=destructive]:focus:text-destructive-foreground
|
|
23
|
+
dark:data-[variant=destructive]:focus:bg-destructive
|
|
24
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
25
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
26
|
+
data-[variant=destructive]:*:[svg]:text-destructive!
|
|
27
|
+
`,e),...a})}function f({className:e,children:n,checked:r,...a}){return t.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:t.cn(`
|
|
28
|
+
relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2
|
|
29
|
+
pl-8 paragraph-sm outline-hidden select-none
|
|
30
|
+
focus:bg-accent focus:text-accent-foreground
|
|
31
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
32
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
33
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
34
|
+
`,e),checked:r,...a,children:[t.jsxRuntimeExports.jsx("span",{className:`\r
|
|
35
|
+
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
36
|
+
justify-center\r
|
|
37
|
+
`,children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.CheckIcon,{className:"size-4"})})}),n]})}function g({...e}){return t.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function w({className:e,children:n,...r}){return t.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:t.cn(`
|
|
38
|
+
relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2
|
|
39
|
+
pl-8 paragraph-sm outline-hidden select-none
|
|
40
|
+
focus:bg-accent focus:text-accent-foreground
|
|
41
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
42
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
43
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
44
|
+
`,e),...r,children:[t.jsxRuntimeExports.jsx("span",{className:`\r
|
|
45
|
+
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
46
|
+
justify-center\r
|
|
47
|
+
`,children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(s.CircleIcon,{weight:"fill",className:"size-2 fill-current"})})}),n]})}function b({className:e,inset:n,...r}){return t.jsxRuntimeExports.jsx(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:t.cn(`
|
|
48
|
+
px-2 py-1.5 paragraph-sm font-semibold
|
|
49
|
+
data-inset:pl-8
|
|
50
|
+
`,e),...r})}function v({className:e,...n}){return t.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"dropdown-menu-separator",className:t.cn("-mx-1 my-1 h-px bg-border",e),...n})}function j({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:t.cn("ml-auto paragraph-xs tracking-widest text-muted-foreground",e),...n})}function h({...e}){return t.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function D({className:e,inset:n,children:r,...a}){return t.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:t.cn(`
|
|
51
|
+
relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
52
|
+
paragraph-sm outline-hidden select-none
|
|
53
|
+
focus:bg-accent focus:text-accent-foreground
|
|
54
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
55
|
+
data-inset:pl-8
|
|
56
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
57
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
58
|
+
`,e),...a,children:[r,t.jsxRuntimeExports.jsx(s.CaretRightIcon,{className:"ml-auto size-4"})]})}function M({className:e,...n}){return t.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:t.cn(`
|
|
59
|
+
z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin)
|
|
60
|
+
overflow-hidden rounded-md border bg-popover p-1
|
|
61
|
+
text-popover-foreground shadow-lg
|
|
62
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
63
|
+
data-[side=left]:slide-in-from-right-2
|
|
64
|
+
data-[side=right]:slide-in-from-left-2
|
|
65
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
66
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
67
|
+
data-[state=closed]:zoom-out-95
|
|
68
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
69
|
+
data-[state=open]:zoom-in-95
|
|
70
|
+
`,e),...n})}exports.DropdownMenu=u;exports.DropdownMenuCheckboxItem=f;exports.DropdownMenuContent=l;exports.DropdownMenuGroup=m;exports.DropdownMenuItem=x;exports.DropdownMenuLabel=b;exports.DropdownMenuPortal=p;exports.DropdownMenuRadioGroup=g;exports.DropdownMenuRadioItem=w;exports.DropdownMenuSeparator=v;exports.DropdownMenuShortcut=j;exports.DropdownMenuSub=h;exports.DropdownMenuSubContent=M;exports.DropdownMenuSubTrigger=D;exports.DropdownMenuTrigger=c;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { j as t, c as r } from "../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { j as t, c as r } from "../index-CwFDnnd3.js";
|
|
2
|
+
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import { CheckIcon as d, CircleIcon as i, CaretRightIcon as u } from "@phosphor-icons/react";
|
|
4
4
|
function p({
|
|
5
5
|
...e
|
|
6
6
|
}) {
|
|
7
|
-
return /* @__PURE__ */ t.jsx(
|
|
7
|
+
return /* @__PURE__ */ t.jsx(o.Root, { "data-slot": "dropdown-menu", ...e });
|
|
8
8
|
}
|
|
9
9
|
function m({
|
|
10
10
|
...e
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ t.jsx(
|
|
12
|
+
return /* @__PURE__ */ t.jsx(o.Portal, { "data-slot": "dropdown-menu-portal", ...e });
|
|
13
13
|
}
|
|
14
14
|
function f({
|
|
15
15
|
...e
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t.jsx(
|
|
18
|
-
|
|
18
|
+
o.Trigger,
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "dropdown-menu-trigger",
|
|
21
21
|
...e
|
|
@@ -24,17 +24,30 @@ function f({
|
|
|
24
24
|
}
|
|
25
25
|
function g({
|
|
26
26
|
className: e,
|
|
27
|
-
sideOffset:
|
|
27
|
+
sideOffset: n = 4,
|
|
28
28
|
collisionPadding: a = 24,
|
|
29
29
|
...s
|
|
30
30
|
}) {
|
|
31
|
-
return /* @__PURE__ */ t.jsx(
|
|
32
|
-
|
|
31
|
+
return /* @__PURE__ */ t.jsx(o.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
32
|
+
o.Content,
|
|
33
33
|
{
|
|
34
34
|
"data-slot": "dropdown-menu-content",
|
|
35
|
-
sideOffset:
|
|
35
|
+
sideOffset: n,
|
|
36
36
|
className: r(
|
|
37
|
-
|
|
37
|
+
`
|
|
38
|
+
z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32
|
|
39
|
+
origin-(--radix-dropdown-menu-content-transform-origin)
|
|
40
|
+
overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1
|
|
41
|
+
text-popover-foreground shadow-md
|
|
42
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
43
|
+
data-[side=left]:slide-in-from-right-2
|
|
44
|
+
data-[side=right]:slide-in-from-left-2
|
|
45
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
46
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
47
|
+
data-[state=closed]:zoom-out-95
|
|
48
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
49
|
+
data-[state=open]:zoom-in-95
|
|
50
|
+
`,
|
|
38
51
|
e
|
|
39
52
|
),
|
|
40
53
|
collisionPadding: a,
|
|
@@ -45,56 +58,85 @@ function g({
|
|
|
45
58
|
function x({
|
|
46
59
|
...e
|
|
47
60
|
}) {
|
|
48
|
-
return /* @__PURE__ */ t.jsx(
|
|
61
|
+
return /* @__PURE__ */ t.jsx(o.Group, { "data-slot": "dropdown-menu-group", ...e });
|
|
49
62
|
}
|
|
50
63
|
function v({
|
|
51
64
|
className: e,
|
|
52
|
-
inset:
|
|
65
|
+
inset: n,
|
|
53
66
|
variant: a = "default",
|
|
54
67
|
...s
|
|
55
68
|
}) {
|
|
56
69
|
return /* @__PURE__ */ t.jsx(
|
|
57
|
-
|
|
70
|
+
o.Item,
|
|
58
71
|
{
|
|
59
72
|
"data-slot": "dropdown-menu-item",
|
|
60
|
-
"data-inset":
|
|
73
|
+
"data-inset": n,
|
|
61
74
|
"data-variant": a,
|
|
62
75
|
className: r(
|
|
63
|
-
|
|
76
|
+
`
|
|
77
|
+
relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
78
|
+
paragraph-sm outline-hidden select-none
|
|
79
|
+
focus:bg-accent focus:text-accent-foreground
|
|
80
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
81
|
+
data-inset:pl-8
|
|
82
|
+
data-[variant=destructive]:text-destructive-foreground
|
|
83
|
+
data-[variant=destructive]:focus:bg-destructive
|
|
84
|
+
data-[variant=destructive]:focus:text-destructive-foreground
|
|
85
|
+
dark:data-[variant=destructive]:focus:bg-destructive
|
|
86
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
87
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
88
|
+
data-[variant=destructive]:*:[svg]:text-destructive!
|
|
89
|
+
`,
|
|
64
90
|
e
|
|
65
91
|
),
|
|
66
92
|
...s
|
|
67
93
|
}
|
|
68
94
|
);
|
|
69
95
|
}
|
|
70
|
-
function
|
|
96
|
+
function b({
|
|
71
97
|
className: e,
|
|
72
|
-
children:
|
|
98
|
+
children: n,
|
|
73
99
|
checked: a,
|
|
74
100
|
...s
|
|
75
101
|
}) {
|
|
76
102
|
return /* @__PURE__ */ t.jsxs(
|
|
77
|
-
|
|
103
|
+
o.CheckboxItem,
|
|
78
104
|
{
|
|
79
105
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
80
106
|
className: r(
|
|
81
|
-
|
|
107
|
+
`
|
|
108
|
+
relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2
|
|
109
|
+
pl-8 paragraph-sm outline-hidden select-none
|
|
110
|
+
focus:bg-accent focus:text-accent-foreground
|
|
111
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
112
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
113
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
114
|
+
`,
|
|
82
115
|
e
|
|
83
116
|
),
|
|
84
117
|
checked: a,
|
|
85
118
|
...s,
|
|
86
119
|
children: [
|
|
87
|
-
/* @__PURE__ */ t.jsx(
|
|
88
|
-
|
|
120
|
+
/* @__PURE__ */ t.jsx(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
className: `\r
|
|
124
|
+
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
125
|
+
justify-center\r
|
|
126
|
+
`,
|
|
127
|
+
children: /* @__PURE__ */ t.jsx(o.ItemIndicator, { children: /* @__PURE__ */ t.jsx(d, { className: "size-4" }) })
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
n
|
|
89
131
|
]
|
|
90
132
|
}
|
|
91
133
|
);
|
|
92
134
|
}
|
|
93
|
-
function
|
|
135
|
+
function w({
|
|
94
136
|
...e
|
|
95
137
|
}) {
|
|
96
138
|
return /* @__PURE__ */ t.jsx(
|
|
97
|
-
|
|
139
|
+
o.RadioGroup,
|
|
98
140
|
{
|
|
99
141
|
"data-slot": "dropdown-menu-radio-group",
|
|
100
142
|
...e
|
|
@@ -103,37 +145,56 @@ function b({
|
|
|
103
145
|
}
|
|
104
146
|
function h({
|
|
105
147
|
className: e,
|
|
106
|
-
children:
|
|
148
|
+
children: n,
|
|
107
149
|
...a
|
|
108
150
|
}) {
|
|
109
151
|
return /* @__PURE__ */ t.jsxs(
|
|
110
|
-
|
|
152
|
+
o.RadioItem,
|
|
111
153
|
{
|
|
112
154
|
"data-slot": "dropdown-menu-radio-item",
|
|
113
155
|
className: r(
|
|
114
|
-
|
|
156
|
+
`
|
|
157
|
+
relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2
|
|
158
|
+
pl-8 paragraph-sm outline-hidden select-none
|
|
159
|
+
focus:bg-accent focus:text-accent-foreground
|
|
160
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
161
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
162
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
163
|
+
`,
|
|
115
164
|
e
|
|
116
165
|
),
|
|
117
166
|
...a,
|
|
118
167
|
children: [
|
|
119
|
-
/* @__PURE__ */ t.jsx(
|
|
120
|
-
|
|
168
|
+
/* @__PURE__ */ t.jsx(
|
|
169
|
+
"span",
|
|
170
|
+
{
|
|
171
|
+
className: `\r
|
|
172
|
+
pointer-events-none absolute left-2 flex size-3.5 items-center\r
|
|
173
|
+
justify-center\r
|
|
174
|
+
`,
|
|
175
|
+
children: /* @__PURE__ */ t.jsx(o.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { weight: "fill", className: "size-2 fill-current" }) })
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
n
|
|
121
179
|
]
|
|
122
180
|
}
|
|
123
181
|
);
|
|
124
182
|
}
|
|
125
183
|
function j({
|
|
126
184
|
className: e,
|
|
127
|
-
inset:
|
|
185
|
+
inset: n,
|
|
128
186
|
...a
|
|
129
187
|
}) {
|
|
130
188
|
return /* @__PURE__ */ t.jsx(
|
|
131
|
-
|
|
189
|
+
o.Label,
|
|
132
190
|
{
|
|
133
191
|
"data-slot": "dropdown-menu-label",
|
|
134
|
-
"data-inset":
|
|
192
|
+
"data-inset": n,
|
|
135
193
|
className: r(
|
|
136
|
-
|
|
194
|
+
`
|
|
195
|
+
px-2 py-1.5 paragraph-sm font-semibold
|
|
196
|
+
data-inset:pl-8
|
|
197
|
+
`,
|
|
137
198
|
e
|
|
138
199
|
),
|
|
139
200
|
...a
|
|
@@ -142,51 +203,59 @@ function j({
|
|
|
142
203
|
}
|
|
143
204
|
function z({
|
|
144
205
|
className: e,
|
|
145
|
-
...
|
|
206
|
+
...n
|
|
146
207
|
}) {
|
|
147
208
|
return /* @__PURE__ */ t.jsx(
|
|
148
|
-
|
|
209
|
+
o.Separator,
|
|
149
210
|
{
|
|
150
211
|
"data-slot": "dropdown-menu-separator",
|
|
151
|
-
className: r("
|
|
152
|
-
...
|
|
212
|
+
className: r("-mx-1 my-1 h-px bg-border", e),
|
|
213
|
+
...n
|
|
153
214
|
}
|
|
154
215
|
);
|
|
155
216
|
}
|
|
156
217
|
function D({
|
|
157
218
|
className: e,
|
|
158
|
-
...
|
|
219
|
+
...n
|
|
159
220
|
}) {
|
|
160
221
|
return /* @__PURE__ */ t.jsx(
|
|
161
222
|
"span",
|
|
162
223
|
{
|
|
163
224
|
"data-slot": "dropdown-menu-shortcut",
|
|
164
225
|
className: r(
|
|
165
|
-
"
|
|
226
|
+
"ml-auto paragraph-xs tracking-widest text-muted-foreground",
|
|
166
227
|
e
|
|
167
228
|
),
|
|
168
|
-
...
|
|
229
|
+
...n
|
|
169
230
|
}
|
|
170
231
|
);
|
|
171
232
|
}
|
|
172
233
|
function M({
|
|
173
234
|
...e
|
|
174
235
|
}) {
|
|
175
|
-
return /* @__PURE__ */ t.jsx(
|
|
236
|
+
return /* @__PURE__ */ t.jsx(o.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
176
237
|
}
|
|
177
238
|
function N({
|
|
178
239
|
className: e,
|
|
179
|
-
inset:
|
|
240
|
+
inset: n,
|
|
180
241
|
children: a,
|
|
181
242
|
...s
|
|
182
243
|
}) {
|
|
183
244
|
return /* @__PURE__ */ t.jsxs(
|
|
184
|
-
|
|
245
|
+
o.SubTrigger,
|
|
185
246
|
{
|
|
186
247
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
187
|
-
"data-inset":
|
|
248
|
+
"data-inset": n,
|
|
188
249
|
className: r(
|
|
189
|
-
|
|
250
|
+
`
|
|
251
|
+
relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5
|
|
252
|
+
paragraph-sm outline-hidden select-none
|
|
253
|
+
focus:bg-accent focus:text-accent-foreground
|
|
254
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
255
|
+
data-inset:pl-8
|
|
256
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
257
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
258
|
+
`,
|
|
190
259
|
e
|
|
191
260
|
),
|
|
192
261
|
...s,
|
|
@@ -197,36 +266,48 @@ function N({
|
|
|
197
266
|
}
|
|
198
267
|
);
|
|
199
268
|
}
|
|
200
|
-
function
|
|
269
|
+
function y({
|
|
201
270
|
className: e,
|
|
202
|
-
...
|
|
271
|
+
...n
|
|
203
272
|
}) {
|
|
204
273
|
return /* @__PURE__ */ t.jsx(
|
|
205
|
-
|
|
274
|
+
o.SubContent,
|
|
206
275
|
{
|
|
207
276
|
"data-slot": "dropdown-menu-sub-content",
|
|
208
277
|
className: r(
|
|
209
|
-
|
|
278
|
+
`
|
|
279
|
+
z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin)
|
|
280
|
+
overflow-hidden rounded-md border bg-popover p-1
|
|
281
|
+
text-popover-foreground shadow-lg
|
|
282
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
283
|
+
data-[side=left]:slide-in-from-right-2
|
|
284
|
+
data-[side=right]:slide-in-from-left-2
|
|
285
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
286
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
287
|
+
data-[state=closed]:zoom-out-95
|
|
288
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
289
|
+
data-[state=open]:zoom-in-95
|
|
290
|
+
`,
|
|
210
291
|
e
|
|
211
292
|
),
|
|
212
|
-
...
|
|
293
|
+
...n
|
|
213
294
|
}
|
|
214
295
|
);
|
|
215
296
|
}
|
|
216
297
|
export {
|
|
217
298
|
p as DropdownMenu,
|
|
218
|
-
|
|
299
|
+
b as DropdownMenuCheckboxItem,
|
|
219
300
|
g as DropdownMenuContent,
|
|
220
301
|
x as DropdownMenuGroup,
|
|
221
302
|
v as DropdownMenuItem,
|
|
222
303
|
j as DropdownMenuLabel,
|
|
223
304
|
m as DropdownMenuPortal,
|
|
224
|
-
|
|
305
|
+
w as DropdownMenuRadioGroup,
|
|
225
306
|
h as DropdownMenuRadioItem,
|
|
226
307
|
z as DropdownMenuSeparator,
|
|
227
308
|
D as DropdownMenuShortcut,
|
|
228
309
|
M as DropdownMenuSub,
|
|
229
|
-
|
|
310
|
+
y as DropdownMenuSubContent,
|
|
230
311
|
N as DropdownMenuSubTrigger,
|
|
231
312
|
f as DropdownMenuTrigger
|
|
232
313
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-Bfismeyo.cjs"),u=require("@radix-ui/react-slot"),f=require("react"),c=require("react-hook-form"),x=require("../label-O3mSiGyx.cjs");function F(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=F(f),g=c.FormProvider,d=i.createContext({}),j=({...e})=>o.jsxRuntimeExports.jsx(d.Provider,{value:{name:e.name},children:o.jsxRuntimeExports.jsx(c.Controller,{...e})}),m=()=>{const e=i.useContext(d),t=i.useContext(l),{getFieldState:r}=c.useFormContext(),n=c.useFormState({name:e.name}),s=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...s}},l=i.createContext({});function p({className:e,...t}){const r=i.useId();return o.jsxRuntimeExports.jsx(l.Provider,{value:{id:r},children:o.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:o.cn("grid gap-2",e),...t})})}function b({className:e,...t}){const{error:r,formItemId:n}=m();return o.jsxRuntimeExports.jsx(x.Label,{"data-slot":"form-label","data-error":!!r,className:o.cn("data-[error=true]:text-destructive-foreground",e),htmlFor:n,...t})}function I({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:s}=m();return o.jsxRuntimeExports.jsx(u.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${s}`:`${n}`,"aria-invalid":!!t,...e})}function C({className:e,...t}){const{formDescriptionId:r}=m();return o.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:o.cn("label-md text-muted-foreground!",e),...t})}function v({className:e,...t}){const{error:r,formMessageId:n}=m(),s=r?String(r?.message??""):t.children;return s?o.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:n,className:o.cn("label-md text-destructive-foreground!",e),...t,children:s}):null}exports.Form=g;exports.FormControl=I;exports.FormDescription=C;exports.FormField=j;exports.FormItem=p;exports.FormLabel=b;exports.FormMessage=v;exports.useFormField=m;
|