@adamosuiteservices/ui 2.9.15 → 2.10.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/dist/accordion-rounded.cjs +12 -17
- package/dist/accordion-rounded.js +37 -46
- package/dist/accordion.cjs +8 -7
- package/dist/accordion.js +19 -17
- package/dist/alert.cjs +7 -3
- package/dist/alert.js +14 -10
- package/dist/avatar.cjs +2 -0
- package/dist/avatar.js +42 -40
- package/dist/badge.cjs +9 -2
- package/dist/badge.js +19 -12
- package/dist/breadcrumb.cjs +7 -3
- package/dist/breadcrumb.js +30 -24
- package/dist/{button-B7ZP4LZN.js → button-CUNnLccZ.js} +11 -6
- package/dist/{button-D-qFRXiM.cjs → button-CxGyLoeN.cjs} +7 -2
- package/dist/button-group.cjs +2 -0
- package/dist/button-group.js +15 -13
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +8 -6
- package/dist/calendar.js +507 -492
- package/dist/card.cjs +9 -4
- package/dist/card.js +8 -3
- package/dist/checkbox-CFGlO5wt.cjs +22 -0
- package/dist/{checkbox-DhBcmKze.js → checkbox-DsN1IQGA.js} +70 -68
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +10 -13
- package/dist/combobox.js +90 -99
- package/dist/components/ui/icon/icon.d.ts +1 -3
- package/dist/components/ui/icon/icon.stories.d.ts +0 -5
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +0 -1
- package/dist/context-menu.cjs +10 -8
- package/dist/context-menu.js +126 -120
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +10 -7
- package/dist/dialog.js +43 -40
- package/dist/dropdown-menu.cjs +25 -10
- package/dist/dropdown-menu.js +179 -166
- package/dist/icon-D0vVkV-A.js +35 -0
- package/dist/icon-SWksUOv5.cjs +6 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +1 -1
- package/dist/icons.css +1 -1
- package/dist/input-group.cjs +14 -6
- package/dist/input-group.js +25 -17
- package/dist/kbd.cjs +3 -3
- package/dist/kbd.js +1 -0
- package/dist/pagination.cjs +4 -4
- package/dist/pagination.js +41 -43
- package/dist/radio-group.cjs +5 -5
- package/dist/radio-group.js +44 -42
- package/dist/radius.css +1 -1
- package/dist/select.cjs +12 -13
- package/dist/select.js +182 -187
- package/dist/{sheet-Q3dBOQG-.js → sheet-DM7b3ckK.js} +18 -18
- package/dist/{sheet-CGahUP7F.cjs → sheet-DfRu4ByS.cjs} +4 -4
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +6 -11
- package/dist/sidebar.js +38 -49
- package/dist/spinner.cjs +1 -6
- package/dist/spinner.js +10 -16
- package/dist/styles.css +1 -1
- package/dist/tabs-underline.cjs +6 -3
- package/dist/tabs-underline.js +8 -5
- package/dist/tabs.cjs +6 -3
- package/dist/tabs.js +8 -5
- package/dist/toggle.cjs +5 -2
- package/dist/toggle.js +14 -11
- package/docs/components/layout/sidebar.md +18 -23
- package/docs/components/ui/accordion-rounded.md +584 -583
- package/docs/components/ui/accordion.md +3 -1
- package/docs/components/ui/alert.md +650 -671
- package/docs/components/ui/avatar.md +587 -588
- package/docs/components/ui/badge.md +1019 -1024
- package/docs/components/ui/breadcrumb.md +14 -14
- package/docs/components/ui/button-group.md +69 -87
- package/docs/components/ui/button.md +17 -17
- package/docs/components/ui/calendar.md +6 -6
- package/docs/components/ui/card.md +21 -27
- package/docs/components/ui/collapsible.md +16 -13
- package/docs/components/ui/combobox.md +14 -14
- package/docs/components/ui/command.md +6 -6
- package/docs/components/ui/context-menu.md +23 -23
- package/docs/components/ui/dialog.md +16 -16
- package/docs/components/ui/dropdown-menu.md +44 -66
- package/docs/components/ui/hover-card.md +5 -5
- package/docs/components/ui/icon.md +87 -88
- package/docs/components/ui/input-group.md +523 -509
- package/docs/components/ui/kbd.md +8 -8
- package/docs/components/ui/label.md +5 -5
- package/docs/components/ui/pagination.md +5 -5
- package/docs/components/ui/popover.md +14 -14
- package/docs/components/ui/progress.md +2 -2
- package/docs/components/ui/radio-group.md +2 -2
- package/docs/components/ui/select.md +6 -6
- package/docs/components/ui/spinner.md +15 -15
- package/docs/components/ui/switch.md +15 -9
- package/docs/components/ui/tabs-underline.md +4 -4
- package/docs/components/ui/tabs.md +5 -5
- package/docs/components/ui/toggle.md +17 -23
- package/docs/components/ui/tooltip.md +7 -10
- package/package.json +1 -1
- package/dist/check-CLxNVljQ.cjs +0 -6
- package/dist/check-Ci0GjV-B.js +0 -11
- package/dist/checkbox-CdnZ8VFJ.cjs +0 -21
- package/dist/chevron-down-BqEHzml5.cjs +0 -6
- package/dist/chevron-down-CpVS2Z7w.js +0 -11
- package/dist/chevron-left-B8QsBNvc.cjs +0 -6
- package/dist/chevron-left-Eal-WYLp.js +0 -11
- package/dist/chevron-right-BpzggHsr.cjs +0 -6
- package/dist/chevron-right-Cnc2tB4-.js +0 -11
- package/dist/circle-CX7JIirj.cjs +0 -6
- package/dist/circle-DYv-7Qb9.js +0 -11
- package/dist/createLucideIcon-B_8CJpcQ.js +0 -94
- package/dist/createLucideIcon-CAtnV-yz.cjs +0 -21
- package/dist/ellipsis-CryjZKZn.js +0 -15
- package/dist/ellipsis-Ct9VTDOG.cjs +0 -6
- package/dist/icon-DTx6Y_mx.cjs +0 -6
- package/dist/icon-DmU_SEHC.js +0 -36
- package/dist/minus-C0pHPx21.cjs +0 -6
- package/dist/minus-DE-onYs2.js +0 -11
- package/dist/x-CBKgg4YL.cjs +0 -6
- package/dist/x-Dl66o_vF.js +0 -14
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { u as M, c as w } from "./index-C0UREtMP.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
6
|
-
import { P as
|
|
7
|
-
import { c as
|
|
8
|
-
import { u as
|
|
4
|
+
import { c as U } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { c as B } from "./index-FxyLF8MY.js";
|
|
6
|
+
import { P as F } from "./index-BMWt1NBG.js";
|
|
7
|
+
import { c as b, 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 oe, S as ae, e as te, g as ne, f as re, i as de } from "./index-DFPDUUq7.js";
|
|
8
|
+
import { u as h } from "./index-Cv867SGx.js";
|
|
9
|
+
import { I as v } from "./icon-D0vVkV-A.js";
|
|
9
10
|
import { c as u } from "./index-CRiPKpXj.js";
|
|
10
|
-
|
|
11
|
-
import { C as se } from "./circle-DYv-7Qb9.js";
|
|
12
|
-
import { C as me } from "./chevron-right-Cnc2tB4-.js";
|
|
13
|
-
var g = "DropdownMenu", [ie] = U(
|
|
11
|
+
var g = "DropdownMenu", [se] = B(
|
|
14
12
|
g,
|
|
15
|
-
[
|
|
16
|
-
), i =
|
|
13
|
+
[b]
|
|
14
|
+
), i = b(), [me, _] = se(g), D = (e) => {
|
|
17
15
|
const {
|
|
18
16
|
__scopeDropdownMenu: o,
|
|
19
17
|
children: a,
|
|
20
|
-
dir:
|
|
21
|
-
open:
|
|
18
|
+
dir: n,
|
|
19
|
+
open: r,
|
|
22
20
|
defaultOpen: s,
|
|
23
21
|
onOpenChange: p,
|
|
24
22
|
modal: d = !0
|
|
25
|
-
} = e, c = i(o),
|
|
26
|
-
prop:
|
|
23
|
+
} = e, c = i(o), x = m.useRef(null), [l, f] = M({
|
|
24
|
+
prop: r,
|
|
27
25
|
defaultProp: s ?? !1,
|
|
28
26
|
onChange: p,
|
|
29
27
|
caller: g
|
|
30
28
|
});
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
29
|
+
return /* @__PURE__ */ t.jsx(
|
|
30
|
+
me,
|
|
33
31
|
{
|
|
34
32
|
scope: o,
|
|
35
|
-
triggerId:
|
|
36
|
-
triggerRef:
|
|
37
|
-
contentId:
|
|
33
|
+
triggerId: h(),
|
|
34
|
+
triggerRef: x,
|
|
35
|
+
contentId: h(),
|
|
38
36
|
open: l,
|
|
39
37
|
onOpenChange: f,
|
|
40
|
-
onOpenToggle: m.useCallback(() => f((
|
|
38
|
+
onOpenToggle: m.useCallback(() => f((K) => !K), [f]),
|
|
41
39
|
modal: d,
|
|
42
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ t.jsx(H, { ...c, open: l, onOpenChange: f, dir: n, modal: d, children: a })
|
|
43
41
|
}
|
|
44
42
|
);
|
|
45
43
|
};
|
|
46
44
|
D.displayName = g;
|
|
47
|
-
var
|
|
45
|
+
var R = "DropdownMenuTrigger", N = m.forwardRef(
|
|
48
46
|
(e, o) => {
|
|
49
|
-
const { __scopeDropdownMenu: a, disabled:
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
47
|
+
const { __scopeDropdownMenu: a, disabled: n = !1, ...r } = e, s = _(R, a), p = i(a);
|
|
48
|
+
return /* @__PURE__ */ t.jsx(X, { asChild: !0, ...p, children: /* @__PURE__ */ t.jsx(
|
|
49
|
+
F.button,
|
|
52
50
|
{
|
|
53
51
|
type: "button",
|
|
54
52
|
id: s.triggerId,
|
|
@@ -56,43 +54,43 @@ var _ = "DropdownMenuTrigger", R = m.forwardRef(
|
|
|
56
54
|
"aria-expanded": s.open,
|
|
57
55
|
"aria-controls": s.open ? s.contentId : void 0,
|
|
58
56
|
"data-state": s.open ? "open" : "closed",
|
|
59
|
-
"data-disabled":
|
|
60
|
-
disabled:
|
|
61
|
-
...
|
|
62
|
-
ref:
|
|
57
|
+
"data-disabled": n ? "" : void 0,
|
|
58
|
+
disabled: n,
|
|
59
|
+
...r,
|
|
60
|
+
ref: U(o, s.triggerRef),
|
|
63
61
|
onPointerDown: w(e.onPointerDown, (d) => {
|
|
64
|
-
!
|
|
62
|
+
!n && d.button === 0 && d.ctrlKey === !1 && (s.onOpenToggle(), s.open || d.preventDefault());
|
|
65
63
|
}),
|
|
66
64
|
onKeyDown: w(e.onKeyDown, (d) => {
|
|
67
|
-
|
|
65
|
+
n || (["Enter", " "].includes(d.key) && s.onOpenToggle(), d.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
|
|
68
66
|
})
|
|
69
67
|
}
|
|
70
68
|
) });
|
|
71
69
|
}
|
|
72
70
|
);
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
const { __scopeDropdownMenu: o, ...a } = e,
|
|
76
|
-
return /* @__PURE__ */
|
|
71
|
+
N.displayName = R;
|
|
72
|
+
var ie = "DropdownMenuPortal", I = (e) => {
|
|
73
|
+
const { __scopeDropdownMenu: o, ...a } = e, n = i(o);
|
|
74
|
+
return /* @__PURE__ */ t.jsx(W, { ...n, ...a });
|
|
77
75
|
};
|
|
78
|
-
|
|
79
|
-
var
|
|
76
|
+
I.displayName = ie;
|
|
77
|
+
var j = "DropdownMenuContent", S = m.forwardRef(
|
|
80
78
|
(e, o) => {
|
|
81
|
-
const { __scopeDropdownMenu: a, ...
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
|
|
79
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = _(j, a), s = i(a), p = m.useRef(!1);
|
|
80
|
+
return /* @__PURE__ */ t.jsx(
|
|
81
|
+
q,
|
|
84
82
|
{
|
|
85
|
-
id:
|
|
86
|
-
"aria-labelledby":
|
|
83
|
+
id: r.contentId,
|
|
84
|
+
"aria-labelledby": r.triggerId,
|
|
87
85
|
...s,
|
|
88
|
-
...
|
|
86
|
+
...n,
|
|
89
87
|
ref: o,
|
|
90
88
|
onCloseAutoFocus: w(e.onCloseAutoFocus, (d) => {
|
|
91
|
-
p.current ||
|
|
89
|
+
p.current || r.triggerRef.current?.focus(), p.current = !1, d.preventDefault();
|
|
92
90
|
}),
|
|
93
91
|
onInteractOutside: w(e.onInteractOutside, (d) => {
|
|
94
|
-
const c = d.detail.originalEvent,
|
|
95
|
-
(!
|
|
92
|
+
const c = d.detail.originalEvent, x = c.button === 0 && c.ctrlKey === !0, l = c.button === 2 || x;
|
|
93
|
+
(!r.modal || l) && (p.current = !0);
|
|
96
94
|
}),
|
|
97
95
|
style: {
|
|
98
96
|
...e.style,
|
|
@@ -106,80 +104,80 @@ var C = "DropdownMenuContent", I = m.forwardRef(
|
|
|
106
104
|
);
|
|
107
105
|
}
|
|
108
106
|
);
|
|
109
|
-
|
|
110
|
-
var
|
|
107
|
+
S.displayName = j;
|
|
108
|
+
var pe = "DropdownMenuGroup", y = m.forwardRef(
|
|
111
109
|
(e, o) => {
|
|
112
|
-
const { __scopeDropdownMenu: a, ...
|
|
113
|
-
return /* @__PURE__ */
|
|
110
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
111
|
+
return /* @__PURE__ */ t.jsx(J, { ...r, ...n, ref: o });
|
|
114
112
|
}
|
|
115
113
|
);
|
|
116
|
-
|
|
117
|
-
var
|
|
114
|
+
y.displayName = pe;
|
|
115
|
+
var ue = "DropdownMenuLabel", C = m.forwardRef(
|
|
118
116
|
(e, o) => {
|
|
119
|
-
const { __scopeDropdownMenu: a, ...
|
|
120
|
-
return /* @__PURE__ */
|
|
117
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
118
|
+
return /* @__PURE__ */ t.jsx(Q, { ...r, ...n, ref: o });
|
|
121
119
|
}
|
|
122
120
|
);
|
|
123
|
-
|
|
124
|
-
var
|
|
121
|
+
C.displayName = ue;
|
|
122
|
+
var ce = "DropdownMenuItem", P = m.forwardRef(
|
|
125
123
|
(e, o) => {
|
|
126
|
-
const { __scopeDropdownMenu: a, ...
|
|
127
|
-
return /* @__PURE__ */
|
|
124
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
125
|
+
return /* @__PURE__ */ t.jsx(V, { ...r, ...n, ref: o });
|
|
128
126
|
}
|
|
129
127
|
);
|
|
130
|
-
|
|
131
|
-
var
|
|
132
|
-
const { __scopeDropdownMenu: a, ...
|
|
133
|
-
return /* @__PURE__ */
|
|
128
|
+
P.displayName = ce;
|
|
129
|
+
var le = "DropdownMenuCheckboxItem", A = m.forwardRef((e, o) => {
|
|
130
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
131
|
+
return /* @__PURE__ */ t.jsx(Y, { ...r, ...n, ref: o });
|
|
134
132
|
});
|
|
135
|
-
|
|
136
|
-
var
|
|
137
|
-
const { __scopeDropdownMenu: a, ...
|
|
138
|
-
return /* @__PURE__ */
|
|
133
|
+
A.displayName = le;
|
|
134
|
+
var fe = "DropdownMenuRadioGroup", E = m.forwardRef((e, o) => {
|
|
135
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
136
|
+
return /* @__PURE__ */ t.jsx(ee, { ...r, ...n, ref: o });
|
|
139
137
|
});
|
|
140
|
-
|
|
141
|
-
var
|
|
142
|
-
const { __scopeDropdownMenu: a, ...
|
|
143
|
-
return /* @__PURE__ */
|
|
138
|
+
E.displayName = fe;
|
|
139
|
+
var we = "DropdownMenuRadioItem", O = m.forwardRef((e, o) => {
|
|
140
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
141
|
+
return /* @__PURE__ */ t.jsx(oe, { ...r, ...n, ref: o });
|
|
144
142
|
});
|
|
145
|
-
|
|
146
|
-
var
|
|
147
|
-
const { __scopeDropdownMenu: a, ...
|
|
148
|
-
return /* @__PURE__ */
|
|
143
|
+
O.displayName = we;
|
|
144
|
+
var ge = "DropdownMenuItemIndicator", k = m.forwardRef((e, o) => {
|
|
145
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
146
|
+
return /* @__PURE__ */ t.jsx(Z, { ...r, ...n, ref: o });
|
|
149
147
|
});
|
|
150
|
-
|
|
151
|
-
var
|
|
152
|
-
const { __scopeDropdownMenu: a, ...
|
|
153
|
-
return /* @__PURE__ */
|
|
148
|
+
k.displayName = ge;
|
|
149
|
+
var xe = "DropdownMenuSeparator", T = m.forwardRef((e, o) => {
|
|
150
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
151
|
+
return /* @__PURE__ */ t.jsx(ae, { ...r, ...n, ref: o });
|
|
154
152
|
});
|
|
155
|
-
T.displayName =
|
|
156
|
-
var
|
|
153
|
+
T.displayName = xe;
|
|
154
|
+
var ve = "DropdownMenuArrow", he = m.forwardRef(
|
|
157
155
|
(e, o) => {
|
|
158
|
-
const { __scopeDropdownMenu: a, ...
|
|
159
|
-
return /* @__PURE__ */
|
|
156
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
157
|
+
return /* @__PURE__ */ t.jsx(de, { ...r, ...n, ref: o });
|
|
160
158
|
}
|
|
161
159
|
);
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
const { __scopeDropdownMenu: o, children: a, open:
|
|
165
|
-
prop:
|
|
160
|
+
he.displayName = ve;
|
|
161
|
+
var Me = (e) => {
|
|
162
|
+
const { __scopeDropdownMenu: o, children: a, open: n, onOpenChange: r, defaultOpen: s } = e, p = i(o), [d, c] = M({
|
|
163
|
+
prop: n,
|
|
166
164
|
defaultProp: s ?? !1,
|
|
167
|
-
onChange:
|
|
165
|
+
onChange: r,
|
|
168
166
|
caller: "DropdownMenuSub"
|
|
169
167
|
});
|
|
170
|
-
return /* @__PURE__ */
|
|
171
|
-
},
|
|
172
|
-
const { __scopeDropdownMenu: a, ...
|
|
173
|
-
return /* @__PURE__ */
|
|
168
|
+
return /* @__PURE__ */ t.jsx(te, { ...p, open: d, onOpenChange: c, children: a });
|
|
169
|
+
}, be = "DropdownMenuSubTrigger", G = m.forwardRef((e, o) => {
|
|
170
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
171
|
+
return /* @__PURE__ */ t.jsx(ne, { ...r, ...n, ref: o });
|
|
174
172
|
});
|
|
175
|
-
|
|
176
|
-
var
|
|
177
|
-
const { __scopeDropdownMenu: a, ...
|
|
178
|
-
return /* @__PURE__ */
|
|
173
|
+
G.displayName = be;
|
|
174
|
+
var _e = "DropdownMenuSubContent", z = m.forwardRef((e, o) => {
|
|
175
|
+
const { __scopeDropdownMenu: a, ...n } = e, r = i(a);
|
|
176
|
+
return /* @__PURE__ */ t.jsx(
|
|
179
177
|
re,
|
|
180
178
|
{
|
|
181
|
-
...t,
|
|
182
179
|
...r,
|
|
180
|
+
...n,
|
|
183
181
|
ref: o,
|
|
184
182
|
style: {
|
|
185
183
|
...e.style,
|
|
@@ -192,36 +190,36 @@ var Re = "DropdownMenuSubContent", z = m.forwardRef((e, o) => {
|
|
|
192
190
|
}
|
|
193
191
|
);
|
|
194
192
|
});
|
|
195
|
-
z.displayName =
|
|
196
|
-
var
|
|
197
|
-
function
|
|
193
|
+
z.displayName = _e;
|
|
194
|
+
var De = D, Re = N, $ = I, Ne = S, Ie = y, je = C, Se = P, ye = A, Ce = E, Pe = O, L = k, Ae = T, Ee = Me, Oe = G, ke = z;
|
|
195
|
+
function He({
|
|
198
196
|
...e
|
|
199
197
|
}) {
|
|
200
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ t.jsx(De, { "data-slot": "dropdown-menu", ...e });
|
|
201
199
|
}
|
|
202
|
-
function
|
|
200
|
+
function We({
|
|
203
201
|
...e
|
|
204
202
|
}) {
|
|
205
|
-
return /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ t.jsx($, { "data-slot": "dropdown-menu-portal", ...e });
|
|
206
204
|
}
|
|
207
|
-
function
|
|
205
|
+
function Xe({
|
|
208
206
|
...e
|
|
209
207
|
}) {
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
|
|
208
|
+
return /* @__PURE__ */ t.jsx(
|
|
209
|
+
Re,
|
|
212
210
|
{
|
|
213
211
|
"data-slot": "dropdown-menu-trigger",
|
|
214
212
|
...e
|
|
215
213
|
}
|
|
216
214
|
);
|
|
217
215
|
}
|
|
218
|
-
function
|
|
216
|
+
function qe({
|
|
219
217
|
className: e,
|
|
220
218
|
sideOffset: o = 4,
|
|
221
219
|
...a
|
|
222
220
|
}) {
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
|
|
221
|
+
return /* @__PURE__ */ t.jsx($, { children: /* @__PURE__ */ t.jsx(
|
|
222
|
+
Ne,
|
|
225
223
|
{
|
|
226
224
|
"data-slot": "dropdown-menu-content",
|
|
227
225
|
sideOffset: o,
|
|
@@ -248,19 +246,19 @@ function Ye({
|
|
|
248
246
|
}
|
|
249
247
|
) });
|
|
250
248
|
}
|
|
251
|
-
function
|
|
249
|
+
function Je({
|
|
252
250
|
...e
|
|
253
251
|
}) {
|
|
254
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ t.jsx(Ie, { "data-slot": "dropdown-menu-group", ...e });
|
|
255
253
|
}
|
|
256
|
-
function
|
|
254
|
+
function Qe({
|
|
257
255
|
className: e,
|
|
258
256
|
inset: o,
|
|
259
257
|
variant: a = "default",
|
|
260
|
-
...
|
|
258
|
+
...n
|
|
261
259
|
}) {
|
|
262
|
-
return /* @__PURE__ */
|
|
263
|
-
|
|
260
|
+
return /* @__PURE__ */ t.jsx(
|
|
261
|
+
Se,
|
|
264
262
|
{
|
|
265
263
|
"data-slot": "dropdown-menu-item",
|
|
266
264
|
"data-inset": o,
|
|
@@ -277,25 +275,30 @@ function eo({
|
|
|
277
275
|
adm:data-[variant=destructive]:focus:bg-destructive/10
|
|
278
276
|
adm:data-[variant=destructive]:focus:text-destructive
|
|
279
277
|
adm:dark:data-[variant=destructive]:focus:bg-destructive/20
|
|
278
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
279
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
280
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
281
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-muted-foreground
|
|
280
282
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
281
283
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
282
284
|
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
285
|
+
adm:data-[variant=destructive]:*:[data-slot=icon]:!text-destructive
|
|
283
286
|
adm:data-[variant=destructive]:*:[svg]:!text-destructive
|
|
284
287
|
`,
|
|
285
288
|
e
|
|
286
289
|
),
|
|
287
|
-
...
|
|
290
|
+
...n
|
|
288
291
|
}
|
|
289
292
|
);
|
|
290
293
|
}
|
|
291
|
-
function
|
|
294
|
+
function Ve({
|
|
292
295
|
className: e,
|
|
293
296
|
children: o,
|
|
294
297
|
checked: a,
|
|
295
|
-
...
|
|
298
|
+
...n
|
|
296
299
|
}) {
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
|
|
300
|
+
return /* @__PURE__ */ t.jsxs(
|
|
301
|
+
ye,
|
|
299
302
|
{
|
|
300
303
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
301
304
|
className: u(
|
|
@@ -305,22 +308,25 @@ function oo({
|
|
|
305
308
|
adm:outline-hidden adm:select-none
|
|
306
309
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
307
310
|
adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50
|
|
311
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
312
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
313
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
308
314
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
309
315
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
310
316
|
`,
|
|
311
317
|
e
|
|
312
318
|
),
|
|
313
319
|
checked: a,
|
|
314
|
-
...
|
|
320
|
+
...n,
|
|
315
321
|
children: [
|
|
316
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ t.jsx(
|
|
317
323
|
"span",
|
|
318
324
|
{
|
|
319
325
|
className: `
|
|
320
326
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
321
327
|
adm:items-center adm:justify-center
|
|
322
328
|
`,
|
|
323
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ t.jsx(L, { children: /* @__PURE__ */ t.jsx(v, { symbol: "check" }) })
|
|
324
330
|
}
|
|
325
331
|
),
|
|
326
332
|
o
|
|
@@ -328,24 +334,24 @@ function oo({
|
|
|
328
334
|
}
|
|
329
335
|
);
|
|
330
336
|
}
|
|
331
|
-
function
|
|
337
|
+
function Ye({
|
|
332
338
|
...e
|
|
333
339
|
}) {
|
|
334
|
-
return /* @__PURE__ */
|
|
335
|
-
|
|
340
|
+
return /* @__PURE__ */ t.jsx(
|
|
341
|
+
Ce,
|
|
336
342
|
{
|
|
337
343
|
"data-slot": "dropdown-menu-radio-group",
|
|
338
344
|
...e
|
|
339
345
|
}
|
|
340
346
|
);
|
|
341
347
|
}
|
|
342
|
-
function
|
|
348
|
+
function Ze({
|
|
343
349
|
className: e,
|
|
344
350
|
children: o,
|
|
345
351
|
...a
|
|
346
352
|
}) {
|
|
347
|
-
return /* @__PURE__ */
|
|
348
|
-
|
|
353
|
+
return /* @__PURE__ */ t.jsxs(
|
|
354
|
+
Pe,
|
|
349
355
|
{
|
|
350
356
|
"data-slot": "dropdown-menu-radio-item",
|
|
351
357
|
className: u(
|
|
@@ -355,6 +361,9 @@ function no({
|
|
|
355
361
|
adm:outline-hidden adm:select-none
|
|
356
362
|
adm:focus:bg-accent adm:focus:text-accent-foreground
|
|
357
363
|
adm:data-[disabled]:pointer-events-none adm:data-[disabled]:opacity-50
|
|
364
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
365
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
366
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-sm
|
|
358
367
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
359
368
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
360
369
|
`,
|
|
@@ -362,14 +371,14 @@ function no({
|
|
|
362
371
|
),
|
|
363
372
|
...a,
|
|
364
373
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ t.jsx(
|
|
366
375
|
"span",
|
|
367
376
|
{
|
|
368
377
|
className: `
|
|
369
378
|
adm:pointer-events-none adm:absolute adm:left-2 adm:flex adm:size-3.5
|
|
370
379
|
adm:items-center adm:justify-center
|
|
371
380
|
`,
|
|
372
|
-
children: /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ t.jsx(L, { children: /* @__PURE__ */ t.jsx(v, { symbol: "circle", fill: 1, className: "adm:text-xs" }) })
|
|
373
382
|
}
|
|
374
383
|
),
|
|
375
384
|
o
|
|
@@ -377,13 +386,13 @@ function no({
|
|
|
377
386
|
}
|
|
378
387
|
);
|
|
379
388
|
}
|
|
380
|
-
function
|
|
389
|
+
function eo({
|
|
381
390
|
className: e,
|
|
382
391
|
inset: o,
|
|
383
392
|
...a
|
|
384
393
|
}) {
|
|
385
|
-
return /* @__PURE__ */
|
|
386
|
-
|
|
394
|
+
return /* @__PURE__ */ t.jsx(
|
|
395
|
+
je,
|
|
387
396
|
{
|
|
388
397
|
"data-slot": "dropdown-menu-label",
|
|
389
398
|
"data-inset": o,
|
|
@@ -398,12 +407,12 @@ function ro({
|
|
|
398
407
|
}
|
|
399
408
|
);
|
|
400
409
|
}
|
|
401
|
-
function
|
|
410
|
+
function oo({
|
|
402
411
|
className: e,
|
|
403
412
|
...o
|
|
404
413
|
}) {
|
|
405
|
-
return /* @__PURE__ */
|
|
406
|
-
|
|
414
|
+
return /* @__PURE__ */ t.jsx(
|
|
415
|
+
Ae,
|
|
407
416
|
{
|
|
408
417
|
"data-slot": "dropdown-menu-separator",
|
|
409
418
|
className: u("adm:-mx-1 adm:my-1 adm:h-px adm:bg-border", e),
|
|
@@ -411,11 +420,11 @@ function to({
|
|
|
411
420
|
}
|
|
412
421
|
);
|
|
413
422
|
}
|
|
414
|
-
function
|
|
423
|
+
function ao({
|
|
415
424
|
className: e,
|
|
416
425
|
...o
|
|
417
426
|
}) {
|
|
418
|
-
return /* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ t.jsx(
|
|
419
428
|
"span",
|
|
420
429
|
{
|
|
421
430
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -427,19 +436,19 @@ function so({
|
|
|
427
436
|
}
|
|
428
437
|
);
|
|
429
438
|
}
|
|
430
|
-
function
|
|
439
|
+
function to({
|
|
431
440
|
...e
|
|
432
441
|
}) {
|
|
433
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ t.jsx(Ee, { "data-slot": "dropdown-menu-sub", ...e });
|
|
434
443
|
}
|
|
435
|
-
function
|
|
444
|
+
function no({
|
|
436
445
|
className: e,
|
|
437
446
|
inset: o,
|
|
438
447
|
children: a,
|
|
439
|
-
...
|
|
448
|
+
...n
|
|
440
449
|
}) {
|
|
441
|
-
return /* @__PURE__ */
|
|
442
|
-
|
|
450
|
+
return /* @__PURE__ */ t.jsxs(
|
|
451
|
+
Oe,
|
|
443
452
|
{
|
|
444
453
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
445
454
|
"data-inset": o,
|
|
@@ -451,26 +460,30 @@ function io({
|
|
|
451
460
|
adm:data-[inset]:pl-8
|
|
452
461
|
adm:data-[state=open]:bg-accent
|
|
453
462
|
adm:data-[state=open]:text-accent-foreground
|
|
463
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
464
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
465
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
466
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-muted-foreground
|
|
454
467
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
455
468
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
456
469
|
adm:[&_svg:not([class*=text-])]:text-muted-foreground
|
|
457
470
|
`,
|
|
458
471
|
e
|
|
459
472
|
),
|
|
460
|
-
...
|
|
473
|
+
...n,
|
|
461
474
|
children: [
|
|
462
475
|
a,
|
|
463
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ t.jsx(v, { symbol: "chevron_right", className: "adm:ml-auto adm:shrink-0" })
|
|
464
477
|
]
|
|
465
478
|
}
|
|
466
479
|
);
|
|
467
480
|
}
|
|
468
|
-
function
|
|
481
|
+
function ro({
|
|
469
482
|
className: e,
|
|
470
483
|
...o
|
|
471
484
|
}) {
|
|
472
|
-
return /* @__PURE__ */
|
|
473
|
-
|
|
485
|
+
return /* @__PURE__ */ t.jsx(
|
|
486
|
+
ke,
|
|
474
487
|
{
|
|
475
488
|
"data-slot": "dropdown-menu-sub-content",
|
|
476
489
|
className: u(
|
|
@@ -495,19 +508,19 @@ function po({
|
|
|
495
508
|
);
|
|
496
509
|
}
|
|
497
510
|
export {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
He as DropdownMenu,
|
|
512
|
+
Ve as DropdownMenuCheckboxItem,
|
|
513
|
+
qe as DropdownMenuContent,
|
|
514
|
+
Je as DropdownMenuGroup,
|
|
515
|
+
Qe as DropdownMenuItem,
|
|
516
|
+
eo as DropdownMenuLabel,
|
|
517
|
+
We as DropdownMenuPortal,
|
|
518
|
+
Ye as DropdownMenuRadioGroup,
|
|
519
|
+
Ze as DropdownMenuRadioItem,
|
|
520
|
+
oo as DropdownMenuSeparator,
|
|
521
|
+
ao as DropdownMenuShortcut,
|
|
522
|
+
to as DropdownMenuSub,
|
|
523
|
+
ro as DropdownMenuSubContent,
|
|
524
|
+
no as DropdownMenuSubTrigger,
|
|
525
|
+
Xe as DropdownMenuTrigger
|
|
513
526
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { c } from "./index-CRiPKpXj.js";
|
|
3
|
+
function u({
|
|
4
|
+
symbol: t,
|
|
5
|
+
fill: o = 0,
|
|
6
|
+
weight: s = 300,
|
|
7
|
+
grade: n = 0,
|
|
8
|
+
opticalSize: a = 24,
|
|
9
|
+
className: i,
|
|
10
|
+
style: e,
|
|
11
|
+
...l
|
|
12
|
+
}) {
|
|
13
|
+
const m = {
|
|
14
|
+
fontVariationSettings: `
|
|
15
|
+
'FILL' ${o},
|
|
16
|
+
'wght' ${s},
|
|
17
|
+
'GRAD' ${n},
|
|
18
|
+
'opsz' ${a}
|
|
19
|
+
`,
|
|
20
|
+
...e
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ r.jsx(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "icon",
|
|
26
|
+
className: c("material-symbols-outlined adm:inline-block adm:text-lg", i),
|
|
27
|
+
style: m,
|
|
28
|
+
...l,
|
|
29
|
+
children: t
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
u as I
|
|
35
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-BB_1_6y_.cjs"),u=require("./index-DoxiiusW.cjs");function m({symbol:t,fill:n=0,weight:s=300,grade:e=0,opticalSize:i=24,className:o,style:c,...l}){const a={fontVariationSettings:`
|
|
2
|
+
'FILL' ${n},
|
|
3
|
+
'wght' ${s},
|
|
4
|
+
'GRAD' ${e},
|
|
5
|
+
'opsz' ${i}
|
|
6
|
+
`,...c};return r.jsxRuntimeExports.jsx("span",{"data-slot":"icon",className:u.cn("material-symbols-outlined adm:inline-block adm:text-lg",o),style:a,...l,children:t})}exports.Icon=m;
|
package/dist/icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./icon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./icon-SWksUOv5.cjs");exports.Icon=e.Icon;
|
package/dist/icon.js
CHANGED