@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-CpKLY_uZ.mjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-GazS1kfR.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
//#region ../../node_modules/.bun/@radix-ui+react-presence@1.1.11+b146eb580f4286be/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
});
|
|
8
|
-
function i(e, n) {
|
|
9
|
-
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
10
|
-
}
|
|
11
|
-
r(i, "useStateMachine");
|
|
12
|
-
var a = /* @__PURE__ */ r((e) => {
|
|
13
|
-
let { present: n, children: r } = e, i = o(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), s = c(i.ref, u(a));
|
|
14
|
-
return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: s }) : null;
|
|
15
|
-
}, "Presence");
|
|
16
|
-
function o(n) {
|
|
17
|
-
let [a, o] = t.useState(), s = t.useRef(null), c = t.useRef(n), u = t.useRef("none"), d = t.useRef(void 0), [f, p] = i(n ? "mounted" : "unmounted", {
|
|
18
|
-
mounted: {
|
|
19
|
-
UNMOUNT: "unmounted",
|
|
20
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
21
|
-
},
|
|
22
|
-
unmountSuspended: {
|
|
23
|
-
MOUNT: "mounted",
|
|
24
|
-
ANIMATION_END: "unmounted"
|
|
25
|
-
},
|
|
26
|
-
unmounted: { MOUNT: "mounted" }
|
|
27
|
-
});
|
|
28
|
-
return t.useEffect(() => {
|
|
29
|
-
f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
|
|
30
|
-
}, [f]), e(() => {
|
|
31
|
-
let e = s.current, t = c.current;
|
|
32
|
-
if (t !== n) {
|
|
33
|
-
let r = u.current, i = l(e);
|
|
34
|
-
n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
|
|
35
|
-
}
|
|
36
|
-
}, [n, p]), e(() => {
|
|
37
|
-
if (a) {
|
|
38
|
-
let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
|
|
39
|
-
let r = l(s.current).includes(CSS.escape(n.animationName));
|
|
40
|
-
if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
|
|
41
|
-
let n = a.style.animationFillMode;
|
|
42
|
-
a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
43
|
-
a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
|
|
47
|
-
e.target === a && (u.current = l(s.current));
|
|
48
|
-
}, "handleAnimationStart");
|
|
49
|
-
return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
|
|
50
|
-
t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
|
|
51
|
-
};
|
|
52
|
-
} else p("ANIMATION_END");
|
|
53
|
-
}, [a, p]), {
|
|
54
|
-
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
55
|
-
ref: t.useCallback((e) => {
|
|
56
|
-
if (e) {
|
|
57
|
-
let t = getComputedStyle(e);
|
|
58
|
-
s.current = t, d.current = l(t);
|
|
59
|
-
} else s.current = null;
|
|
60
|
-
o(e);
|
|
61
|
-
}, [])
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
r(o, "usePresence");
|
|
65
|
-
function s(e, t) {
|
|
66
|
-
if (typeof e == "function") return e(t);
|
|
67
|
-
e != null && (e.current = t);
|
|
68
|
-
}
|
|
69
|
-
r(s, "setRef");
|
|
70
|
-
function c(...e) {
|
|
71
|
-
let n = t.useRef(e);
|
|
72
|
-
return n.current = e, t.useCallback((e) => {
|
|
73
|
-
let t = n.current, r = !1, i = t.map((t) => {
|
|
74
|
-
let n = s(t, e);
|
|
75
|
-
return !r && typeof n == "function" && (r = !0), n;
|
|
76
|
-
});
|
|
77
|
-
if (r) return () => {
|
|
78
|
-
for (let e = 0; e < i.length; e++) {
|
|
79
|
-
let n = i[e];
|
|
80
|
-
typeof n == "function" ? n() : s(t[e], null);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}, []);
|
|
84
|
-
}
|
|
85
|
-
r(c, "useStableComposedRefs");
|
|
86
|
-
function l(e) {
|
|
87
|
-
return e?.animationName || "none";
|
|
88
|
-
}
|
|
89
|
-
r(l, "getAnimationName");
|
|
90
|
-
function u(e) {
|
|
91
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
92
|
-
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);
|
|
93
|
-
}
|
|
94
|
-
r(u, "getElementRef");
|
|
95
|
-
//#endregion
|
|
96
|
-
export { a as t };
|
package/dist/dist-D1qkELLT.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}),a=n.useInsertionEffect;function o(e){let r=n.useRef(e);return typeof a==`function`?a(()=>{r.current=e}):t.t(()=>{r.current=e}),n.useMemo(()=>((...e)=>r.current?.(...e)),[])}i(o,`useCallbackRef`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/dist/dist-D7-Fky36.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,t){return n.useReducer((e,n)=>t[e][n]??e,e)}i(a,`useStateMachine`);var o=i(e=>{let{present:t,children:r}=e,i=s(t),a=typeof r==`function`?r({present:i.isPresent}):n.Children.only(r),o=l(i.ref,d(a));return typeof r==`function`||i.isPresent?n.cloneElement(a,{ref:o}):null},`Presence`);function s(e){let[r,o]=n.useState(),s=n.useRef(null),c=n.useRef(e),l=n.useRef(`none`),d=n.useRef(void 0),[f,p]=a(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return n.useEffect(()=>{f===`mounted`?(l.current=d.current??u(s.current),d.current=void 0):l.current=`none`},[f]),t.t(()=>{let t=s.current,n=c.current;if(n!==e){let r=l.current,i=u(t);e?(d.current=i,p(`MOUNT`)):i===`none`||t?.display===`none`?p(`UNMOUNT`):p(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),c.current=e}},[e,p]),t.t(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=i(n=>{let i=u(s.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(p(`ANIMATION_END`),!c.current)){let n=r.style.animationFillMode;r.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{r.style.animationFillMode===`forwards`&&(r.style.animationFillMode=n)})}},`handleAnimationEnd`),a=i(e=>{e.target===r&&(l.current=u(s.current))},`handleAnimationStart`);return r.addEventListener(`animationstart`,a),r.addEventListener(`animationcancel`,n),r.addEventListener(`animationend`,n),()=>{t.clearTimeout(e),r.removeEventListener(`animationstart`,a),r.removeEventListener(`animationcancel`,n),r.removeEventListener(`animationend`,n)}}else p(`ANIMATION_END`)},[r,p]),{isPresent:[`mounted`,`unmountSuspended`].includes(f),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,d.current=u(t)}else s.current=null;o(e)},[])}}i(s,`usePresence`);function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}i(c,`setRef`);function l(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=c(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():c(n[e],null)}}},[])}i(l,`useStableComposedRefs`);function u(e){return e?.animationName||`none`}i(u,`getAnimationName`);function d(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)}i(d,`getElementRef`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/dist/dist-DEpkkABT.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-Zs2sjYhL.js"),o=require("./dist-DZiOPWLp.js"),s=require("./dist-YAADIsyo.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-UnTrOmPV.js"),u=require("./dist-D1qkELLT.js");let d=require("react");d=e.r(d,1);let f=require("react/jsx-runtime");var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h=!1;function g(){let[e,t]=d.useState(h);return d.useEffect(()=>{h||(h=!0,t(!0))},[]),e}m(g,`useIsHydrated`);var _=d.useSyncExternalStore;function v(){return()=>{}}m(v,`subscribe`);function y(){return _(v,()=>!0,()=>!1)}m(y,`useIsHydratedModern`);var b=typeof _==`function`?y:g,x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0}),C=`rovingFocusGroup.onEntryFocus`,w={bubbles:!1,cancelable:!0},T=`RovingFocusGroup`,[E,D,O]=a.t(T),[k,A]=r.t(T,[O]),j={Vertical:`vertical`,Horizontal:`horizontal`},M={LTR:`ltr`,RTL:`rtl`},[N,P]=k(T),F=d.forwardRef(S(function(e,t){return(0,f.jsx)(E.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(E.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(I,{...e,ref:t})})})},`RovingFocusGroup`)),I=d.forwardRef(S(function(e,r){let{__scopeRovingFocusGroup:i,orientation:a,loop:c=!1,dir:p,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:_,preventScrollOnEntryFocus:v=!1,...y}=e,b=d.useRef(null),x=t.a(r,b),S=l.n(p),[E,O]=s.t({prop:m,defaultProp:h??null,onChange:g,caller:T}),[k,A]=d.useState(!1),j=u.t(_),M=D(i),P=d.useRef(!1),[F,I]=d.useState(0);return d.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(C,j),()=>e.removeEventListener(C,j)},[j]),(0,f.jsx)(N,{scope:i,orientation:a,dir:S,loop:c,currentTabStopId:E,onItemFocus:d.useCallback(e=>O(e),[O]),onItemShiftTab:d.useCallback(()=>A(!0),[]),onFocusableItemAdd:d.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:d.useCallback(()=>I(e=>e-1),[]),children:(0,f.jsx)(n.t.div,{tabIndex:k||F===0?-1:0,"data-orientation":a,...y,ref:x,style:{outline:`none`,...e.style},onMouseDown:o.t(e.onMouseDown,()=>{P.current=!0}),onFocus:o.t(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(C,w);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);H([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),v)}}P.current=!1}),onBlur:o.t(e.onBlur,()=>A(!1))})})},`RovingFocusGroupImpl`)),L=`RovingFocusGroupItem`,R=d.forwardRef(S(function(e,t){let{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:l,children:u,...p}=e,m=c.t(),h=l||m,g=P(L,r),_=g.currentTabStopId===h,v=D(r),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:S}=g,C=b();return i.t(()=>{if(!(!C||!a))return y(),()=>x()},[C,a,y,x]),d.useEffect(()=>{if(!(C||!a))return y(),()=>x()},[C,a,y,x]),(0,f.jsx)(E.ItemSlot,{scope:r,id:h,focusable:a,active:s,children:(0,f.jsx)(n.t.span,{tabIndex:_?0:-1,"data-orientation":g.orientation,...p,ref:t,onMouseDown:o.t(e.onMouseDown,e=>{a?g.onItemFocus(h):e.preventDefault()}),onFocus:o.t(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:o.t(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=V(e,g.orientation,g.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?U(n,r+1):n.slice(r+1)}setTimeout(()=>H(n))}}),children:typeof u==`function`?u({isCurrentTabStop:_,hasTabStop:S!=null}):u})})},`RovingFocusGroupItem`)),z={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function B(e,t){return t===M.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}S(B,`getDirectionAwareKey`);function V(e,t,n){let r=B(e.key,n);if(!(t===j.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===j.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return z[r]}S(V,`getFocusIntent`);function H(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}S(H,`focusFirst`);function U(e,t){return e.map((n,r)=>e[(t+r)%e.length])}S(U,`wrapArray`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return F}});
|
package/dist/dist-DI1vapnL.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-BEbV0Hal.mjs";
|
|
2
|
-
import { t } from "./dist-GazS1kfR.mjs";
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import * as r from "react-dom";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../node_modules/.bun/@radix-ui+react-portal@1.2.0+b146eb580f4286be/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
|
-
//#endregion
|
|
20
|
-
export { o as t };
|
package/dist/dist-DJqkhIXb2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0});function n(e,[t,n]){return Math.min(n,Math.max(t,e))}t(n,`clamp`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
package/dist/dist-DKXojpVG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-hFLuJoMi.js");let n=require("react");n=e.r(n,1);let r=require("react/jsx-runtime");var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),s=n.forwardRef(a(function(e,n){return(0,r.jsx)(t.t.span,{...e,ref:n,style:{...o,...e.style}})},`VisuallyHidden`));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/dist/dist-DYUvPCPC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js");let t=require("react");t=e.r(t,1);let n=require("react/jsx-runtime");var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0});function a(e,r){let a=t.createContext(r);a.displayName=e+`Context`;let o=i(e=>{let{children:r,...i}=e,o=t.useMemo(()=>i,Object.values(i));return(0,n.jsx)(a.Provider,{value:o,children:r})},`Provider`);o.displayName=e+`Provider`;function s(n,i={}){let{optional:o=!1}=i,s=t.useContext(a);if(s)return s;if(r!==void 0)return r;if(!o)throw Error(`\`${n}\` must be used within \`${e}\``)}return i(s,`useContext`),[o,s]}i(a,`createContext`);function o(e,r=[]){let a=[];function o(r,o){let s=t.createContext(o);s.displayName=r+`Context`;let c=a.length;a=[...a,o];let l=i(r=>{let{scope:i,children:a,...o}=r,l=i?.[e]?.[c]||s,u=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(l.Provider,{value:u,children:a})},`Provider`);l.displayName=r+`Provider`;function u(n,i,a={}){let{optional:l=!1}=a,u=i?.[e]?.[c]||s,d=t.useContext(u);if(d)return d;if(o!==void 0)return o;if(!l)throw Error(`\`${n}\` must be used within \`${r}\``)}return i(u,`useContext`),[l,u]}i(o,`createContext`);let c=i(()=>{let n=a.map(e=>t.createContext(e));return i(function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},`useScope`)},`createScope`);return c.scopeName=e,[o,s(c,...r)]}i(o,`createContextScope`);function s(...e){let n=e[0];if(e.length===1)return n;let r=i(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return i(function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])},`useComposedScopes`)},`createScope`);return r.scopeName=n.scopeName,r}i(s,`composeContextScopes`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/dist/dist-DZiOPWLp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0}),n=!!(typeof window<`u`&&window.document&&window.document.createElement);function r(e,n,{checkForDefaultPrevented:r=!0}={}){return t(function(t){if(e?.(t),r===!1||!t||!t.defaultPrevented)return n?.(t)},`handleEvent`)}t(r,`composeEventHandlers`);function i(e){if(!n)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}t(i,`getOwnerWindow`);function a(e){if(!n)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}t(a,`getOwnerDocument`);function o(e,t=!1){let{activeElement:n}=a(e);if(!n?.nodeName)return null;if(s(n)&&n.contentDocument)return o(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=a(n).getElementById(e);if(t)return t}}return n}t(o,`getActiveElement`);function s(e){return e.tagName===`IFRAME`}t(s,`isFrame`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
package/dist/dist-DatgTWLz.mjs
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { a as e, n as t } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
-
import { t as n } from "./dist-BEbV0Hal.mjs";
|
|
3
|
-
import { t as r } from "./dist-CPAF050o.mjs";
|
|
4
|
-
import { t as i } from "./dist-GazS1kfR.mjs";
|
|
5
|
-
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
6
|
-
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
7
|
-
import { t as s } from "./dist-CpKLY_uZ.mjs";
|
|
8
|
-
import { t as c } from "./dist-UkWa-Arh.mjs";
|
|
9
|
-
import { r as l, t as u } from "./dist-s7ibhASj.mjs";
|
|
10
|
-
import { i as d, n as f, t as p } from "./dist-E8ieJTBC.mjs";
|
|
11
|
-
import { t as m } from "./dist-DI1vapnL.mjs";
|
|
12
|
-
import { n as h, r as g, t as _ } from "./es2015-DbsmTzuc.mjs";
|
|
13
|
-
import * as v from "react";
|
|
14
|
-
import { jsx as y } from "react/jsx-runtime";
|
|
15
|
-
//#region ../../node_modules/.bun/@radix-ui+react-dialog@1.3.1+b146eb580f4286be/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
16
|
-
var b = Object.defineProperty, x = (e, t) => b(e, "name", {
|
|
17
|
-
value: t,
|
|
18
|
-
configurable: !0
|
|
19
|
-
}), S = "Dialog", [C, w] = r(S), [T, E] = C(S), D = /* @__PURE__ */ x((e) => {
|
|
20
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: s = !0 } = e, l = v.useRef(null), u = v.useRef(null), { nodes: f, registry: p } = d(), [m, h] = o({
|
|
21
|
-
prop: r,
|
|
22
|
-
defaultProp: i ?? !1,
|
|
23
|
-
onChange: a,
|
|
24
|
-
caller: S
|
|
25
|
-
}), [g, _] = v.useState(0), [b, x] = v.useState(0);
|
|
26
|
-
return /* @__PURE__ */ y(T, {
|
|
27
|
-
scope: t,
|
|
28
|
-
triggerRef: l,
|
|
29
|
-
contentRef: u,
|
|
30
|
-
contentId: c(),
|
|
31
|
-
titleId: c(),
|
|
32
|
-
descriptionId: c(),
|
|
33
|
-
titlePresent: g > 0,
|
|
34
|
-
descriptionPresent: b > 0,
|
|
35
|
-
setTitleCount: _,
|
|
36
|
-
setDescriptionCount: x,
|
|
37
|
-
open: m,
|
|
38
|
-
onOpenChange: h,
|
|
39
|
-
onOpenToggle: v.useCallback(() => h((e) => !e), [h]),
|
|
40
|
-
modal: s,
|
|
41
|
-
branchNodes: f,
|
|
42
|
-
branchRegistry: p,
|
|
43
|
-
children: n
|
|
44
|
-
});
|
|
45
|
-
}, "Dialog"), O = "DialogTrigger", k = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(t, r) {
|
|
46
|
-
let { __scopeDialog: i, ...o } = t, s = E(O, i), c = e(r, s.triggerRef);
|
|
47
|
-
return /* @__PURE__ */ y(n.button, {
|
|
48
|
-
type: "button",
|
|
49
|
-
"aria-haspopup": "dialog",
|
|
50
|
-
"aria-expanded": s.open,
|
|
51
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
52
|
-
"data-state": J(s.open),
|
|
53
|
-
...o,
|
|
54
|
-
ref: c,
|
|
55
|
-
onClick: a(t.onClick, s.onOpenToggle)
|
|
56
|
-
});
|
|
57
|
-
}, "DialogTrigger")), A = "DialogPortal", [j, M] = C(A, { forceMount: void 0 }), N = /* @__PURE__ */ x((e) => {
|
|
58
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = E(A, t);
|
|
59
|
-
return /* @__PURE__ */ y(j, {
|
|
60
|
-
scope: t,
|
|
61
|
-
forceMount: n,
|
|
62
|
-
children: v.Children.map(r, (e) => /* @__PURE__ */ y(s, {
|
|
63
|
-
present: n || a.open,
|
|
64
|
-
children: /* @__PURE__ */ y(m, {
|
|
65
|
-
asChild: !0,
|
|
66
|
-
container: i,
|
|
67
|
-
children: e
|
|
68
|
-
})
|
|
69
|
-
}))
|
|
70
|
-
});
|
|
71
|
-
}, "DialogPortal"), P = "DialogOverlay", F = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
72
|
-
let n = M(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(P, e.__scopeDialog);
|
|
73
|
-
return a.modal ? /* @__PURE__ */ y(s, {
|
|
74
|
-
present: r || a.open,
|
|
75
|
-
children: /* @__PURE__ */ y(L, {
|
|
76
|
-
...i,
|
|
77
|
-
ref: t
|
|
78
|
-
})
|
|
79
|
-
}) : null;
|
|
80
|
-
}, "DialogOverlay")), I = t("DialogOverlay.RemoveScroll"), L = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(t, r) {
|
|
81
|
-
let { __scopeDialog: i, ...a } = t, o = E(P, i), s = e(r, l());
|
|
82
|
-
return /* @__PURE__ */ y(h, {
|
|
83
|
-
as: I,
|
|
84
|
-
allowPinchZoom: !0,
|
|
85
|
-
shards: v.useMemo(() => [o.contentRef, ...o.branchNodes.map((e) => ({ current: e }))], [o.contentRef, o.branchNodes]),
|
|
86
|
-
children: /* @__PURE__ */ y(n.div, {
|
|
87
|
-
"data-state": J(o.open),
|
|
88
|
-
...a,
|
|
89
|
-
ref: s,
|
|
90
|
-
style: {
|
|
91
|
-
pointerEvents: "auto",
|
|
92
|
-
...a.style
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
});
|
|
96
|
-
}, "DialogOverlayImpl")), R = "DialogContent", z = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
97
|
-
let n = M(R, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(R, e.__scopeDialog);
|
|
98
|
-
return /* @__PURE__ */ y(s, {
|
|
99
|
-
present: r || a.open,
|
|
100
|
-
children: a.modal ? /* @__PURE__ */ y(B, {
|
|
101
|
-
...i,
|
|
102
|
-
ref: t
|
|
103
|
-
}) : /* @__PURE__ */ y(V, {
|
|
104
|
-
...i,
|
|
105
|
-
ref: t
|
|
106
|
-
})
|
|
107
|
-
});
|
|
108
|
-
}, "DialogContent")), B = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(t, n) {
|
|
109
|
-
let r = E(R, t.__scopeDialog), i = v.useRef(null), o = e(n, r.contentRef, i);
|
|
110
|
-
return v.useEffect(() => {
|
|
111
|
-
let e = i.current;
|
|
112
|
-
if (e) return _(e);
|
|
113
|
-
}, []), /* @__PURE__ */ y(H, {
|
|
114
|
-
...t,
|
|
115
|
-
ref: o,
|
|
116
|
-
trapFocus: r.open,
|
|
117
|
-
disableOutsidePointerEvents: r.open,
|
|
118
|
-
onCloseAutoFocus: a(t.onCloseAutoFocus, (e) => {
|
|
119
|
-
e.preventDefault(), r.triggerRef.current?.focus();
|
|
120
|
-
}),
|
|
121
|
-
onPointerDownOutside: a(t.onPointerDownOutside, (e) => {
|
|
122
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
123
|
-
(t.button === 2 || n) && e.preventDefault();
|
|
124
|
-
}),
|
|
125
|
-
onFocusOutside: a(t.onFocusOutside, (e) => e.preventDefault())
|
|
126
|
-
});
|
|
127
|
-
}, "DialogContentModal")), V = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
128
|
-
let n = E(R, e.__scopeDialog), r = v.useRef(!1), i = v.useRef(!1);
|
|
129
|
-
return /* @__PURE__ */ y(H, {
|
|
130
|
-
...e,
|
|
131
|
-
ref: t,
|
|
132
|
-
trapFocus: !1,
|
|
133
|
-
disableOutsidePointerEvents: !1,
|
|
134
|
-
onCloseAutoFocus: (t) => {
|
|
135
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
136
|
-
},
|
|
137
|
-
onInteractOutside: (t) => {
|
|
138
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
139
|
-
let a = t.target;
|
|
140
|
-
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}, "DialogContentNonModal")), H = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
144
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, "aria-describedby": o, children: s, ...c } = e, l = E(R, n);
|
|
145
|
-
return g(), /* @__PURE__ */ y(f, {
|
|
146
|
-
registry: l.branchRegistry,
|
|
147
|
-
children: /* @__PURE__ */ y(p, {
|
|
148
|
-
asChild: !0,
|
|
149
|
-
loop: !0,
|
|
150
|
-
trapped: r,
|
|
151
|
-
branches: l.branchNodes,
|
|
152
|
-
onMountAutoFocus: i,
|
|
153
|
-
onUnmountAutoFocus: a,
|
|
154
|
-
children: /* @__PURE__ */ y(u, {
|
|
155
|
-
role: "dialog",
|
|
156
|
-
id: l.contentId,
|
|
157
|
-
"aria-labelledby": l.titlePresent ? l.titleId : void 0,
|
|
158
|
-
"aria-describedby": l.descriptionPresent ? q(o, l.descriptionId) : o,
|
|
159
|
-
"data-state": J(l.open),
|
|
160
|
-
...c,
|
|
161
|
-
ref: t,
|
|
162
|
-
deferPointerDownOutside: !0,
|
|
163
|
-
onDismiss: () => l.onOpenChange(!1),
|
|
164
|
-
children: s
|
|
165
|
-
})
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
}, "DialogContentImpl")), U = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
169
|
-
let { __scopeDialog: r, ...a } = e, o = E("DialogTitle", r), { setTitleCount: s } = o;
|
|
170
|
-
return i(() => (s((e) => e + 1), () => s((e) => e - 1)), [s]), /* @__PURE__ */ y(n.h2, {
|
|
171
|
-
id: o.titleId,
|
|
172
|
-
...a,
|
|
173
|
-
ref: t
|
|
174
|
-
});
|
|
175
|
-
}, "DialogTitle")), W = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
176
|
-
let { __scopeDialog: r, ...a } = e, o = E("DialogDescription", r), { setDescriptionCount: s } = o;
|
|
177
|
-
return i(() => (s((e) => e + 1), () => s((e) => e - 1)), [s]), /* @__PURE__ */ y(n.p, {
|
|
178
|
-
id: o.descriptionId,
|
|
179
|
-
...a,
|
|
180
|
-
ref: t
|
|
181
|
-
});
|
|
182
|
-
}, "DialogDescription")), G = "DialogClose", K = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
183
|
-
let { __scopeDialog: r, ...i } = e, o = E(G, r);
|
|
184
|
-
return /* @__PURE__ */ y(n.button, {
|
|
185
|
-
type: "button",
|
|
186
|
-
...i,
|
|
187
|
-
ref: t,
|
|
188
|
-
onClick: a(e.onClick, () => o.onOpenChange(!1))
|
|
189
|
-
});
|
|
190
|
-
}, "DialogClose"));
|
|
191
|
-
function q(...e) {
|
|
192
|
-
let t = /* @__PURE__ */ new Set();
|
|
193
|
-
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
194
|
-
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
195
|
-
}
|
|
196
|
-
x(q, "concatAriaDescribedby");
|
|
197
|
-
function J(e) {
|
|
198
|
-
return e ? "open" : "closed";
|
|
199
|
-
}
|
|
200
|
-
x(J, "getState");
|
|
201
|
-
//#endregion
|
|
202
|
-
export { F as a, k as c, W as i, w as l, K as n, N as o, z as r, U as s, D as t };
|