ics-ui-kit 1.0.0-alpha.0 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CalendarPreviousMonthButton-CHMp8bkd.js +2964 -0
- package/dist/CalendarPreviousMonthButton-CHMp8bkd.js.map +1 -0
- package/dist/{CheckboxField-Ca48ZYoX.js → CheckboxField-xDqHgXHh.js} +2 -2
- package/dist/{CheckboxField-Ca48ZYoX.js.map → CheckboxField-xDqHgXHh.js.map} +1 -1
- package/dist/{Command-CsW4aK7M.js → Command-WsAKNQrY.js} +2 -2
- package/dist/{Command-CsW4aK7M.js.map → Command-WsAKNQrY.js.map} +1 -1
- package/dist/{Dialog-BT_775Iz.js → Dialog-i_Y-phdM.js} +42 -43
- package/dist/Dialog-i_Y-phdM.js.map +1 -0
- package/dist/{Field-BRPdaQ8D.js → Field-BcwUtgGr.js} +2 -2
- package/dist/{Field-BRPdaQ8D.js.map → Field-BcwUtgGr.js.map} +1 -1
- package/dist/{FieldLabel-ic0eq9Un.js → FieldLabel-DYu1AcGH.js} +2 -2
- package/dist/{FieldLabel-ic0eq9Un.js.map → FieldLabel-DYu1AcGH.js.map} +1 -1
- package/dist/{FormFooterTemplate-BIwnBQhL.js → FormFooterTemplate-CHlas_Pp.js} +2 -2
- package/dist/{FormFooterTemplate-BIwnBQhL.js.map → FormFooterTemplate-CHlas_Pp.js.map} +1 -1
- package/dist/FormStack-DfoaOry7.js +1205 -0
- package/dist/FormStack-DfoaOry7.js.map +1 -0
- package/dist/{IconTooltip-CgbefRXG.js → IconTooltip-R6_6_f40.js} +2 -2
- package/dist/{IconTooltip-CgbefRXG.js.map → IconTooltip-R6_6_f40.js.map} +1 -1
- package/dist/{Popover-Dz2eNsXh.js → Popover-XrJa7lyb.js} +49 -50
- package/dist/Popover-XrJa7lyb.js.map +1 -0
- package/dist/{Select-Bfbtj5zt.js → Select-DO02vXt3.js} +185 -186
- package/dist/{Select-Bfbtj5zt.js.map → Select-DO02vXt3.js.map} +1 -1
- package/dist/{Sheet-aLBPtE1k.js → Sheet-C2UoHLL0.js} +35 -36
- package/dist/Sheet-C2UoHLL0.js.map +1 -0
- package/dist/{TextOverflowTooltip-BaNPKqnO.js → TextOverflowTooltip-XPDdO9Dz.js} +2 -2
- package/dist/{TextOverflowTooltip-BaNPKqnO.js.map → TextOverflowTooltip-XPDdO9Dz.js.map} +1 -1
- package/dist/{Tooltip-DOgKy50D.js → Tooltip-D2XvRS0c.js} +63 -64
- package/dist/Tooltip-D2XvRS0c.js.map +1 -0
- package/dist/blocks/auth/otp-form.js +3240 -204
- package/dist/blocks/auth/otp-form.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +2 -4
- package/dist/components/alert-dialog.js +70 -71
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/calendar/components/calendar-dropdown/CalendarDropdown.d.ts +24 -0
- package/dist/components/calendar/styles.d.ts +61 -0
- package/dist/components/calendar-scroll/CalendarScroll.d.ts +21 -0
- package/dist/components/calendar-scroll/CalendarScroll.stories.d.ts +16 -0
- package/dist/components/calendar-scroll/index.d.ts +3 -0
- package/dist/components/calendar-scroll.d.ts +2 -0
- package/dist/components/calendar-scroll.js +181 -0
- package/dist/components/calendar-scroll.js.map +1 -0
- package/dist/components/calendar.js +51 -147
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +2 -4
- package/dist/components/dialog.js +3 -3
- package/dist/components/drawer/components/drawer-content/DrawerContent.d.ts +1 -2
- package/dist/components/drawer.js +96 -97
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +2 -4
- package/dist/components/dropdown.js +251 -252
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form/Form.d.ts +14 -0
- package/dist/components/form/components/form-field/FormField.d.ts +4 -0
- package/dist/components/form.js +3 -3
- package/dist/components/icon-tooltip.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/overflow-tooltip.js +1 -1
- package/dist/components/popover/Popover.d.ts +1 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/resizable/Resizable.d.ts +1 -1
- package/dist/components/scheduler.js +1 -1
- package/dist/components/search-select/multi-select/MultiSelect.d.ts +1 -1
- package/dist/components/search-select.js +3 -3
- package/dist/components/search-select.js.map +1 -1
- package/dist/components/select/Select.d.ts +1 -2
- package/dist/components/select.js +1 -1
- package/dist/components/sheet/Sheet.d.ts +1 -2
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tag-input.js +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +2 -4
- package/dist/components/tooltip.js +1 -1
- package/dist/tailwind.css +406 -361
- package/package.json +22 -18
- package/dist/DayPicker-4hE1QEvO.js +0 -2452
- package/dist/DayPicker-4hE1QEvO.js.map +0 -1
- package/dist/Dialog-BT_775Iz.js.map +0 -1
- package/dist/FormStack-CxiZhx1n.js +0 -127
- package/dist/FormStack-CxiZhx1n.js.map +0 -1
- package/dist/Popover-Dz2eNsXh.js.map +0 -1
- package/dist/Sheet-aLBPtE1k.js.map +0 -1
- package/dist/Tooltip-DOgKy50D.js.map +0 -1
- package/dist/buildMatchPatternFn-d7GTeGl_.js +0 -68
- package/dist/buildMatchPatternFn-d7GTeGl_.js.map +0 -1
- package/dist/components/portal-container/PortalContainer.d.ts +0 -10
- package/dist/components/portal-container/index.d.ts +0 -2
- package/dist/components/portal-container/portalContainerEvents.d.ts +0 -12
- package/dist/components/portal-container/usePortalContainer.d.ts +0 -11
- package/dist/components/portal-container.d.ts +0 -2
- package/dist/components/portal-container.js +0 -14
- package/dist/components/portal-container.js.map +0 -1
- package/dist/index.esm-CXA6i4d7.js +0 -1282
- package/dist/index.esm-CXA6i4d7.js.map +0 -1
- package/dist/normalizeDates-9A3c9WYM.js +0 -32
- package/dist/normalizeDates-9A3c9WYM.js.map +0 -1
- package/dist/styles.css +0 -9064
- package/dist/styles.d.ts +0 -1
- package/dist/usePortalContainer-B1xla842.js +0 -33
- package/dist/usePortalContainer-B1xla842.js.map +0 -1
- package/dist/vendors/date-fns/index.d.ts +0 -12
- package/dist/vendors/date-fns/locale/en-US/index.d.ts +0 -5
- package/dist/vendors/date-fns/locale/en-US.d.ts +0 -2
- package/dist/vendors/date-fns/locale/en-US.js +0 -372
- package/dist/vendors/date-fns/locale/en-US.js.map +0 -1
- package/dist/vendors/date-fns/locale/ru/index.d.ts +0 -5
- package/dist/vendors/date-fns/locale/ru.d.ts +0 -2
- package/dist/vendors/date-fns/locale/ru.js +0 -569
- package/dist/vendors/date-fns/locale/ru.js.map +0 -1
- package/dist/vendors/date-fns.d.ts +0 -2
- package/dist/vendors/date-fns.js +0 -2
- package/dist/vendors/date-fns.js.map +0 -1
- package/dist/vendors/react-day-picker/index.d.ts +0 -13
- package/dist/vendors/react-day-picker.d.ts +0 -2
- package/dist/vendors/react-day-picker.js +0 -87
- package/dist/vendors/react-day-picker.js.map +0 -1
- package/dist/vendors/react-hook-form/index.d.ts +0 -14
- package/dist/vendors/react-hook-form.d.ts +0 -2
- package/dist/vendors/react-hook-form.js +0 -19
- package/dist/vendors/react-hook-form.js.map +0 -1
- package/dist/vendors/tanstack/react-table/index.d.ts +0 -13
- package/dist/vendors/tanstack/react-table.d.ts +0 -2
- package/dist/vendors/tanstack/react-table.js +0 -2090
- package/dist/vendors/tanstack/react-table.js.map +0 -1
- package/dist/vendors/zod/index.d.ts +0 -13
- package/dist/vendors/zod.d.ts +0 -2
- package/dist/vendors/zod.js +0 -3080
- package/dist/vendors/zod.js.map +0 -1
- package/dist/zod-BMNoK3aM.js +0 -75
- package/dist/zod-BMNoK3aM.js.map +0 -1
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import { jsx as c, jsxs as H } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as zn } from "../cn-dsXlqdJg.js";
|
|
3
3
|
import { u as S, n as ie } from "../ComponentVariantProvider-brk0g-hm.js";
|
|
4
4
|
import * as s from "react";
|
|
5
|
-
import { P as E, c as g, d as
|
|
5
|
+
import { P as E, c as g, d as jn, a as Yn } from "../index-CFaU3UXv.js";
|
|
6
6
|
import { u as F, c as He } from "../index-DLcqcWxM.js";
|
|
7
7
|
import { c as We } from "../index-DFZozV_h.js";
|
|
8
8
|
import { u as Ze } from "../index-437EL2iq.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as
|
|
11
|
-
import { P as
|
|
12
|
-
import { u as
|
|
9
|
+
import { c as Xn } from "../index-DHsfW5Rj.js";
|
|
10
|
+
import { u as Hn } from "../index-ByaXH_ih.js";
|
|
11
|
+
import { P as Wn, D as Zn } from "../index-_ITz1IyW.js";
|
|
12
|
+
import { u as qn, R as Jn, F as Qn } from "../Combination-DeIugdgY.js";
|
|
13
13
|
import { u as j } from "../index-xqkGMOJ8.js";
|
|
14
|
-
import { c as qe, R as Je, A as
|
|
14
|
+
import { c as qe, R as Je, A as eo, a as no, C as oo } from "../index-1SnkxfPR.js";
|
|
15
15
|
import { P as W } from "../index-BpWB3aFK.js";
|
|
16
|
-
import { c as Qe, I as
|
|
16
|
+
import { c as Qe, I as to, R as ro } from "../index-DHyZ_0Ut.js";
|
|
17
17
|
import { u as de } from "../index-0ioNhtNM.js";
|
|
18
|
-
import { h as
|
|
18
|
+
import { h as ao } from "../index-BjtNfqNq.js";
|
|
19
19
|
import { T as M } from "../index-BVqs-uqP.js";
|
|
20
|
-
import { T as
|
|
21
|
-
import { I as
|
|
20
|
+
import { T as so } from "../TriggerButton-CoAgB4lx.js";
|
|
21
|
+
import { I as co } from "../Icon-DH3ev9GK.js";
|
|
22
22
|
import { M as Z, m as q } from "../MenuItem-C51uFz3V.js";
|
|
23
|
-
import { m as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { C as
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
var ce = ["Enter", " "], fo = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp", "PageDown", "End"], ho = [...fo, ...on], go = {
|
|
23
|
+
import { m as io } from "../MenuItemShortcut-D1faeIXp.js";
|
|
24
|
+
import { M as uo } from "../minus-BltQa7Q2.js";
|
|
25
|
+
import { C as en } from "../check-CeyaOoZv.js";
|
|
26
|
+
import { C as lo } from "../chevron-right-D3juAhA-.js";
|
|
27
|
+
import { S as po } from "../search-CDdgqSGg.js";
|
|
28
|
+
var ce = ["Enter", " "], mo = ["ArrowDown", "PageUp", "Home"], nn = ["ArrowUp", "PageDown", "End"], fo = [...mo, ...nn], ho = {
|
|
30
29
|
ltr: [...ce, "ArrowRight"],
|
|
31
30
|
rtl: [...ce, "ArrowLeft"]
|
|
32
|
-
},
|
|
31
|
+
}, go = {
|
|
33
32
|
ltr: ["ArrowLeft"],
|
|
34
33
|
rtl: ["ArrowRight"]
|
|
35
|
-
}, K = "Menu", [L,
|
|
36
|
-
|
|
34
|
+
}, K = "Menu", [L, vo, wo] = Xn(K), [D, on] = We(K, [
|
|
35
|
+
wo,
|
|
37
36
|
qe,
|
|
38
37
|
Qe
|
|
39
|
-
]), $ = qe(),
|
|
40
|
-
const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: a, modal: i = !0 } = e, d = $(o), [m, f] = s.useState(null), l = s.useRef(!1), u = de(a), h =
|
|
38
|
+
]), $ = qe(), tn = Qe(), [rn, _] = D(K), [Mo, U] = D(K), an = (e) => {
|
|
39
|
+
const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: a, modal: i = !0 } = e, d = $(o), [m, f] = s.useState(null), l = s.useRef(!1), u = de(a), h = Hn(r);
|
|
41
40
|
return s.useEffect(() => {
|
|
42
41
|
const w = () => {
|
|
43
42
|
l.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
|
|
@@ -46,7 +45,7 @@ var ce = ["Enter", " "], fo = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp",
|
|
|
46
45
|
document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
|
|
47
46
|
};
|
|
48
47
|
}, []), /* @__PURE__ */ c(Je, { ...d, children: /* @__PURE__ */ c(
|
|
49
|
-
|
|
48
|
+
rn,
|
|
50
49
|
{
|
|
51
50
|
scope: o,
|
|
52
51
|
open: n,
|
|
@@ -54,7 +53,7 @@ var ce = ["Enter", " "], fo = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp",
|
|
|
54
53
|
content: m,
|
|
55
54
|
onContentChange: f,
|
|
56
55
|
children: /* @__PURE__ */ c(
|
|
57
|
-
|
|
56
|
+
Mo,
|
|
58
57
|
{
|
|
59
58
|
scope: o,
|
|
60
59
|
onClose: s.useCallback(() => u(!1), [u]),
|
|
@@ -67,32 +66,32 @@ var ce = ["Enter", " "], fo = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp",
|
|
|
67
66
|
}
|
|
68
67
|
) });
|
|
69
68
|
};
|
|
70
|
-
|
|
71
|
-
var
|
|
69
|
+
an.displayName = K;
|
|
70
|
+
var bo = "MenuAnchor", ue = s.forwardRef(
|
|
72
71
|
(e, o) => {
|
|
73
72
|
const { __scopeMenu: n, ...t } = e, r = $(n);
|
|
74
|
-
return /* @__PURE__ */ c(
|
|
73
|
+
return /* @__PURE__ */ c(eo, { ...r, ...t, ref: o });
|
|
75
74
|
}
|
|
76
75
|
);
|
|
77
|
-
ue.displayName =
|
|
78
|
-
var le = "MenuPortal", [yo,
|
|
76
|
+
ue.displayName = bo;
|
|
77
|
+
var le = "MenuPortal", [yo, sn] = D(le, {
|
|
79
78
|
forceMount: void 0
|
|
80
|
-
}),
|
|
79
|
+
}), cn = (e) => {
|
|
81
80
|
const { __scopeMenu: o, forceMount: n, children: t, container: r } = e, a = _(le, o);
|
|
82
|
-
return /* @__PURE__ */ c(yo, { scope: o, forceMount: n, children: /* @__PURE__ */ c(W, { present: n || a.open, children: /* @__PURE__ */ c(
|
|
81
|
+
return /* @__PURE__ */ c(yo, { scope: o, forceMount: n, children: /* @__PURE__ */ c(W, { present: n || a.open, children: /* @__PURE__ */ c(Wn, { asChild: !0, container: r, children: t }) }) });
|
|
83
82
|
};
|
|
84
|
-
|
|
85
|
-
var
|
|
83
|
+
cn.displayName = le;
|
|
84
|
+
var C = "MenuContent", [Co, pe] = D(C), dn = s.forwardRef(
|
|
86
85
|
(e, o) => {
|
|
87
|
-
const n =
|
|
88
|
-
return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || a.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c(
|
|
86
|
+
const n = sn(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, a = _(C, e.__scopeMenu), i = U(C, e.__scopeMenu);
|
|
87
|
+
return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || a.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ c(So, { ...r, ref: o }) : /* @__PURE__ */ c(_o, { ...r, ref: o }) }) }) });
|
|
89
88
|
}
|
|
90
|
-
),
|
|
89
|
+
), So = s.forwardRef(
|
|
91
90
|
(e, o) => {
|
|
92
|
-
const n = _(
|
|
91
|
+
const n = _(C, e.__scopeMenu), t = s.useRef(null), r = F(o, t);
|
|
93
92
|
return s.useEffect(() => {
|
|
94
93
|
const a = t.current;
|
|
95
|
-
if (a) return
|
|
94
|
+
if (a) return ao(a);
|
|
96
95
|
}, []), /* @__PURE__ */ c(
|
|
97
96
|
me,
|
|
98
97
|
{
|
|
@@ -110,8 +109,8 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
110
109
|
}
|
|
111
110
|
);
|
|
112
111
|
}
|
|
113
|
-
),
|
|
114
|
-
const n = _(
|
|
112
|
+
), _o = s.forwardRef((e, o) => {
|
|
113
|
+
const n = _(C, e.__scopeMenu);
|
|
115
114
|
return /* @__PURE__ */ c(
|
|
116
115
|
me,
|
|
117
116
|
{
|
|
@@ -123,7 +122,7 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
123
122
|
onDismiss: () => n.onOpenChange(!1)
|
|
124
123
|
}
|
|
125
124
|
);
|
|
126
|
-
}),
|
|
125
|
+
}), Ro = Yn("MenuContent.ScrollLock"), me = s.forwardRef(
|
|
127
126
|
(e, o) => {
|
|
128
127
|
const {
|
|
129
128
|
__scopeMenu: n,
|
|
@@ -140,16 +139,16 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
140
139
|
onDismiss: w,
|
|
141
140
|
disableOutsideScroll: v,
|
|
142
141
|
...x
|
|
143
|
-
} = e, T = _(
|
|
144
|
-
const N = z.current + p, R = Ve().filter((
|
|
145
|
-
(function
|
|
146
|
-
z.current = Ye, window.clearTimeout(B.current), Ye !== "" && (B.current = window.setTimeout(() =>
|
|
142
|
+
} = e, T = _(C, n), I = U(C, n), Ln = $(n), Gn = tn(n), Ve = vo(n), [Fn, Be] = s.useState(null), V = s.useRef(null), Kn = F(o, V, T.onContentChange), B = s.useRef(0), z = s.useRef(""), $n = s.useRef(0), te = s.useRef(null), ze = s.useRef("right"), re = s.useRef(0), Un = v ? Jn : s.Fragment, Vn = v ? { as: Ro, allowPinchZoom: !0 } : void 0, Bn = (p) => {
|
|
143
|
+
const N = z.current + p, R = Ve().filter((y) => !y.disabled), k = document.activeElement, ae = R.find((y) => y.ref.current === k)?.textValue, se = R.map((y) => y.textValue), je = Go(se, N, ae), A = R.find((y) => y.textValue === je)?.ref.current;
|
|
144
|
+
(function y(Ye) {
|
|
145
|
+
z.current = Ye, window.clearTimeout(B.current), Ye !== "" && (B.current = window.setTimeout(() => y(""), 1e3));
|
|
147
146
|
})(N), A && setTimeout(() => A.focus());
|
|
148
147
|
};
|
|
149
|
-
s.useEffect(() => () => window.clearTimeout(B.current), []),
|
|
150
|
-
const P = s.useCallback((p) => ze.current === te.current?.side &&
|
|
148
|
+
s.useEffect(() => () => window.clearTimeout(B.current), []), qn();
|
|
149
|
+
const P = s.useCallback((p) => ze.current === te.current?.side && Ko(p, te.current?.area), []);
|
|
151
150
|
return /* @__PURE__ */ c(
|
|
152
|
-
|
|
151
|
+
Co,
|
|
153
152
|
{
|
|
154
153
|
scope: n,
|
|
155
154
|
searchRef: z,
|
|
@@ -171,12 +170,12 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
171
170
|
},
|
|
172
171
|
[P]
|
|
173
172
|
),
|
|
174
|
-
pointerGraceTimerRef:
|
|
173
|
+
pointerGraceTimerRef: $n,
|
|
175
174
|
onPointerGraceIntentChange: s.useCallback((p) => {
|
|
176
175
|
te.current = p;
|
|
177
176
|
}, []),
|
|
178
|
-
children: /* @__PURE__ */ c(
|
|
179
|
-
|
|
177
|
+
children: /* @__PURE__ */ c(Un, { ...Vn, children: /* @__PURE__ */ c(
|
|
178
|
+
Qn,
|
|
180
179
|
{
|
|
181
180
|
asChild: !0,
|
|
182
181
|
trapped: r,
|
|
@@ -185,7 +184,7 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
185
184
|
}),
|
|
186
185
|
onUnmountAutoFocus: i,
|
|
187
186
|
children: /* @__PURE__ */ c(
|
|
188
|
-
|
|
187
|
+
Zn,
|
|
189
188
|
{
|
|
190
189
|
asChild: !0,
|
|
191
190
|
disableOutsidePointerEvents: d,
|
|
@@ -195,39 +194,39 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
195
194
|
onInteractOutside: h,
|
|
196
195
|
onDismiss: w,
|
|
197
196
|
children: /* @__PURE__ */ c(
|
|
198
|
-
|
|
197
|
+
ro,
|
|
199
198
|
{
|
|
200
199
|
asChild: !0,
|
|
201
|
-
...
|
|
200
|
+
...Gn,
|
|
202
201
|
dir: I.dir,
|
|
203
202
|
orientation: "vertical",
|
|
204
203
|
loop: t,
|
|
205
|
-
currentTabStopId:
|
|
204
|
+
currentTabStopId: Fn,
|
|
206
205
|
onCurrentTabStopIdChange: Be,
|
|
207
206
|
onEntryFocus: g(m, (p) => {
|
|
208
207
|
I.isUsingKeyboardRef.current || p.preventDefault();
|
|
209
208
|
}),
|
|
210
209
|
preventScrollOnEntryFocus: !0,
|
|
211
210
|
children: /* @__PURE__ */ c(
|
|
212
|
-
|
|
211
|
+
oo,
|
|
213
212
|
{
|
|
214
213
|
role: "menu",
|
|
215
214
|
"aria-orientation": "vertical",
|
|
216
|
-
"data-state":
|
|
215
|
+
"data-state": Dn(T.open),
|
|
217
216
|
"data-radix-menu-content": "",
|
|
218
217
|
dir: I.dir,
|
|
219
|
-
...
|
|
218
|
+
...Ln,
|
|
220
219
|
...x,
|
|
221
|
-
ref:
|
|
220
|
+
ref: Kn,
|
|
222
221
|
style: { outline: "none", ...x.style },
|
|
223
222
|
onKeyDown: g(x.onKeyDown, (p) => {
|
|
224
223
|
const R = p.target.closest("[data-radix-menu-content]") === p.currentTarget, k = p.ctrlKey || p.altKey || p.metaKey, ae = p.key.length === 1;
|
|
225
|
-
R && (p.key === "Tab" && p.preventDefault(), !k && ae &&
|
|
224
|
+
R && (p.key === "Tab" && p.preventDefault(), !k && ae && Bn(p.key));
|
|
226
225
|
const se = V.current;
|
|
227
|
-
if (p.target !== se || !
|
|
226
|
+
if (p.target !== se || !fo.includes(p.key)) return;
|
|
228
227
|
p.preventDefault();
|
|
229
|
-
const A = Ve().filter((
|
|
230
|
-
|
|
228
|
+
const A = Ve().filter((y) => !y.disabled).map((y) => y.ref.current);
|
|
229
|
+
nn.includes(p.key) && A.reverse(), Oo(A);
|
|
231
230
|
}),
|
|
232
231
|
onBlur: g(e.onBlur, (p) => {
|
|
233
232
|
p.currentTarget.contains(p.target) || (window.clearTimeout(B.current), z.current = "");
|
|
@@ -254,32 +253,32 @@ var y = "MenuContent", [So, pe] = D(y), un = s.forwardRef(
|
|
|
254
253
|
);
|
|
255
254
|
}
|
|
256
255
|
);
|
|
257
|
-
|
|
258
|
-
var
|
|
256
|
+
dn.displayName = C;
|
|
257
|
+
var Do = "MenuGroup", fe = s.forwardRef(
|
|
259
258
|
(e, o) => {
|
|
260
259
|
const { __scopeMenu: n, ...t } = e;
|
|
261
260
|
return /* @__PURE__ */ c(E.div, { role: "group", ...t, ref: o });
|
|
262
261
|
}
|
|
263
262
|
);
|
|
264
|
-
fe.displayName =
|
|
265
|
-
var
|
|
263
|
+
fe.displayName = Do;
|
|
264
|
+
var xo = "MenuLabel", un = s.forwardRef(
|
|
266
265
|
(e, o) => {
|
|
267
266
|
const { __scopeMenu: n, ...t } = e;
|
|
268
267
|
return /* @__PURE__ */ c(E.div, { ...t, ref: o });
|
|
269
268
|
}
|
|
270
269
|
);
|
|
271
|
-
|
|
270
|
+
un.displayName = xo;
|
|
272
271
|
var Y = "MenuItem", Xe = "menu.itemSelect", J = s.forwardRef(
|
|
273
272
|
(e, o) => {
|
|
274
273
|
const { disabled: n = !1, onSelect: t, ...r } = e, a = s.useRef(null), i = U(Y, e.__scopeMenu), d = pe(Y, e.__scopeMenu), m = F(o, a), f = s.useRef(!1), l = () => {
|
|
275
274
|
const u = a.current;
|
|
276
275
|
if (!n && u) {
|
|
277
276
|
const h = new CustomEvent(Xe, { bubbles: !0, cancelable: !0 });
|
|
278
|
-
u.addEventListener(Xe, (w) => t?.(w), { once: !0 }),
|
|
277
|
+
u.addEventListener(Xe, (w) => t?.(w), { once: !0 }), jn(u, h), h.defaultPrevented ? f.current = !1 : i.onClose();
|
|
279
278
|
}
|
|
280
279
|
};
|
|
281
280
|
return /* @__PURE__ */ c(
|
|
282
|
-
|
|
281
|
+
ln,
|
|
283
282
|
{
|
|
284
283
|
...r,
|
|
285
284
|
ref: m,
|
|
@@ -300,9 +299,9 @@ var Y = "MenuItem", Xe = "menu.itemSelect", J = s.forwardRef(
|
|
|
300
299
|
}
|
|
301
300
|
);
|
|
302
301
|
J.displayName = Y;
|
|
303
|
-
var
|
|
302
|
+
var ln = s.forwardRef(
|
|
304
303
|
(e, o) => {
|
|
305
|
-
const { __scopeMenu: n, disabled: t = !1, textValue: r, ...a } = e, i = pe(Y, n), d =
|
|
304
|
+
const { __scopeMenu: n, disabled: t = !1, textValue: r, ...a } = e, i = pe(Y, n), d = tn(n), m = s.useRef(null), f = F(o, m), [l, u] = s.useState(!1), [h, w] = s.useState("");
|
|
306
305
|
return s.useEffect(() => {
|
|
307
306
|
const v = m.current;
|
|
308
307
|
v && w((v.textContent ?? "").trim());
|
|
@@ -312,7 +311,7 @@ var pn = s.forwardRef(
|
|
|
312
311
|
scope: n,
|
|
313
312
|
disabled: t,
|
|
314
313
|
textValue: r ?? h,
|
|
315
|
-
children: /* @__PURE__ */ c(
|
|
314
|
+
children: /* @__PURE__ */ c(to, { asChild: !0, ...d, focusable: !t, children: /* @__PURE__ */ c(
|
|
316
315
|
E.div,
|
|
317
316
|
{
|
|
318
317
|
role: "menuitem",
|
|
@@ -338,10 +337,10 @@ var pn = s.forwardRef(
|
|
|
338
337
|
}
|
|
339
338
|
);
|
|
340
339
|
}
|
|
341
|
-
),
|
|
340
|
+
), Io = "MenuCheckboxItem", pn = s.forwardRef(
|
|
342
341
|
(e, o) => {
|
|
343
342
|
const { checked: n = !1, onCheckedChange: t, ...r } = e;
|
|
344
|
-
return /* @__PURE__ */ c(
|
|
343
|
+
return /* @__PURE__ */ c(vn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c(
|
|
345
344
|
J,
|
|
346
345
|
{
|
|
347
346
|
role: "menuitemcheckbox",
|
|
@@ -358,22 +357,22 @@ var pn = s.forwardRef(
|
|
|
358
357
|
) });
|
|
359
358
|
}
|
|
360
359
|
);
|
|
361
|
-
|
|
362
|
-
var
|
|
363
|
-
|
|
360
|
+
pn.displayName = Io;
|
|
361
|
+
var mn = "MenuRadioGroup", [Po, No] = D(
|
|
362
|
+
mn,
|
|
364
363
|
{ value: void 0, onValueChange: () => {
|
|
365
364
|
} }
|
|
366
|
-
),
|
|
365
|
+
), fn = s.forwardRef(
|
|
367
366
|
(e, o) => {
|
|
368
367
|
const { value: n, onValueChange: t, ...r } = e, a = de(t);
|
|
369
|
-
return /* @__PURE__ */ c(
|
|
368
|
+
return /* @__PURE__ */ c(Po, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ c(fe, { ...r, ref: o }) });
|
|
370
369
|
}
|
|
371
370
|
);
|
|
372
|
-
|
|
373
|
-
var
|
|
371
|
+
fn.displayName = mn;
|
|
372
|
+
var hn = "MenuRadioItem", gn = s.forwardRef(
|
|
374
373
|
(e, o) => {
|
|
375
|
-
const { value: n, ...t } = e, r =
|
|
376
|
-
return /* @__PURE__ */ c(
|
|
374
|
+
const { value: n, ...t } = e, r = No(hn, e.__scopeMenu), a = n === r.value;
|
|
375
|
+
return /* @__PURE__ */ c(vn, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ c(
|
|
377
376
|
J,
|
|
378
377
|
{
|
|
379
378
|
role: "menuitemradio",
|
|
@@ -390,13 +389,13 @@ var gn = "MenuRadioItem", vn = s.forwardRef(
|
|
|
390
389
|
) });
|
|
391
390
|
}
|
|
392
391
|
);
|
|
393
|
-
|
|
394
|
-
var he = "MenuItemIndicator", [
|
|
392
|
+
gn.displayName = hn;
|
|
393
|
+
var he = "MenuItemIndicator", [vn, Eo] = D(
|
|
395
394
|
he,
|
|
396
395
|
{ checked: !1 }
|
|
397
|
-
),
|
|
396
|
+
), wn = s.forwardRef(
|
|
398
397
|
(e, o) => {
|
|
399
|
-
const { __scopeMenu: n, forceMount: t, ...r } = e, a =
|
|
398
|
+
const { __scopeMenu: n, forceMount: t, ...r } = e, a = Eo(he, n);
|
|
400
399
|
return /* @__PURE__ */ c(
|
|
401
400
|
W,
|
|
402
401
|
{
|
|
@@ -413,8 +412,8 @@ var he = "MenuItemIndicator", [wn, To] = D(
|
|
|
413
412
|
);
|
|
414
413
|
}
|
|
415
414
|
);
|
|
416
|
-
|
|
417
|
-
var
|
|
415
|
+
wn.displayName = he;
|
|
416
|
+
var To = "MenuSeparator", Mn = s.forwardRef(
|
|
418
417
|
(e, o) => {
|
|
419
418
|
const { __scopeMenu: n, ...t } = e;
|
|
420
419
|
return /* @__PURE__ */ c(
|
|
@@ -428,18 +427,18 @@ var ko = "MenuSeparator", bn = s.forwardRef(
|
|
|
428
427
|
);
|
|
429
428
|
}
|
|
430
429
|
);
|
|
431
|
-
|
|
432
|
-
var
|
|
430
|
+
Mn.displayName = To;
|
|
431
|
+
var ko = "MenuArrow", bn = s.forwardRef(
|
|
433
432
|
(e, o) => {
|
|
434
433
|
const { __scopeMenu: n, ...t } = e, r = $(n);
|
|
435
|
-
return /* @__PURE__ */ c(
|
|
434
|
+
return /* @__PURE__ */ c(no, { ...r, ...t, ref: o });
|
|
436
435
|
}
|
|
437
436
|
);
|
|
438
|
-
|
|
439
|
-
var ge = "MenuSub", [
|
|
437
|
+
bn.displayName = ko;
|
|
438
|
+
var ge = "MenuSub", [Ao, yn] = D(ge), Cn = (e) => {
|
|
440
439
|
const { __scopeMenu: o, children: n, open: t = !1, onOpenChange: r } = e, a = _(ge, o), i = $(o), [d, m] = s.useState(null), [f, l] = s.useState(null), u = de(r);
|
|
441
440
|
return s.useEffect(() => (a.open === !1 && u(!1), () => u(!1)), [a.open, u]), /* @__PURE__ */ c(Je, { ...i, children: /* @__PURE__ */ c(
|
|
442
|
-
|
|
441
|
+
rn,
|
|
443
442
|
{
|
|
444
443
|
scope: o,
|
|
445
444
|
open: t,
|
|
@@ -447,7 +446,7 @@ var ge = "MenuSub", [Oo, yn] = D(ge), Sn = (e) => {
|
|
|
447
446
|
content: f,
|
|
448
447
|
onContentChange: l,
|
|
449
448
|
children: /* @__PURE__ */ c(
|
|
450
|
-
|
|
449
|
+
Ao,
|
|
451
450
|
{
|
|
452
451
|
scope: o,
|
|
453
452
|
contentId: j(),
|
|
@@ -460,8 +459,8 @@ var ge = "MenuSub", [Oo, yn] = D(ge), Sn = (e) => {
|
|
|
460
459
|
}
|
|
461
460
|
) });
|
|
462
461
|
};
|
|
463
|
-
|
|
464
|
-
var O = "MenuSubTrigger",
|
|
462
|
+
Cn.displayName = ge;
|
|
463
|
+
var O = "MenuSubTrigger", Sn = s.forwardRef(
|
|
465
464
|
(e, o) => {
|
|
466
465
|
const n = _(O, e.__scopeMenu), t = U(O, e.__scopeMenu), r = yn(O, e.__scopeMenu), a = pe(O, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: d, onPointerGraceIntentChange: m } = a, f = { __scopeMenu: e.__scopeMenu }, l = s.useCallback(() => {
|
|
467
466
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
@@ -472,13 +471,13 @@ var O = "MenuSubTrigger", _n = s.forwardRef(
|
|
|
472
471
|
window.clearTimeout(u), m(null);
|
|
473
472
|
};
|
|
474
473
|
}, [d, m]), /* @__PURE__ */ c(ue, { asChild: !0, ...f, children: /* @__PURE__ */ c(
|
|
475
|
-
|
|
474
|
+
ln,
|
|
476
475
|
{
|
|
477
476
|
id: r.triggerId,
|
|
478
477
|
"aria-haspopup": "menu",
|
|
479
478
|
"aria-expanded": n.open,
|
|
480
479
|
"aria-controls": r.contentId,
|
|
481
|
-
"data-state":
|
|
480
|
+
"data-state": Dn(n.open),
|
|
482
481
|
...e,
|
|
483
482
|
ref: He(o, r.onTriggerChange),
|
|
484
483
|
onClick: (u) => {
|
|
@@ -522,16 +521,16 @@ var O = "MenuSubTrigger", _n = s.forwardRef(
|
|
|
522
521
|
),
|
|
523
522
|
onKeyDown: g(e.onKeyDown, (u) => {
|
|
524
523
|
const h = a.searchRef.current !== "";
|
|
525
|
-
e.disabled || h && u.key === " " ||
|
|
524
|
+
e.disabled || h && u.key === " " || ho[t.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
|
|
526
525
|
})
|
|
527
526
|
}
|
|
528
527
|
) });
|
|
529
528
|
}
|
|
530
529
|
);
|
|
531
|
-
|
|
532
|
-
var
|
|
530
|
+
Sn.displayName = O;
|
|
531
|
+
var _n = "MenuSubContent", Rn = s.forwardRef(
|
|
533
532
|
(e, o) => {
|
|
534
|
-
const n =
|
|
533
|
+
const n = sn(C, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, a = _(C, e.__scopeMenu), i = U(C, e.__scopeMenu), d = yn(_n, e.__scopeMenu), m = s.useRef(null), f = F(o, m);
|
|
535
534
|
return /* @__PURE__ */ c(L.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(W, { present: t || a.open, children: /* @__PURE__ */ c(L.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ c(
|
|
536
535
|
me,
|
|
537
536
|
{
|
|
@@ -555,15 +554,15 @@ var Rn = "MenuSubContent", Dn = s.forwardRef(
|
|
|
555
554
|
i.onClose(), l.preventDefault();
|
|
556
555
|
}),
|
|
557
556
|
onKeyDown: g(e.onKeyDown, (l) => {
|
|
558
|
-
const u = l.currentTarget.contains(l.target), h =
|
|
557
|
+
const u = l.currentTarget.contains(l.target), h = go[i.dir].includes(l.key);
|
|
559
558
|
u && h && (a.onOpenChange(!1), d.trigger?.focus(), l.preventDefault());
|
|
560
559
|
})
|
|
561
560
|
}
|
|
562
561
|
) }) }) });
|
|
563
562
|
}
|
|
564
563
|
);
|
|
565
|
-
|
|
566
|
-
function
|
|
564
|
+
Rn.displayName = _n;
|
|
565
|
+
function Dn(e) {
|
|
567
566
|
return e ? "open" : "closed";
|
|
568
567
|
}
|
|
569
568
|
function X(e) {
|
|
@@ -572,24 +571,24 @@ function X(e) {
|
|
|
572
571
|
function ve(e) {
|
|
573
572
|
return X(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
574
573
|
}
|
|
575
|
-
function
|
|
574
|
+
function Oo(e) {
|
|
576
575
|
const o = document.activeElement;
|
|
577
576
|
for (const n of e)
|
|
578
577
|
if (n === o || (n.focus(), document.activeElement !== o)) return;
|
|
579
578
|
}
|
|
580
|
-
function
|
|
579
|
+
function Lo(e, o) {
|
|
581
580
|
return e.map((n, t) => e[(o + t) % e.length]);
|
|
582
581
|
}
|
|
583
|
-
function
|
|
582
|
+
function Go(e, o, n) {
|
|
584
583
|
const r = o.length > 1 && Array.from(o).every((f) => f === o[0]) ? o[0] : o, a = n ? e.indexOf(n) : -1;
|
|
585
|
-
let i =
|
|
584
|
+
let i = Lo(e, Math.max(a, 0));
|
|
586
585
|
r.length === 1 && (i = i.filter((f) => f !== n));
|
|
587
586
|
const m = i.find(
|
|
588
587
|
(f) => f.toLowerCase().startsWith(r.toLowerCase())
|
|
589
588
|
);
|
|
590
589
|
return m !== n ? m : void 0;
|
|
591
590
|
}
|
|
592
|
-
function
|
|
591
|
+
function Fo(e, o) {
|
|
593
592
|
const { x: n, y: t } = e;
|
|
594
593
|
let r = !1;
|
|
595
594
|
for (let a = 0, i = o.length - 1; a < o.length; i = a++) {
|
|
@@ -598,18 +597,18 @@ function Ko(e, o) {
|
|
|
598
597
|
}
|
|
599
598
|
return r;
|
|
600
599
|
}
|
|
601
|
-
function
|
|
600
|
+
function Ko(e, o) {
|
|
602
601
|
if (!o) return !1;
|
|
603
602
|
const n = { x: e.clientX, y: e.clientY };
|
|
604
|
-
return
|
|
603
|
+
return Fo(n, o);
|
|
605
604
|
}
|
|
606
605
|
function G(e) {
|
|
607
606
|
return (o) => o.pointerType === "mouse" ? e(o) : void 0;
|
|
608
607
|
}
|
|
609
|
-
var Uo =
|
|
608
|
+
var $o = an, Uo = ue, Vo = cn, Bo = dn, zo = fe, jo = un, Yo = J, Xo = pn, Ho = fn, Wo = gn, Zo = wn, qo = Mn, Jo = bn, Qo = Cn, et = Sn, nt = Rn, Q = "DropdownMenu", [ot, tt] = We(
|
|
610
609
|
Q,
|
|
611
|
-
[
|
|
612
|
-
), b =
|
|
610
|
+
[on]
|
|
611
|
+
), b = on(), [rt, xn] = ot(Q), we = (e) => {
|
|
613
612
|
const {
|
|
614
613
|
__scopeDropdownMenu: o,
|
|
615
614
|
children: n,
|
|
@@ -625,7 +624,7 @@ var Uo = sn, Vo = ue, Bo = dn, zo = un, jo = fe, Yo = ln, Xo = J, Ho = mn, Wo =
|
|
|
625
624
|
caller: Q
|
|
626
625
|
});
|
|
627
626
|
return /* @__PURE__ */ c(
|
|
628
|
-
|
|
627
|
+
rt,
|
|
629
628
|
{
|
|
630
629
|
scope: o,
|
|
631
630
|
triggerId: j(),
|
|
@@ -635,15 +634,15 @@ var Uo = sn, Vo = ue, Bo = dn, zo = un, jo = fe, Yo = ln, Xo = J, Ho = mn, Wo =
|
|
|
635
634
|
onOpenChange: u,
|
|
636
635
|
onOpenToggle: s.useCallback(() => u((h) => !h), [u]),
|
|
637
636
|
modal: d,
|
|
638
|
-
children: /* @__PURE__ */ c(
|
|
637
|
+
children: /* @__PURE__ */ c($o, { ...m, open: l, onOpenChange: u, dir: t, modal: d, children: n })
|
|
639
638
|
}
|
|
640
639
|
);
|
|
641
640
|
};
|
|
642
641
|
we.displayName = Q;
|
|
643
|
-
var
|
|
642
|
+
var In = "DropdownMenuTrigger", Me = s.forwardRef(
|
|
644
643
|
(e, o) => {
|
|
645
|
-
const { __scopeDropdownMenu: n, disabled: t = !1, ...r } = e, a = In
|
|
646
|
-
return /* @__PURE__ */ c(
|
|
644
|
+
const { __scopeDropdownMenu: n, disabled: t = !1, ...r } = e, a = xn(In, n), i = b(n);
|
|
645
|
+
return /* @__PURE__ */ c(Uo, { asChild: !0, ...i, children: /* @__PURE__ */ c(
|
|
647
646
|
E.button,
|
|
648
647
|
{
|
|
649
648
|
type: "button",
|
|
@@ -666,17 +665,17 @@ var Pn = "DropdownMenuTrigger", Me = s.forwardRef(
|
|
|
666
665
|
) });
|
|
667
666
|
}
|
|
668
667
|
);
|
|
669
|
-
Me.displayName =
|
|
670
|
-
var
|
|
668
|
+
Me.displayName = In;
|
|
669
|
+
var at = "DropdownMenuPortal", be = (e) => {
|
|
671
670
|
const { __scopeDropdownMenu: o, ...n } = e, t = b(o);
|
|
672
|
-
return /* @__PURE__ */ c(
|
|
671
|
+
return /* @__PURE__ */ c(Vo, { ...t, ...n });
|
|
673
672
|
};
|
|
674
|
-
be.displayName =
|
|
675
|
-
var
|
|
673
|
+
be.displayName = at;
|
|
674
|
+
var Pn = "DropdownMenuContent", ye = s.forwardRef(
|
|
676
675
|
(e, o) => {
|
|
677
|
-
const { __scopeDropdownMenu: n, ...t } = e, r =
|
|
676
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = xn(Pn, n), a = b(n), i = s.useRef(!1);
|
|
678
677
|
return /* @__PURE__ */ c(
|
|
679
|
-
|
|
678
|
+
Bo,
|
|
680
679
|
{
|
|
681
680
|
id: r.contentId,
|
|
682
681
|
"aria-labelledby": r.triggerId,
|
|
@@ -702,77 +701,77 @@ var Nn = "DropdownMenuContent", Ce = s.forwardRef(
|
|
|
702
701
|
);
|
|
703
702
|
}
|
|
704
703
|
);
|
|
705
|
-
|
|
706
|
-
var
|
|
704
|
+
ye.displayName = Pn;
|
|
705
|
+
var st = "DropdownMenuGroup", Ce = s.forwardRef(
|
|
707
706
|
(e, o) => {
|
|
708
707
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
709
|
-
return /* @__PURE__ */ c(
|
|
708
|
+
return /* @__PURE__ */ c(zo, { ...r, ...t, ref: o });
|
|
710
709
|
}
|
|
711
710
|
);
|
|
712
|
-
|
|
713
|
-
var
|
|
711
|
+
Ce.displayName = st;
|
|
712
|
+
var ct = "DropdownMenuLabel", Se = s.forwardRef(
|
|
714
713
|
(e, o) => {
|
|
715
714
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
716
|
-
return /* @__PURE__ */ c(
|
|
715
|
+
return /* @__PURE__ */ c(jo, { ...r, ...t, ref: o });
|
|
717
716
|
}
|
|
718
717
|
);
|
|
719
|
-
Se.displayName =
|
|
720
|
-
var
|
|
718
|
+
Se.displayName = ct;
|
|
719
|
+
var it = "DropdownMenuItem", _e = s.forwardRef(
|
|
721
720
|
(e, o) => {
|
|
722
721
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
723
|
-
return /* @__PURE__ */ c(
|
|
722
|
+
return /* @__PURE__ */ c(Yo, { ...r, ...t, ref: o });
|
|
724
723
|
}
|
|
725
724
|
);
|
|
726
|
-
_e.displayName =
|
|
727
|
-
var
|
|
725
|
+
_e.displayName = it;
|
|
726
|
+
var dt = "DropdownMenuCheckboxItem", Re = s.forwardRef((e, o) => {
|
|
727
|
+
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
728
|
+
return /* @__PURE__ */ c(Xo, { ...r, ...t, ref: o });
|
|
729
|
+
});
|
|
730
|
+
Re.displayName = dt;
|
|
731
|
+
var ut = "DropdownMenuRadioGroup", De = s.forwardRef((e, o) => {
|
|
728
732
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
729
733
|
return /* @__PURE__ */ c(Ho, { ...r, ...t, ref: o });
|
|
730
734
|
});
|
|
731
|
-
|
|
732
|
-
var lt = "
|
|
735
|
+
De.displayName = ut;
|
|
736
|
+
var lt = "DropdownMenuRadioItem", xe = s.forwardRef((e, o) => {
|
|
733
737
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
734
738
|
return /* @__PURE__ */ c(Wo, { ...r, ...t, ref: o });
|
|
735
739
|
});
|
|
736
|
-
|
|
737
|
-
var pt = "
|
|
740
|
+
xe.displayName = lt;
|
|
741
|
+
var pt = "DropdownMenuItemIndicator", Ie = s.forwardRef((e, o) => {
|
|
738
742
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
739
743
|
return /* @__PURE__ */ c(Zo, { ...r, ...t, ref: o });
|
|
740
744
|
});
|
|
741
|
-
|
|
742
|
-
var mt = "
|
|
745
|
+
Ie.displayName = pt;
|
|
746
|
+
var mt = "DropdownMenuSeparator", Pe = s.forwardRef((e, o) => {
|
|
743
747
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
744
748
|
return /* @__PURE__ */ c(qo, { ...r, ...t, ref: o });
|
|
745
749
|
});
|
|
746
|
-
|
|
747
|
-
var ft = "
|
|
748
|
-
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
749
|
-
return /* @__PURE__ */ c(Jo, { ...r, ...t, ref: o });
|
|
750
|
-
});
|
|
751
|
-
Pe.displayName = ft;
|
|
752
|
-
var ht = "DropdownMenuArrow", Ne = s.forwardRef(
|
|
750
|
+
Pe.displayName = mt;
|
|
751
|
+
var ft = "DropdownMenuArrow", Ne = s.forwardRef(
|
|
753
752
|
(e, o) => {
|
|
754
753
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
755
|
-
return /* @__PURE__ */ c(
|
|
754
|
+
return /* @__PURE__ */ c(Jo, { ...r, ...t, ref: o });
|
|
756
755
|
}
|
|
757
756
|
);
|
|
758
|
-
Ne.displayName =
|
|
759
|
-
var
|
|
757
|
+
Ne.displayName = ft;
|
|
758
|
+
var Nn = (e) => {
|
|
760
759
|
const { __scopeDropdownMenu: o, children: n, open: t, onOpenChange: r, defaultOpen: a } = e, i = b(o), [d, m] = Ze({
|
|
761
760
|
prop: t,
|
|
762
761
|
defaultProp: a ?? !1,
|
|
763
762
|
onChange: r,
|
|
764
763
|
caller: "DropdownMenuSub"
|
|
765
764
|
});
|
|
766
|
-
return /* @__PURE__ */ c(
|
|
767
|
-
},
|
|
765
|
+
return /* @__PURE__ */ c(Qo, { ...i, open: d, onOpenChange: m, children: n });
|
|
766
|
+
}, ht = "DropdownMenuSubTrigger", Ee = s.forwardRef((e, o) => {
|
|
768
767
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
769
|
-
return /* @__PURE__ */ c(
|
|
768
|
+
return /* @__PURE__ */ c(et, { ...r, ...t, ref: o });
|
|
770
769
|
});
|
|
771
|
-
Ee.displayName =
|
|
772
|
-
var
|
|
770
|
+
Ee.displayName = ht;
|
|
771
|
+
var gt = "DropdownMenuSubContent", Te = s.forwardRef((e, o) => {
|
|
773
772
|
const { __scopeDropdownMenu: n, ...t } = e, r = b(n);
|
|
774
773
|
return /* @__PURE__ */ c(
|
|
775
|
-
|
|
774
|
+
nt,
|
|
776
775
|
{
|
|
777
776
|
...r,
|
|
778
777
|
...t,
|
|
@@ -788,18 +787,18 @@ var vt = "DropdownMenuSubContent", Te = s.forwardRef((e, o) => {
|
|
|
788
787
|
}
|
|
789
788
|
);
|
|
790
789
|
});
|
|
791
|
-
Te.displayName =
|
|
792
|
-
var
|
|
793
|
-
const
|
|
790
|
+
Te.displayName = gt;
|
|
791
|
+
var En = we, Tn = Me, ee = be, ke = ye, kn = Ce, Ae = Se, Oe = _e, Le = Re, ne = De, Ge = xe, Fe = Ie, Ke = Pe, vt = Ne, An = Nn, $e = Ee, Ue = Te;
|
|
792
|
+
const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
794
793
|
__proto__: null,
|
|
795
|
-
Arrow:
|
|
794
|
+
Arrow: vt,
|
|
796
795
|
CheckboxItem: Le,
|
|
797
796
|
Content: ke,
|
|
798
797
|
DropdownMenu: we,
|
|
799
798
|
DropdownMenuArrow: Ne,
|
|
800
799
|
DropdownMenuCheckboxItem: Re,
|
|
801
|
-
DropdownMenuContent:
|
|
802
|
-
DropdownMenuGroup:
|
|
800
|
+
DropdownMenuContent: ye,
|
|
801
|
+
DropdownMenuGroup: Ce,
|
|
803
802
|
DropdownMenuItem: _e,
|
|
804
803
|
DropdownMenuItemIndicator: Ie,
|
|
805
804
|
DropdownMenuLabel: Se,
|
|
@@ -807,31 +806,31 @@ const yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
807
806
|
DropdownMenuRadioGroup: De,
|
|
808
807
|
DropdownMenuRadioItem: xe,
|
|
809
808
|
DropdownMenuSeparator: Pe,
|
|
810
|
-
DropdownMenuSub:
|
|
809
|
+
DropdownMenuSub: Nn,
|
|
811
810
|
DropdownMenuSubContent: Te,
|
|
812
811
|
DropdownMenuSubTrigger: Ee,
|
|
813
812
|
DropdownMenuTrigger: Me,
|
|
814
|
-
Group:
|
|
813
|
+
Group: kn,
|
|
815
814
|
Item: Oe,
|
|
816
815
|
ItemIndicator: Fe,
|
|
817
816
|
Label: Ae,
|
|
818
817
|
Portal: ee,
|
|
819
818
|
RadioGroup: ne,
|
|
820
819
|
RadioItem: Ge,
|
|
821
|
-
Root:
|
|
820
|
+
Root: En,
|
|
822
821
|
Separator: Ke,
|
|
823
|
-
Sub:
|
|
822
|
+
Sub: An,
|
|
824
823
|
SubContent: Ue,
|
|
825
824
|
SubTrigger: $e,
|
|
826
|
-
Trigger:
|
|
827
|
-
createDropdownMenuScope:
|
|
825
|
+
Trigger: Tn,
|
|
826
|
+
createDropdownMenuScope: tt
|
|
828
827
|
}, Symbol.toStringTag, { value: "Module" })), oe = [
|
|
829
828
|
"rounded-lg bg-transparent text-primary-fg",
|
|
830
829
|
"hover:bg-secondary-border focus:bg-secondary-border",
|
|
831
830
|
"[&:has([data-menu-item-action]:hover)]:bg-secondary-bg"
|
|
832
|
-
],
|
|
833
|
-
|
|
834
|
-
const
|
|
831
|
+
], yr = En, wt = Tn, Cr = kn, Sr = ee, _r = An, Rr = ne, On = s.createContext(null), Mt = s.forwardRef(({ indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n, children: t, ...r }, a) => /* @__PURE__ */ c(On.Provider, { value: { indicatorIcon: e, indicatorIconClassName: o, indicatorIconPosition: n }, children: /* @__PURE__ */ c(ne, { ref: a, ...r, children: t }) }));
|
|
832
|
+
Mt.displayName = ne.displayName;
|
|
833
|
+
const bt = M({
|
|
835
834
|
extend: q,
|
|
836
835
|
base: "data-[state=open]:bg-secondary-bg-hover",
|
|
837
836
|
slots: {
|
|
@@ -861,15 +860,15 @@ const Ct = M({
|
|
|
861
860
|
defaultVariants: {
|
|
862
861
|
inset: !1
|
|
863
862
|
}
|
|
864
|
-
}),
|
|
865
|
-
const { variant: a } = S(), i = a === "glass" ? yt({ inset: o }) :
|
|
863
|
+
}), Ct = s.forwardRef(({ className: e, inset: o, children: n, ...t }, r) => {
|
|
864
|
+
const { variant: a } = S(), i = a === "glass" ? yt({ inset: o }) : bt({ inset: o, theme: a });
|
|
866
865
|
return /* @__PURE__ */ H($e, { ref: r, className: i.base({ className: e }), ...t, children: [
|
|
867
866
|
n,
|
|
868
|
-
/* @__PURE__ */ c(
|
|
867
|
+
/* @__PURE__ */ c(lo, { className: i.chevron() })
|
|
869
868
|
] });
|
|
870
869
|
});
|
|
871
|
-
|
|
872
|
-
const
|
|
870
|
+
Ct.displayName = $e.displayName;
|
|
871
|
+
const St = M({
|
|
873
872
|
base: [
|
|
874
873
|
"relative z-50 min-w-[8rem] overflow-hidden rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md",
|
|
875
874
|
"origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
@@ -885,7 +884,7 @@ const _t = M({
|
|
|
885
884
|
inverse: "border-inverse-border bg-inverse-primary-bg"
|
|
886
885
|
}
|
|
887
886
|
}
|
|
888
|
-
}),
|
|
887
|
+
}), _t = M({
|
|
889
888
|
base: [
|
|
890
889
|
"backdrop-glass-regular relative z-50 min-w-[8rem] overflow-hidden rounded-xl bg-alpha-40 p-1 shadow-glass-md",
|
|
891
890
|
"origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
@@ -896,12 +895,12 @@ const _t = M({
|
|
|
896
895
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
897
896
|
"data-[side=left]:-top-1 data-[side=right]:-top-1"
|
|
898
897
|
]
|
|
899
|
-
}),
|
|
900
|
-
const { variant: r } = S(), a =
|
|
898
|
+
}), Rt = s.forwardRef(({ className: e, portalContainer: o, ...n }, t) => {
|
|
899
|
+
const { variant: r } = S(), a = o, i = r === "glass" ? _t({ className: e }) : St({ className: e, theme: r });
|
|
901
900
|
return /* @__PURE__ */ c(ee, { container: a, children: /* @__PURE__ */ c(Ue, { ref: t, className: i, ...n }) });
|
|
902
901
|
});
|
|
903
|
-
|
|
904
|
-
const
|
|
902
|
+
Rt.displayName = Ue.displayName;
|
|
903
|
+
const Dt = M({
|
|
905
904
|
base: [
|
|
906
905
|
"group/dropdown-menu-content z-50 min-w-32 rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md",
|
|
907
906
|
"max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden",
|
|
@@ -917,7 +916,7 @@ const xt = M({
|
|
|
917
916
|
inverse: "border-inverse-border bg-inverse-primary-bg"
|
|
918
917
|
}
|
|
919
918
|
}
|
|
920
|
-
}),
|
|
919
|
+
}), xt = M({
|
|
921
920
|
base: [
|
|
922
921
|
"group/glass-dropdown-content backdrop-glass-regular z-50 min-w-32 rounded-xl bg-alpha-40 p-1 shadow-glass-md",
|
|
923
922
|
"max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden",
|
|
@@ -928,12 +927,12 @@ const xt = M({
|
|
|
928
927
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
929
928
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
|
930
929
|
]
|
|
931
|
-
}),
|
|
932
|
-
const { variant: a } = S(), i =
|
|
930
|
+
}), It = s.forwardRef(({ className: e, sideOffset: o = 4, portalContainer: n, ...t }, r) => {
|
|
931
|
+
const { variant: a } = S(), i = n, d = a === "glass" ? xt({ className: e }) : Dt({ theme: a, className: e });
|
|
933
932
|
return /* @__PURE__ */ c(ee, { container: i, children: /* @__PURE__ */ c(ke, { ref: r, sideOffset: o, className: d, ...t }) });
|
|
934
933
|
});
|
|
935
|
-
|
|
936
|
-
const
|
|
934
|
+
It.displayName = ke.displayName;
|
|
935
|
+
const Pt = M({
|
|
937
936
|
extend: q,
|
|
938
937
|
base: "",
|
|
939
938
|
variants: {
|
|
@@ -941,7 +940,7 @@ const Nt = M({
|
|
|
941
940
|
true: "pl-8!"
|
|
942
941
|
}
|
|
943
942
|
}
|
|
944
|
-
}),
|
|
943
|
+
}), Nt = M({
|
|
945
944
|
base: [...Z, ...oe],
|
|
946
945
|
variants: {
|
|
947
946
|
disabled: {
|
|
@@ -951,12 +950,12 @@ const Nt = M({
|
|
|
951
950
|
true: "pl-8"
|
|
952
951
|
}
|
|
953
952
|
}
|
|
954
|
-
}),
|
|
955
|
-
const { variant: i } = S(), d = i === "glass" ?
|
|
953
|
+
}), Et = s.forwardRef(({ className: e, disabled: o, inset: n, children: t, ...r }, a) => {
|
|
954
|
+
const { variant: i } = S(), d = i === "glass" ? Nt({ className: e, disabled: o, inset: n }) : Pt({ className: e, disabled: o, inset: n, theme: i });
|
|
956
955
|
return /* @__PURE__ */ c(Oe, { ref: a, disabled: o, className: d, ...r, children: t });
|
|
957
956
|
});
|
|
958
|
-
|
|
959
|
-
const
|
|
957
|
+
Et.displayName = Oe.displayName;
|
|
958
|
+
const Tt = M({
|
|
960
959
|
extend: q,
|
|
961
960
|
base: "",
|
|
962
961
|
slots: {
|
|
@@ -991,7 +990,7 @@ const kt = M({
|
|
|
991
990
|
defaultVariants: {
|
|
992
991
|
checked: !1
|
|
993
992
|
}
|
|
994
|
-
}),
|
|
993
|
+
}), kt = M({
|
|
995
994
|
slots: {
|
|
996
995
|
base: [...Z, ...oe],
|
|
997
996
|
checkbox: "flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border transition-colors",
|
|
@@ -1016,8 +1015,8 @@ const kt = M({
|
|
|
1016
1015
|
defaultVariants: {
|
|
1017
1016
|
checked: !1
|
|
1018
1017
|
}
|
|
1019
|
-
}),
|
|
1020
|
-
const { variant: i } = S(), d = i === "glass" ?
|
|
1018
|
+
}), At = s.forwardRef(({ className: e, children: o, checked: n, disabled: t, ...r }, a) => {
|
|
1019
|
+
const { variant: i } = S(), d = i === "glass" ? kt({ checked: n, disabled: t }) : Tt({ checked: n, theme: i, disabled: t });
|
|
1021
1020
|
return /* @__PURE__ */ H(
|
|
1022
1021
|
Le,
|
|
1023
1022
|
{
|
|
@@ -1027,23 +1026,23 @@ const kt = M({
|
|
|
1027
1026
|
disabled: t,
|
|
1028
1027
|
...r,
|
|
1029
1028
|
children: [
|
|
1030
|
-
/* @__PURE__ */ c("span", { className: d.checkbox(), children: /* @__PURE__ */ c(Fe, { children: n === "indeterminate" ? /* @__PURE__ */ c(
|
|
1029
|
+
/* @__PURE__ */ c("span", { className: d.checkbox(), children: /* @__PURE__ */ c(Fe, { children: n === "indeterminate" ? /* @__PURE__ */ c(uo, { className: d.icon() }) : /* @__PURE__ */ c(en, { className: d.icon() }) }) }),
|
|
1031
1030
|
o
|
|
1032
1031
|
]
|
|
1033
1032
|
}
|
|
1034
1033
|
);
|
|
1035
1034
|
});
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1035
|
+
At.displayName = Le.displayName;
|
|
1036
|
+
const Ot = M({
|
|
1038
1037
|
extend: q
|
|
1039
|
-
}),
|
|
1038
|
+
}), Lt = M({
|
|
1040
1039
|
base: [...Z, ...oe],
|
|
1041
1040
|
variants: {
|
|
1042
1041
|
disabled: {
|
|
1043
1042
|
true: "pointer-events-none opacity-50"
|
|
1044
1043
|
}
|
|
1045
1044
|
}
|
|
1046
|
-
}),
|
|
1045
|
+
}), Gt = M({
|
|
1047
1046
|
base: "flex h-4 w-4 items-center justify-center",
|
|
1048
1047
|
variants: {
|
|
1049
1048
|
position: {
|
|
@@ -1051,15 +1050,15 @@ const Lt = M({
|
|
|
1051
1050
|
end: "order-last ml-auto"
|
|
1052
1051
|
}
|
|
1053
1052
|
}
|
|
1054
|
-
}),
|
|
1055
|
-
const { variant: a } = S(), i = s.useContext(
|
|
1053
|
+
}), Ft = s.forwardRef(({ className: e, children: o, disabled: n, ...t }, r) => {
|
|
1054
|
+
const { variant: a } = S(), i = s.useContext(On), d = i?.indicatorIcon || en, m = i?.indicatorIconPosition || "start", f = i?.indicatorIconClassName, l = a === "glass" ? Lt({ disabled: n, className: e }) : Ot({ theme: a, disabled: n, className: e }), u = /* @__PURE__ */ c("span", { className: Gt({ position: m }), children: /* @__PURE__ */ c(Fe, { children: /* @__PURE__ */ c(d, { className: zn("h-4 w-4", f) }) }) });
|
|
1056
1055
|
return /* @__PURE__ */ H(Ge, { ref: r, className: l, disabled: n, ...t, children: [
|
|
1057
1056
|
u,
|
|
1058
1057
|
o
|
|
1059
1058
|
] });
|
|
1060
1059
|
});
|
|
1061
|
-
|
|
1062
|
-
const
|
|
1060
|
+
Ft.displayName = Ge.displayName;
|
|
1061
|
+
const Kt = M({
|
|
1063
1062
|
base: "flex items-center gap-2 px-2 py-1.5 text-sm font-semibold text-primary-fg",
|
|
1064
1063
|
variants: {
|
|
1065
1064
|
inset: {
|
|
@@ -1072,43 +1071,43 @@ const $t = M({
|
|
|
1072
1071
|
defaultVariants: {
|
|
1073
1072
|
inset: !1
|
|
1074
1073
|
}
|
|
1075
|
-
}),
|
|
1074
|
+
}), $t = s.forwardRef(({ className: e, inset: o, ...n }, t) => {
|
|
1076
1075
|
const { variant: r } = S(), a = ie(r, ["inverse"]);
|
|
1077
1076
|
return /* @__PURE__ */ c(
|
|
1078
1077
|
Ae,
|
|
1079
1078
|
{
|
|
1080
1079
|
ref: t,
|
|
1081
|
-
className:
|
|
1080
|
+
className: Kt({ inset: o, className: e, theme: a }),
|
|
1082
1081
|
...n
|
|
1083
1082
|
}
|
|
1084
1083
|
);
|
|
1085
1084
|
});
|
|
1086
|
-
|
|
1087
|
-
const
|
|
1085
|
+
$t.displayName = Ae.displayName;
|
|
1086
|
+
const Ut = M({
|
|
1088
1087
|
base: "-mx-1 my-1 h-px bg-secondary-border",
|
|
1089
1088
|
variants: {
|
|
1090
1089
|
theme: {
|
|
1091
1090
|
inverse: "bg-inverse-border"
|
|
1092
1091
|
}
|
|
1093
1092
|
}
|
|
1094
|
-
}),
|
|
1093
|
+
}), Vt = M({
|
|
1095
1094
|
base: "-mx-1 my-1 h-px bg-primary-border"
|
|
1096
|
-
}),
|
|
1097
|
-
const { variant: t } = S(), r = t === "glass" ?
|
|
1095
|
+
}), Bt = s.forwardRef(({ className: e, ...o }, n) => {
|
|
1096
|
+
const { variant: t } = S(), r = t === "glass" ? Vt({ className: e }) : Ut({ className: e, theme: t });
|
|
1098
1097
|
return /* @__PURE__ */ c(Ke, { ref: n, className: r, ...o });
|
|
1099
1098
|
});
|
|
1100
|
-
|
|
1101
|
-
const
|
|
1102
|
-
extend:
|
|
1099
|
+
Bt.displayName = Ke.displayName;
|
|
1100
|
+
const zt = M({
|
|
1101
|
+
extend: io,
|
|
1103
1102
|
base: "ml-auto text-xs tracking-widest opacity-60"
|
|
1104
|
-
}),
|
|
1103
|
+
}), jt = ({ className: e, ...o }) => {
|
|
1105
1104
|
const { variant: n } = S(), t = ie(n, ["inverse"]);
|
|
1106
|
-
return /* @__PURE__ */ c("span", { className:
|
|
1105
|
+
return /* @__PURE__ */ c("span", { className: zt({ className: e, theme: t }), ...o });
|
|
1107
1106
|
};
|
|
1108
|
-
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1111
|
-
const
|
|
1107
|
+
jt.displayName = "DropdownMenuShortcut";
|
|
1108
|
+
const Yt = s.forwardRef(({ children: e, ...o }, n) => /* @__PURE__ */ c(wt, { asChild: !0, ref: n, children: /* @__PURE__ */ c(so, { ...o, children: e }) }));
|
|
1109
|
+
Yt.displayName = "DropdownMenuTriggerButton";
|
|
1110
|
+
const Xt = M({
|
|
1112
1111
|
slots: {
|
|
1113
1112
|
wrapper: "flex items-center border-0 p-2 py-0",
|
|
1114
1113
|
search: "mr-2 h-4 w-4 shrink-0 text-muted",
|
|
@@ -1121,11 +1120,11 @@ const Ht = M({
|
|
|
1121
1120
|
}
|
|
1122
1121
|
}
|
|
1123
1122
|
}
|
|
1124
|
-
}),
|
|
1123
|
+
}), Dr = s.forwardRef(
|
|
1125
1124
|
({ className: e, ...o }, n) => {
|
|
1126
|
-
const { variant: t } = S(), r = ie(t, ["inverse"]), a =
|
|
1125
|
+
const { variant: t } = S(), r = ie(t, ["inverse"]), a = Xt({ theme: r });
|
|
1127
1126
|
return /* @__PURE__ */ H("label", { className: a.wrapper({ className: e }), children: [
|
|
1128
|
-
/* @__PURE__ */ c(
|
|
1127
|
+
/* @__PURE__ */ c(co, { icon: po, className: a.search(), "aria-hidden": "true" }),
|
|
1129
1128
|
/* @__PURE__ */ c(
|
|
1130
1129
|
"input",
|
|
1131
1130
|
{
|
|
@@ -1139,7 +1138,7 @@ const Ht = M({
|
|
|
1139
1138
|
] });
|
|
1140
1139
|
}
|
|
1141
1140
|
);
|
|
1142
|
-
function
|
|
1141
|
+
function xr(e = {}) {
|
|
1143
1142
|
const { openDelay: o = 200, closeDelay: n = 300 } = e, [t, r] = s.useState(!1), a = s.useRef(null), i = s.useRef(null), d = s.useCallback(() => {
|
|
1144
1143
|
a.current && (clearTimeout(a.current), a.current = null), i.current && (clearTimeout(i.current), i.current = null);
|
|
1145
1144
|
}, []);
|
|
@@ -1180,26 +1179,26 @@ function Pr(e = {}) {
|
|
|
1180
1179
|
};
|
|
1181
1180
|
}
|
|
1182
1181
|
export {
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1182
|
+
yr as DropdownMenu,
|
|
1183
|
+
At as DropdownMenuCheckboxItem,
|
|
1184
|
+
It as DropdownMenuContent,
|
|
1185
|
+
Cr as DropdownMenuGroup,
|
|
1186
|
+
Et as DropdownMenuItem,
|
|
1187
|
+
$t as DropdownMenuLabel,
|
|
1188
|
+
Sr as DropdownMenuPortal,
|
|
1189
|
+
br as DropdownMenuPrimitive,
|
|
1190
|
+
Rr as DropdownMenuPrimitiveRadioGroup,
|
|
1191
|
+
Mt as DropdownMenuRadioGroup,
|
|
1192
|
+
Ft as DropdownMenuRadioItem,
|
|
1193
|
+
Dr as DropdownMenuSearchItem,
|
|
1194
|
+
Bt as DropdownMenuSeparator,
|
|
1195
|
+
jt as DropdownMenuShortcut,
|
|
1196
|
+
_r as DropdownMenuSub,
|
|
1197
|
+
Rt as DropdownMenuSubContent,
|
|
1198
|
+
Ct as DropdownMenuSubTrigger,
|
|
1199
|
+
wt as DropdownMenuTrigger,
|
|
1200
|
+
Yt as DropdownMenuTriggerButton,
|
|
1201
|
+
Dt as dropdownMenuContentStyles,
|
|
1202
|
+
xr as useHoverDropdown
|
|
1204
1203
|
};
|
|
1205
1204
|
//# sourceMappingURL=dropdown.js.map
|