@gv-tech/ui-web 2.29.1 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
package/dist/dist-s7ibhASj.mjs
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
-
import { n as t, t as n } from "./dist-BEbV0Hal.mjs";
|
|
3
|
-
import { t as r } from "./dist-BB78QQyQ.mjs";
|
|
4
|
-
import { t as i } from "./dist-BPL7gUpg.mjs";
|
|
5
|
-
import * as a from "react";
|
|
6
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
//#region ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.2.1+b146eb580f4286be/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
8
|
-
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
9
|
-
value: t,
|
|
10
|
-
configurable: !0
|
|
11
|
-
}), l = "dismissableLayer.update", u = "dismissableLayer.pointerDownOutside", d = "dismissableLayer.focusOutside", f, p = a.createContext({
|
|
12
|
-
layers: /* @__PURE__ */ new Set(),
|
|
13
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
14
|
-
branches: /* @__PURE__ */ new Set(),
|
|
15
|
-
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
16
|
-
}), m = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ c(function(t, s) {
|
|
17
|
-
let { disableOutsidePointerEvents: u = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: m, onPointerDownOutside: h, onFocusOutside: g, onInteractOutside: _, onDismiss: x, ...S } = t, C = a.useContext(p), [w, T] = a.useState(null), E = w?.ownerDocument ?? globalThis?.document, [, D] = a.useState({}), O = e(s, T), k = Array.from(C.layers), [A] = [...C.layersWithOutsidePointerEventsDisabled].slice(-1), j = A ? k.indexOf(A) : -1, M = w ? k.indexOf(w) : -1, N = C.layersWithOutsidePointerEventsDisabled.size > 0, P = M >= j, F = a.useRef(!1), I = v((e) => {
|
|
18
|
-
h?.(e), _?.(e), e.defaultPrevented || x?.();
|
|
19
|
-
}, {
|
|
20
|
-
ownerDocument: E,
|
|
21
|
-
deferPointerDownOutside: d,
|
|
22
|
-
isDeferredPointerDownOutsideRef: F,
|
|
23
|
-
dismissableSurfaces: C.dismissableSurfaces,
|
|
24
|
-
shouldHandlePointerDownOutside: a.useCallback((e) => {
|
|
25
|
-
if (!(e instanceof Node)) return !1;
|
|
26
|
-
let t = [...C.branches].some((t) => t.contains(e));
|
|
27
|
-
return P && !t;
|
|
28
|
-
}, [C.branches, P])
|
|
29
|
-
}), L = y((e) => {
|
|
30
|
-
if (d && F.current) return;
|
|
31
|
-
let t = e.target;
|
|
32
|
-
[...C.branches].some((e) => e.contains(t)) || (g?.(e), _?.(e), e.defaultPrevented || x?.());
|
|
33
|
-
}, E), R = w ? M === k.length - 1 : !1, z = i((e) => {
|
|
34
|
-
e.key === "Escape" && (m?.(e), !e.defaultPrevented && x && (e.preventDefault(), x()));
|
|
35
|
-
});
|
|
36
|
-
return a.useEffect(() => {
|
|
37
|
-
if (R) return E.addEventListener("keydown", z, { capture: !0 }), () => E.removeEventListener("keydown", z, { capture: !0 });
|
|
38
|
-
}, [
|
|
39
|
-
E,
|
|
40
|
-
R,
|
|
41
|
-
z
|
|
42
|
-
]), a.useEffect(() => {
|
|
43
|
-
if (w) return u && (C.layersWithOutsidePointerEventsDisabled.size === 0 && (f = E.body.style.pointerEvents, E.body.style.pointerEvents = "none"), C.layersWithOutsidePointerEventsDisabled.add(w)), C.layers.add(w), b(), () => {
|
|
44
|
-
u && (C.layersWithOutsidePointerEventsDisabled.delete(w), C.layersWithOutsidePointerEventsDisabled.size === 0 && (E.body.style.pointerEvents = f));
|
|
45
|
-
};
|
|
46
|
-
}, [
|
|
47
|
-
w,
|
|
48
|
-
E,
|
|
49
|
-
u,
|
|
50
|
-
C
|
|
51
|
-
]), a.useEffect(() => () => {
|
|
52
|
-
w && (C.layers.delete(w), C.layersWithOutsidePointerEventsDisabled.delete(w), b());
|
|
53
|
-
}, [w, C]), a.useEffect(() => {
|
|
54
|
-
let e = /* @__PURE__ */ c(() => D({}), "handleUpdate");
|
|
55
|
-
return document.addEventListener(l, e), () => document.removeEventListener(l, e);
|
|
56
|
-
}, []), /* @__PURE__ */ o(n.div, {
|
|
57
|
-
...S,
|
|
58
|
-
ref: O,
|
|
59
|
-
style: {
|
|
60
|
-
pointerEvents: N ? P ? "auto" : "none" : void 0,
|
|
61
|
-
...t.style
|
|
62
|
-
},
|
|
63
|
-
onFocusCapture: r(t.onFocusCapture, L.onFocusCapture),
|
|
64
|
-
onBlurCapture: r(t.onBlurCapture, L.onBlurCapture),
|
|
65
|
-
onPointerDownCapture: r(t.onPointerDownCapture, I.onPointerDownCapture)
|
|
66
|
-
});
|
|
67
|
-
}, "DismissableLayer")), h = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ c(function(t, r) {
|
|
68
|
-
let i = a.useContext(p), s = a.useRef(null), c = e(r, s);
|
|
69
|
-
return a.useEffect(() => {
|
|
70
|
-
let e = s.current;
|
|
71
|
-
if (e) return i.branches.add(e), () => {
|
|
72
|
-
i.branches.delete(e);
|
|
73
|
-
};
|
|
74
|
-
}, [i.branches]), /* @__PURE__ */ o(n.div, {
|
|
75
|
-
...t,
|
|
76
|
-
ref: c
|
|
77
|
-
});
|
|
78
|
-
}, "DismissableLayerBranch"));
|
|
79
|
-
function g() {
|
|
80
|
-
let e = a.useContext(p), [t, n] = a.useState(null);
|
|
81
|
-
return a.useEffect(() => {
|
|
82
|
-
if (t) return e.dismissableSurfaces.add(t), () => {
|
|
83
|
-
e.dismissableSurfaces.delete(t);
|
|
84
|
-
};
|
|
85
|
-
}, [t, e.dismissableSurfaces]), n;
|
|
86
|
-
}
|
|
87
|
-
c(g, "useDismissableLayerSurface");
|
|
88
|
-
var _ = /* @__PURE__ */ c(() => !0, "IS_TRUE");
|
|
89
|
-
function v(e, t) {
|
|
90
|
-
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: o, dismissableSurfaces: s, shouldHandlePointerDownOutside: l = _ } = t, d = i(e), f = a.useRef(!1), p = a.useRef(!1), m = a.useRef(/* @__PURE__ */ new Map()), h = a.useRef(() => {});
|
|
91
|
-
return a.useEffect(() => {
|
|
92
|
-
function e() {
|
|
93
|
-
p.current = !1, o.current = !1, m.current.clear();
|
|
94
|
-
}
|
|
95
|
-
c(e, "resetOutsideInteraction");
|
|
96
|
-
function t() {
|
|
97
|
-
return Array.from(m.current.values()).some(Boolean);
|
|
98
|
-
}
|
|
99
|
-
c(t, "isOutsideInteractionIntercepted");
|
|
100
|
-
function i(e) {
|
|
101
|
-
if (!p.current) return;
|
|
102
|
-
let t = e.target;
|
|
103
|
-
t instanceof Node && [...s].some((e) => e.contains(t)) || m.current.set(e.type, !0), e.type === "click" && window.setTimeout(() => {
|
|
104
|
-
p.current && h.current();
|
|
105
|
-
}, 0);
|
|
106
|
-
}
|
|
107
|
-
c(i, "handleInteractionCapture");
|
|
108
|
-
function a(e) {
|
|
109
|
-
p.current && m.current.set(e.type, !1);
|
|
110
|
-
}
|
|
111
|
-
c(a, "handleInteractionBubble");
|
|
112
|
-
let g = /* @__PURE__ */ c((i) => {
|
|
113
|
-
if (i.target && !f.current) {
|
|
114
|
-
let a = function() {
|
|
115
|
-
n.removeEventListener("click", h.current);
|
|
116
|
-
let r = t();
|
|
117
|
-
e(), r || x(u, d, s, { discrete: !0 });
|
|
118
|
-
};
|
|
119
|
-
if (c(a, "handleAndDispatchPointerDownOutsideEvent"), !l(i.target)) {
|
|
120
|
-
n.removeEventListener("click", h.current), e(), f.current = !1;
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
let s = { originalEvent: i };
|
|
124
|
-
p.current = !0, o.current = r && i.button === 0, m.current.clear(), !r || i.button !== 0 ? a() : (n.removeEventListener("click", h.current), h.current = a, n.addEventListener("click", h.current, { once: !0 }));
|
|
125
|
-
} else n.removeEventListener("click", h.current), e();
|
|
126
|
-
f.current = !1;
|
|
127
|
-
}, "handlePointerDown"), _ = [
|
|
128
|
-
"pointerup",
|
|
129
|
-
"mousedown",
|
|
130
|
-
"mouseup",
|
|
131
|
-
"touchstart",
|
|
132
|
-
"touchend",
|
|
133
|
-
"click"
|
|
134
|
-
];
|
|
135
|
-
for (let e of _) n.addEventListener(e, i, !0), n.addEventListener(e, a);
|
|
136
|
-
let v = window.setTimeout(() => {
|
|
137
|
-
n.addEventListener("pointerdown", g);
|
|
138
|
-
}, 0);
|
|
139
|
-
return () => {
|
|
140
|
-
window.clearTimeout(v), n.removeEventListener("pointerdown", g), n.removeEventListener("click", h.current);
|
|
141
|
-
for (let e of _) n.removeEventListener(e, i, !0), n.removeEventListener(e, a);
|
|
142
|
-
};
|
|
143
|
-
}, [
|
|
144
|
-
n,
|
|
145
|
-
d,
|
|
146
|
-
r,
|
|
147
|
-
o,
|
|
148
|
-
s,
|
|
149
|
-
l
|
|
150
|
-
]), { onPointerDownCapture: /* @__PURE__ */ c(() => f.current = !0, "onPointerDownCapture") };
|
|
151
|
-
}
|
|
152
|
-
c(v, "usePointerDownOutside");
|
|
153
|
-
function y(e, t = globalThis?.document) {
|
|
154
|
-
let n = i(e), r = a.useRef(!1);
|
|
155
|
-
return a.useEffect(() => {
|
|
156
|
-
let e = /* @__PURE__ */ c((e) => {
|
|
157
|
-
e.target && !r.current && x(d, n, { originalEvent: e }, { discrete: !1 });
|
|
158
|
-
}, "handleFocus");
|
|
159
|
-
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
160
|
-
}, [t, n]), {
|
|
161
|
-
onFocusCapture: /* @__PURE__ */ c(() => r.current = !0, "onFocusCapture"),
|
|
162
|
-
onBlurCapture: /* @__PURE__ */ c(() => r.current = !1, "onBlurCapture")
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
c(y, "useFocusOutside");
|
|
166
|
-
function b() {
|
|
167
|
-
let e = new CustomEvent(l);
|
|
168
|
-
document.dispatchEvent(e);
|
|
169
|
-
}
|
|
170
|
-
c(b, "dispatchUpdate");
|
|
171
|
-
function x(e, n, r, { discrete: i }) {
|
|
172
|
-
let a = r.originalEvent.target, o = new CustomEvent(e, {
|
|
173
|
-
bubbles: !1,
|
|
174
|
-
cancelable: !0,
|
|
175
|
-
detail: r
|
|
176
|
-
});
|
|
177
|
-
n && a.addEventListener(e, n, { once: !0 }), i ? t(a, o) : a.dispatchEvent(o);
|
|
178
|
-
}
|
|
179
|
-
c(x, "handleAndDispatchCustomEvent");
|
|
180
|
-
//#endregion
|
|
181
|
-
export { h as n, g as r, m as t };
|
package/dist/dist-vu20fMUK.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
-
import { t } from "./dist-BEbV0Hal.mjs";
|
|
3
|
-
import { t as n } from "./dist-CPAF050o.mjs";
|
|
4
|
-
import { t as r } from "./dist-GazS1kfR.mjs";
|
|
5
|
-
import { t as i } from "./dist-BB78QQyQ.mjs";
|
|
6
|
-
import { t as a } from "./dist-Bvfb4y_L.mjs";
|
|
7
|
-
import { t as o } from "./dist-CpKLY_uZ.mjs";
|
|
8
|
-
import { t as s } from "./dist-UkWa-Arh.mjs";
|
|
9
|
-
import * as c from "react";
|
|
10
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
-
//#region ../../node_modules/.bun/@radix-ui+react-collapsible@1.2.1+b146eb580f4286be/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
12
|
-
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
13
|
-
value: t,
|
|
14
|
-
configurable: !0
|
|
15
|
-
}), f = "Collapsible", [p, m] = n(f), [h, g] = p(f), _ = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, n) {
|
|
16
|
-
let { __scopeCollapsible: r, open: i, defaultOpen: o, disabled: u, onOpenChange: d, ...p } = e, [m, g] = a({
|
|
17
|
-
prop: i,
|
|
18
|
-
defaultProp: o ?? !1,
|
|
19
|
-
onChange: d,
|
|
20
|
-
caller: f
|
|
21
|
-
});
|
|
22
|
-
return /* @__PURE__ */ l(h, {
|
|
23
|
-
scope: r,
|
|
24
|
-
disabled: u,
|
|
25
|
-
contentId: s(),
|
|
26
|
-
open: m,
|
|
27
|
-
onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
|
|
28
|
-
children: /* @__PURE__ */ l(t.div, {
|
|
29
|
-
"data-state": C(m),
|
|
30
|
-
"data-disabled": u ? "" : void 0,
|
|
31
|
-
...p,
|
|
32
|
-
ref: n
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
}, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, n) {
|
|
36
|
-
let { __scopeCollapsible: r, ...a } = e, o = g(v, r);
|
|
37
|
-
return /* @__PURE__ */ l(t.button, {
|
|
38
|
-
type: "button",
|
|
39
|
-
"aria-controls": o.open ? o.contentId : void 0,
|
|
40
|
-
"aria-expanded": o.open || !1,
|
|
41
|
-
"data-state": C(o.open),
|
|
42
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
43
|
-
disabled: o.disabled,
|
|
44
|
-
...a,
|
|
45
|
-
ref: n,
|
|
46
|
-
onClick: i(e.onClick, o.onOpenToggle)
|
|
47
|
-
});
|
|
48
|
-
}, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
49
|
-
let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
|
|
50
|
-
return /* @__PURE__ */ l(o, {
|
|
51
|
-
present: n || i.open,
|
|
52
|
-
children: ({ present: e }) => /* @__PURE__ */ l(S, {
|
|
53
|
-
...r,
|
|
54
|
-
ref: t,
|
|
55
|
-
present: e
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
}, "CollapsibleContent")), S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(n, i) {
|
|
59
|
-
let { __scopeCollapsible: a, present: o, children: s, ...u } = n, d = g(b, a), [f, p] = c.useState(o), m = c.useRef(null), h = e(i, m), _ = c.useRef(0), v = _.current, y = c.useRef(0), x = y.current, S = d.open || f, w = c.useRef(S), T = c.useRef(void 0);
|
|
60
|
-
return c.useEffect(() => {
|
|
61
|
-
let e = requestAnimationFrame(() => w.current = !1);
|
|
62
|
-
return () => cancelAnimationFrame(e);
|
|
63
|
-
}, []), r(() => {
|
|
64
|
-
let e = m.current;
|
|
65
|
-
if (e) {
|
|
66
|
-
T.current = T.current || {
|
|
67
|
-
transitionDuration: e.style.transitionDuration,
|
|
68
|
-
animationName: e.style.animationName
|
|
69
|
-
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
70
|
-
let t = e.getBoundingClientRect();
|
|
71
|
-
_.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
|
|
72
|
-
}
|
|
73
|
-
}, [d.open, o]), /* @__PURE__ */ l(t.div, {
|
|
74
|
-
"data-state": C(d.open),
|
|
75
|
-
"data-disabled": d.disabled ? "" : void 0,
|
|
76
|
-
id: d.contentId,
|
|
77
|
-
hidden: !S,
|
|
78
|
-
...u,
|
|
79
|
-
ref: h,
|
|
80
|
-
style: {
|
|
81
|
-
"--radix-collapsible-content-height": v ? `${v}px` : void 0,
|
|
82
|
-
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
83
|
-
...n.style
|
|
84
|
-
},
|
|
85
|
-
children: S && s
|
|
86
|
-
});
|
|
87
|
-
}, "CollapsibleContentImpl"));
|
|
88
|
-
function C(e) {
|
|
89
|
-
return e ? "open" : "closed";
|
|
90
|
-
}
|
|
91
|
-
d(C, "getState");
|
|
92
|
-
//#endregion
|
|
93
|
-
export { m as i, x as n, y as r, _ as t };
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
-
import { a as t } from "./dist-Dq-h6VAy.mjs";
|
|
3
|
-
import { t as n } from "./dist-BEbV0Hal.mjs";
|
|
4
|
-
import { t as r } from "./dist-CPAF050o.mjs";
|
|
5
|
-
import { t as i } from "./dist-BB78QQyQ.mjs";
|
|
6
|
-
import { t as a } from "./dist-Bvfb4y_L.mjs";
|
|
7
|
-
import { t as o } from "./dist-UkWa-Arh.mjs";
|
|
8
|
-
import { a as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S } from "./dist-CUvxOuXM.mjs";
|
|
9
|
-
import { CheckIcon as C, ChevronRightIcon as ee } from "lucide-react";
|
|
10
|
-
import * as w from "react";
|
|
11
|
-
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
12
|
-
//#region ../../node_modules/.bun/@radix-ui+react-dropdown-menu@2.2.1+b146eb580f4286be/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
13
|
-
var D = Object.defineProperty, O = (e, t) => D(e, "name", {
|
|
14
|
-
value: t,
|
|
15
|
-
configurable: !0
|
|
16
|
-
}), k = "DropdownMenu", [A, te] = r(k, [d]), j = d(), [M, N] = A(k), P = /* @__PURE__ */ O((e) => {
|
|
17
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: s, onOpenChange: c, modal: l = !0 } = e, u = j(t), d = w.useRef(null), [f, p] = a({
|
|
18
|
-
prop: i,
|
|
19
|
-
defaultProp: s ?? !1,
|
|
20
|
-
onChange: c,
|
|
21
|
-
caller: k
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ T(M, {
|
|
24
|
-
scope: t,
|
|
25
|
-
triggerId: o(),
|
|
26
|
-
triggerRef: d,
|
|
27
|
-
contentId: o(),
|
|
28
|
-
open: f,
|
|
29
|
-
onOpenChange: p,
|
|
30
|
-
onOpenToggle: w.useCallback(() => p((e) => !e), [p]),
|
|
31
|
-
modal: l,
|
|
32
|
-
children: /* @__PURE__ */ T(x, {
|
|
33
|
-
...u,
|
|
34
|
-
open: f,
|
|
35
|
-
onOpenChange: p,
|
|
36
|
-
dir: r,
|
|
37
|
-
modal: l,
|
|
38
|
-
children: n
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}, "DropdownMenu"), F = "DropdownMenuTrigger", I = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, r) {
|
|
42
|
-
let { __scopeDropdownMenu: a, disabled: o = !1, ...s } = e, c = N(F, a), l = j(a), u = t(r, c.triggerRef);
|
|
43
|
-
return /* @__PURE__ */ T(g, {
|
|
44
|
-
asChild: !0,
|
|
45
|
-
...l,
|
|
46
|
-
children: /* @__PURE__ */ T(n.button, {
|
|
47
|
-
type: "button",
|
|
48
|
-
id: c.triggerId,
|
|
49
|
-
"aria-haspopup": "menu",
|
|
50
|
-
"aria-expanded": c.open,
|
|
51
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
52
|
-
"data-state": c.open ? "open" : "closed",
|
|
53
|
-
"data-disabled": o ? "" : void 0,
|
|
54
|
-
disabled: o,
|
|
55
|
-
...s,
|
|
56
|
-
ref: u,
|
|
57
|
-
onPointerDown: i(e.onPointerDown, (e) => {
|
|
58
|
-
!o && e.button === 0 && e.ctrlKey === !1 && (c.onOpenToggle(), c.open || e.preventDefault());
|
|
59
|
-
}),
|
|
60
|
-
onKeyDown: i(e.onKeyDown, (e) => {
|
|
61
|
-
o || (["Enter", " "].includes(e.key) && c.onOpenToggle(), e.key === "ArrowDown" && c.onOpenChange(!0), [
|
|
62
|
-
"Enter",
|
|
63
|
-
" ",
|
|
64
|
-
"ArrowDown"
|
|
65
|
-
].includes(e.key) && e.preventDefault());
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
}, "DropdownMenuTrigger")), L = /* @__PURE__ */ O((e) => {
|
|
70
|
-
let { __scopeDropdownMenu: t, ...n } = e;
|
|
71
|
-
return /* @__PURE__ */ T(m, {
|
|
72
|
-
...j(t),
|
|
73
|
-
...n
|
|
74
|
-
});
|
|
75
|
-
}, "DropdownMenuPortal"), R = "DropdownMenuContent", z = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
76
|
-
let { __scopeDropdownMenu: n, ...r } = e, a = N(R, n), o = j(n), s = w.useRef(!1);
|
|
77
|
-
return /* @__PURE__ */ T(p, {
|
|
78
|
-
id: a.contentId,
|
|
79
|
-
"aria-labelledby": a.triggerId,
|
|
80
|
-
...o,
|
|
81
|
-
...r,
|
|
82
|
-
ref: t,
|
|
83
|
-
onCloseAutoFocus: i(e.onCloseAutoFocus, (e) => {
|
|
84
|
-
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
85
|
-
}),
|
|
86
|
-
onInteractOutside: i(e.onInteractOutside, (e) => {
|
|
87
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
88
|
-
(!a.modal || r) && (s.current = !0);
|
|
89
|
-
}),
|
|
90
|
-
style: {
|
|
91
|
-
...e.style,
|
|
92
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
93
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
94
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
95
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
96
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}, "DropdownMenuContent")), B = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
100
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
101
|
-
return /* @__PURE__ */ T(s, {
|
|
102
|
-
...j(n),
|
|
103
|
-
...r,
|
|
104
|
-
ref: t
|
|
105
|
-
});
|
|
106
|
-
}, "DropdownMenuGroup")), V = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
107
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
108
|
-
return /* @__PURE__ */ T(c, {
|
|
109
|
-
...j(n),
|
|
110
|
-
...r,
|
|
111
|
-
ref: t
|
|
112
|
-
});
|
|
113
|
-
}, "DropdownMenuLabel")), H = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
114
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
115
|
-
return /* @__PURE__ */ T(_, {
|
|
116
|
-
...j(n),
|
|
117
|
-
...r,
|
|
118
|
-
ref: t
|
|
119
|
-
});
|
|
120
|
-
}, "DropdownMenuItem")), ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
121
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
122
|
-
return /* @__PURE__ */ T(y, {
|
|
123
|
-
...j(n),
|
|
124
|
-
...r,
|
|
125
|
-
ref: t
|
|
126
|
-
});
|
|
127
|
-
}, "DropdownMenuCheckboxItem")), U = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
128
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
129
|
-
return /* @__PURE__ */ T(S, {
|
|
130
|
-
...j(n),
|
|
131
|
-
...r,
|
|
132
|
-
ref: t
|
|
133
|
-
});
|
|
134
|
-
}, "DropdownMenuRadioGroup")), W = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
135
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
136
|
-
return /* @__PURE__ */ T(l, {
|
|
137
|
-
...j(n),
|
|
138
|
-
...r,
|
|
139
|
-
ref: t
|
|
140
|
-
});
|
|
141
|
-
}, "DropdownMenuRadioItem")), G = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
142
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
143
|
-
return /* @__PURE__ */ T(b, {
|
|
144
|
-
...j(n),
|
|
145
|
-
...r,
|
|
146
|
-
ref: t
|
|
147
|
-
});
|
|
148
|
-
}, "DropdownMenuItemIndicator")), K = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
149
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
150
|
-
return /* @__PURE__ */ T(u, {
|
|
151
|
-
...j(n),
|
|
152
|
-
...r,
|
|
153
|
-
ref: t
|
|
154
|
-
});
|
|
155
|
-
}, "DropdownMenuSeparator")), q = /* @__PURE__ */ O((e) => {
|
|
156
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: o } = e, s = j(t), [c, l] = a({
|
|
157
|
-
prop: r,
|
|
158
|
-
defaultProp: o ?? !1,
|
|
159
|
-
onChange: i,
|
|
160
|
-
caller: "DropdownMenuSub"
|
|
161
|
-
});
|
|
162
|
-
return /* @__PURE__ */ T(v, {
|
|
163
|
-
...s,
|
|
164
|
-
open: c,
|
|
165
|
-
onOpenChange: l,
|
|
166
|
-
children: n
|
|
167
|
-
});
|
|
168
|
-
}, "DropdownMenuSub"), J = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
169
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
170
|
-
return /* @__PURE__ */ T(f, {
|
|
171
|
-
...j(n),
|
|
172
|
-
...r,
|
|
173
|
-
ref: t
|
|
174
|
-
});
|
|
175
|
-
}, "DropdownMenuSubTrigger")), Y = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
176
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
177
|
-
return /* @__PURE__ */ T(h, {
|
|
178
|
-
...j(n),
|
|
179
|
-
...r,
|
|
180
|
-
ref: t,
|
|
181
|
-
style: {
|
|
182
|
-
...e.style,
|
|
183
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
184
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
185
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
186
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
187
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}, "DropdownMenuSubContent"));
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/dropdown-menu.tsx
|
|
193
|
-
function X({ ...e }) {
|
|
194
|
-
return /* @__PURE__ */ T(P, {
|
|
195
|
-
"data-slot": "dropdown-menu",
|
|
196
|
-
...e
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
function Z({ ...e }) {
|
|
200
|
-
return /* @__PURE__ */ T(L, {
|
|
201
|
-
"data-slot": "dropdown-menu-portal",
|
|
202
|
-
...e
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function Q({ ...e }) {
|
|
206
|
-
return /* @__PURE__ */ T(I, {
|
|
207
|
-
"data-slot": "dropdown-menu-trigger",
|
|
208
|
-
...e
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
function re({ className: t, align: n = "start", sideOffset: r = 4, ...i }) {
|
|
212
|
-
return /* @__PURE__ */ T(L, { children: /* @__PURE__ */ T(z, {
|
|
213
|
-
"data-slot": "dropdown-menu-content",
|
|
214
|
-
sideOffset: r,
|
|
215
|
-
align: n,
|
|
216
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden", t),
|
|
217
|
-
...i
|
|
218
|
-
}) });
|
|
219
|
-
}
|
|
220
|
-
function ie({ ...e }) {
|
|
221
|
-
return /* @__PURE__ */ T(B, {
|
|
222
|
-
"data-slot": "dropdown-menu-group",
|
|
223
|
-
...e
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
function ae({ className: t, inset: n, variant: r = "default", ...i }) {
|
|
227
|
-
return /* @__PURE__ */ T(H, {
|
|
228
|
-
"data-slot": "dropdown-menu-item",
|
|
229
|
-
"data-inset": n,
|
|
230
|
-
"data-variant": r,
|
|
231
|
-
className: e("group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
232
|
-
...i
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
function oe({ className: t, children: n, checked: r, inset: i, ...a }) {
|
|
236
|
-
return /* @__PURE__ */ E(ne, {
|
|
237
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
238
|
-
"data-inset": i,
|
|
239
|
-
className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
240
|
-
checked: r,
|
|
241
|
-
...a,
|
|
242
|
-
children: [/* @__PURE__ */ T("span", {
|
|
243
|
-
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
244
|
-
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
245
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(C, {}) })
|
|
246
|
-
}), n]
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
function $({ ...e }) {
|
|
250
|
-
return /* @__PURE__ */ T(U, {
|
|
251
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
252
|
-
...e
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
function se({ className: t, children: n, inset: r, ...i }) {
|
|
256
|
-
return /* @__PURE__ */ E(W, {
|
|
257
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
258
|
-
"data-inset": r,
|
|
259
|
-
className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
260
|
-
...i,
|
|
261
|
-
children: [/* @__PURE__ */ T("span", {
|
|
262
|
-
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
263
|
-
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
264
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(C, {}) })
|
|
265
|
-
}), n]
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
function ce({ className: t, inset: n, ...r }) {
|
|
269
|
-
return /* @__PURE__ */ T(V, {
|
|
270
|
-
"data-slot": "dropdown-menu-label",
|
|
271
|
-
"data-inset": n,
|
|
272
|
-
className: e("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", t),
|
|
273
|
-
...r
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
function le({ className: t, ...n }) {
|
|
277
|
-
return /* @__PURE__ */ T(K, {
|
|
278
|
-
"data-slot": "dropdown-menu-separator",
|
|
279
|
-
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
280
|
-
...n
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
function ue({ className: t, ...n }) {
|
|
284
|
-
return /* @__PURE__ */ T("span", {
|
|
285
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
286
|
-
className: e("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
|
|
287
|
-
...n
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function de({ ...e }) {
|
|
291
|
-
return /* @__PURE__ */ T(q, {
|
|
292
|
-
"data-slot": "dropdown-menu-sub",
|
|
293
|
-
...e
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
function fe({ className: t, inset: n, children: r, ...i }) {
|
|
297
|
-
return /* @__PURE__ */ E(J, {
|
|
298
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
299
|
-
"data-inset": n,
|
|
300
|
-
className: e("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
301
|
-
...i,
|
|
302
|
-
children: [r, /* @__PURE__ */ T(ee, { className: "ms-auto rtl:rotate-180" })]
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
function pe({ className: t, ...n }) {
|
|
306
|
-
return /* @__PURE__ */ T(Y, {
|
|
307
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
308
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100", t),
|
|
309
|
-
...n
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
//#endregion
|
|
313
|
-
export { ae as a, $ as c, ue as d, de as f, Q as h, ie as i, se as l, fe as m, oe as n, ce as o, pe as p, re as r, Z as s, X as t, le as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-BBvidwzC.js"),r=require("./dist-hFLuJoMi.js"),i=require("./dist-DYUvPCPC.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-YAADIsyo.js"),s=require("./dist-C8Pm6LRc.js"),c=require("./dist-BgXIqHHq.js");let l=require("lucide-react"),u=require("react"),d=e.r(u,1);u=e.r(u);let f=require("react/jsx-runtime");var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h=`DropdownMenu`,[g,_]=i.t(h,[c.g]),v=c.g(),[y,b]=g(h),x=m(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,p=v(t),m=d.useRef(null),[g,_]=o.t({prop:i,defaultProp:a??!1,onChange:l,caller:h});return(0,f.jsx)(y,{scope:t,triggerId:s.t(),triggerRef:m,contentId:s.t(),open:g,onOpenChange:_,onOpenToggle:d.useCallback(()=>_(e=>!e),[_]),modal:u,children:(0,f.jsx)(c.t,{...p,open:g,onOpenChange:_,dir:r,modal:u,children:n})})},`DropdownMenu`),S=`DropdownMenuTrigger`,C=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:i,disabled:o=!1,...s}=e,l=b(S,i),u=v(i),d=n.a(t,l.triggerRef);return(0,f.jsx)(c.n,{asChild:!0,...u,children:(0,f.jsx)(r.t.button,{type:`button`,id:l.triggerId,"aria-haspopup":`menu`,"aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?`open`:`closed`,"data-disabled":o?``:void 0,disabled:o,...s,ref:d,onPointerDown:a.t(e.onPointerDown,e=>{!o&&e.button===0&&e.ctrlKey===!1&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:a.t(e.onKeyDown,e=>{o||([`Enter`,` `].includes(e.key)&&l.onOpenToggle(),e.key===`ArrowDown`&&l.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),w=m(e=>{let{__scopeDropdownMenu:t,...n}=e,r=v(t);return(0,f.jsx)(c.l,{...r,...n})},`DropdownMenuPortal`),T=`DropdownMenuContent`,E=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=b(T,n),o=v(n),s=d.useRef(!1);return(0,f.jsx)(c.i,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:a.t(e.onCloseAutoFocus,e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:a.t(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),D=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.a,{...i,...r,ref:t})},`DropdownMenuGroup`)),O=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.c,{...i,...r,ref:t})},`DropdownMenuLabel`)),k=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.o,{...i,...r,ref:t})},`DropdownMenuItem`)),A=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.r,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),j=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.u,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),M=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.d,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),N=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.s,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),P=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.f,{...i,...r,ref:t})},`DropdownMenuSeparator`)),F=m(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,s=v(t),[l,u]=o.t({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,f.jsx)(c.p,{...s,open:l,onOpenChange:u,children:n})},`DropdownMenuSub`),I=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.h,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),L=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(c.m,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`));function R({...e}){return(0,f.jsx)(x,{"data-slot":`dropdown-menu`,...e})}function z({...e}){return(0,f.jsx)(w,{"data-slot":`dropdown-menu-portal`,...e})}function B({...e}){return(0,f.jsx)(C,{"data-slot":`dropdown-menu-trigger`,...e})}function V({className:e,align:n=`start`,sideOffset:r=4,...i}){return(0,f.jsx)(w,{children:(0,f.jsx)(E,{"data-slot":`dropdown-menu-content`,sideOffset:r,align:n,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden`,e),...i})})}function H({...e}){return(0,f.jsx)(D,{"data-slot":`dropdown-menu-group`,...e})}function U({className:e,inset:n,variant:r=`default`,...i}){return(0,f.jsx)(k,{"data-slot":`dropdown-menu-item`,"data-inset":n,"data-variant":r,className:t.t(`group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i})}function W({className:e,children:n,checked:r,inset:i,...a}){return(0,f.jsxs)(A,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":i,className:t.t(`focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:r,...a,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,f.jsx)(N,{children:(0,f.jsx)(l.CheckIcon,{})})}),n]})}function G({...e}){return(0,f.jsx)(j,{"data-slot":`dropdown-menu-radio-group`,...e})}function K({className:e,children:n,inset:r,...i}){return(0,f.jsxs)(M,{"data-slot":`dropdown-menu-radio-item`,"data-inset":r,className:t.t(`focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex items-center justify-center`,"data-slot":`dropdown-menu-radio-item-indicator`,children:(0,f.jsx)(N,{children:(0,f.jsx)(l.CheckIcon,{})})}),n]})}function q({className:e,inset:n,...r}){return(0,f.jsx)(O,{"data-slot":`dropdown-menu-label`,"data-inset":n,className:t.t(`text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7`,e),...r})}function J({className:e,...n}){return(0,f.jsx)(P,{"data-slot":`dropdown-menu-separator`,className:t.t(`bg-border -mx-1 my-1 h-px`,e),...n})}function Y({className:e,...n}){return(0,f.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:t.t(`text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest`,e),...n})}function X({...e}){return(0,f.jsx)(F,{"data-slot":`dropdown-menu-sub`,...e})}function Z({className:e,inset:n,children:r,...i}){return(0,f.jsxs)(I,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":n,className:t.t(`focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[r,(0,f.jsx)(l.ChevronRightIcon,{className:`ms-auto rtl:rotate-180`})]})}function Q({className:e,...n}){return(0,f.jsx)(L,{"data-slot":`dropdown-menu-sub-content`,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return J}});
|