@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-DoivLw3t.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-CGgemr2V.js");let n=require("react");n=e.r(n,1);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e){let[r,i]=n.useState(void 0);return t.t(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=0,n=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let r=n[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,n;if(`borderBoxSize`in r){let e=r.borderBoxSize,i=Array.isArray(e)?e[0]:e;t=i.inlineSize,n=i.blockSize}else t=e.offsetWidth,n=e.offsetHeight;i({width:t,height:n})})});return n.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}else i(void 0)},[e]),r}i(a,`useSize`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
package/dist/dist-Dq-h6VAy.mjs
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
//#region ../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.5+c841d34b494ec30a/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
|
-
//#endregion
|
|
32
|
-
//#region ../../node_modules/.bun/@radix-ui+react-slot@1.5.0+c841d34b494ec30a/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
33
|
-
var o = Object.defineProperty, s = (e, t) => o(e, "name", {
|
|
34
|
-
value: t,
|
|
35
|
-
configurable: !0
|
|
36
|
-
});
|
|
37
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
38
|
-
function c(t) {
|
|
39
|
-
let n = e.forwardRef((n, r) => {
|
|
40
|
-
let { children: i, ...o } = n, s = null, c = !1, l = [];
|
|
41
|
-
i = y(i), e.Children.forEach(i, (e) => {
|
|
42
|
-
if (h(e)) {
|
|
43
|
-
c = !0;
|
|
44
|
-
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
45
|
-
for (; _(n) && typeof C == "function";) n = C(n._payload);
|
|
46
|
-
s = f(t, n), l.push(s?.props?.children);
|
|
47
|
-
} else l.push(e);
|
|
48
|
-
}), s ? s = e.cloneElement(s, void 0, l) : !c && e.Children.count(i) === 1 && e.isValidElement(i) && (s = i);
|
|
49
|
-
let u = s ? m(s) : void 0, d = a(r, u);
|
|
50
|
-
if (!s) {
|
|
51
|
-
if (i || i === 0) throw Error(c ? S(t) : x(t));
|
|
52
|
-
return i;
|
|
53
|
-
}
|
|
54
|
-
let g = p(o, s.props ?? {});
|
|
55
|
-
return s.type !== e.Fragment && (g.ref = r ? d : u), e.cloneElement(s, g);
|
|
56
|
-
});
|
|
57
|
-
return n.displayName = `${t}.Slot`, n;
|
|
58
|
-
}
|
|
59
|
-
s(c, "createSlot");
|
|
60
|
-
var l = /* @__PURE__ */ c("Slot"), u = Symbol.for("radix.slottable");
|
|
61
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
62
|
-
function d(e) {
|
|
63
|
-
let t = /* @__PURE__ */ s((e) => "child" in e ? e.children(e.child) : e.children, "Slottable");
|
|
64
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = u, t;
|
|
65
|
-
}
|
|
66
|
-
s(d, "createSlottable");
|
|
67
|
-
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");
|
|
68
|
-
function p(e, t) {
|
|
69
|
-
let n = { ...t };
|
|
70
|
-
for (let r in t) {
|
|
71
|
-
let i = e[r], a = t[r];
|
|
72
|
-
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
73
|
-
let t = a(...e);
|
|
74
|
-
return i(...e), t;
|
|
75
|
-
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
76
|
-
...i,
|
|
77
|
-
...a
|
|
78
|
-
} : r === "className" ? n[r] = [i, a].filter(Boolean).join(" ") : r === "aria-describedby" && (n[r] = b(a, i));
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
...e,
|
|
82
|
-
...n
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
s(p, "mergeProps");
|
|
86
|
-
function m(e) {
|
|
87
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
88
|
-
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);
|
|
89
|
-
}
|
|
90
|
-
s(m, "getElementRef");
|
|
91
|
-
function h(t) {
|
|
92
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === u;
|
|
93
|
-
}
|
|
94
|
-
s(h, "isSlottable");
|
|
95
|
-
var g = Symbol.for("react.lazy");
|
|
96
|
-
function _(e) {
|
|
97
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === g && "_payload" in e && v(e._payload);
|
|
98
|
-
}
|
|
99
|
-
s(_, "isLazyComponent");
|
|
100
|
-
function v(e) {
|
|
101
|
-
return typeof e == "object" && !!e && "then" in e;
|
|
102
|
-
}
|
|
103
|
-
s(v, "isPromiseLike");
|
|
104
|
-
function y(e) {
|
|
105
|
-
let t = e;
|
|
106
|
-
for (; _(t) && typeof C == "function";) t = C(t._payload);
|
|
107
|
-
return t;
|
|
108
|
-
}
|
|
109
|
-
s(y, "useUnwrappedLazy");
|
|
110
|
-
function b(...e) {
|
|
111
|
-
let t = /* @__PURE__ */ new Set();
|
|
112
|
-
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
113
|
-
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
114
|
-
}
|
|
115
|
-
s(b, "concatAriaDescribedby");
|
|
116
|
-
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;
|
|
117
|
-
//#endregion
|
|
118
|
-
export { a, i, c as n, d as r, l as t };
|
package/dist/dist-Dt6m-kwU.mjs
DELETED
|
@@ -1,221 +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-BPL7gUpg.mjs";
|
|
6
|
-
import { t as a } from "./dist-Bb5W_J2F.mjs";
|
|
7
|
-
import { a as o, c as s, i as c, l, n as u, o as d, r as f, s as p, t as m } from "./floating-ui.react-dom-CyupHsR6.mjs";
|
|
8
|
-
import * as h from "react";
|
|
9
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../node_modules/.bun/@radix-ui+react-arrow@1.1.17+b146eb580f4286be/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
11
|
-
var _ = Object.defineProperty, v = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ ((e, t) => _(e, "name", {
|
|
12
|
-
value: t,
|
|
13
|
-
configurable: !0
|
|
14
|
-
}))(function(e, n) {
|
|
15
|
-
let { children: r, width: i = 10, height: a = 5, ...o } = e;
|
|
16
|
-
return /* @__PURE__ */ g(t.svg, {
|
|
17
|
-
...o,
|
|
18
|
-
ref: n,
|
|
19
|
-
width: i,
|
|
20
|
-
height: a,
|
|
21
|
-
viewBox: "0 0 30 10",
|
|
22
|
-
preserveAspectRatio: "none",
|
|
23
|
-
children: e.asChild ? r : /* @__PURE__ */ g("polygon", { points: "0,0 30,0 15,10" })
|
|
24
|
-
});
|
|
25
|
-
}, "Arrow")), y = Object.defineProperty, b = (e, t) => y(e, "name", {
|
|
26
|
-
value: t,
|
|
27
|
-
configurable: !0
|
|
28
|
-
}), x = {
|
|
29
|
-
Partial: "partial",
|
|
30
|
-
Always: "always"
|
|
31
|
-
}, S = {
|
|
32
|
-
Optimized: "optimized",
|
|
33
|
-
Always: "always"
|
|
34
|
-
}, C = "Popper", [w, T] = n(C), [E, D] = w(C), O = /* @__PURE__ */ b((e) => {
|
|
35
|
-
let { __scopePopper: t, children: n } = e, [r, i] = h.useState(null), [a, o] = h.useState(void 0);
|
|
36
|
-
return /* @__PURE__ */ g(E, {
|
|
37
|
-
scope: t,
|
|
38
|
-
anchor: r,
|
|
39
|
-
onAnchorChange: i,
|
|
40
|
-
placementState: a,
|
|
41
|
-
setPlacementState: o,
|
|
42
|
-
children: n
|
|
43
|
-
});
|
|
44
|
-
}, "Popper"), k = "PopperAnchor", A = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(n, r) {
|
|
45
|
-
let { __scopePopper: i, virtualRef: a, ...o } = n, s = D(k, i), c = h.useRef(null), l = s.onAnchorChange, u = e(r, h.useCallback((e) => {
|
|
46
|
-
c.current = e, e && l(e);
|
|
47
|
-
}, [l])), d = h.useRef(null);
|
|
48
|
-
h.useEffect(() => {
|
|
49
|
-
if (!a) return;
|
|
50
|
-
let e = d.current;
|
|
51
|
-
d.current = a.current, e !== d.current && l(d.current);
|
|
52
|
-
});
|
|
53
|
-
let f = s.placementState && L(s.placementState), p = f?.[0], m = f?.[1];
|
|
54
|
-
return a ? null : /* @__PURE__ */ g(t.div, {
|
|
55
|
-
"data-radix-popper-side": p,
|
|
56
|
-
"data-radix-popper-align": m,
|
|
57
|
-
...o,
|
|
58
|
-
ref: u
|
|
59
|
-
});
|
|
60
|
-
}, "PopperAnchor")), j = "PopperContent", [ee, M] = w(j), te = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(n, _) {
|
|
61
|
-
let { __scopePopper: v, side: y = "bottom", sideOffset: C = 0, align: w = "center", alignOffset: T = 0, arrowPadding: E = 0, avoidCollisions: O = !0, collisionBoundary: k = [], collisionPadding: A = 0, sticky: M = x.Partial, hideWhenDetached: te = !1, updatePositionStrategy: N = S.Optimized, onPlaced: P, ...F } = n, R = D(j, v), [z, re] = h.useState(null), ie = e(_, re), [B, ae] = h.useState(null), V = a(B), oe = V?.width ?? 0, H = V?.height ?? 0, se = y + (w === "center" ? "" : "-" + w), ce = typeof A == "number" ? A : {
|
|
62
|
-
top: 0,
|
|
63
|
-
right: 0,
|
|
64
|
-
bottom: 0,
|
|
65
|
-
left: 0,
|
|
66
|
-
...A
|
|
67
|
-
}, U = Array.isArray(k) ? k : [k], W = U.length > 0, G = {
|
|
68
|
-
padding: ce,
|
|
69
|
-
boundary: U.filter(I),
|
|
70
|
-
altBoundary: W
|
|
71
|
-
}, { refs: le, floatingStyles: K, placement: q, isPositioned: J, middlewareData: Y } = s({
|
|
72
|
-
strategy: "fixed",
|
|
73
|
-
placement: se,
|
|
74
|
-
whileElementsMounted: /* @__PURE__ */ b((...e) => l(...e, { animationFrame: N === S.Always }), "whileElementsMounted"),
|
|
75
|
-
elements: { reference: R.anchor },
|
|
76
|
-
middleware: [
|
|
77
|
-
o({
|
|
78
|
-
mainAxis: C + H,
|
|
79
|
-
alignmentAxis: T
|
|
80
|
-
}),
|
|
81
|
-
O && d({
|
|
82
|
-
mainAxis: !0,
|
|
83
|
-
crossAxis: !1,
|
|
84
|
-
...M === x.Partial ? { limiter: c() } : {},
|
|
85
|
-
...G
|
|
86
|
-
}),
|
|
87
|
-
O && u({ ...G }),
|
|
88
|
-
p({
|
|
89
|
-
...G,
|
|
90
|
-
apply: /* @__PURE__ */ b(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
91
|
-
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
92
|
-
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`);
|
|
93
|
-
}, "apply")
|
|
94
|
-
}),
|
|
95
|
-
B && m({
|
|
96
|
-
element: B,
|
|
97
|
-
padding: E
|
|
98
|
-
}),
|
|
99
|
-
ne({
|
|
100
|
-
arrowWidth: oe,
|
|
101
|
-
arrowHeight: H
|
|
102
|
-
}),
|
|
103
|
-
te && f(W ? {
|
|
104
|
-
strategy: "referenceHidden",
|
|
105
|
-
...G
|
|
106
|
-
} : {
|
|
107
|
-
strategy: "referenceHidden",
|
|
108
|
-
padding: G.padding,
|
|
109
|
-
altBoundary: G.altBoundary
|
|
110
|
-
})
|
|
111
|
-
]
|
|
112
|
-
}), X = R.setPlacementState;
|
|
113
|
-
r(() => (X(q), () => {
|
|
114
|
-
X(void 0);
|
|
115
|
-
}), [q, X]);
|
|
116
|
-
let [Z, Q] = L(q), $ = i(P);
|
|
117
|
-
r(() => {
|
|
118
|
-
J && $?.();
|
|
119
|
-
}, [J, $]);
|
|
120
|
-
let ue = Y.arrow?.x, de = Y.arrow?.y, fe = Y.arrow?.centerOffset !== 0, [pe, me] = h.useState();
|
|
121
|
-
return r(() => {
|
|
122
|
-
z && me(window.getComputedStyle(z).zIndex);
|
|
123
|
-
}, [z]), /* @__PURE__ */ g("div", {
|
|
124
|
-
ref: le.setFloating,
|
|
125
|
-
"data-radix-popper-content-wrapper": "",
|
|
126
|
-
style: {
|
|
127
|
-
...K,
|
|
128
|
-
transform: J ? K.transform : "translate(0, -200%)",
|
|
129
|
-
minWidth: "max-content",
|
|
130
|
-
zIndex: pe,
|
|
131
|
-
"--radix-popper-transform-origin": [Y.transformOrigin?.x, Y.transformOrigin?.y].join(" "),
|
|
132
|
-
...Y.hide?.referenceHidden && {
|
|
133
|
-
visibility: "hidden",
|
|
134
|
-
pointerEvents: "none"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
dir: n.dir,
|
|
138
|
-
children: /* @__PURE__ */ g(ee, {
|
|
139
|
-
scope: v,
|
|
140
|
-
placedSide: Z,
|
|
141
|
-
placedAlign: Q,
|
|
142
|
-
onArrowChange: ae,
|
|
143
|
-
arrowX: ue,
|
|
144
|
-
arrowY: de,
|
|
145
|
-
shouldHideArrow: fe,
|
|
146
|
-
children: /* @__PURE__ */ g(t.div, {
|
|
147
|
-
"data-side": Z,
|
|
148
|
-
"data-align": Q,
|
|
149
|
-
...F,
|
|
150
|
-
ref: ie,
|
|
151
|
-
style: {
|
|
152
|
-
...F.style,
|
|
153
|
-
animation: J ? F.style?.animation : "none"
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
});
|
|
158
|
-
}, "PopperContent")), N = "PopperArrow", P = {
|
|
159
|
-
top: "bottom",
|
|
160
|
-
right: "left",
|
|
161
|
-
bottom: "top",
|
|
162
|
-
left: "right"
|
|
163
|
-
}, F = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ b(function(e, t) {
|
|
164
|
-
let { __scopePopper: n, ...r } = e, i = M(N, n), a = P[i.placedSide];
|
|
165
|
-
return /* @__PURE__ */ g("span", {
|
|
166
|
-
ref: i.onArrowChange,
|
|
167
|
-
style: {
|
|
168
|
-
position: "absolute",
|
|
169
|
-
left: i.arrowX,
|
|
170
|
-
top: i.arrowY,
|
|
171
|
-
[a]: 0,
|
|
172
|
-
transformOrigin: {
|
|
173
|
-
top: "",
|
|
174
|
-
right: "0 0",
|
|
175
|
-
bottom: "center 0",
|
|
176
|
-
left: "100% 0"
|
|
177
|
-
}[i.placedSide],
|
|
178
|
-
transform: {
|
|
179
|
-
top: "translateY(100%)",
|
|
180
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
181
|
-
bottom: "rotate(180deg)",
|
|
182
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
183
|
-
}[i.placedSide],
|
|
184
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
185
|
-
},
|
|
186
|
-
children: /* @__PURE__ */ g(v, {
|
|
187
|
-
...r,
|
|
188
|
-
ref: t,
|
|
189
|
-
style: {
|
|
190
|
-
...r.style,
|
|
191
|
-
display: "block"
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
});
|
|
195
|
-
}, "PopperArrow"));
|
|
196
|
-
function I(e) {
|
|
197
|
-
return e !== null;
|
|
198
|
-
}
|
|
199
|
-
b(I, "isNotNull");
|
|
200
|
-
var ne = /* @__PURE__ */ b((e) => ({
|
|
201
|
-
name: "transformOrigin",
|
|
202
|
-
options: e,
|
|
203
|
-
fn(t) {
|
|
204
|
-
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] = L(n), u = {
|
|
205
|
-
start: "0%",
|
|
206
|
-
center: "50%",
|
|
207
|
-
end: "100%"
|
|
208
|
-
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
209
|
-
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: {
|
|
210
|
-
x: p,
|
|
211
|
-
y: m
|
|
212
|
-
} };
|
|
213
|
-
}
|
|
214
|
-
}), "transformOrigin");
|
|
215
|
-
function L(e) {
|
|
216
|
-
let [t, n = "center"] = e.split("-");
|
|
217
|
-
return [t, n];
|
|
218
|
-
}
|
|
219
|
-
b(L, "getSideAndAlignFromPlacement");
|
|
220
|
-
//#endregion
|
|
221
|
-
export { T as a, te as i, A as n, F as r, O as t };
|
package/dist/dist-E8ieJTBC.mjs
DELETED
|
@@ -1,190 +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-BPL7gUpg.mjs";
|
|
4
|
-
import * as r from "react";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.bun/@radix-ui+react-focus-scope@1.3.1+b146eb580f4286be/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
|
-
//#endregion
|
|
190
|
-
export { p as i, f as n, m as r, u as t };
|
package/dist/dist-GazS1kfR.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
//#region ../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.4+c841d34b494ec30a/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3
|
-
var t = globalThis?.document ? e.useLayoutEffect : () => {};
|
|
4
|
-
//#endregion
|
|
5
|
-
export { t };
|
package/dist/dist-N97cIp0_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js"),i=require("./dist-CGgemr2V.js"),a=require("./dist-D1qkELLT.js"),o=require("./dist-DoivLw3t.js"),s=require("./floating-ui.react-dom-BwFRxNGc.js");let c=require("react");c=e.r(c,1);let l=require("react/jsx-runtime");var u=Object.defineProperty,d=c.forwardRef(((e,t)=>u(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:r,width:i=10,height:a=5,...o}=e;return(0,l.jsx)(n.t.svg,{...o,ref:t,width:i,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?r:(0,l.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m={Partial:`partial`,Always:`always`},h={Optimized:`optimized`,Always:`always`},g=`Popper`,[_,v]=r.t(g),[y,b]=_(g),x=p(e=>{let{__scopePopper:t,children:n}=e,[r,i]=c.useState(null),[a,o]=c.useState(void 0);return(0,l.jsx)(y,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),S=`PopperAnchor`,C=c.forwardRef(p(function(e,r){let{__scopePopper:i,virtualRef:a,...o}=e,s=b(S,i),u=c.useRef(null),d=s.onAnchorChange,f=t.a(r,c.useCallback(e=>{u.current=e,e&&d(e)},[d])),p=c.useRef(null);c.useEffect(()=>{if(!a)return;let e=p.current;p.current=a.current,e!==p.current&&d(p.current)});let m=s.placementState&&M(s.placementState),h=m?.[0],g=m?.[1];return a?null:(0,l.jsx)(n.t.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...o,ref:f})},`PopperAnchor`)),w=`PopperContent`,[T,E]=_(w),D=c.forwardRef(p(function(e,r){let{__scopePopper:u,side:d=`bottom`,sideOffset:f=0,align:g=`center`,alignOffset:_=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:C=m.Partial,hideWhenDetached:E=!1,updatePositionStrategy:D=h.Optimized,onPlaced:O,...k}=e,A=b(w,u),[N,P]=c.useState(null),F=t.a(r,P),[I,L]=c.useState(null),R=o.t(I),z=R?.width??0,B=R?.height??0,V=d+(g===`center`?``:`-`+g),H=typeof S==`number`?S:{top:0,right:0,bottom:0,left:0,...S},U=Array.isArray(x)?x:[x],W=U.length>0,G={padding:H,boundary:U.filter(j),altBoundary:W},{refs:te,floatingStyles:K,placement:q,isPositioned:J,middlewareData:Y}=s.c({strategy:`fixed`,placement:V,whileElementsMounted:p((...e)=>s.l(...e,{animationFrame:D===h.Always}),`whileElementsMounted`),elements:{reference:A.anchor},middleware:[s.a({mainAxis:f+B,alignmentAxis:_}),y&&s.o({mainAxis:!0,crossAxis:!1,...C===m.Partial?{limiter:s.i()}:{},...G}),y&&s.n({...G}),s.s({...G,apply:p(({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&&s.t({element:I,padding:v}),ee({arrowWidth:z,arrowHeight:B}),E&&s.r(W?{strategy:`referenceHidden`,...G}:{strategy:`referenceHidden`,padding:G.padding,altBoundary:G.altBoundary})]}),X=A.setPlacementState;i.t(()=>(X(q),()=>{X(void 0)}),[q,X]);let[Z,Q]=M(q),$=a.t(O);i.t(()=>{J&&$?.()},[J,$]);let ne=Y.arrow?.x,re=Y.arrow?.y,ie=Y.arrow?.centerOffset!==0,[ae,oe]=c.useState();return i.t(()=>{N&&oe(window.getComputedStyle(N).zIndex)},[N]),(0,l.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,l.jsx)(T,{scope:u,placedSide:Z,placedAlign:Q,onArrowChange:L,arrowX:ne,arrowY:re,shouldHideArrow:ie,children:(0,l.jsx)(n.t.div,{"data-side":Z,"data-align":Q,...k,ref:F,style:{...k.style,animation:J?k.style?.animation:`none`}})})})},`PopperContent`)),O=`PopperArrow`,k={top:`bottom`,right:`left`,bottom:`top`,left:`right`},A=c.forwardRef(p(function(e,t){let{__scopePopper:n,...r}=e,i=E(O,n),a=k[i.placedSide];return(0,l.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,l.jsx)(d,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function j(e){return e!==null}p(j,`isNotNull`);var ee=p(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]=M(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 M(e){let[t,n=`center`]=e.split(`-`);return[t,n]}p(M,`getSideAndAlignFromPlacement`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return x}});
|