@gv-tech/ui-web 2.29.2 → 2.29.4
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 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +2 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/dist-C516Vwxy.mjs
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
// ../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.5+0ac650c021fb1b59/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3
|
-
var t = Object.defineProperty, n = (e, n) => t(e, "name", {
|
|
4
|
-
value: n,
|
|
5
|
-
configurable: !0
|
|
6
|
-
});
|
|
7
|
-
function r(e, t) {
|
|
8
|
-
if (typeof e == "function") return e(t);
|
|
9
|
-
e != null && (e.current = t);
|
|
10
|
-
}
|
|
11
|
-
n(r, "setRef");
|
|
12
|
-
function i(...e) {
|
|
13
|
-
return (t) => {
|
|
14
|
-
let n = !1, i = e.map((e) => {
|
|
15
|
-
let i = r(e, t);
|
|
16
|
-
return !n && typeof i == "function" && (n = !0), i;
|
|
17
|
-
});
|
|
18
|
-
if (n) return () => {
|
|
19
|
-
for (let t = 0; t < i.length; t++) {
|
|
20
|
-
let n = i[t];
|
|
21
|
-
typeof n == "function" ? n() : r(e[t], null);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
n(i, "composeRefs");
|
|
27
|
-
function a(...t) {
|
|
28
|
-
return e.useCallback(i(...t), t);
|
|
29
|
-
}
|
|
30
|
-
n(a, "useComposedRefs");
|
|
31
|
-
// ../../node_modules/.bun/@radix-ui+react-slot@1.5.0+0ac650c021fb1b59/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
32
|
-
var o = Object.defineProperty, s = (e, t) => o(e, "name", {
|
|
33
|
-
value: t,
|
|
34
|
-
configurable: !0
|
|
35
|
-
});
|
|
36
|
-
// @__NO_SIDE_EFFECTS__
|
|
37
|
-
function c(t) {
|
|
38
|
-
let n = e.forwardRef((n, r) => {
|
|
39
|
-
let { children: i, ...o } = n, s = null, c = !1, l = [];
|
|
40
|
-
i = y(i), e.Children.forEach(i, (e) => {
|
|
41
|
-
if (h(e)) {
|
|
42
|
-
c = !0;
|
|
43
|
-
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
44
|
-
for (; _(n) && typeof C == "function";) n = C(n._payload);
|
|
45
|
-
s = f(t, n), l.push(s?.props?.children);
|
|
46
|
-
} else l.push(e);
|
|
47
|
-
}), s ? s = e.cloneElement(s, void 0, l) : !c && e.Children.count(i) === 1 && e.isValidElement(i) && (s = i);
|
|
48
|
-
let u = s ? m(s) : void 0, d = a(r, u);
|
|
49
|
-
if (!s) {
|
|
50
|
-
if (i || i === 0) throw Error(c ? S(t) : x(t));
|
|
51
|
-
return i;
|
|
52
|
-
}
|
|
53
|
-
let g = p(o, s.props ?? {});
|
|
54
|
-
return s.type !== e.Fragment && (g.ref = r ? d : u), e.cloneElement(s, g);
|
|
55
|
-
});
|
|
56
|
-
return n.displayName = `${t}.Slot`, n;
|
|
57
|
-
}
|
|
58
|
-
s(c, "createSlot");
|
|
59
|
-
var l = /* @__PURE__ */ c("Slot"), u = Symbol.for("radix.slottable");
|
|
60
|
-
// @__NO_SIDE_EFFECTS__
|
|
61
|
-
function d(e) {
|
|
62
|
-
let t = /* @__PURE__ */ s((e) => "child" in e ? e.children(e.child) : e.children, "Slottable");
|
|
63
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = u, t;
|
|
64
|
-
}
|
|
65
|
-
s(d, "createSlottable");
|
|
66
|
-
var f = /* @__PURE__ */ s((t, n) => "child" in t.props ? e.isValidElement(n) ? e.cloneElement(n, void 0, t.props.children(n.props.children)) : null : e.isValidElement(n) ? n : null, "getSlottableElementFromSlottable");
|
|
67
|
-
function p(e, t) {
|
|
68
|
-
let n = { ...t };
|
|
69
|
-
for (let r in t) {
|
|
70
|
-
let i = e[r], a = t[r];
|
|
71
|
-
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
72
|
-
let t = a(...e);
|
|
73
|
-
return i(...e), t;
|
|
74
|
-
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
75
|
-
...i,
|
|
76
|
-
...a
|
|
77
|
-
} : r === "className" ? n[r] = [i, a].filter(Boolean).join(" ") : r === "aria-describedby" && (n[r] = b(a, i));
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
...e,
|
|
81
|
-
...n
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
s(p, "mergeProps");
|
|
85
|
-
function m(e) {
|
|
86
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
87
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
88
|
-
}
|
|
89
|
-
s(m, "getElementRef");
|
|
90
|
-
function h(t) {
|
|
91
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === u;
|
|
92
|
-
}
|
|
93
|
-
s(h, "isSlottable");
|
|
94
|
-
var g = Symbol.for("react.lazy");
|
|
95
|
-
function _(e) {
|
|
96
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === g && "_payload" in e && v(e._payload);
|
|
97
|
-
}
|
|
98
|
-
s(_, "isLazyComponent");
|
|
99
|
-
function v(e) {
|
|
100
|
-
return typeof e == "object" && !!e && "then" in e;
|
|
101
|
-
}
|
|
102
|
-
s(v, "isPromiseLike");
|
|
103
|
-
function y(e) {
|
|
104
|
-
let t = e;
|
|
105
|
-
for (; _(t) && typeof C == "function";) t = C(t._payload);
|
|
106
|
-
return t;
|
|
107
|
-
}
|
|
108
|
-
s(y, "useUnwrappedLazy");
|
|
109
|
-
function b(...e) {
|
|
110
|
-
let t = /* @__PURE__ */ new Set();
|
|
111
|
-
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
112
|
-
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
113
|
-
}
|
|
114
|
-
s(b, "concatAriaDescribedby");
|
|
115
|
-
var x = /* @__PURE__ */ s((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), S = /* @__PURE__ */ s((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), C = e.use;
|
|
116
|
-
export { a, i, c as n, d as r, l as t };
|
package/dist/dist-CBlqVBTk.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CJqVmdrU.js");let n=require("react"),r=e.r(n,1);n=e.r(n);let i=require("react-dom");i=e.r(i,1);let a=require("react/jsx-runtime");var o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0}),c=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,n)=>{let i=t.n(`Primitive.${n}`),o=r.forwardRef((e,t)=>{let{asChild:r,...o}=e,s=r?i:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,a.jsx)(s,{...o,ref:t})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}s(l,`dispatchDiscreteCustomEvent`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
package/dist/dist-CDcZ8WMF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CBlqVBTk.js"),n=require("./dist-B7jnFMko.js");let r=require("react"),i=e.r(r,1);r=e.r(r);let a=require("react-dom");a=e.r(a,1);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=i.forwardRef(((e,t)=>s(e,`name`,{value:t,configurable:!0}))(function(e,r){let{container:s,...c}=e,[l,u]=i.useState(!1);n.t(()=>u(!0),[]);let d=s||l&&globalThis?.document?.body;return d?a.createPortal((0,o.jsx)(t.t.div,{...c,ref:r}),d):null},`Portal`));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
package/dist/dist-CDksSmTD.mjs
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./dist-C516Vwxy.mjs";
|
|
2
|
-
import { t } from "./dist-B7Ph9-T6.mjs";
|
|
3
|
-
import { t as n } from "./dist-AlmToDtO.mjs";
|
|
4
|
-
import * as r from "react";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
// ../../node_modules/.bun/@radix-ui+react-focus-scope@1.3.1+2b23df507bdda662/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
7
|
-
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
8
|
-
value: t,
|
|
9
|
-
configurable: !0
|
|
10
|
-
}), s = "focusScope.autoFocusOnMount", c = "focusScope.autoFocusOnUnmount", l = {
|
|
11
|
-
bubbles: !1,
|
|
12
|
-
cancelable: !0
|
|
13
|
-
}, u = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(a, u) {
|
|
14
|
-
let { loop: d = !1, trapped: f = !1, branches: p, onMountAutoFocus: m, onUnmountAutoFocus: v, ...y } = a, [b, C] = r.useState(null), w = n(m), E = n(v), D = r.useRef(null), O = e(u, C), k = r.useRef(p);
|
|
15
|
-
r.useEffect(() => {
|
|
16
|
-
k.current = p;
|
|
17
|
-
});
|
|
18
|
-
let A = r.useCallback((e) => e ? b?.contains(e) ? !0 : !!k.current?.some((t) => t.contains(e)) : !1, [b]), j = r.useRef({
|
|
19
|
-
paused: !1,
|
|
20
|
-
pause() {
|
|
21
|
-
this.paused = !0;
|
|
22
|
-
},
|
|
23
|
-
resume() {
|
|
24
|
-
this.paused = !1;
|
|
25
|
-
}
|
|
26
|
-
}).current;
|
|
27
|
-
r.useEffect(() => {
|
|
28
|
-
if (f) {
|
|
29
|
-
let e = function(e) {
|
|
30
|
-
if (j.paused || !b) return;
|
|
31
|
-
let t = e.target;
|
|
32
|
-
A(t) ? D.current = t : x(D.current, { select: !0 });
|
|
33
|
-
}, t = function(e) {
|
|
34
|
-
if (j.paused || !b) return;
|
|
35
|
-
let t = e.relatedTarget;
|
|
36
|
-
t !== null && (A(t) || x(D.current, { select: !0 }));
|
|
37
|
-
}, n = function(e) {
|
|
38
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && x(b);
|
|
39
|
-
};
|
|
40
|
-
o(e, "handleFocusIn"), o(t, "handleFocusOut"), o(n, "handleMutations"), document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
41
|
-
let r = new MutationObserver(n);
|
|
42
|
-
return b && r.observe(b, {
|
|
43
|
-
childList: !0,
|
|
44
|
-
subtree: !0
|
|
45
|
-
}), () => {
|
|
46
|
-
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}, [
|
|
50
|
-
f,
|
|
51
|
-
b,
|
|
52
|
-
j.paused,
|
|
53
|
-
A
|
|
54
|
-
]), r.useEffect(() => {
|
|
55
|
-
if (b) {
|
|
56
|
-
S.add(j);
|
|
57
|
-
let e = document.activeElement;
|
|
58
|
-
if (!b.contains(e)) {
|
|
59
|
-
let t = new CustomEvent(s, l);
|
|
60
|
-
b.addEventListener(s, w), b.dispatchEvent(t), t.defaultPrevented || (h(T(_(b)), { select: !0 }), document.activeElement === e && x(b));
|
|
61
|
-
}
|
|
62
|
-
return () => {
|
|
63
|
-
b.removeEventListener(s, w);
|
|
64
|
-
let t = b.ownerDocument, n = CustomEvent;
|
|
65
|
-
setTimeout(() => {
|
|
66
|
-
let r = new n(c, l);
|
|
67
|
-
b.addEventListener(c, E), b.dispatchEvent(r), r.defaultPrevented || x(e ?? t.body, { select: !0 }), b.removeEventListener(c, E), S.remove(j);
|
|
68
|
-
}, 0);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
}, [
|
|
72
|
-
b,
|
|
73
|
-
w,
|
|
74
|
-
E,
|
|
75
|
-
j
|
|
76
|
-
]);
|
|
77
|
-
let M = r.useCallback((e) => {
|
|
78
|
-
if (!d && !f || j.paused) return;
|
|
79
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
80
|
-
if (t && n) {
|
|
81
|
-
let t = e.currentTarget, [r, i] = g(t);
|
|
82
|
-
r && i ? !e.shiftKey && n === i ? (e.preventDefault(), d && x(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), d && x(i, { select: !0 })) : n === t && e.preventDefault();
|
|
83
|
-
}
|
|
84
|
-
}, [
|
|
85
|
-
d,
|
|
86
|
-
f,
|
|
87
|
-
j.paused
|
|
88
|
-
]);
|
|
89
|
-
return /* @__PURE__ */ i(t.div, {
|
|
90
|
-
tabIndex: -1,
|
|
91
|
-
...y,
|
|
92
|
-
ref: O,
|
|
93
|
-
onKeyDown: M
|
|
94
|
-
});
|
|
95
|
-
}, "FocusScope")), d = r.createContext(null);
|
|
96
|
-
function f({ registry: e, children: t }) {
|
|
97
|
-
return e ? /* @__PURE__ */ i(d.Provider, {
|
|
98
|
-
value: e,
|
|
99
|
-
children: t
|
|
100
|
-
}) : t;
|
|
101
|
-
}
|
|
102
|
-
o(f, "FocusScopeBranchProvider");
|
|
103
|
-
function p() {
|
|
104
|
-
let [e, t] = r.useState([]);
|
|
105
|
-
return {
|
|
106
|
-
nodes: e,
|
|
107
|
-
registry: r.useMemo(() => ({
|
|
108
|
-
add: /* @__PURE__ */ o((e) => t((t) => t.includes(e) ? t : [...t, e]), "add"),
|
|
109
|
-
remove: /* @__PURE__ */ o((e) => t((t) => t.filter((t) => t !== e)), "remove")
|
|
110
|
-
}), [])
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
o(p, "useFocusScopeBranchRegistry");
|
|
114
|
-
function m(e) {
|
|
115
|
-
let t = r.useContext(d);
|
|
116
|
-
r.useEffect(() => {
|
|
117
|
-
if (e && t) return t.add(e), () => t.remove(e);
|
|
118
|
-
}, [e, t]);
|
|
119
|
-
}
|
|
120
|
-
o(m, "useFocusScopeBranch");
|
|
121
|
-
function h(e, { select: t = !1 } = {}) {
|
|
122
|
-
let n = document.activeElement;
|
|
123
|
-
for (let r of e) if (x(r, { select: t }), document.activeElement !== n) return;
|
|
124
|
-
}
|
|
125
|
-
o(h, "focusFirst");
|
|
126
|
-
function g(e) {
|
|
127
|
-
let t = _(e);
|
|
128
|
-
return [v(t, e), v(t.reverse(), e)];
|
|
129
|
-
}
|
|
130
|
-
o(g, "getTabbableEdges");
|
|
131
|
-
function _(e) {
|
|
132
|
-
let t = [], n = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ o((e) => {
|
|
133
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
134
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
135
|
-
}, "acceptNode") });
|
|
136
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
137
|
-
return t;
|
|
138
|
-
}
|
|
139
|
-
o(_, "getTabbableCandidates");
|
|
140
|
-
function v(e, t) {
|
|
141
|
-
let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
142
|
-
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : y(r, { upTo: t }))) return r;
|
|
143
|
-
}
|
|
144
|
-
o(v, "findVisible");
|
|
145
|
-
function y(e, { upTo: t }) {
|
|
146
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
147
|
-
for (; e;) {
|
|
148
|
-
if (t !== void 0 && e === t) return !1;
|
|
149
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
150
|
-
e = e.parentElement;
|
|
151
|
-
}
|
|
152
|
-
return !1;
|
|
153
|
-
}
|
|
154
|
-
o(y, "isHidden");
|
|
155
|
-
function b(e) {
|
|
156
|
-
return e.tagName === "INPUT" && typeof e.select == "function";
|
|
157
|
-
}
|
|
158
|
-
o(b, "isSelectableInput");
|
|
159
|
-
function x(e, { select: t = !1 } = {}) {
|
|
160
|
-
if (e && e.focus) {
|
|
161
|
-
let n = (e.ownerDocument ?? document).activeElement;
|
|
162
|
-
e.focus({ preventScroll: !0 }), e !== n && b(e) && t && e.select();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
o(x, "focus");
|
|
166
|
-
var S = C();
|
|
167
|
-
function C() {
|
|
168
|
-
let e = [];
|
|
169
|
-
return {
|
|
170
|
-
add(t) {
|
|
171
|
-
let n = e[0];
|
|
172
|
-
t !== n && n?.pause(), e = w(e, t), e.unshift(t);
|
|
173
|
-
},
|
|
174
|
-
remove(t) {
|
|
175
|
-
e = w(e, t), e[0]?.resume();
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
o(C, "createFocusScopesStack");
|
|
180
|
-
function w(e, t) {
|
|
181
|
-
let n = [...e], r = n.indexOf(t);
|
|
182
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
183
|
-
}
|
|
184
|
-
o(w, "arrayRemove");
|
|
185
|
-
function T(e) {
|
|
186
|
-
return e.filter((e) => e.tagName !== "A");
|
|
187
|
-
}
|
|
188
|
-
o(T, "removeLinks");
|
|
189
|
-
export { p as i, f as n, m as r, u as t };
|
package/dist/dist-CF-qVmmV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DZiOPWLp.js"),n=require("./dist-Co_xSt6d.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DW2ltK5-.js"),a=require("./dist-DdAeWIwf.js"),o=require("./dist-R_G5UQRm.js"),s=require("./es2015-Dggv0vx3.js"),c=require("./dist-DmY7elIQ.js"),l=require("./dist-RXrZgzkO.js"),u=require("./dist-CIgGRTmJ.js"),d=require("./dist-CDcZ8WMF.js"),f=require("./dist-Blgp9lfa.js"),p=require("./dist-CBlqVBTk.js"),m=require("./dist-BQkDLAY7.js"),h=require("./dist-pqMcQ1Nk.js");let g=require("react"),_=e.r(g,1);g=e.r(g);let v=require("react/jsx-runtime");var y=Object.defineProperty,b=(e,t)=>y(e,`name`,{value:t,configurable:!0}),ee={LTR:`ltr`,RTL:`rtl`},x=[`Enter`,` `],te=[`ArrowDown`,`PageUp`,`Home`],ne=[`ArrowUp`,`PageDown`,`End`],re=[...te,...ne],S={ltr:[...x,`ArrowRight`],rtl:[...x,`ArrowLeft`]},C={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},w=`Menu`,[T,ie,ae]=n.t(w),[E,D]=i.t(w,[ae,u.a,m.r]),O=u.a(),oe=m.r(),[k,A]=E(w),[j,M]=E(w),N=b(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:s=!0}=e,c=O(t),[l,d]=_.useState(null),f=_.useRef(!1),p=h.t(o),m=a.n(i);return _.useEffect(()=>{let e=b(()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=b(()=>f.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=b(()=>p(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,p]),(0,v.jsx)(u.t,{...c,children:(0,v.jsx)(k,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:(0,v.jsx)(j,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})},`Menu`),P=_.forwardRef(b(function(e,t){let{__scopeMenu:n,...r}=e,i=O(n);return(0,v.jsx)(u.n,{...i,...r,ref:t})},`MenuAnchor`)),se=`MenuPortal`,[F,I]=E(se,{forceMount:void 0}),ce=b(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=A(se,t);return(0,v.jsx)(F,{scope:t,forceMount:n,children:(0,v.jsx)(f.t,{present:n||a.open,children:(0,v.jsx)(d.t,{asChild:!0,container:i,children:r})})})},`MenuPortal`),L=`MenuContent`,[le,R]=E(L),z=_.forwardRef(b(function(e,t){let n=I(L,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=A(L,e.__scopeMenu),o=M(L,e.__scopeMenu);return(0,v.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(f.t,{present:r||a.open,children:(0,v.jsx)(T.Slot,{scope:e.__scopeMenu,children:o.modal?(0,v.jsx)(B,{...i,ref:t}):(0,v.jsx)(ue,{...i,ref:t})})})})},`MenuContent`)),B=_.forwardRef(b(function(e,n){let i=A(L,e.__scopeMenu),a=_.useRef(null),o=r.a(n,a);return _.useEffect(()=>{let e=a.current;if(e)return s.t(e)},[]),(0,v.jsx)(V,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:t.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})},`MenuRootContentModal`)),ue=_.forwardRef(b(function(e,t){let n=A(L,e.__scopeMenu);return(0,v.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),de=r.n(`MenuContent.ScrollLock`),V=_.forwardRef(b(function(e,n){let{__scopeMenu:i,loop:a=!1,trapFocus:l,onOpenAutoFocus:d,onCloseAutoFocus:f,disableOutsidePointerEvents:p,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:ee,onInteractOutside:x,onDismiss:te,disableOutsideScroll:S,...C}=e,w=A(L,i),T=M(L,i),ae=O(i),E=oe(i),D=ie(i),[k,j]=_.useState(null),N=_.useRef(null),[P,se]=_.useState(null);c.r(P);let{nodes:F,registry:I}=c.i(),ce=!!(l||S),R=r.a(n,N,w.onContentChange,se),z=_.useRef(0),B=_.useRef(``),ue=_.useRef(0),V=_.useRef(null),H=_.useRef(`right`),U=_.useRef(0),W=_.useMemo(()=>S?[N,...F.map(e=>({current:e}))]:[],[N,F,S]),G=S?s.n:_.Fragment,K=S?{as:de,allowPinchZoom:!0,shards:W}:void 0,q=b(e=>{let t=B.current+e,n=D().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=je(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){B.current=e,window.clearTimeout(z.current),e!==``&&(z.current=window.setTimeout(()=>s(``),1e3))}b(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(z.current),[]),s.r();let J=_.useCallback(e=>H.current===V.current?.side&&Ne(e,V.current?.area),[]);return(0,v.jsx)(le,{scope:i,searchRef:B,onItemEnter:_.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:_.useCallback(e=>{J(e)||(N.current?.focus(),j(null))},[J]),onTriggerLeave:_.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:_.useCallback(e=>{V.current=e},[]),children:(0,v.jsx)(c.n,{registry:ce?I:null,children:(0,v.jsx)(G,{...K,children:(0,v.jsx)(c.t,{asChild:!0,trapped:l,branches:F,onMountAutoFocus:t.t(d,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,v.jsx)(o.t,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:ee,onInteractOutside:x,onDismiss:te,children:(0,v.jsx)(m.t,{asChild:!0,...E,dir:T.dir,orientation:`vertical`,loop:a,currentTabStopId:k,onCurrentTabStopIdChange:j,onEntryFocus:t.t(h,e=>{T.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,v.jsx)(u.i,{role:`menu`,"aria-orientation":`vertical`,"data-state":X(w.open),"data-radix-menu-content":``,dir:T.dir,...ae,...C,ref:R,style:{outline:`none`,...C.style},onKeyDown:t.t(C.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&q(e.key));let i=N.current;if(e.target!==i||!re.includes(e.key))return;e.preventDefault();let a=D().filter(e=>!e.disabled).map(e=>e.ref.current);ne.includes(e.key)&&a.reverse(),ke(a)}),onBlur:t.t(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(z.current),B.current=``)}),onPointerMove:t.t(e.onPointerMove,$(e=>{let t=e.target,n=U.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>U.current?`right`:`left`;H.current=t,U.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),H=_.forwardRef(b(function(e,t){let{__scopeMenu:n,...r}=e;return(0,v.jsx)(p.t.div,{role:`group`,...r,ref:t})},`MenuGroup`)),U=_.forwardRef(b(function(e,t){let{__scopeMenu:n,...r}=e;return(0,v.jsx)(p.t.div,{...r,ref:t})},`MenuLabel`)),W=`MenuItem`,G=`menu.itemSelect`,K=_.forwardRef(b(function(e,n){let{disabled:i=!1,onSelect:a,...o}=e,s=_.useRef(null),c=M(W,e.__scopeMenu),l=R(W,e.__scopeMenu),u=r.a(n,s),d=_.useRef(!1),f=b(()=>{let e=s.current;if(!i&&e){let t=new CustomEvent(G,{bubbles:!0,cancelable:!0});e.addEventListener(G,e=>a?.(e),{once:!0}),p.n(e,t),t.defaultPrevented?d.current=!1:c.onClose()}},`handleSelect`);return(0,v.jsx)(q,{...o,ref:u,disabled:i,onClick:t.t(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:t.t(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:t.t(e.onKeyDown,e=>{i||e.target!==e.currentTarget||(l.searchRef.current===``||e.key!==` `)&&x.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),q=_.forwardRef(b(function(e,n){let{__scopeMenu:i,disabled:a=!1,textValue:o,...s}=e,c=R(W,i),l=oe(i),u=_.useRef(null),d=r.a(n,u),[f,h]=_.useState(!1),[g,y]=_.useState(``);return _.useEffect(()=>{let e=u.current;e&&y((e.textContent??``).trim())},[s.children]),(0,v.jsx)(T.ItemSlot,{scope:i,disabled:a,textValue:o??g,children:(0,v.jsx)(m.n,{asChild:!0,...l,focusable:!a,children:(0,v.jsx)(p.t.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,...s,ref:d,onPointerMove:t.t(e.onPointerMove,$(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:t.t(e.onPointerLeave,$(e=>c.onItemLeave(e))),onFocus:t.t(e.onFocus,()=>h(!0)),onBlur:t.t(e.onBlur,()=>h(!1))})})})},`MenuItemImpl`)),J=_.forwardRef(b(function(e,n){let{checked:r=!1,onCheckedChange:i,...a}=e;return(0,v.jsx)(ve,{scope:e.__scopeMenu,checked:r,children:(0,v.jsx)(K,{role:`menuitemcheckbox`,"aria-checked":Z(r)?`mixed`:r,...a,ref:n,"data-state":Q(r),onSelect:t.t(a.onSelect,()=>i?.(Z(r)?!0:!r),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[fe,pe]=E(`MenuRadioGroup`,{value:void 0,onValueChange:b(()=>{},`onValueChange`)}),me=_.forwardRef(b(function(e,t){let{value:n,onValueChange:r,...i}=e,a=h.t(r);return(0,v.jsx)(fe,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,v.jsx)(H,{...i,ref:t})})},`MenuRadioGroup`)),he=`MenuRadioItem`,ge=_.forwardRef(b(function(e,n){let{value:r,...i}=e,a=pe(he,e.__scopeMenu),o=r===a.value;return(0,v.jsx)(ve,{scope:e.__scopeMenu,checked:o,children:(0,v.jsx)(K,{role:`menuitemradio`,"aria-checked":o,...i,ref:n,"data-state":Q(o),onSelect:t.t(i.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),_e=`MenuItemIndicator`,[ve,ye]=E(_e,{checked:!1}),be=_.forwardRef(b(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=ye(_e,n);return(0,v.jsx)(f.t,{present:r||Z(a.checked)||a.checked===!0,children:(0,v.jsx)(p.t.span,{...i,ref:t,"data-state":Q(a.checked)})})},`MenuItemIndicator`)),xe=_.forwardRef(b(function(e,t){let{__scopeMenu:n,...r}=e;return(0,v.jsx)(p.t.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),Se=`MenuSub`,[Ce,we]=E(Se),Te=b(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=A(Se,t),o=O(t),[s,c]=_.useState(null),[d,f]=_.useState(null),p=h.t(i);return _.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,v.jsx)(u.t,{...o,children:(0,v.jsx)(k,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,v.jsx)(Ce,{scope:t,contentId:l.t(),triggerId:l.t(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),Y=`MenuSubTrigger`,Ee=_.forwardRef(b(function(e,n){let i=A(Y,e.__scopeMenu),a=M(Y,e.__scopeMenu),o=we(Y,e.__scopeMenu),s=R(Y,e.__scopeMenu),c=_.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},f=_.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);_.useEffect(()=>f,[f]),_.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);let p=r.a(n,o.onTriggerChange);return(0,v.jsx)(P,{asChild:!0,...d,children:(0,v.jsx)(q,{id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":i.open,"aria-controls":i.open?o.contentId:void 0,"data-state":X(i.open),...e,ref:p,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:t.t(e.onPointerMove,$(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||i.open||c.current||(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{i.onOpenChange(!0),f()},100))})),onPointerLeave:t.t(e.onPointerLeave,$(e=>{f();let t=i.content?.getBoundingClientRect();if(t){let n=i.content?.dataset.side,r=n===`right`,a=r?-5:5,o=t[r?`left`:`right`],c=t[r?`right`:`left`];s.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:o,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:t.t(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(s.searchRef.current===``||t.key!==` `)&&S[a.dir].includes(t.key)&&(i.onOpenChange(!0),i.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),De=`MenuSubContent`,Oe=_.forwardRef(b(function(e,n){let i=I(L,e.__scopeMenu),{forceMount:a=i.forceMount,align:o=`start`,...s}=e,c=A(L,e.__scopeMenu),l=M(L,e.__scopeMenu),u=we(De,e.__scopeMenu),d=_.useRef(null),p=r.a(n,d);return(0,v.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(f.t,{present:a||c.open,children:(0,v.jsx)(T.Slot,{scope:e.__scopeMenu,children:(0,v.jsx)(V,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:p,align:o,side:l.dir===ee.RTL?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:t.t(e.onFocusOutside,e=>{e.target!==u.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:t.t(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:t.t(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=C[l.dir].includes(e.key);t&&n&&(c.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function X(e){return e?`open`:`closed`}b(X,`getOpenState`);function Z(e){return e===`indeterminate`}b(Z,`isIndeterminate`);function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}b(Q,`getCheckedState`);function ke(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}b(ke,`focusFirst`);function Ae(e,t){return e.map((n,r)=>e[(t+r)%e.length])}b(Ae,`wrapArray`);function je(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ae(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}b(je,`getNextMatch`);function Me(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}b(Me,`isPointInPolygon`);function Ne(e,t){return t?Me({x:e.clientX,y:e.clientY},t):!1}b(Ne,`isPointerInGraceArea`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}b($,`whenMouse`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return me}});
|
package/dist/dist-CIgGRTmJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./floating-ui.react-dom-BtFIezY4.js"),n=require("./dist-CBlqVBTk.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DW2ltK5-.js"),a=require("./dist-pqMcQ1Nk.js"),o=require("./dist-B7jnFMko.js"),s=require("./dist-Bal96K8t.js");let c=require("react"),l=e.r(c,1);c=e.r(c);let u=require("react/jsx-runtime");var d=Object.defineProperty,f=l.forwardRef(((e,t)=>d(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:r,width:i=10,height:a=5,...o}=e;return(0,u.jsx)(n.t.svg,{...o,ref:t,width:i,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?r:(0,u.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h={Partial:`partial`,Always:`always`},g={Optimized:`optimized`,Always:`always`},_=`Popper`,[v,y]=i.t(_),[b,x]=v(_),S=m(e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null),[a,o]=l.useState(void 0);return(0,u.jsx)(b,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),C=`PopperAnchor`,w=l.forwardRef(m(function(e,t){let{__scopePopper:i,virtualRef:a,...o}=e,s=x(C,i),c=l.useRef(null),d=s.onAnchorChange,f=l.useCallback(e=>{c.current=e,e&&d(e)},[d]),p=r.a(t,f),m=l.useRef(null);l.useEffect(()=>{if(!a)return;let e=m.current;m.current=a.current,e!==m.current&&d(m.current)});let h=s.placementState&&P(s.placementState),g=h?.[0],_=h?.[1];return a?null:(0,u.jsx)(n.t.div,{"data-radix-popper-side":g,"data-radix-popper-align":_,...o,ref:p})},`PopperAnchor`)),T=`PopperContent`,[E,D]=v(T),O=l.forwardRef(m(function(e,i){let{__scopePopper:c,side:d=`bottom`,sideOffset:f=0,align:p=`center`,alignOffset:_=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:S=0,sticky:C=h.Partial,hideWhenDetached:w=!1,updatePositionStrategy:D=g.Optimized,onPlaced:O,...k}=e,A=x(T,c),[j,ee]=l.useState(null),F=r.a(i,ee),[I,L]=l.useState(null),R=s.t(I),z=R?.width??0,B=R?.height??0,V=d+(p===`center`?``:`-`+p),H=typeof S==`number`?S:{top:0,right:0,bottom:0,left:0,...S},U=Array.isArray(b)?b:[b],W=U.length>0,G={padding:H,boundary:U.filter(M),altBoundary:W},{refs:te,floatingStyles:K,placement:q,isPositioned:J,middlewareData:Y}=t.c({strategy:`fixed`,placement:V,whileElementsMounted:m((...e)=>t.l(...e,{animationFrame:D===g.Always}),`whileElementsMounted`),elements:{reference:A.anchor},middleware:[t.a({mainAxis:f+B,alignmentAxis:_}),y&&t.o({mainAxis:!0,crossAxis:!1,...C===h.Partial?{limiter:t.i()}:{},...G}),y&&t.n({...G}),t.s({...G,apply:m(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),I&&t.t({element:I,padding:v}),N({arrowWidth:z,arrowHeight:B}),w&&t.r(W?{strategy:`referenceHidden`,...G}:{strategy:`referenceHidden`,padding:G.padding,altBoundary:G.altBoundary})]}),X=A.setPlacementState;o.t(()=>(X(q),()=>{X(void 0)}),[q,X]);let[Z,Q]=P(q),$=a.t(O);o.t(()=>{J&&$?.()},[J,$]);let ne=Y.arrow?.x,re=Y.arrow?.y,ie=Y.arrow?.centerOffset!==0,[ae,oe]=l.useState();return o.t(()=>{j&&oe(window.getComputedStyle(j).zIndex)},[j]),(0,u.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...K,transform:J?K.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(` `),...Y.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,u.jsx)(E,{scope:c,placedSide:Z,placedAlign:Q,onArrowChange:L,arrowX:ne,arrowY:re,shouldHideArrow:ie,children:(0,u.jsx)(n.t.div,{"data-side":Z,"data-align":Q,...k,ref:F,style:{...k.style,animation:J?k.style?.animation:`none`}})})})},`PopperContent`)),k=`PopperArrow`,A={top:`bottom`,right:`left`,bottom:`top`,left:`right`},j=l.forwardRef(m(function(e,t){let{__scopePopper:n,...r}=e,i=D(k,n),a=A[i.placedSide];return(0,u.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,u.jsx)(f,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function M(e){return e!==null}m(M,`isNotNull`);var N=m(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=P(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function P(e){let[t,n=`center`]=e.split(`-`);return[t,n]}m(P,`getSideAndAlignFromPlacement`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return S}});
|
package/dist/dist-CJqVmdrU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}i(a,`setRef`);function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():a(e[t],null)}}}}i(o,`composeRefs`);function s(...e){return n.useCallback(o(...e),e)}i(s,`useComposedRefs`);var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0});function u(e){let t=n.forwardRef((t,r)=>{let{children:i,...a}=t,o=null,c=!1,l=[];i=x(i),n.Children.forEach(i,e=>{if(_(e)){c=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;y(n)&&typeof T==`function`;)n=T(n._payload);o=m(t,n),l.push(o?.props?.children)}else l.push(e)}),o?o=n.cloneElement(o,void 0,l):!c&&n.Children.count(i)===1&&n.isValidElement(i)&&(o=i);let u=o?g(o):void 0,d=s(r,u);if(!o){if(i||i===0)throw Error(c?w(e):C(e));return i}let f=h(a,o.props??{});return o.type!==n.Fragment&&(f.ref=r?d:u),n.cloneElement(o,f)});return t.displayName=`${e}.Slot`,t}l(u,`createSlot`);var d=u(`Slot`),f=Symbol.for(`radix.slottable`);function p(e){let t=l(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=f,t}l(p,`createSlottable`);var m=l((e,t)=>`child`in e.props?n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null:n.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function h(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=S(a,i))}return{...e,...n}}l(h,`mergeProps`);function g(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}l(g,`getElementRef`);function _(e){return n.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===f}l(_,`isSlottable`);var v=Symbol.for(`react.lazy`);function y(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===v&&`_payload`in e&&b(e._payload)}l(y,`isLazyComponent`);function b(e){return typeof e==`object`&&!!e&&`then`in e}l(b,`isPromiseLike`);function x(e){let t=e;for(;y(t)&&typeof T==`function`;)t=T(t._payload);return t}l(x,`useUnwrappedLazy`);function S(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}l(S,`concatAriaDescribedby`);var C=l(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),w=l(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),T=n.use;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
package/dist/dist-COqM3IM6.mjs
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-context@1.3.0+0ac650c021fb1b59/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
});
|
|
8
|
-
// @__NO_SIDE_EFFECTS__
|
|
9
|
-
function i(n, i) {
|
|
10
|
-
let a = e.createContext(i);
|
|
11
|
-
a.displayName = n + "Context";
|
|
12
|
-
let o = /* @__PURE__ */ r((n) => {
|
|
13
|
-
let { children: r, ...i } = n, o = e.useMemo(() => i, Object.values(i));
|
|
14
|
-
return /* @__PURE__ */ t(a.Provider, {
|
|
15
|
-
value: o,
|
|
16
|
-
children: r
|
|
17
|
-
});
|
|
18
|
-
}, "Provider");
|
|
19
|
-
o.displayName = n + "Provider";
|
|
20
|
-
function s(t, r = {}) {
|
|
21
|
-
let { optional: o = !1 } = r, s = e.useContext(a);
|
|
22
|
-
if (s) return s;
|
|
23
|
-
if (i !== void 0) return i;
|
|
24
|
-
if (!o) throw Error(`\`${t}\` must be used within \`${n}\``);
|
|
25
|
-
}
|
|
26
|
-
return r(s, "useContext"), [o, s];
|
|
27
|
-
}
|
|
28
|
-
r(i, "createContext");
|
|
29
|
-
// @__NO_SIDE_EFFECTS__
|
|
30
|
-
function a(n, i = []) {
|
|
31
|
-
let a = [];
|
|
32
|
-
function s(i, o) {
|
|
33
|
-
let s = e.createContext(o);
|
|
34
|
-
s.displayName = i + "Context";
|
|
35
|
-
let c = a.length;
|
|
36
|
-
a = [...a, o];
|
|
37
|
-
let l = /* @__PURE__ */ r((r) => {
|
|
38
|
-
let { scope: i, children: a, ...o } = r, l = i?.[n]?.[c] || s, u = e.useMemo(() => o, Object.values(o));
|
|
39
|
-
return /* @__PURE__ */ t(l.Provider, {
|
|
40
|
-
value: u,
|
|
41
|
-
children: a
|
|
42
|
-
});
|
|
43
|
-
}, "Provider");
|
|
44
|
-
l.displayName = i + "Provider";
|
|
45
|
-
function u(t, r, a = {}) {
|
|
46
|
-
let { optional: l = !1 } = a, u = r?.[n]?.[c] || s, d = e.useContext(u);
|
|
47
|
-
if (d) return d;
|
|
48
|
-
if (o !== void 0) return o;
|
|
49
|
-
if (!l) throw Error(`\`${t}\` must be used within \`${i}\``);
|
|
50
|
-
}
|
|
51
|
-
return r(u, "useContext"), [l, u];
|
|
52
|
-
}
|
|
53
|
-
r(s, "createContext");
|
|
54
|
-
let c = /* @__PURE__ */ r(() => {
|
|
55
|
-
let t = a.map((t) => e.createContext(t));
|
|
56
|
-
return /* @__PURE__ */ r(function(r) {
|
|
57
|
-
let i = r?.[n] || t;
|
|
58
|
-
return e.useMemo(() => ({ [`__scope${n}`]: {
|
|
59
|
-
...r,
|
|
60
|
-
[n]: i
|
|
61
|
-
} }), [r, i]);
|
|
62
|
-
}, "useScope");
|
|
63
|
-
}, "createScope");
|
|
64
|
-
return c.scopeName = n, [s, o(c, ...i)];
|
|
65
|
-
}
|
|
66
|
-
r(a, "createContextScope");
|
|
67
|
-
function o(...t) {
|
|
68
|
-
let n = t[0];
|
|
69
|
-
if (t.length === 1) return n;
|
|
70
|
-
let i = /* @__PURE__ */ r(() => {
|
|
71
|
-
let i = t.map((e) => ({
|
|
72
|
-
useScope: e(),
|
|
73
|
-
scopeName: e.scopeName
|
|
74
|
-
}));
|
|
75
|
-
return /* @__PURE__ */ r(function(t) {
|
|
76
|
-
let r = i.reduce((e, { useScope: n, scopeName: r }) => {
|
|
77
|
-
let i = n(t)[`__scope${r}`];
|
|
78
|
-
return {
|
|
79
|
-
...e,
|
|
80
|
-
...i
|
|
81
|
-
};
|
|
82
|
-
}, {});
|
|
83
|
-
return e.useMemo(() => ({ [`__scope${n.scopeName}`]: r }), [r]);
|
|
84
|
-
}, "useComposedScopes");
|
|
85
|
-
}, "createScope");
|
|
86
|
-
return i.scopeName = n.scopeName, i;
|
|
87
|
-
}
|
|
88
|
-
r(o, "composeContextScopes");
|
|
89
|
-
export { a as t };
|
package/dist/dist-CbWpCWog.mjs
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B76UOZbx.mjs";
|
|
2
|
-
import { n as t, t as n } from "./dist-B7Ph9-T6.mjs";
|
|
3
|
-
import { a as r } from "./dist-C516Vwxy.mjs";
|
|
4
|
-
import { t as i } from "./dist-AlmToDtO.mjs";
|
|
5
|
-
import * as a from "react";
|
|
6
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
// ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.2.1+2b23df507bdda662/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 = r(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: e(t.onFocusCapture, L.onFocusCapture),
|
|
64
|
-
onBlurCapture: e(t.onBlurCapture, L.onBlurCapture),
|
|
65
|
-
onPointerDownCapture: e(t.onPointerDownCapture, I.onPointerDownCapture)
|
|
66
|
-
});
|
|
67
|
-
}, "DismissableLayer")), h = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ c(function(e, t) {
|
|
68
|
-
let i = a.useContext(p), s = a.useRef(null), c = r(t, 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
|
-
...e,
|
|
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
|
-
export { h as n, g as r, m as t };
|
package/dist/dist-CcGLWbPa.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B7Ph9-T6.mjs";
|
|
2
|
-
import { t } from "./dist-DhubV_gU.mjs";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import * as r from "react-dom";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
// ../../node_modules/.bun/@radix-ui+react-portal@1.2.0+2b23df507bdda662/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
7
|
-
var a = Object.defineProperty, o = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ ((e, t) => a(e, "name", {
|
|
8
|
-
value: t,
|
|
9
|
-
configurable: !0
|
|
10
|
-
}))(function(a, o) {
|
|
11
|
-
let { container: s, ...c } = a, [l, u] = n.useState(!1);
|
|
12
|
-
t(() => u(!0), []);
|
|
13
|
-
let d = s || l && globalThis?.document?.body;
|
|
14
|
-
return d ? r.createPortal(/* @__PURE__ */ i(e.div, {
|
|
15
|
-
...c,
|
|
16
|
-
ref: o
|
|
17
|
-
}), d) : null;
|
|
18
|
-
}, "Portal"));
|
|
19
|
-
export { o as t };
|