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