@nxgt/material 3.48.0 → 3.50.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/CHANGELOG.md +32 -0
- package/README.md +3 -3
- package/dist/{async-slice-DlvKCKAa.js → async-slice-3loEtzUY.js} +2 -2
- package/dist/{button-yaltbQmC.js → button-BRUaHD8z.js} +81 -112
- package/dist/charts.js +144 -144
- package/dist/{chip-BqWbbr1b.js → chip-DneTrtNj.js} +56 -56
- package/dist/{code-editor-C9qBNoYb.js → code-editor-R_nPN_-d.js} +308 -308
- package/dist/code-editor.js +47 -47
- package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BKEUhQlF.js} +2 -2
- package/dist/components/components.css +1 -0
- package/dist/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/dist/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/dist/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/dist/components/ui/actions/action-card/action-card.css +33 -3
- package/dist/{components-Ox6FHmpx.js → components-D6xFLcoE.js} +17646 -17567
- package/dist/components.js +26 -27
- package/dist/{dialog-CCCcnTIx.js → dialog-S7dLsYRZ.js} +16 -16
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-XLlxfDgq.js} +271 -272
- package/dist/editor.js +1028 -1028
- package/dist/{empty-state-DcF4TBzi.js → empty-state-Dsf6R-Zo.js} +37 -37
- package/dist/{escape-owner-C4W_sOAU.js → escape-owner-B9eCwjLw.js} +1 -1
- package/dist/{field-blur-CJHzVSh9.js → field-blur-5uRDFHvB.js} +1 -1
- package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-Cwt4TuBq.js} +1 -1
- package/dist/hooks.js +4 -4
- package/dist/{hover-card-C0fw2kLK.js → hover-card-PHUgRSjJ.js} +24 -24
- package/dist/{i18n-provider-C0fB0sEL.js → i18n-provider-DPM_ALQ4.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-aJ22mKGh.js → icon-badge-Dh6-FNOF.js} +3 -3
- package/dist/{icon-button-CN9r5TNE.js → icon-button-DSC2-IAG.js} +118 -86
- package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +25 -2
- package/dist/lib/components/ui/actions/action-card/action-card.d.ts +18 -2
- package/dist/lib/components/ui/actions/action-card/partials/action-card-icon.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-meta.d.ts +15 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-status.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +20 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-title-button.d.ts +14 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-trail.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/use-action-card-names.d.ts +22 -0
- package/dist/lib/components/ui/actions/action-card/use-reveal.d.ts +23 -0
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button-busy.d.ts +22 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +2 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +7 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-quick-toggle.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +7 -1
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +6 -1
- package/dist/lib/components/ui/collections/row-menu/row-menu-trigger.d.ts +5 -2
- package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-empty-chips.d.ts +5 -3
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -10
- package/dist/lib/components/ui/dates/duration-field/partials/use-duration-box.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/badge.d.ts +1 -1
- package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +1 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-body.d.ts +5 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-request-error.d.ts +15 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/step-up-dialog.d.ts +6 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/types.d.ts +12 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry-focus.d.ts +27 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry.d.ts +11 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +20 -20
- package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +20 -20
- package/dist/lib/components/ui/fields/verification-code/use-settled-focus.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +1 -1
- package/dist/lib/components/ui/media/carousel/use-carousel-engine.d.ts +1 -1
- package/dist/lib/components/ui/media/media-player/engine/use-queue-actions.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-reader/pdf-reader.slice.d.ts +1 -1
- package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +34 -34
- package/dist/lib/components/ui/widgets/chat/chat-message.variants.d.ts +2 -2
- package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +1 -1
- package/dist/lib/i18n/resources/en/en.d.ts +1 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +2 -1
- package/dist/lib/i18n/resources/resources.d.ts +2 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -44
- package/dist/map.js +79 -79
- package/dist/material.css +1 -1
- package/dist/nxgt-theme-ivgNca3z.js +37 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-zVb_Nq_D.js → public-vxiijIJF.js} +82 -82
- package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-BwvCXPqq.js} +52 -52
- package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-D2pAFWQB.js} +218 -218
- package/dist/{tooltip-CkttDIab.js → spinner-BpVwI1ps.js} +503 -278
- package/dist/{stored-language-IaL1Ftn_.js → stored-language-Beyj2ult.js} +4 -2
- package/dist/theme-picker.js +45 -45
- package/dist/{theme-store-CSl51uNH.js → theme-store-BdPp43cV.js} +13 -13
- package/dist/{theme-toggle-CGW2_K54.js → theme-toggle-BTYRPkP4.js} +16 -16
- package/dist/themes.js +17 -17
- package/dist/{toggle-group-BMJNcFAC.js → toggle-group-BkH23Jk4.js} +11 -11
- package/dist/{toolbar-items-CsLGJMEJ.js → toolbar-items-CIMo4F9q.js} +421 -421
- package/dist/{translate-material-v9u-e7Kd.js → translate-material-DEUlaL_1.js} +2 -2
- package/dist/{translator-Dk4_qE6U.js → translator-CBgIb3zP.js} +1 -1
- package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-D8UAsX0f.js} +6228 -5999
- package/dist/{button-tones-BwuVvAmd.js → use-click-lock-BZYtTmVt.js} +37 -7
- package/dist/{use-heading-spy-DjKixjLm.js → use-heading-spy-C5LXtA8Z.js} +1 -1
- package/dist/{use-material-translation-DOkTaWK_.js → use-material-translation-DWWeeg-B.js} +2 -2
- package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
- package/docs/components/buttons-and-actions.md +64 -5
- package/docs/components/data-table-filter-and-lists.md +30 -10
- package/docs/components/feedback-and-status.md +22 -3
- package/docs/components/form-fields.md +7 -0
- package/docs/guides/cards-and-tiles.md +60 -0
- package/docs/guides/server-lists-url.md +3 -2
- package/docs/roadmap.md +11 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/lib/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/lib/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/lib/components/ui/actions/action-card/action-card.css +33 -3
- package/package.json +1 -1
- package/dist/nxgt-theme-ZS945iMP.js +0 -37
- package/dist/spinner-C4CgDEYm.js +0 -229
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { n as t, o as n, r } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { a as i, c as a, i as o, l as s, n as c, r as l, s as u, u as d } from "./dist-lmHmz_bu.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as re, c as ie, l as ae, o as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
4
|
+
import { C as f, S as p, f as m, m as h, p as g, t as ee, u as _ } from "./spinner-BpVwI1ps.js";
|
|
5
|
+
import { a as v, i as y, n as te, r as b, t as ne } from "./dist-C4wtXCjf.js";
|
|
6
|
+
import { a as re, c as ie, l as ae, o as x, r as oe, s as se, t as S } from "./in-dialog-Vwkyp-M5.js";
|
|
7
|
+
import * as C from "react";
|
|
8
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
10
9
|
//#region ../../node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
11
|
-
var
|
|
10
|
+
var D = Object.defineProperty, O = (e, t) => D(e, "name", {
|
|
12
11
|
value: t,
|
|
13
12
|
configurable: !0
|
|
14
|
-
}),
|
|
13
|
+
}), k = ["Enter", " "], ce = [
|
|
15
14
|
"ArrowDown",
|
|
16
15
|
"PageUp",
|
|
17
16
|
"Home"
|
|
18
|
-
],
|
|
17
|
+
], le = [
|
|
19
18
|
"ArrowUp",
|
|
20
19
|
"PageDown",
|
|
21
20
|
"End"
|
|
22
|
-
],
|
|
23
|
-
ltr: [...
|
|
24
|
-
rtl: [...
|
|
25
|
-
},
|
|
21
|
+
], ue = [...ce, ...le], A = {
|
|
22
|
+
ltr: [...k, "ArrowRight"],
|
|
23
|
+
rtl: [...k, "ArrowLeft"]
|
|
24
|
+
}, j = {
|
|
26
25
|
ltr: ["ArrowLeft"],
|
|
27
26
|
rtl: ["ArrowRight"]
|
|
28
|
-
},
|
|
29
|
-
|
|
27
|
+
}, M = "Menu", [N, de, fe] = v(M), [P, F] = a(M, [
|
|
28
|
+
fe,
|
|
30
29
|
h,
|
|
31
|
-
|
|
32
|
-
]),
|
|
33
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s =
|
|
34
|
-
return
|
|
35
|
-
let e = /* @__PURE__ */
|
|
30
|
+
b
|
|
31
|
+
]), I = h(), pe = b(), [me, L] = P(M), [he, R] = P(M), ge = /* @__PURE__ */ O((e) => {
|
|
32
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = I(t), [l, u] = C.useState(null), d = C.useRef(!1), f = c(a), p = y(i);
|
|
33
|
+
return C.useEffect(() => {
|
|
34
|
+
let e = /* @__PURE__ */ O(() => {
|
|
36
35
|
d.current = !0, document.addEventListener("pointerdown", t, {
|
|
37
36
|
capture: !0,
|
|
38
37
|
once: !0
|
|
@@ -40,25 +39,25 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
40
39
|
capture: !0,
|
|
41
40
|
once: !0
|
|
42
41
|
});
|
|
43
|
-
}, "handleKeyDown"), t = /* @__PURE__ */
|
|
42
|
+
}, "handleKeyDown"), t = /* @__PURE__ */ O(() => d.current = !1, "handlePointer");
|
|
44
43
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
45
44
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
46
45
|
};
|
|
47
|
-
}, []),
|
|
46
|
+
}, []), C.useEffect(() => {
|
|
48
47
|
if (!n) return;
|
|
49
|
-
let e = /* @__PURE__ */
|
|
48
|
+
let e = /* @__PURE__ */ O(() => f(!1), "handleBlur");
|
|
50
49
|
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
51
|
-
}, [n, f]), /* @__PURE__ */
|
|
50
|
+
}, [n, f]), /* @__PURE__ */ T(g, {
|
|
52
51
|
...s,
|
|
53
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ T(me, {
|
|
54
53
|
scope: t,
|
|
55
54
|
open: n,
|
|
56
55
|
onOpenChange: f,
|
|
57
56
|
content: l,
|
|
58
57
|
onContentChange: u,
|
|
59
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ T(he, {
|
|
60
59
|
scope: t,
|
|
61
|
-
onClose:
|
|
60
|
+
onClose: C.useCallback(() => f(!1), [f]),
|
|
62
61
|
isUsingKeyboardRef: d,
|
|
63
62
|
dir: p,
|
|
64
63
|
modal: o,
|
|
@@ -66,51 +65,51 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
66
65
|
})
|
|
67
66
|
})
|
|
68
67
|
});
|
|
69
|
-
}, "Menu"),
|
|
68
|
+
}, "Menu"), _e = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
70
69
|
let { __scopeMenu: n, ...r } = e;
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
...
|
|
70
|
+
return /* @__PURE__ */ T(_, {
|
|
71
|
+
...I(n),
|
|
73
72
|
...r,
|
|
74
73
|
ref: t
|
|
75
74
|
});
|
|
76
|
-
}, "MenuAnchor")),
|
|
77
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a =
|
|
78
|
-
return /* @__PURE__ */
|
|
75
|
+
}, "MenuAnchor")), ve = "MenuPortal", [ye, be] = P(ve, { forceMount: void 0 }), xe = /* @__PURE__ */ O((e) => {
|
|
76
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = L(ve, t);
|
|
77
|
+
return /* @__PURE__ */ T(ye, {
|
|
79
78
|
scope: t,
|
|
80
79
|
forceMount: n,
|
|
81
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ T(o, {
|
|
82
81
|
present: n || a.open,
|
|
83
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ T(p, {
|
|
84
83
|
asChild: !0,
|
|
85
84
|
container: i,
|
|
86
85
|
children: r
|
|
87
86
|
})
|
|
88
87
|
})
|
|
89
88
|
});
|
|
90
|
-
}, "MenuPortal"),
|
|
91
|
-
let n =
|
|
92
|
-
return /* @__PURE__ */
|
|
89
|
+
}, "MenuPortal"), z = "MenuContent", [Se, B] = P(z), Ce = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
90
|
+
let n = be(z, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = L(z, e.__scopeMenu), s = R(z, e.__scopeMenu);
|
|
91
|
+
return /* @__PURE__ */ T(N.Provider, {
|
|
93
92
|
scope: e.__scopeMenu,
|
|
94
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ T(o, {
|
|
95
94
|
present: r || a.open,
|
|
96
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ T(N.Slot, {
|
|
97
96
|
scope: e.__scopeMenu,
|
|
98
|
-
children: s.modal ? /* @__PURE__ */
|
|
97
|
+
children: s.modal ? /* @__PURE__ */ T(we, {
|
|
99
98
|
...i,
|
|
100
99
|
ref: t
|
|
101
|
-
}) : /* @__PURE__ */
|
|
100
|
+
}) : /* @__PURE__ */ T(Te, {
|
|
102
101
|
...i,
|
|
103
102
|
ref: t
|
|
104
103
|
})
|
|
105
104
|
})
|
|
106
105
|
})
|
|
107
106
|
});
|
|
108
|
-
}, "MenuContent")),
|
|
109
|
-
let r =
|
|
110
|
-
return
|
|
107
|
+
}, "MenuContent")), we = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
108
|
+
let r = L(z, e.__scopeMenu), i = C.useRef(null), a = n(t, i);
|
|
109
|
+
return C.useEffect(() => {
|
|
111
110
|
let e = i.current;
|
|
112
|
-
if (e) return
|
|
113
|
-
}, []), /* @__PURE__ */
|
|
111
|
+
if (e) return x(e);
|
|
112
|
+
}, []), /* @__PURE__ */ T(V, {
|
|
114
113
|
...e,
|
|
115
114
|
ref: a,
|
|
116
115
|
trapFocus: r.open,
|
|
@@ -119,9 +118,9 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
119
118
|
onFocusOutside: u(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
120
119
|
onDismiss: () => r.onOpenChange(!1)
|
|
121
120
|
});
|
|
122
|
-
}, "MenuRootContentModal")),
|
|
123
|
-
let n =
|
|
124
|
-
return /* @__PURE__ */
|
|
121
|
+
}, "MenuRootContentModal")), Te = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
122
|
+
let n = L(z, e.__scopeMenu);
|
|
123
|
+
return /* @__PURE__ */ T(V, {
|
|
125
124
|
...e,
|
|
126
125
|
ref: t,
|
|
127
126
|
trapFocus: !1,
|
|
@@ -129,93 +128,93 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
129
128
|
disableOutsideScroll: !1,
|
|
130
129
|
onDismiss: () => n.onOpenChange(!1)
|
|
131
130
|
});
|
|
132
|
-
}, "MenuRootContentNonModal")),
|
|
133
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside:
|
|
134
|
-
as:
|
|
131
|
+
}, "MenuRootContentNonModal")), Ee = r("MenuContent.ScrollLock"), V = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
132
|
+
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: d, onPointerDownOutside: p, onFocusOutside: h, onInteractOutside: g, onDismiss: ee, disableOutsideScroll: _, ...v } = e, y = L(z, r), b = R(z, r), ne = I(r), re = pe(r), x = de(r), [oe, S] = C.useState(null), w = C.useRef(null), E = n(t, w, y.onContentChange), D = C.useRef(0), k = C.useRef(""), ce = C.useRef(0), A = C.useRef(null), j = C.useRef("right"), M = C.useRef(0), N = _ ? se : C.Fragment, fe = _ ? {
|
|
133
|
+
as: Ee,
|
|
135
134
|
allowPinchZoom: !0
|
|
136
|
-
} : void 0,
|
|
137
|
-
let t =
|
|
138
|
-
(/* @__PURE__ */
|
|
139
|
-
|
|
135
|
+
} : void 0, P = /* @__PURE__ */ O((e) => {
|
|
136
|
+
let t = k.current + e, n = x().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ze(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
137
|
+
(/* @__PURE__ */ O((function e(t) {
|
|
138
|
+
k.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
|
|
140
139
|
}), "updateSearch"))(t), o && setTimeout(() => o.focus());
|
|
141
140
|
}, "handleTypeaheadSearch");
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
return /* @__PURE__ */
|
|
141
|
+
C.useEffect(() => () => window.clearTimeout(D.current), []), ie();
|
|
142
|
+
let F = C.useCallback((e) => j.current === A.current?.side && $e(e, A.current?.area), []);
|
|
143
|
+
return /* @__PURE__ */ T(Se, {
|
|
145
144
|
scope: r,
|
|
146
|
-
searchRef:
|
|
147
|
-
onItemEnter:
|
|
148
|
-
|
|
149
|
-
}, [
|
|
150
|
-
onItemLeave:
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
onTriggerLeave:
|
|
154
|
-
|
|
155
|
-
}, [
|
|
156
|
-
pointerGraceTimerRef:
|
|
157
|
-
onPointerGraceIntentChange:
|
|
158
|
-
|
|
145
|
+
searchRef: k,
|
|
146
|
+
onItemEnter: C.useCallback((e) => {
|
|
147
|
+
F(e) && e.preventDefault();
|
|
148
|
+
}, [F]),
|
|
149
|
+
onItemLeave: C.useCallback((e) => {
|
|
150
|
+
F(e) || (w.current?.focus(), S(null));
|
|
151
|
+
}, [F]),
|
|
152
|
+
onTriggerLeave: C.useCallback((e) => {
|
|
153
|
+
F(e) && e.preventDefault();
|
|
154
|
+
}, [F]),
|
|
155
|
+
pointerGraceTimerRef: ce,
|
|
156
|
+
onPointerGraceIntentChange: C.useCallback((e) => {
|
|
157
|
+
A.current = e;
|
|
159
158
|
}, []),
|
|
160
|
-
children: /* @__PURE__ */
|
|
161
|
-
...
|
|
162
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ T(N, {
|
|
160
|
+
...fe,
|
|
161
|
+
children: /* @__PURE__ */ T(ae, {
|
|
163
162
|
asChild: !0,
|
|
164
163
|
trapped: a,
|
|
165
164
|
onMountAutoFocus: u(o, (e) => {
|
|
166
|
-
e.preventDefault(),
|
|
165
|
+
e.preventDefault(), w.current?.focus({ preventScroll: !0 });
|
|
167
166
|
}),
|
|
168
167
|
onUnmountAutoFocus: s,
|
|
169
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ T(f, {
|
|
170
169
|
asChild: !0,
|
|
171
170
|
disableOutsidePointerEvents: c,
|
|
172
171
|
onEscapeKeyDown: d,
|
|
173
|
-
onPointerDownOutside:
|
|
174
|
-
onFocusOutside:
|
|
175
|
-
onInteractOutside:
|
|
176
|
-
onDismiss:
|
|
177
|
-
children: /* @__PURE__ */
|
|
172
|
+
onPointerDownOutside: p,
|
|
173
|
+
onFocusOutside: h,
|
|
174
|
+
onInteractOutside: g,
|
|
175
|
+
onDismiss: ee,
|
|
176
|
+
children: /* @__PURE__ */ T(te, {
|
|
178
177
|
asChild: !0,
|
|
179
|
-
...
|
|
180
|
-
dir:
|
|
178
|
+
...re,
|
|
179
|
+
dir: b.dir,
|
|
181
180
|
orientation: "vertical",
|
|
182
181
|
loop: i,
|
|
183
|
-
currentTabStopId:
|
|
184
|
-
onCurrentTabStopIdChange:
|
|
182
|
+
currentTabStopId: oe,
|
|
183
|
+
onCurrentTabStopIdChange: S,
|
|
185
184
|
onEntryFocus: u(l, (e) => {
|
|
186
|
-
|
|
185
|
+
b.isUsingKeyboardRef.current || e.preventDefault();
|
|
187
186
|
}),
|
|
188
187
|
preventScrollOnEntryFocus: !0,
|
|
189
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ T(m, {
|
|
190
189
|
role: "menu",
|
|
191
190
|
"aria-orientation": "vertical",
|
|
192
|
-
"data-state":
|
|
191
|
+
"data-state": G(y.open),
|
|
193
192
|
"data-radix-menu-content": "",
|
|
194
|
-
dir:
|
|
195
|
-
...
|
|
196
|
-
...
|
|
197
|
-
ref:
|
|
193
|
+
dir: b.dir,
|
|
194
|
+
...ne,
|
|
195
|
+
...v,
|
|
196
|
+
ref: E,
|
|
198
197
|
style: {
|
|
199
198
|
outline: "none",
|
|
200
|
-
...
|
|
199
|
+
...v.style
|
|
201
200
|
},
|
|
202
|
-
onKeyDown: u(
|
|
201
|
+
onKeyDown: u(v.onKeyDown, (e) => {
|
|
203
202
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
204
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
205
|
-
let i =
|
|
206
|
-
if (e.target !== i || !
|
|
203
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && P(e.key));
|
|
204
|
+
let i = w.current;
|
|
205
|
+
if (e.target !== i || !ue.includes(e.key)) return;
|
|
207
206
|
e.preventDefault();
|
|
208
|
-
let a =
|
|
209
|
-
|
|
207
|
+
let a = x().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
208
|
+
le.includes(e.key) && a.reverse(), Ye(a);
|
|
210
209
|
}),
|
|
211
210
|
onBlur: u(e.onBlur, (e) => {
|
|
212
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
211
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), k.current = "");
|
|
213
212
|
}),
|
|
214
|
-
onPointerMove: u(e.onPointerMove,
|
|
215
|
-
let t = e.target, n =
|
|
213
|
+
onPointerMove: u(e.onPointerMove, J((e) => {
|
|
214
|
+
let t = e.target, n = M.current !== e.clientX;
|
|
216
215
|
if (e.currentTarget.contains(t) && n) {
|
|
217
|
-
let t = e.clientX >
|
|
218
|
-
|
|
216
|
+
let t = e.clientX > M.current ? "right" : "left";
|
|
217
|
+
j.current = t, M.current = e.clientX;
|
|
219
218
|
}
|
|
220
219
|
}))
|
|
221
220
|
})
|
|
@@ -224,31 +223,31 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
224
223
|
})
|
|
225
224
|
})
|
|
226
225
|
});
|
|
227
|
-
}, "MenuContentImpl")),
|
|
226
|
+
}, "MenuContentImpl")), De = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
228
227
|
let { __scopeMenu: n, ...r } = e;
|
|
229
|
-
return /* @__PURE__ */
|
|
228
|
+
return /* @__PURE__ */ T(s.div, {
|
|
230
229
|
role: "group",
|
|
231
230
|
...r,
|
|
232
231
|
ref: t
|
|
233
232
|
});
|
|
234
|
-
}, "MenuGroup")),
|
|
233
|
+
}, "MenuGroup")), Oe = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
235
234
|
let { __scopeMenu: n, ...r } = e;
|
|
236
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ T(s.div, {
|
|
237
236
|
...r,
|
|
238
237
|
ref: t
|
|
239
238
|
});
|
|
240
|
-
}, "MenuLabel")),
|
|
241
|
-
let { disabled: r = !1, onSelect: i, ...a } = e, o =
|
|
239
|
+
}, "MenuLabel")), H = "MenuItem", ke = "menu.itemSelect", U = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
240
|
+
let { disabled: r = !1, onSelect: i, ...a } = e, o = C.useRef(null), s = R(H, e.__scopeMenu), c = B(H, e.__scopeMenu), l = n(t, o), f = C.useRef(!1), p = /* @__PURE__ */ O(() => {
|
|
242
241
|
let e = o.current;
|
|
243
242
|
if (!r && e) {
|
|
244
|
-
let t = new CustomEvent(
|
|
243
|
+
let t = new CustomEvent(ke, {
|
|
245
244
|
bubbles: !0,
|
|
246
245
|
cancelable: !0
|
|
247
246
|
});
|
|
248
|
-
e.addEventListener(
|
|
247
|
+
e.addEventListener(ke, (e) => i?.(e), { once: !0 }), d(e, t), t.defaultPrevented ? f.current = !1 : s.onClose();
|
|
249
248
|
}
|
|
250
249
|
}, "handleSelect");
|
|
251
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ T(Ae, {
|
|
252
251
|
...a,
|
|
253
252
|
ref: l,
|
|
254
253
|
disabled: r,
|
|
@@ -260,109 +259,109 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
260
259
|
f.current || e.currentTarget?.click();
|
|
261
260
|
}),
|
|
262
261
|
onKeyDown: u(e.onKeyDown, (e) => {
|
|
263
|
-
r || e.target !== e.currentTarget || c.searchRef.current !== "" && e.key === " " ||
|
|
262
|
+
r || e.target !== e.currentTarget || c.searchRef.current !== "" && e.key === " " || k.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
264
263
|
})
|
|
265
264
|
});
|
|
266
|
-
}, "MenuItem")),
|
|
267
|
-
let { __scopeMenu: r, disabled: i = !1, textValue: a, ...o } = e, c =
|
|
268
|
-
return
|
|
265
|
+
}, "MenuItem")), Ae = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
266
|
+
let { __scopeMenu: r, disabled: i = !1, textValue: a, ...o } = e, c = B(H, r), l = pe(r), d = C.useRef(null), f = n(t, d), [p, m] = C.useState(!1), [h, g] = C.useState("");
|
|
267
|
+
return C.useEffect(() => {
|
|
269
268
|
let e = d.current;
|
|
270
|
-
e &&
|
|
271
|
-
}, [o.children]), /* @__PURE__ */
|
|
269
|
+
e && g((e.textContent ?? "").trim());
|
|
270
|
+
}, [o.children]), /* @__PURE__ */ T(N.ItemSlot, {
|
|
272
271
|
scope: r,
|
|
273
272
|
disabled: i,
|
|
274
273
|
textValue: a ?? h,
|
|
275
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ T(ne, {
|
|
276
275
|
asChild: !0,
|
|
277
276
|
...l,
|
|
278
277
|
focusable: !i,
|
|
279
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ T(s.div, {
|
|
280
279
|
role: "menuitem",
|
|
281
280
|
"data-highlighted": p ? "" : void 0,
|
|
282
281
|
"aria-disabled": i || void 0,
|
|
283
282
|
"data-disabled": i ? "" : void 0,
|
|
284
283
|
...o,
|
|
285
284
|
ref: f,
|
|
286
|
-
onPointerMove: u(e.onPointerMove,
|
|
285
|
+
onPointerMove: u(e.onPointerMove, J((e) => {
|
|
287
286
|
i ? c.onItemLeave(e) : (c.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
288
287
|
})),
|
|
289
|
-
onPointerLeave: u(e.onPointerLeave,
|
|
288
|
+
onPointerLeave: u(e.onPointerLeave, J((e) => c.onItemLeave(e))),
|
|
290
289
|
onFocus: u(e.onFocus, () => m(!0)),
|
|
291
290
|
onBlur: u(e.onBlur, () => m(!1))
|
|
292
291
|
})
|
|
293
292
|
})
|
|
294
293
|
});
|
|
295
|
-
}, "MenuItemImpl")),
|
|
294
|
+
}, "MenuItemImpl")), je = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
296
295
|
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
297
|
-
return /* @__PURE__ */
|
|
296
|
+
return /* @__PURE__ */ T(Re, {
|
|
298
297
|
scope: e.__scopeMenu,
|
|
299
298
|
checked: n,
|
|
300
|
-
children: /* @__PURE__ */
|
|
299
|
+
children: /* @__PURE__ */ T(U, {
|
|
301
300
|
role: "menuitemcheckbox",
|
|
302
|
-
"aria-checked":
|
|
301
|
+
"aria-checked": K(n) ? "mixed" : n,
|
|
303
302
|
...i,
|
|
304
303
|
ref: t,
|
|
305
|
-
"data-state":
|
|
306
|
-
onSelect: u(i.onSelect, () => r?.(
|
|
304
|
+
"data-state": q(n),
|
|
305
|
+
onSelect: u(i.onSelect, () => r?.(K(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
307
306
|
})
|
|
308
307
|
});
|
|
309
|
-
}, "MenuCheckboxItem")), [
|
|
308
|
+
}, "MenuCheckboxItem")), [Me, Ne] = P("MenuRadioGroup", {
|
|
310
309
|
value: void 0,
|
|
311
|
-
onValueChange: /* @__PURE__ */
|
|
312
|
-
}),
|
|
310
|
+
onValueChange: /* @__PURE__ */ O(() => {}, "onValueChange")
|
|
311
|
+
}), Pe = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
313
312
|
let { value: n, onValueChange: r, ...i } = e, a = c(r);
|
|
314
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ T(Me, {
|
|
315
314
|
scope: e.__scopeMenu,
|
|
316
315
|
value: n,
|
|
317
316
|
onValueChange: a,
|
|
318
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ T(De, {
|
|
319
318
|
...i,
|
|
320
319
|
ref: t
|
|
321
320
|
})
|
|
322
321
|
});
|
|
323
|
-
}, "MenuRadioGroup")),
|
|
324
|
-
let { value: n, ...r } = e, i =
|
|
325
|
-
return /* @__PURE__ */
|
|
322
|
+
}, "MenuRadioGroup")), Fe = "MenuRadioItem", Ie = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
323
|
+
let { value: n, ...r } = e, i = Ne(Fe, e.__scopeMenu), a = n === i.value;
|
|
324
|
+
return /* @__PURE__ */ T(Re, {
|
|
326
325
|
scope: e.__scopeMenu,
|
|
327
326
|
checked: a,
|
|
328
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ T(U, {
|
|
329
328
|
role: "menuitemradio",
|
|
330
329
|
"aria-checked": a,
|
|
331
330
|
...r,
|
|
332
331
|
ref: t,
|
|
333
|
-
"data-state":
|
|
332
|
+
"data-state": q(a),
|
|
334
333
|
onSelect: u(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
335
334
|
})
|
|
336
335
|
});
|
|
337
|
-
}, "MenuRadioItem")),
|
|
338
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a =
|
|
339
|
-
return /* @__PURE__ */
|
|
340
|
-
present: r ||
|
|
341
|
-
children: /* @__PURE__ */
|
|
336
|
+
}, "MenuRadioItem")), Le = "MenuItemIndicator", [Re, ze] = P(Le, { checked: !1 }), Be = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
337
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = ze(Le, n);
|
|
338
|
+
return /* @__PURE__ */ T(o, {
|
|
339
|
+
present: r || K(a.checked) || a.checked === !0,
|
|
340
|
+
children: /* @__PURE__ */ T(s.span, {
|
|
342
341
|
...i,
|
|
343
342
|
ref: t,
|
|
344
|
-
"data-state":
|
|
343
|
+
"data-state": q(a.checked)
|
|
345
344
|
})
|
|
346
345
|
});
|
|
347
|
-
}, "MenuItemIndicator")),
|
|
346
|
+
}, "MenuItemIndicator")), Ve = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
348
347
|
let { __scopeMenu: n, ...r } = e;
|
|
349
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ T(s.div, {
|
|
350
349
|
role: "separator",
|
|
351
350
|
"aria-orientation": "horizontal",
|
|
352
351
|
...r,
|
|
353
352
|
ref: t
|
|
354
353
|
});
|
|
355
|
-
}, "MenuSeparator")),
|
|
356
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a =
|
|
357
|
-
return
|
|
354
|
+
}, "MenuSeparator")), He = "MenuSub", [Ue, We] = P(He), Ge = /* @__PURE__ */ O((e) => {
|
|
355
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = L(He, t), o = I(t), [s, u] = C.useState(null), [d, f] = C.useState(null), p = c(i);
|
|
356
|
+
return C.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ T(g, {
|
|
358
357
|
...o,
|
|
359
|
-
children: /* @__PURE__ */
|
|
358
|
+
children: /* @__PURE__ */ T(me, {
|
|
360
359
|
scope: t,
|
|
361
360
|
open: r,
|
|
362
361
|
onOpenChange: p,
|
|
363
362
|
content: d,
|
|
364
363
|
onContentChange: f,
|
|
365
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ T(Ue, {
|
|
366
365
|
scope: t,
|
|
367
366
|
contentId: l(),
|
|
368
367
|
triggerId: l(),
|
|
@@ -372,37 +371,37 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
372
371
|
})
|
|
373
372
|
})
|
|
374
373
|
});
|
|
375
|
-
}, "MenuSub"),
|
|
376
|
-
let r =
|
|
374
|
+
}, "MenuSub"), W = "MenuSubTrigger", Ke = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
375
|
+
let r = L(W, e.__scopeMenu), i = R(W, e.__scopeMenu), a = We(W, e.__scopeMenu), o = B(W, e.__scopeMenu), s = C.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, d = { __scopeMenu: e.__scopeMenu }, f = C.useCallback(() => {
|
|
377
376
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
378
377
|
}, []);
|
|
379
|
-
|
|
378
|
+
C.useEffect(() => f, [f]), C.useEffect(() => {
|
|
380
379
|
let e = c.current;
|
|
381
380
|
return () => {
|
|
382
381
|
window.clearTimeout(e), l(null);
|
|
383
382
|
};
|
|
384
383
|
}, [c, l]);
|
|
385
384
|
let p = n(t, a.onTriggerChange);
|
|
386
|
-
return /* @__PURE__ */
|
|
385
|
+
return /* @__PURE__ */ T(_e, {
|
|
387
386
|
asChild: !0,
|
|
388
387
|
...d,
|
|
389
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ T(Ae, {
|
|
390
389
|
id: a.triggerId,
|
|
391
390
|
"aria-haspopup": "menu",
|
|
392
391
|
"aria-expanded": r.open,
|
|
393
392
|
"aria-controls": r.open ? a.contentId : void 0,
|
|
394
|
-
"data-state":
|
|
393
|
+
"data-state": G(r.open),
|
|
395
394
|
...e,
|
|
396
395
|
ref: p,
|
|
397
396
|
onClick: (t) => {
|
|
398
397
|
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
399
398
|
},
|
|
400
|
-
onPointerMove: u(e.onPointerMove,
|
|
399
|
+
onPointerMove: u(e.onPointerMove, J((t) => {
|
|
401
400
|
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !r.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
402
401
|
r.onOpenChange(!0), f();
|
|
403
402
|
}, 100));
|
|
404
403
|
})),
|
|
405
|
-
onPointerLeave: u(e.onPointerLeave,
|
|
404
|
+
onPointerLeave: u(e.onPointerLeave, J((e) => {
|
|
406
405
|
f();
|
|
407
406
|
let t = r.content?.getBoundingClientRect();
|
|
408
407
|
if (t) {
|
|
@@ -438,19 +437,19 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
438
437
|
}
|
|
439
438
|
})),
|
|
440
439
|
onKeyDown: u(e.onKeyDown, (t) => {
|
|
441
|
-
e.disabled || t.target !== t.currentTarget || o.searchRef.current !== "" && t.key === " " ||
|
|
440
|
+
e.disabled || t.target !== t.currentTarget || o.searchRef.current !== "" && t.key === " " || A[i.dir].includes(t.key) && (r.onOpenChange(!0), r.content?.focus(), t.preventDefault());
|
|
442
441
|
})
|
|
443
442
|
})
|
|
444
443
|
});
|
|
445
|
-
}, "MenuSubTrigger")),
|
|
446
|
-
let r =
|
|
447
|
-
return /* @__PURE__ */
|
|
444
|
+
}, "MenuSubTrigger")), qe = "MenuSubContent", Je = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
445
|
+
let r = be(z, e.__scopeMenu), { forceMount: i = r.forceMount, align: a = "start", ...s } = e, c = L(z, e.__scopeMenu), l = R(z, e.__scopeMenu), d = We(qe, e.__scopeMenu), f = C.useRef(null), p = n(t, f);
|
|
446
|
+
return /* @__PURE__ */ T(N.Provider, {
|
|
448
447
|
scope: e.__scopeMenu,
|
|
449
|
-
children: /* @__PURE__ */
|
|
448
|
+
children: /* @__PURE__ */ T(o, {
|
|
450
449
|
present: i || c.open,
|
|
451
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ T(N.Slot, {
|
|
452
451
|
scope: e.__scopeMenu,
|
|
453
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ T(V, {
|
|
454
453
|
id: d.contentId,
|
|
455
454
|
"aria-labelledby": d.triggerId,
|
|
456
455
|
...s,
|
|
@@ -471,7 +470,7 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
471
470
|
l.onClose(), e.preventDefault();
|
|
472
471
|
}),
|
|
473
472
|
onKeyDown: u(e.onKeyDown, (e) => {
|
|
474
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
473
|
+
let t = e.currentTarget.contains(e.target), n = j[l.dir].includes(e.key);
|
|
475
474
|
t && n && (c.onOpenChange(!1), d.trigger?.focus(), e.preventDefault());
|
|
476
475
|
})
|
|
477
476
|
})
|
|
@@ -479,35 +478,35 @@ var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
|
479
478
|
})
|
|
480
479
|
});
|
|
481
480
|
}, "MenuSubContent"));
|
|
482
|
-
function
|
|
481
|
+
function G(e) {
|
|
483
482
|
return e ? "open" : "closed";
|
|
484
483
|
}
|
|
485
|
-
|
|
486
|
-
function
|
|
484
|
+
O(G, "getOpenState");
|
|
485
|
+
function K(e) {
|
|
487
486
|
return e === "indeterminate";
|
|
488
487
|
}
|
|
489
|
-
|
|
490
|
-
function
|
|
491
|
-
return
|
|
488
|
+
O(K, "isIndeterminate");
|
|
489
|
+
function q(e) {
|
|
490
|
+
return K(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
492
491
|
}
|
|
493
|
-
|
|
494
|
-
function
|
|
492
|
+
O(q, "getCheckedState");
|
|
493
|
+
function Ye(e) {
|
|
495
494
|
let t = document.activeElement;
|
|
496
495
|
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
497
496
|
}
|
|
498
|
-
|
|
499
|
-
function
|
|
497
|
+
O(Ye, "focusFirst");
|
|
498
|
+
function Xe(e, t) {
|
|
500
499
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
501
500
|
}
|
|
502
|
-
|
|
503
|
-
function
|
|
504
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
501
|
+
O(Xe, "wrapArray");
|
|
502
|
+
function Ze(e, t, n) {
|
|
503
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Xe(e, Math.max(i, 0));
|
|
505
504
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
506
505
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
507
506
|
return o === n ? void 0 : o;
|
|
508
507
|
}
|
|
509
|
-
|
|
510
|
-
function
|
|
508
|
+
O(Ze, "getNextMatch");
|
|
509
|
+
function Qe(e, t) {
|
|
511
510
|
let { x: n, y: r } = e, i = !1;
|
|
512
511
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
513
512
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -515,38 +514,38 @@ function $e(e, t) {
|
|
|
515
514
|
}
|
|
516
515
|
return i;
|
|
517
516
|
}
|
|
518
|
-
|
|
519
|
-
function
|
|
520
|
-
return t ?
|
|
517
|
+
O(Qe, "isPointInPolygon");
|
|
518
|
+
function $e(e, t) {
|
|
519
|
+
return t ? Qe({
|
|
521
520
|
x: e.clientX,
|
|
522
521
|
y: e.clientY
|
|
523
522
|
}, t) : !1;
|
|
524
523
|
}
|
|
525
|
-
|
|
526
|
-
function
|
|
524
|
+
O($e, "isPointerInGraceArea");
|
|
525
|
+
function J(e) {
|
|
527
526
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
528
527
|
}
|
|
529
|
-
|
|
530
|
-
var tt = _e, nt =
|
|
528
|
+
O(J, "whenMouse");
|
|
529
|
+
var et = ge, tt = _e, nt = xe, rt = Ce, it = De, at = Oe, ot = U, st = je, ct = Pe, lt = Ie, ut = Be, dt = Ve, ft = Ge, pt = Ke, mt = Je, ht = Object.defineProperty, Y = (e, t) => ht(e, "name", {
|
|
531
530
|
value: t,
|
|
532
531
|
configurable: !0
|
|
533
|
-
}),
|
|
534
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, u =
|
|
532
|
+
}), X = "DropdownMenu", [gt, _t] = a(X, [F]), Z = F(), [vt, yt] = gt(X), bt = /* @__PURE__ */ Y((e) => {
|
|
533
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, u = Z(t), d = C.useRef(null), [f, p] = i({
|
|
535
534
|
prop: a,
|
|
536
535
|
defaultProp: o ?? !1,
|
|
537
536
|
onChange: s,
|
|
538
|
-
caller:
|
|
537
|
+
caller: X
|
|
539
538
|
});
|
|
540
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ T(vt, {
|
|
541
540
|
scope: t,
|
|
542
541
|
triggerId: l(),
|
|
543
542
|
triggerRef: d,
|
|
544
543
|
contentId: l(),
|
|
545
544
|
open: f,
|
|
546
545
|
onOpenChange: p,
|
|
547
|
-
onOpenToggle:
|
|
546
|
+
onOpenToggle: C.useCallback(() => p((e) => !e), [p]),
|
|
548
547
|
modal: c,
|
|
549
|
-
children: /* @__PURE__ */
|
|
548
|
+
children: /* @__PURE__ */ T(et, {
|
|
550
549
|
...u,
|
|
551
550
|
open: f,
|
|
552
551
|
onOpenChange: p,
|
|
@@ -555,12 +554,12 @@ var tt = _e, nt = ve, rt = Se, it = we, at = Oe, ot = ke, st = H, ct = Me, lt =
|
|
|
555
554
|
children: n
|
|
556
555
|
})
|
|
557
556
|
});
|
|
558
|
-
}, "DropdownMenu"),
|
|
559
|
-
let { __scopeDropdownMenu: r, disabled: i = !1, ...a } = e, o =
|
|
560
|
-
return /* @__PURE__ */
|
|
557
|
+
}, "DropdownMenu"), xt = "DropdownMenuTrigger", St = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
558
|
+
let { __scopeDropdownMenu: r, disabled: i = !1, ...a } = e, o = yt(xt, r), c = Z(r), l = n(t, o.triggerRef);
|
|
559
|
+
return /* @__PURE__ */ T(tt, {
|
|
561
560
|
asChild: !0,
|
|
562
561
|
...c,
|
|
563
|
-
children: /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ T(s.button, {
|
|
564
563
|
type: "button",
|
|
565
564
|
id: o.triggerId,
|
|
566
565
|
"aria-haspopup": "menu",
|
|
@@ -583,15 +582,15 @@ var tt = _e, nt = ve, rt = Se, it = we, at = Oe, ot = ke, st = H, ct = Me, lt =
|
|
|
583
582
|
})
|
|
584
583
|
})
|
|
585
584
|
});
|
|
586
|
-
}, "DropdownMenuTrigger")),
|
|
585
|
+
}, "DropdownMenuTrigger")), Ct = /* @__PURE__ */ Y((e) => {
|
|
587
586
|
let { __scopeDropdownMenu: t, ...n } = e;
|
|
588
|
-
return /* @__PURE__ */
|
|
589
|
-
...
|
|
587
|
+
return /* @__PURE__ */ T(nt, {
|
|
588
|
+
...Z(t),
|
|
590
589
|
...n
|
|
591
590
|
});
|
|
592
|
-
}, "DropdownMenuPortal"),
|
|
593
|
-
let { __scopeDropdownMenu: n, ...r } = e, i =
|
|
594
|
-
return /* @__PURE__ */
|
|
591
|
+
}, "DropdownMenuPortal"), wt = "DropdownMenuContent", Tt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
592
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = yt(wt, n), a = Z(n), o = C.useRef(!1);
|
|
593
|
+
return /* @__PURE__ */ T(rt, {
|
|
595
594
|
id: i.contentId,
|
|
596
595
|
"aria-labelledby": i.triggerId,
|
|
597
596
|
...a,
|
|
@@ -613,86 +612,86 @@ var tt = _e, nt = ve, rt = Se, it = we, at = Oe, ot = ke, st = H, ct = Me, lt =
|
|
|
613
612
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
614
613
|
}
|
|
615
614
|
});
|
|
616
|
-
}, "DropdownMenuContent")),
|
|
615
|
+
}, "DropdownMenuContent")), Et = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
617
616
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
618
|
-
return /* @__PURE__ */
|
|
619
|
-
...
|
|
617
|
+
return /* @__PURE__ */ T(it, {
|
|
618
|
+
...Z(n),
|
|
620
619
|
...r,
|
|
621
620
|
ref: t
|
|
622
621
|
});
|
|
623
|
-
}, "DropdownMenuGroup")),
|
|
622
|
+
}, "DropdownMenuGroup")), Dt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
624
623
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
625
|
-
return /* @__PURE__ */
|
|
626
|
-
...
|
|
624
|
+
return /* @__PURE__ */ T(at, {
|
|
625
|
+
...Z(n),
|
|
627
626
|
...r,
|
|
628
627
|
ref: t
|
|
629
628
|
});
|
|
630
|
-
}, "DropdownMenuLabel")),
|
|
629
|
+
}, "DropdownMenuLabel")), Ot = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
631
630
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
632
|
-
return /* @__PURE__ */
|
|
633
|
-
...
|
|
631
|
+
return /* @__PURE__ */ T(ot, {
|
|
632
|
+
...Z(n),
|
|
634
633
|
...r,
|
|
635
634
|
ref: t
|
|
636
635
|
});
|
|
637
|
-
}, "DropdownMenuItem")),
|
|
636
|
+
}, "DropdownMenuItem")), kt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
638
637
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
639
|
-
return /* @__PURE__ */
|
|
640
|
-
...
|
|
638
|
+
return /* @__PURE__ */ T(st, {
|
|
639
|
+
...Z(n),
|
|
641
640
|
...r,
|
|
642
641
|
ref: t
|
|
643
642
|
});
|
|
644
|
-
}, "DropdownMenuCheckboxItem")),
|
|
643
|
+
}, "DropdownMenuCheckboxItem")), At = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
645
644
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
...
|
|
645
|
+
return /* @__PURE__ */ T(ct, {
|
|
646
|
+
...Z(n),
|
|
648
647
|
...r,
|
|
649
648
|
ref: t
|
|
650
649
|
});
|
|
651
|
-
}, "DropdownMenuRadioGroup")),
|
|
650
|
+
}, "DropdownMenuRadioGroup")), jt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
652
651
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
-
...
|
|
652
|
+
return /* @__PURE__ */ T(lt, {
|
|
653
|
+
...Z(n),
|
|
655
654
|
...r,
|
|
656
655
|
ref: t
|
|
657
656
|
});
|
|
658
|
-
}, "DropdownMenuRadioItem")),
|
|
657
|
+
}, "DropdownMenuRadioItem")), Mt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
659
658
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
660
|
-
return /* @__PURE__ */
|
|
661
|
-
...
|
|
659
|
+
return /* @__PURE__ */ T(ut, {
|
|
660
|
+
...Z(n),
|
|
662
661
|
...r,
|
|
663
662
|
ref: t
|
|
664
663
|
});
|
|
665
|
-
}, "DropdownMenuItemIndicator")),
|
|
664
|
+
}, "DropdownMenuItemIndicator")), Nt = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
666
665
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
...
|
|
666
|
+
return /* @__PURE__ */ T(dt, {
|
|
667
|
+
...Z(n),
|
|
669
668
|
...r,
|
|
670
669
|
ref: t
|
|
671
670
|
});
|
|
672
|
-
}, "DropdownMenuSeparator")),
|
|
673
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s =
|
|
671
|
+
}, "DropdownMenuSeparator")), Pt = /* @__PURE__ */ Y((e) => {
|
|
672
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s = Z(t), [c, l] = i({
|
|
674
673
|
prop: r,
|
|
675
674
|
defaultProp: o ?? !1,
|
|
676
675
|
onChange: a,
|
|
677
676
|
caller: "DropdownMenuSub"
|
|
678
677
|
});
|
|
679
|
-
return /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ T(ft, {
|
|
680
679
|
...s,
|
|
681
680
|
open: c,
|
|
682
681
|
onOpenChange: l,
|
|
683
682
|
children: n
|
|
684
683
|
});
|
|
685
|
-
}, "DropdownMenuSub"),
|
|
684
|
+
}, "DropdownMenuSub"), Ft = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
686
685
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
687
|
-
return /* @__PURE__ */
|
|
688
|
-
...
|
|
686
|
+
return /* @__PURE__ */ T(pt, {
|
|
687
|
+
...Z(n),
|
|
689
688
|
...r,
|
|
690
689
|
ref: t
|
|
691
690
|
});
|
|
692
|
-
}, "DropdownMenuSubTrigger")),
|
|
691
|
+
}, "DropdownMenuSubTrigger")), It = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ Y(function(e, t) {
|
|
693
692
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
...
|
|
693
|
+
return /* @__PURE__ */ T(mt, {
|
|
694
|
+
...Z(n),
|
|
696
695
|
...r,
|
|
697
696
|
ref: t,
|
|
698
697
|
style: {
|
|
@@ -704,7 +703,7 @@ var tt = _e, nt = ve, rt = Se, it = we, at = Oe, ot = ke, st = H, ct = Me, lt =
|
|
|
704
703
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
705
704
|
}
|
|
706
705
|
});
|
|
707
|
-
}, "DropdownMenuSubContent")),
|
|
706
|
+
}, "DropdownMenuSubContent")), Lt = bt, Rt = St, zt = Ct, Bt = Tt, Vt = Et, Ht = Dt, Ut = Ot, Wt = kt, Gt = At, Kt = jt, qt = Mt, Jt = Nt, Yt = Pt, Xt = Ft, Zt = It;
|
|
708
707
|
//#endregion
|
|
709
708
|
//#region lib/components/ui/menu-item-loading.tsx
|
|
710
709
|
function Qt(e) {
|
|
@@ -718,7 +717,7 @@ function Qt(e) {
|
|
|
718
717
|
}
|
|
719
718
|
var $t = "data-[loading]:cursor-progress data-[loading]:opacity-70 data-[loading]:[&>svg]:hidden";
|
|
720
719
|
function en({ className: t }) {
|
|
721
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ T(ee, {
|
|
722
721
|
"aria-hidden": "true",
|
|
723
722
|
color: "default",
|
|
724
723
|
className: e("size-4", t)
|
|
@@ -761,17 +760,17 @@ var tn = "relative before:pointer-events-none before:absolute before:inset-y-1 b
|
|
|
761
760
|
//#region lib/components/ui/selection/option-mark.tsx
|
|
762
761
|
function $({ kind: t, animate: n = "state", className: r }) {
|
|
763
762
|
let i = n === "enter" ? "nxgt-option-mark-enter" : "";
|
|
764
|
-
return t === "dot" ? /* @__PURE__ */
|
|
763
|
+
return t === "dot" ? /* @__PURE__ */ T("span", {
|
|
765
764
|
"aria-hidden": "true",
|
|
766
765
|
"data-slot": "option-mark",
|
|
767
766
|
className: e("nxgt-option-dot", i, r)
|
|
768
|
-
}) : /* @__PURE__ */
|
|
767
|
+
}) : /* @__PURE__ */ T("svg", {
|
|
769
768
|
"aria-hidden": "true",
|
|
770
769
|
focusable: "false",
|
|
771
770
|
"data-slot": "option-mark",
|
|
772
771
|
viewBox: "0 0 24 24",
|
|
773
772
|
className: e("nxgt-option-check", i, r),
|
|
774
|
-
children: /* @__PURE__ */
|
|
773
|
+
children: /* @__PURE__ */ T("path", {
|
|
775
774
|
d: "M5.5 12.5l4.2 4.2L18.5 7.5",
|
|
776
775
|
pathLength: 1
|
|
777
776
|
})
|
|
@@ -780,7 +779,7 @@ function $({ kind: t, animate: n = "state", className: r }) {
|
|
|
780
779
|
//#endregion
|
|
781
780
|
//#region lib/components/ui/overlays/dropdown-menu/dropdown-menu-items.tsx
|
|
782
781
|
function fn({ className: n, inset: r, variant: i = "default", active: a, loading: o, children: s, ...c }) {
|
|
783
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ E(Ut, {
|
|
784
783
|
"data-slot": "dropdown-menu-item",
|
|
785
784
|
"data-pw": "dropdown-menu-item",
|
|
786
785
|
"data-inset": r,
|
|
@@ -789,47 +788,47 @@ function fn({ className: n, inset: r, variant: i = "default", active: a, loading
|
|
|
789
788
|
className: e("data-[variant=error]:text-error-text data-[variant=error]:data-[highlighted]:bg-error/10 dark:data-[variant=error]:data-[highlighted]:bg-error/20 data-[variant=error]:*:[svg]:!text-error-text [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-(--nxgt-item-radius) px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", nn, sn, $t, n),
|
|
790
789
|
...c,
|
|
791
790
|
...Qt(o),
|
|
792
|
-
children: [o && /* @__PURE__ */
|
|
791
|
+
children: [o && /* @__PURE__ */ T(en, {}), /* @__PURE__ */ T(t, { children: s })]
|
|
793
792
|
});
|
|
794
793
|
}
|
|
795
794
|
function pn({ className: t, children: n, checked: r, ...i }) {
|
|
796
|
-
return /* @__PURE__ */
|
|
795
|
+
return /* @__PURE__ */ E(Wt, {
|
|
797
796
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
798
797
|
className: e("flex cursor-default items-center gap-2 rounded-(--nxgt-item-radius) py-1.5 pe-2 ps-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", un, t),
|
|
799
798
|
checked: r,
|
|
800
799
|
...i,
|
|
801
|
-
children: [/* @__PURE__ */
|
|
800
|
+
children: [/* @__PURE__ */ T("span", {
|
|
802
801
|
className: "pointer-events-none absolute start-2 flex size-3.5 center",
|
|
803
|
-
children: /* @__PURE__ */
|
|
802
|
+
children: /* @__PURE__ */ T(qt, {
|
|
804
803
|
forceMount: !0,
|
|
805
|
-
children: /* @__PURE__ */
|
|
804
|
+
children: /* @__PURE__ */ T($, { kind: "check" })
|
|
806
805
|
})
|
|
807
806
|
}), n]
|
|
808
807
|
});
|
|
809
808
|
}
|
|
810
809
|
function mn({ ...e }) {
|
|
811
|
-
return /* @__PURE__ */
|
|
810
|
+
return /* @__PURE__ */ T(Gt, {
|
|
812
811
|
"data-slot": "dropdown-menu-radio-group",
|
|
813
812
|
...e
|
|
814
813
|
});
|
|
815
814
|
}
|
|
816
815
|
function hn({ className: t, children: n, mark: r = "start", ...i }) {
|
|
817
816
|
let a = r === "end";
|
|
818
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ T(Kt, {
|
|
819
818
|
"data-slot": "dropdown-menu-radio-item",
|
|
820
819
|
className: e("flex cursor-default items-center gap-2 rounded-(--nxgt-item-radius) py-1.5 pe-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", a ? "ps-2" : "ps-8", nn, t),
|
|
821
820
|
...i,
|
|
822
|
-
children: a ? /* @__PURE__ */
|
|
821
|
+
children: a ? /* @__PURE__ */ E(w, { children: [n, /* @__PURE__ */ T("span", {
|
|
823
822
|
className: "pointer-events-none ms-auto flex size-3.5 center",
|
|
824
|
-
children: /* @__PURE__ */
|
|
823
|
+
children: /* @__PURE__ */ T(qt, {
|
|
825
824
|
forceMount: !0,
|
|
826
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ T($, { kind: "check" })
|
|
827
826
|
})
|
|
828
|
-
})] }) : /* @__PURE__ */
|
|
827
|
+
})] }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
829
828
|
className: "pointer-events-none absolute start-2 flex size-3.5 center",
|
|
830
|
-
children: /* @__PURE__ */
|
|
829
|
+
children: /* @__PURE__ */ T(qt, {
|
|
831
830
|
forceMount: !0,
|
|
832
|
-
children: /* @__PURE__ */
|
|
831
|
+
children: /* @__PURE__ */ T($, { kind: "dot" })
|
|
833
832
|
})
|
|
834
833
|
}), n] })
|
|
835
834
|
});
|
|
@@ -837,9 +836,9 @@ function hn({ className: t, children: n, mark: r = "start", ...i }) {
|
|
|
837
836
|
//#endregion
|
|
838
837
|
//#region lib/components/ui/overlays/dropdown-menu/dropdown-menu.tsx
|
|
839
838
|
function gn(e) {
|
|
840
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ T(oe, {
|
|
841
840
|
value: e.modal ?? !1,
|
|
842
|
-
children: /* @__PURE__ */
|
|
841
|
+
children: /* @__PURE__ */ T(Lt, {
|
|
843
842
|
"data-slot": "dropdown-menu",
|
|
844
843
|
modal: !1,
|
|
845
844
|
...e
|
|
@@ -847,13 +846,13 @@ function gn(e) {
|
|
|
847
846
|
});
|
|
848
847
|
}
|
|
849
848
|
function _n({ ...e }) {
|
|
850
|
-
return /* @__PURE__ */
|
|
849
|
+
return /* @__PURE__ */ T(zt, {
|
|
851
850
|
"data-slot": "dropdown-menu-portal",
|
|
852
851
|
...e
|
|
853
852
|
});
|
|
854
853
|
}
|
|
855
854
|
function vn({ className: t, ...n }) {
|
|
856
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ T(Rt, {
|
|
857
856
|
"data-slot": "dropdown-menu-trigger",
|
|
858
857
|
"data-pw": n.name ?? "dropdown-menu",
|
|
859
858
|
className: e("transition-all focus:bg-primary/10 hover:bg-primary/10 rounded-(--nxgt-item-radius)", t),
|
|
@@ -861,11 +860,11 @@ function vn({ className: t, ...n }) {
|
|
|
861
860
|
});
|
|
862
861
|
}
|
|
863
862
|
function yn({ className: t, sideOffset: n = 4, container: r, ref: i, ...a }) {
|
|
864
|
-
return /* @__PURE__ */
|
|
863
|
+
return /* @__PURE__ */ T(S, {
|
|
865
864
|
value: !1,
|
|
866
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ T(zt, {
|
|
867
866
|
container: r,
|
|
868
|
-
children: /* @__PURE__ */
|
|
867
|
+
children: /* @__PURE__ */ T(Bt, {
|
|
869
868
|
ref: re(!1, i),
|
|
870
869
|
"data-slot": "dropdown-menu-content",
|
|
871
870
|
sideOffset: n,
|
|
@@ -876,14 +875,14 @@ function yn({ className: t, sideOffset: n = 4, container: r, ref: i, ...a }) {
|
|
|
876
875
|
});
|
|
877
876
|
}
|
|
878
877
|
function bn({ className: t, ...n }) {
|
|
879
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ T(Vt, {
|
|
880
879
|
"data-slot": "dropdown-menu-group",
|
|
881
880
|
className: e("grid gap-0.5", t),
|
|
882
881
|
...n
|
|
883
882
|
});
|
|
884
883
|
}
|
|
885
884
|
function xn({ className: t, inset: n, ...r }) {
|
|
886
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ T(Ht, {
|
|
887
886
|
"data-slot": "dropdown-menu-label",
|
|
888
887
|
"data-inset": n,
|
|
889
888
|
className: e("px-2 py-1.5 text-xs font-medium data-[inset]:ps-8 text-muted-foreground", t),
|
|
@@ -891,18 +890,18 @@ function xn({ className: t, inset: n, ...r }) {
|
|
|
891
890
|
});
|
|
892
891
|
}
|
|
893
892
|
function Sn({ className: t, ...n }) {
|
|
894
|
-
return /* @__PURE__ */
|
|
893
|
+
return /* @__PURE__ */ T(Jt, {
|
|
895
894
|
"data-slot": "dropdown-menu-separator",
|
|
896
895
|
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
897
896
|
...n
|
|
898
897
|
});
|
|
899
898
|
}
|
|
900
899
|
function Cn({ className: t, ...n }) {
|
|
901
|
-
return /* @__PURE__ */
|
|
900
|
+
return /* @__PURE__ */ T("span", {
|
|
902
901
|
"data-slot": "dropdown-menu-shortcut",
|
|
903
902
|
className: e("text-muted-foreground ms-auto text-xs tracking-widest in-data-[active]:text-foreground/70 in-data-[highlighted]:text-accent-foreground", t),
|
|
904
903
|
...n
|
|
905
904
|
});
|
|
906
905
|
}
|
|
907
906
|
//#endregion
|
|
908
|
-
export { Yt as A,
|
|
907
|
+
export { Yt as A, at as B, $t as C, Ut as D, Bt as E, st as F, dt as G, ct as H, rt as I, pt as J, ft as K, it as L, Xt as M, Rt as N, zt as O, tt as P, ot as R, rn as S, Qt as T, lt as U, nt as V, et as W, F as Y, tn as _, _n as a, on as b, vn as c, mn as d, hn as f, ln as g, dn as h, xn as i, Zt as j, Lt as k, pn as l, cn as m, yn as n, Sn as o, $ as p, mt as q, bn as r, Cn as s, gn as t, fn as u, un as v, en as w, an as x, nn as y, ut as z };
|