@adamosuiteservices/ui 2.18.6 → 2.19.0
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/README.md +1 -1
- package/dist/accordion-rounded.cjs +8 -8
- package/dist/accordion-rounded.js +12 -12
- package/dist/alert.cjs +32 -23
- package/dist/alert.js +53 -43
- package/dist/amount-input.cjs +8 -0
- package/dist/amount-input.js +191 -0
- package/dist/avatar.cjs +7 -7
- package/dist/avatar.js +18 -18
- package/dist/badge.cjs +24 -28
- package/dist/badge.js +45 -42
- package/dist/breadcrumb.cjs +2 -3
- package/dist/breadcrumb.js +16 -17
- package/dist/button-CXFZVTXF.cjs +87 -0
- package/dist/button-dT8nqgU3.js +156 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-xBaFu2sB.js → calendar-6NvJv-sP.js} +238 -239
- package/dist/{calendar-Dorq3-wv.cjs → calendar-B8S5a0TG.cjs} +20 -22
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.cjs +3 -3
- package/dist/card.js +4 -4
- package/dist/checkbox-BBlvCoB1.cjs +24 -0
- package/dist/{checkbox-DL_jFvgl.js → checkbox-BuzBXARX.js} +54 -52
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/colors.css +1 -1
- package/dist/combobox-B002BLsg.js +692 -0
- package/dist/combobox-B2BkUl7v.cjs +57 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +2 -1
- package/dist/components/layout/toaster/toaster.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/amount-input/amount-input.d.ts +32 -0
- package/dist/components/ui/amount-input/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +3 -2
- package/dist/components/ui/calendar/calendar.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +3 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +3 -1
- package/dist/components/ui/selectable-card/index.d.ts +1 -0
- package/dist/components/ui/selectable-card/selectable-card.d.ts +22 -0
- package/dist/components/ui/timeline/index.d.ts +1 -0
- package/dist/components/ui/timeline/timeline.d.ts +30 -0
- package/dist/components/ui/typography/typography.d.ts +1 -1
- package/dist/context-menu.cjs +18 -19
- package/dist/context-menu.js +36 -37
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +3 -3
- package/dist/dialog.cjs +7 -9
- package/dist/dialog.js +36 -38
- package/dist/dropdown-menu.cjs +57 -36
- package/dist/dropdown-menu.js +205 -172
- package/dist/field.cjs +12 -7
- package/dist/field.js +51 -45
- package/dist/file-upload-v2.cjs +11 -5
- package/dist/file-upload-v2.js +74 -59
- package/dist/file-upload.cjs +11 -5
- package/dist/file-upload.js +117 -109
- package/dist/index-BBT2EGq8.js +18 -0
- package/dist/index-DCsgSkBj.cjs +1 -0
- package/dist/input-8sEO5zwD.js +44 -0
- package/dist/input-AONeSXcs.cjs +22 -0
- package/dist/input-group-13VFVAxD.cjs +86 -0
- package/dist/input-group-D4S18xiq.js +240 -0
- package/dist/input-group.cjs +1 -84
- package/dist/input-group.js +7 -234
- package/dist/input-otp.cjs +5 -7
- package/dist/input-otp.js +58 -60
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/kbd.cjs +6 -7
- package/dist/kbd.js +14 -15
- package/dist/{label-DqfX9cHc.cjs → label-B7Z1D5-Q.cjs} +5 -4
- package/dist/{label-C6zVnc3d.js → label-_BWRIH7C.js} +14 -13
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +5 -5
- package/dist/pagination.js +18 -18
- package/dist/radio-group.cjs +12 -9
- package/dist/radio-group.js +65 -62
- package/dist/select.cjs +18 -16
- package/dist/select.js +17 -15
- package/dist/selectable-card.cjs +29 -0
- package/dist/selectable-card.js +129 -0
- package/dist/separator-DXdc7LcC.cjs +7 -0
- package/dist/{separator-CsaqP20m.js → separator-DZfXXbNt.js} +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/{sheet-C9vce0ut.js → sheet-DNwg4a6M.js} +8 -5
- package/dist/{sheet-Cnq7TCzu.cjs → sheet-va7o2x0w.cjs} +10 -10
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +10 -10
- package/dist/sidebar.js +83 -92
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +2 -4
- package/dist/switch.js +71 -73
- package/dist/table.cjs +14 -14
- package/dist/table.js +12 -12
- package/dist/tabs-underline.cjs +11 -15
- package/dist/tabs-underline.js +20 -24
- package/dist/tabs.cjs +10 -14
- package/dist/tabs.js +20 -24
- package/dist/tailwind-colors.css +1 -1
- package/dist/tailwind-theme.css +1 -1
- package/dist/textarea-BSooGyp-.cjs +18 -0
- package/dist/textarea-D_sj6ivo.js +39 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/themes.css +1 -1
- package/dist/timeline.cjs +4 -0
- package/dist/timeline.js +189 -0
- package/dist/toaster.cjs +5 -4
- package/dist/toaster.js +33 -32
- package/dist/toggle.cjs +4 -4
- package/dist/toggle.js +17 -17
- package/dist/tooltip.cjs +5 -6
- package/dist/tooltip.js +4 -5
- package/docs/components/layout/sidebar.md +81 -53
- package/docs/components/layout/toaster.md +35 -55
- package/docs/components/ui/accordion-rounded.md +12 -11
- package/docs/components/ui/alert.md +66 -36
- package/docs/components/ui/amount-input.md +229 -0
- package/docs/components/ui/avatar.md +28 -32
- package/docs/components/ui/badge.md +85 -32
- package/docs/components/ui/breadcrumb.md +5 -7
- package/docs/components/ui/button-group.md +16 -16
- package/docs/components/ui/button.md +23 -36
- package/docs/components/ui/calendar.md +54 -27
- package/docs/components/ui/card.md +5 -4
- package/docs/components/ui/checkbox.md +3 -3
- package/docs/components/ui/combobox.md +35 -1
- package/docs/components/ui/command.md +7 -7
- package/docs/components/ui/context-menu.md +14 -15
- package/docs/components/ui/date-picker-selector.md +31 -31
- package/docs/components/ui/dialog.md +47 -49
- package/docs/components/ui/dropdown-menu.md +34 -37
- package/docs/components/ui/field.md +25 -31
- package/docs/components/ui/file-upload-v2.md +11 -0
- package/docs/components/ui/file-upload.md +105 -108
- package/docs/components/ui/hover-card.md +28 -6
- package/docs/components/ui/icon.md +10 -9
- package/docs/components/ui/input-group.md +9 -9
- package/docs/components/ui/input.md +30 -33
- package/docs/components/ui/kbd.md +10 -9
- package/docs/components/ui/label.md +6 -6
- package/docs/components/ui/pagination.md +3 -3
- package/docs/components/ui/popover.md +1 -0
- package/docs/components/ui/progress.md +3 -3
- package/docs/components/ui/radio-group.md +18 -6
- package/docs/components/ui/scroll-area.md +4 -4
- package/docs/components/ui/select.md +14 -12
- package/docs/components/ui/selectable-card.md +204 -0
- package/docs/components/ui/separator.md +4 -4
- package/docs/components/ui/sheet.md +21 -3
- package/docs/components/ui/slider.md +3 -3
- package/docs/components/ui/switch.md +7 -7
- package/docs/components/ui/table.md +7 -4
- package/docs/components/ui/tabs-underline.md +36 -36
- package/docs/components/ui/tabs.md +6 -4
- package/docs/components/ui/textarea.md +6 -4
- package/docs/components/ui/timeline.md +214 -0
- package/docs/components/ui/toggle.md +1 -1
- package/docs/components/ui/tooltip.md +3 -3
- package/llm.txt +7 -4
- package/package.json +13 -1
- package/dist/button-BnUlAtuD.js +0 -132
- package/dist/button-CFJs0esR.cjs +0 -63
- package/dist/checkbox-3RIZX2HF.cjs +0 -22
- package/dist/combobox-MkeJiTXj.js +0 -637
- package/dist/combobox-jJRxvUsB.cjs +0 -40
- package/dist/input-BCiOr4Fy.js +0 -44
- package/dist/input-Bz5k4w94.cjs +0 -22
- package/dist/separator-CCGaTo09.cjs +0 -7
- package/dist/textarea-BRCnIxdB.js +0 -33
- package/dist/textarea-DkFUS_oS.cjs +0 -14
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as h, c as v } from "./index-C0UREtMP.js";
|
|
5
5
|
import { c as U } from "./index-DLcqcWxM.js";
|
|
6
6
|
import { c as B } from "./index-FxyLF8MY.js";
|
|
7
7
|
import { P as F } from "./index-BMWt1NBG.js";
|
|
8
|
-
import { c as M, R as H, P as W, A as X, C as q, G as J, L as Q, I as V, a as Y, b as Z, h as ee, d as
|
|
9
|
-
import { u as
|
|
8
|
+
import { c as M, R as H, P as W, A as X, C as q, G as J, L as Q, I as V, a as Y, b as Z, h as ee, d as ae, S as oe, e as te, g as ne, f as re, i as de } from "./index-wujanfX3.js";
|
|
9
|
+
import { u as b } from "./index-Cv867SGx.js";
|
|
10
10
|
import { I as x } from "./icon-BFQz1tQC.js";
|
|
11
|
-
import { c as
|
|
12
|
-
var
|
|
13
|
-
|
|
11
|
+
import { c as u } from "./index-CRiPKpXj.js";
|
|
12
|
+
var g = "DropdownMenu", [se] = B(
|
|
13
|
+
g,
|
|
14
14
|
[M]
|
|
15
|
-
), m = M(), [ie, D] = se(
|
|
15
|
+
), m = M(), [ie, D] = se(g), _ = (e) => {
|
|
16
16
|
const {
|
|
17
|
-
__scopeDropdownMenu:
|
|
18
|
-
children:
|
|
17
|
+
__scopeDropdownMenu: a,
|
|
18
|
+
children: o,
|
|
19
19
|
dir: t,
|
|
20
20
|
open: r,
|
|
21
21
|
defaultOpen: s,
|
|
22
|
-
onOpenChange:
|
|
22
|
+
onOpenChange: p,
|
|
23
23
|
modal: d = !0
|
|
24
|
-
} = e, c = m(
|
|
24
|
+
} = e, c = m(a), w = i.useRef(null), [l, f] = h({
|
|
25
25
|
prop: r,
|
|
26
26
|
defaultProp: s ?? !1,
|
|
27
|
-
onChange:
|
|
28
|
-
caller:
|
|
27
|
+
onChange: p,
|
|
28
|
+
caller: g
|
|
29
29
|
});
|
|
30
30
|
return /* @__PURE__ */ n.jsx(
|
|
31
31
|
ie,
|
|
32
32
|
{
|
|
33
|
-
scope:
|
|
34
|
-
triggerId:
|
|
35
|
-
triggerRef:
|
|
36
|
-
contentId:
|
|
33
|
+
scope: a,
|
|
34
|
+
triggerId: b(),
|
|
35
|
+
triggerRef: w,
|
|
36
|
+
contentId: b(),
|
|
37
37
|
open: l,
|
|
38
38
|
onOpenChange: f,
|
|
39
39
|
onOpenToggle: i.useCallback(() => f((K) => !K), [f]),
|
|
40
40
|
modal: d,
|
|
41
|
-
children: /* @__PURE__ */ n.jsx(H, { ...c, open: l, onOpenChange: f, dir: t, modal: d, children:
|
|
41
|
+
children: /* @__PURE__ */ n.jsx(H, { ...c, open: l, onOpenChange: f, dir: t, modal: d, children: o })
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
|
-
_.displayName =
|
|
46
|
-
var
|
|
47
|
-
(e,
|
|
48
|
-
const { __scopeDropdownMenu:
|
|
49
|
-
return /* @__PURE__ */ n.jsx(X, { asChild: !0, ...
|
|
45
|
+
_.displayName = g;
|
|
46
|
+
var N = "DropdownMenuTrigger", R = i.forwardRef(
|
|
47
|
+
(e, a) => {
|
|
48
|
+
const { __scopeDropdownMenu: o, disabled: t = !1, ...r } = e, s = D(N, o), p = m(o);
|
|
49
|
+
return /* @__PURE__ */ n.jsx(X, { asChild: !0, ...p, children: /* @__PURE__ */ n.jsx(
|
|
50
50
|
F.button,
|
|
51
51
|
{
|
|
52
52
|
type: "button",
|
|
@@ -58,26 +58,26 @@ var R = "DropdownMenuTrigger", N = i.forwardRef(
|
|
|
58
58
|
"data-disabled": t ? "" : void 0,
|
|
59
59
|
disabled: t,
|
|
60
60
|
...r,
|
|
61
|
-
ref: U(
|
|
62
|
-
onPointerDown:
|
|
61
|
+
ref: U(a, s.triggerRef),
|
|
62
|
+
onPointerDown: v(e.onPointerDown, (d) => {
|
|
63
63
|
!t && d.button === 0 && d.ctrlKey === !1 && (s.onOpenToggle(), s.open || d.preventDefault());
|
|
64
64
|
}),
|
|
65
|
-
onKeyDown:
|
|
65
|
+
onKeyDown: v(e.onKeyDown, (d) => {
|
|
66
66
|
t || (["Enter", " "].includes(d.key) && s.onOpenToggle(), d.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
69
|
) });
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
|
|
72
|
+
R.displayName = N;
|
|
73
73
|
var me = "DropdownMenuPortal", I = (e) => {
|
|
74
|
-
const { __scopeDropdownMenu:
|
|
75
|
-
return /* @__PURE__ */ n.jsx(W, { ...t, ...
|
|
74
|
+
const { __scopeDropdownMenu: a, ...o } = e, t = m(a);
|
|
75
|
+
return /* @__PURE__ */ n.jsx(W, { ...t, ...o });
|
|
76
76
|
};
|
|
77
77
|
I.displayName = me;
|
|
78
78
|
var j = "DropdownMenuContent", S = i.forwardRef(
|
|
79
|
-
(e,
|
|
80
|
-
const { __scopeDropdownMenu:
|
|
79
|
+
(e, a) => {
|
|
80
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = D(j, o), s = m(o), p = i.useRef(!1);
|
|
81
81
|
return /* @__PURE__ */ n.jsx(
|
|
82
82
|
q,
|
|
83
83
|
{
|
|
@@ -85,13 +85,13 @@ var j = "DropdownMenuContent", S = i.forwardRef(
|
|
|
85
85
|
"aria-labelledby": r.triggerId,
|
|
86
86
|
...s,
|
|
87
87
|
...t,
|
|
88
|
-
ref:
|
|
89
|
-
onCloseAutoFocus:
|
|
90
|
-
|
|
88
|
+
ref: a,
|
|
89
|
+
onCloseAutoFocus: v(e.onCloseAutoFocus, (d) => {
|
|
90
|
+
p.current || r.triggerRef.current?.focus(), p.current = !1, d.preventDefault();
|
|
91
91
|
}),
|
|
92
|
-
onInteractOutside:
|
|
93
|
-
const c = d.detail.originalEvent,
|
|
94
|
-
(!r.modal || l) && (
|
|
92
|
+
onInteractOutside: v(e.onInteractOutside, (d) => {
|
|
93
|
+
const c = d.detail.originalEvent, w = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || w;
|
|
94
|
+
(!r.modal || l) && (p.current = !0);
|
|
95
95
|
}),
|
|
96
96
|
style: {
|
|
97
97
|
...e.style,
|
|
@@ -106,80 +106,80 @@ var j = "DropdownMenuContent", S = i.forwardRef(
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
S.displayName = j;
|
|
109
|
-
var ue = "DropdownMenuGroup",
|
|
110
|
-
(e,
|
|
111
|
-
const { __scopeDropdownMenu:
|
|
112
|
-
return /* @__PURE__ */ n.jsx(J, { ...r, ...t, ref:
|
|
109
|
+
var ue = "DropdownMenuGroup", y = i.forwardRef(
|
|
110
|
+
(e, a) => {
|
|
111
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
112
|
+
return /* @__PURE__ */ n.jsx(J, { ...r, ...t, ref: a });
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
|
-
|
|
116
|
-
var pe = "DropdownMenuLabel",
|
|
117
|
-
(e,
|
|
118
|
-
const { __scopeDropdownMenu:
|
|
119
|
-
return /* @__PURE__ */ n.jsx(Q, { ...r, ...t, ref:
|
|
115
|
+
y.displayName = ue;
|
|
116
|
+
var pe = "DropdownMenuLabel", C = i.forwardRef(
|
|
117
|
+
(e, a) => {
|
|
118
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
119
|
+
return /* @__PURE__ */ n.jsx(Q, { ...r, ...t, ref: a });
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
|
|
122
|
+
C.displayName = pe;
|
|
123
123
|
var ce = "DropdownMenuItem", P = i.forwardRef(
|
|
124
|
-
(e,
|
|
125
|
-
const { __scopeDropdownMenu:
|
|
126
|
-
return /* @__PURE__ */ n.jsx(V, { ...r, ...t, ref:
|
|
124
|
+
(e, a) => {
|
|
125
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
126
|
+
return /* @__PURE__ */ n.jsx(V, { ...r, ...t, ref: a });
|
|
127
127
|
}
|
|
128
128
|
);
|
|
129
129
|
P.displayName = ce;
|
|
130
|
-
var le = "DropdownMenuCheckboxItem", A = i.forwardRef((e,
|
|
131
|
-
const { __scopeDropdownMenu:
|
|
132
|
-
return /* @__PURE__ */ n.jsx(Y, { ...r, ...t, ref:
|
|
130
|
+
var le = "DropdownMenuCheckboxItem", A = i.forwardRef((e, a) => {
|
|
131
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
132
|
+
return /* @__PURE__ */ n.jsx(Y, { ...r, ...t, ref: a });
|
|
133
133
|
});
|
|
134
134
|
A.displayName = le;
|
|
135
|
-
var fe = "DropdownMenuRadioGroup", E = i.forwardRef((e,
|
|
136
|
-
const { __scopeDropdownMenu:
|
|
137
|
-
return /* @__PURE__ */ n.jsx(ee, { ...r, ...t, ref:
|
|
135
|
+
var fe = "DropdownMenuRadioGroup", E = i.forwardRef((e, a) => {
|
|
136
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
137
|
+
return /* @__PURE__ */ n.jsx(ee, { ...r, ...t, ref: a });
|
|
138
138
|
});
|
|
139
139
|
E.displayName = fe;
|
|
140
|
-
var
|
|
141
|
-
const { __scopeDropdownMenu:
|
|
142
|
-
return /* @__PURE__ */ n.jsx(
|
|
140
|
+
var ve = "DropdownMenuRadioItem", O = i.forwardRef((e, a) => {
|
|
141
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
142
|
+
return /* @__PURE__ */ n.jsx(ae, { ...r, ...t, ref: a });
|
|
143
143
|
});
|
|
144
|
-
O.displayName =
|
|
145
|
-
var
|
|
146
|
-
const { __scopeDropdownMenu:
|
|
147
|
-
return /* @__PURE__ */ n.jsx(Z, { ...r, ...t, ref:
|
|
144
|
+
O.displayName = ve;
|
|
145
|
+
var ge = "DropdownMenuItemIndicator", k = i.forwardRef((e, a) => {
|
|
146
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
147
|
+
return /* @__PURE__ */ n.jsx(Z, { ...r, ...t, ref: a });
|
|
148
148
|
});
|
|
149
|
-
k.displayName =
|
|
150
|
-
var
|
|
151
|
-
const { __scopeDropdownMenu:
|
|
152
|
-
return /* @__PURE__ */ n.jsx(
|
|
149
|
+
k.displayName = ge;
|
|
150
|
+
var we = "DropdownMenuSeparator", T = i.forwardRef((e, a) => {
|
|
151
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
152
|
+
return /* @__PURE__ */ n.jsx(oe, { ...r, ...t, ref: a });
|
|
153
153
|
});
|
|
154
|
-
T.displayName =
|
|
155
|
-
var xe = "DropdownMenuArrow",
|
|
156
|
-
(e,
|
|
157
|
-
const { __scopeDropdownMenu:
|
|
158
|
-
return /* @__PURE__ */ n.jsx(de, { ...r, ...t, ref:
|
|
154
|
+
T.displayName = we;
|
|
155
|
+
var xe = "DropdownMenuArrow", be = i.forwardRef(
|
|
156
|
+
(e, a) => {
|
|
157
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
158
|
+
return /* @__PURE__ */ n.jsx(de, { ...r, ...t, ref: a });
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
|
|
162
|
-
var
|
|
163
|
-
const { __scopeDropdownMenu:
|
|
161
|
+
be.displayName = xe;
|
|
162
|
+
var he = (e) => {
|
|
163
|
+
const { __scopeDropdownMenu: a, children: o, open: t, onOpenChange: r, defaultOpen: s } = e, p = m(a), [d, c] = h({
|
|
164
164
|
prop: t,
|
|
165
165
|
defaultProp: s ?? !1,
|
|
166
166
|
onChange: r,
|
|
167
167
|
caller: "DropdownMenuSub"
|
|
168
168
|
});
|
|
169
|
-
return /* @__PURE__ */ n.jsx(
|
|
170
|
-
}, Me = "DropdownMenuSubTrigger",
|
|
171
|
-
const { __scopeDropdownMenu:
|
|
172
|
-
return /* @__PURE__ */ n.jsx(
|
|
169
|
+
return /* @__PURE__ */ n.jsx(te, { ...p, open: d, onOpenChange: c, children: o });
|
|
170
|
+
}, Me = "DropdownMenuSubTrigger", z = i.forwardRef((e, a) => {
|
|
171
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
172
|
+
return /* @__PURE__ */ n.jsx(ne, { ...r, ...t, ref: a });
|
|
173
173
|
});
|
|
174
|
-
|
|
175
|
-
var De = "DropdownMenuSubContent",
|
|
176
|
-
const { __scopeDropdownMenu:
|
|
174
|
+
z.displayName = Me;
|
|
175
|
+
var De = "DropdownMenuSubContent", G = i.forwardRef((e, a) => {
|
|
176
|
+
const { __scopeDropdownMenu: o, ...t } = e, r = m(o);
|
|
177
177
|
return /* @__PURE__ */ n.jsx(
|
|
178
178
|
re,
|
|
179
179
|
{
|
|
180
180
|
...r,
|
|
181
181
|
...t,
|
|
182
|
-
ref:
|
|
182
|
+
ref: a,
|
|
183
183
|
style: {
|
|
184
184
|
...e.style,
|
|
185
185
|
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
@@ -191,8 +191,8 @@ var De = "DropdownMenuSubContent", $ = i.forwardRef((e, o) => {
|
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
});
|
|
194
|
-
|
|
195
|
-
var _e = _,
|
|
194
|
+
G.displayName = De;
|
|
195
|
+
var _e = _, Ne = R, $ = I, Re = S, Ie = y, je = C, Se = P, ye = A, Ce = E, Pe = O, L = k, Ae = T, Ee = he, Oe = z, ke = G;
|
|
196
196
|
function He({
|
|
197
197
|
...e
|
|
198
198
|
}) {
|
|
@@ -201,30 +201,60 @@ function He({
|
|
|
201
201
|
function We({
|
|
202
202
|
...e
|
|
203
203
|
}) {
|
|
204
|
-
return /* @__PURE__ */ n.jsx(
|
|
204
|
+
return /* @__PURE__ */ n.jsx($, { "data-slot": "dropdown-menu-portal", ...e });
|
|
205
205
|
}
|
|
206
206
|
function Xe({
|
|
207
|
-
|
|
207
|
+
className: e,
|
|
208
|
+
size: a = "default",
|
|
209
|
+
children: o,
|
|
210
|
+
...t
|
|
208
211
|
}) {
|
|
209
212
|
return /* @__PURE__ */ n.jsx(
|
|
210
|
-
|
|
213
|
+
Ne,
|
|
211
214
|
{
|
|
212
215
|
"data-slot": "dropdown-menu-trigger",
|
|
213
|
-
|
|
216
|
+
"data-size": a,
|
|
217
|
+
className: u(
|
|
218
|
+
`
|
|
219
|
+
adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2
|
|
220
|
+
adm:rounded-md adm:border adm:border-input adm:bg-background adm:px-3
|
|
221
|
+
adm:text-sm adm:whitespace-nowrap adm:text-foreground
|
|
222
|
+
adm:transition-[color,box-shadow] adm:outline-none
|
|
223
|
+
adm:hover:bg-muted
|
|
224
|
+
adm:focus-visible:border-primary-300 adm:focus-visible:ring-4
|
|
225
|
+
adm:focus-visible:ring-primary/10
|
|
226
|
+
adm:active:bg-muted
|
|
227
|
+
adm:disabled:pointer-events-none adm:disabled:bg-input-disabled
|
|
228
|
+
adm:disabled:text-input-foreground-disabled adm:disabled:opacity-100
|
|
229
|
+
adm:aria-invalid:border-destructive
|
|
230
|
+
adm:aria-invalid:focus-visible:ring-4
|
|
231
|
+
adm:aria-invalid:focus-visible:ring-destructive/10
|
|
232
|
+
adm:data-[size=default]:h-10
|
|
233
|
+
adm:data-[size=sm]:h-9
|
|
234
|
+
adm:**:data-[slot=icon]:pointer-events-none
|
|
235
|
+
adm:**:data-[slot=icon]:shrink-0
|
|
236
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
237
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
238
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
239
|
+
`,
|
|
240
|
+
e
|
|
241
|
+
),
|
|
242
|
+
...t,
|
|
243
|
+
children: o
|
|
214
244
|
}
|
|
215
245
|
);
|
|
216
246
|
}
|
|
217
247
|
function qe({
|
|
218
248
|
className: e,
|
|
219
|
-
sideOffset:
|
|
220
|
-
...
|
|
249
|
+
sideOffset: a = 4,
|
|
250
|
+
...o
|
|
221
251
|
}) {
|
|
222
|
-
return /* @__PURE__ */ n.jsx(
|
|
223
|
-
|
|
252
|
+
return /* @__PURE__ */ n.jsx($, { children: /* @__PURE__ */ n.jsx(
|
|
253
|
+
Re,
|
|
224
254
|
{
|
|
225
255
|
"data-slot": "dropdown-menu-content",
|
|
226
|
-
sideOffset:
|
|
227
|
-
className:
|
|
256
|
+
sideOffset: a,
|
|
257
|
+
className: u(
|
|
228
258
|
`
|
|
229
259
|
adm:z-50 adm:max-h-(--radix-dropdown-menu-content-available-height)
|
|
230
260
|
adm:min-w-[8rem]
|
|
@@ -243,7 +273,7 @@ function qe({
|
|
|
243
273
|
`,
|
|
244
274
|
e
|
|
245
275
|
),
|
|
246
|
-
...
|
|
276
|
+
...o
|
|
247
277
|
}
|
|
248
278
|
) });
|
|
249
279
|
}
|
|
@@ -254,23 +284,22 @@ function Je({
|
|
|
254
284
|
}
|
|
255
285
|
function Qe({
|
|
256
286
|
className: e,
|
|
257
|
-
inset:
|
|
258
|
-
variant:
|
|
287
|
+
inset: a,
|
|
288
|
+
variant: o = "default",
|
|
259
289
|
...t
|
|
260
290
|
}) {
|
|
261
291
|
return /* @__PURE__ */ n.jsx(
|
|
262
292
|
Se,
|
|
263
293
|
{
|
|
264
294
|
"data-slot": "dropdown-menu-item",
|
|
265
|
-
"data-inset":
|
|
266
|
-
"data-variant":
|
|
267
|
-
className:
|
|
295
|
+
"data-inset": a,
|
|
296
|
+
"data-variant": o,
|
|
297
|
+
className: u(
|
|
268
298
|
`
|
|
269
|
-
adm:relative adm:flex adm:h-
|
|
270
|
-
adm:
|
|
271
|
-
adm:
|
|
272
|
-
adm:
|
|
273
|
-
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
299
|
+
adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
|
|
300
|
+
adm:items-center adm:gap-3 adm:pr-10 adm:pl-4 adm:text-sm
|
|
301
|
+
adm:outline-hidden adm:select-none
|
|
302
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
274
303
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
275
304
|
adm:data-inset:pl-8
|
|
276
305
|
adm:**:data-[slot=icon]:pointer-events-none
|
|
@@ -280,6 +309,8 @@ function Qe({
|
|
|
280
309
|
adm:data-[variant=destructive]:focus:text-destructive
|
|
281
310
|
adm:dark:data-[variant=destructive]:focus:bg-destructive/20
|
|
282
311
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
312
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
313
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
283
314
|
adm:data-[variant=destructive]:*:[data-slot=icon]:text-destructive!
|
|
284
315
|
adm:data-[variant=destructive]:*:[svg]:text-destructive!
|
|
285
316
|
`,
|
|
@@ -291,30 +322,30 @@ function Qe({
|
|
|
291
322
|
}
|
|
292
323
|
function Ve({
|
|
293
324
|
className: e,
|
|
294
|
-
children:
|
|
295
|
-
checked:
|
|
325
|
+
children: a,
|
|
326
|
+
checked: o,
|
|
296
327
|
...t
|
|
297
328
|
}) {
|
|
298
329
|
return /* @__PURE__ */ n.jsxs(
|
|
299
|
-
|
|
330
|
+
ye,
|
|
300
331
|
{
|
|
301
332
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
302
|
-
className:
|
|
333
|
+
className: u(
|
|
303
334
|
`
|
|
304
|
-
adm:relative adm:flex adm:h-
|
|
305
|
-
adm:gap-
|
|
306
|
-
adm:select-none
|
|
307
|
-
adm:
|
|
308
|
-
adm:last:rounded-b-sm
|
|
309
|
-
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
335
|
+
adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
|
|
336
|
+
adm:items-center adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm
|
|
337
|
+
adm:outline-hidden adm:select-none
|
|
338
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
310
339
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
311
340
|
adm:**:data-[slot=icon]:pointer-events-none
|
|
312
341
|
adm:**:data-[slot=icon]:shrink-0
|
|
313
342
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
343
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
344
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
314
345
|
`,
|
|
315
346
|
e
|
|
316
347
|
),
|
|
317
|
-
checked:
|
|
348
|
+
checked: o,
|
|
318
349
|
...t,
|
|
319
350
|
children: [
|
|
320
351
|
/* @__PURE__ */ n.jsx(
|
|
@@ -324,10 +355,10 @@ function Ve({
|
|
|
324
355
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
325
356
|
adm:items-center adm:justify-center
|
|
326
357
|
`,
|
|
327
|
-
children: /* @__PURE__ */ n.jsx(
|
|
358
|
+
children: /* @__PURE__ */ n.jsx(L, { children: /* @__PURE__ */ n.jsx(x, { symbol: "check", className: "adm:text-xl adm:text-success" }) })
|
|
328
359
|
}
|
|
329
360
|
),
|
|
330
|
-
|
|
361
|
+
a
|
|
331
362
|
]
|
|
332
363
|
}
|
|
333
364
|
);
|
|
@@ -336,7 +367,7 @@ function Ye({
|
|
|
336
367
|
...e
|
|
337
368
|
}) {
|
|
338
369
|
return /* @__PURE__ */ n.jsx(
|
|
339
|
-
|
|
370
|
+
Ce,
|
|
340
371
|
{
|
|
341
372
|
"data-slot": "dropdown-menu-radio-group",
|
|
342
373
|
...e
|
|
@@ -345,29 +376,29 @@ function Ye({
|
|
|
345
376
|
}
|
|
346
377
|
function Ze({
|
|
347
378
|
className: e,
|
|
348
|
-
children:
|
|
349
|
-
...
|
|
379
|
+
children: a,
|
|
380
|
+
...o
|
|
350
381
|
}) {
|
|
351
382
|
return /* @__PURE__ */ n.jsxs(
|
|
352
383
|
Pe,
|
|
353
384
|
{
|
|
354
385
|
"data-slot": "dropdown-menu-radio-item",
|
|
355
|
-
className:
|
|
386
|
+
className: u(
|
|
356
387
|
`
|
|
357
|
-
adm:relative adm:flex adm:h-
|
|
358
|
-
adm:gap-
|
|
359
|
-
adm:select-none
|
|
360
|
-
adm:
|
|
361
|
-
adm:last:rounded-b-sm
|
|
362
|
-
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
388
|
+
adm:relative adm:flex adm:h-11 adm:w-full adm:cursor-default
|
|
389
|
+
adm:items-center adm:gap-3 adm:pr-10 adm:pl-8 adm:text-sm
|
|
390
|
+
adm:outline-hidden adm:select-none
|
|
391
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
363
392
|
adm:data-disabled:pointer-events-none adm:data-disabled:opacity-50
|
|
364
393
|
adm:**:data-[slot=icon]:pointer-events-none
|
|
365
394
|
adm:**:data-[slot=icon]:shrink-0
|
|
366
395
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
396
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
397
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
367
398
|
`,
|
|
368
399
|
e
|
|
369
400
|
),
|
|
370
|
-
...
|
|
401
|
+
...o,
|
|
371
402
|
children: [
|
|
372
403
|
/* @__PURE__ */ n.jsx(
|
|
373
404
|
"span",
|
|
@@ -376,114 +407,116 @@ function Ze({
|
|
|
376
407
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
377
408
|
adm:items-center adm:justify-center
|
|
378
409
|
`,
|
|
379
|
-
children: /* @__PURE__ */ n.jsx(
|
|
410
|
+
children: /* @__PURE__ */ n.jsx(L, { children: /* @__PURE__ */ n.jsx(x, { symbol: "circle", fill: 1, className: "adm:text-xs" }) })
|
|
380
411
|
}
|
|
381
412
|
),
|
|
382
|
-
|
|
413
|
+
a
|
|
383
414
|
]
|
|
384
415
|
}
|
|
385
416
|
);
|
|
386
417
|
}
|
|
387
|
-
function
|
|
418
|
+
function ea({
|
|
388
419
|
className: e,
|
|
389
|
-
inset:
|
|
390
|
-
...
|
|
420
|
+
inset: a,
|
|
421
|
+
...o
|
|
391
422
|
}) {
|
|
392
423
|
return /* @__PURE__ */ n.jsx(
|
|
393
424
|
je,
|
|
394
425
|
{
|
|
395
426
|
"data-slot": "dropdown-menu-label",
|
|
396
|
-
"data-inset":
|
|
397
|
-
className:
|
|
427
|
+
"data-inset": a,
|
|
428
|
+
className: u(
|
|
398
429
|
`
|
|
399
|
-
adm:
|
|
400
|
-
adm:font-medium
|
|
430
|
+
adm:px-2 adm:py-1.5 adm:text-xs adm:text-muted-foreground
|
|
401
431
|
adm:data-inset:pl-8
|
|
402
432
|
`,
|
|
403
433
|
e
|
|
404
434
|
),
|
|
405
|
-
...
|
|
435
|
+
...o
|
|
406
436
|
}
|
|
407
437
|
);
|
|
408
438
|
}
|
|
409
|
-
function
|
|
439
|
+
function aa({
|
|
410
440
|
className: e,
|
|
411
|
-
...
|
|
441
|
+
...a
|
|
412
442
|
}) {
|
|
413
443
|
return /* @__PURE__ */ n.jsx(
|
|
414
444
|
Ae,
|
|
415
445
|
{
|
|
416
446
|
"data-slot": "dropdown-menu-separator",
|
|
417
|
-
className:
|
|
418
|
-
|
|
447
|
+
className: u(
|
|
448
|
+
"adm:pointer-events-none adm:-mx-1 adm:my-1 adm:h-px adm:bg-border",
|
|
449
|
+
e
|
|
450
|
+
),
|
|
451
|
+
...a
|
|
419
452
|
}
|
|
420
453
|
);
|
|
421
454
|
}
|
|
422
|
-
function
|
|
455
|
+
function oa({
|
|
423
456
|
className: e,
|
|
424
|
-
...
|
|
457
|
+
...a
|
|
425
458
|
}) {
|
|
426
459
|
return /* @__PURE__ */ n.jsx(
|
|
427
460
|
"span",
|
|
428
461
|
{
|
|
429
462
|
"data-slot": "dropdown-menu-shortcut",
|
|
430
|
-
className:
|
|
463
|
+
className: u(
|
|
431
464
|
"adm:ml-auto adm:text-xs adm:tracking-widest adm:text-muted-foreground",
|
|
432
465
|
e
|
|
433
466
|
),
|
|
434
|
-
...
|
|
467
|
+
...a
|
|
435
468
|
}
|
|
436
469
|
);
|
|
437
470
|
}
|
|
438
|
-
function
|
|
471
|
+
function ta({
|
|
439
472
|
...e
|
|
440
473
|
}) {
|
|
441
474
|
return /* @__PURE__ */ n.jsx(Ee, { "data-slot": "dropdown-menu-sub", ...e });
|
|
442
475
|
}
|
|
443
|
-
function
|
|
476
|
+
function na({
|
|
444
477
|
className: e,
|
|
445
|
-
inset:
|
|
446
|
-
children:
|
|
478
|
+
inset: a,
|
|
479
|
+
children: o,
|
|
447
480
|
...t
|
|
448
481
|
}) {
|
|
449
482
|
return /* @__PURE__ */ n.jsxs(
|
|
450
483
|
Oe,
|
|
451
484
|
{
|
|
452
485
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
453
|
-
"data-inset":
|
|
454
|
-
className:
|
|
486
|
+
"data-inset": a,
|
|
487
|
+
className: u(
|
|
455
488
|
`
|
|
456
|
-
adm:flex adm:h-
|
|
457
|
-
adm:
|
|
458
|
-
adm:
|
|
459
|
-
adm:
|
|
460
|
-
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
489
|
+
adm:flex adm:h-11 adm:w-full adm:cursor-default adm:items-center
|
|
490
|
+
adm:gap-3 adm:pr-10 adm:pl-4 adm:text-sm adm:outline-hidden
|
|
491
|
+
adm:select-none
|
|
492
|
+
adm:focus:bg-muted adm:focus:text-foreground
|
|
461
493
|
adm:data-inset:pl-8
|
|
462
494
|
adm:**:data-[slot=icon]:pointer-events-none
|
|
463
495
|
adm:**:data-[slot=icon]:shrink-0
|
|
464
|
-
adm:data-[state=open]:bg-
|
|
465
|
-
adm:data-[state=open]:text-accent-foreground
|
|
496
|
+
adm:data-[state=open]:bg-muted adm:data-[state=open]:text-foreground
|
|
466
497
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
498
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
499
|
+
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
467
500
|
`,
|
|
468
501
|
e
|
|
469
502
|
),
|
|
470
503
|
...t,
|
|
471
504
|
children: [
|
|
472
|
-
|
|
505
|
+
o,
|
|
473
506
|
/* @__PURE__ */ n.jsx(x, { symbol: "chevron_right", className: "adm:ml-auto adm:shrink-0" })
|
|
474
507
|
]
|
|
475
508
|
}
|
|
476
509
|
);
|
|
477
510
|
}
|
|
478
|
-
function
|
|
511
|
+
function ra({
|
|
479
512
|
className: e,
|
|
480
|
-
...
|
|
513
|
+
...a
|
|
481
514
|
}) {
|
|
482
515
|
return /* @__PURE__ */ n.jsx(
|
|
483
516
|
ke,
|
|
484
517
|
{
|
|
485
518
|
"data-slot": "dropdown-menu-sub-content",
|
|
486
|
-
className:
|
|
519
|
+
className: u(
|
|
487
520
|
`
|
|
488
521
|
adm:z-50 adm:min-w-[8rem]
|
|
489
522
|
adm:origin-(--radix-dropdown-menu-content-transform-origin)
|
|
@@ -500,7 +533,7 @@ function ro({
|
|
|
500
533
|
`,
|
|
501
534
|
e
|
|
502
535
|
),
|
|
503
|
-
...
|
|
536
|
+
...a
|
|
504
537
|
}
|
|
505
538
|
);
|
|
506
539
|
}
|
|
@@ -510,14 +543,14 @@ export {
|
|
|
510
543
|
qe as DropdownMenuContent,
|
|
511
544
|
Je as DropdownMenuGroup,
|
|
512
545
|
Qe as DropdownMenuItem,
|
|
513
|
-
|
|
546
|
+
ea as DropdownMenuLabel,
|
|
514
547
|
We as DropdownMenuPortal,
|
|
515
548
|
Ye as DropdownMenuRadioGroup,
|
|
516
549
|
Ze as DropdownMenuRadioItem,
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
550
|
+
aa as DropdownMenuSeparator,
|
|
551
|
+
oa as DropdownMenuShortcut,
|
|
552
|
+
ta as DropdownMenuSub,
|
|
553
|
+
ra as DropdownMenuSubContent,
|
|
554
|
+
na as DropdownMenuSubTrigger,
|
|
522
555
|
Xe as DropdownMenuTrigger
|
|
523
556
|
};
|