@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-BexAB6yo.mjs
DELETED
|
@@ -1,192 +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-OqDzLHTa.mjs";
|
|
6
|
-
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
7
|
-
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
8
|
-
import { t as s } from "./dist-UkWa-Arh.mjs";
|
|
9
|
-
import { n as c } from "./dist-BbI6NHqR.mjs";
|
|
10
|
-
import { t as l } from "./dist-BPL7gUpg.mjs";
|
|
11
|
-
import * as u from "react";
|
|
12
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../node_modules/.bun/@radix-ui+react-use-is-hydrated@0.1.3+c841d34b494ec30a/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
|
|
14
|
-
var f = Object.defineProperty, p = (e, t) => f(e, "name", {
|
|
15
|
-
value: t,
|
|
16
|
-
configurable: !0
|
|
17
|
-
}), m = !1;
|
|
18
|
-
function h() {
|
|
19
|
-
let [e, t] = u.useState(m);
|
|
20
|
-
return u.useEffect(() => {
|
|
21
|
-
m || (m = !0, t(!0));
|
|
22
|
-
}, []), e;
|
|
23
|
-
}
|
|
24
|
-
p(h, "useIsHydrated");
|
|
25
|
-
var g = u.useSyncExternalStore;
|
|
26
|
-
function _() {
|
|
27
|
-
return () => {};
|
|
28
|
-
}
|
|
29
|
-
p(_, "subscribe");
|
|
30
|
-
function v() {
|
|
31
|
-
return g(_, () => !0, () => !1);
|
|
32
|
-
}
|
|
33
|
-
p(v, "useIsHydratedModern");
|
|
34
|
-
var y = typeof g == "function" ? v : h, b = Object.defineProperty, x = (e, t) => b(e, "name", {
|
|
35
|
-
value: t,
|
|
36
|
-
configurable: !0
|
|
37
|
-
}), S = "rovingFocusGroup.onEntryFocus", C = {
|
|
38
|
-
bubbles: !1,
|
|
39
|
-
cancelable: !0
|
|
40
|
-
}, w = "RovingFocusGroup", [T, E, D] = i(w), [O, k] = n(w, [D]), A = {
|
|
41
|
-
Vertical: "vertical",
|
|
42
|
-
Horizontal: "horizontal"
|
|
43
|
-
}, j = {
|
|
44
|
-
LTR: "ltr",
|
|
45
|
-
RTL: "rtl"
|
|
46
|
-
}, [M, N] = O(w), P = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
47
|
-
return /* @__PURE__ */ d(T.Provider, {
|
|
48
|
-
scope: e.__scopeRovingFocusGroup,
|
|
49
|
-
children: /* @__PURE__ */ d(T.Slot, {
|
|
50
|
-
scope: e.__scopeRovingFocusGroup,
|
|
51
|
-
children: /* @__PURE__ */ d(F, {
|
|
52
|
-
...e,
|
|
53
|
-
ref: t
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
}, "RovingFocusGroup")), F = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(n, r) {
|
|
58
|
-
let { __scopeRovingFocusGroup: i, orientation: s, loop: f = !1, dir: p, currentTabStopId: m, defaultCurrentTabStopId: h, onCurrentTabStopIdChange: g, onEntryFocus: _, preventScrollOnEntryFocus: v = !1, ...y } = n, b = u.useRef(null), x = e(r, b), T = c(p), [D, O] = o({
|
|
59
|
-
prop: m,
|
|
60
|
-
defaultProp: h ?? null,
|
|
61
|
-
onChange: g,
|
|
62
|
-
caller: w
|
|
63
|
-
}), [k, A] = u.useState(!1), j = l(_), N = E(i), P = u.useRef(!1), [F, I] = u.useState(0);
|
|
64
|
-
return u.useEffect(() => {
|
|
65
|
-
let e = b.current;
|
|
66
|
-
if (e) return e.addEventListener(S, j), () => e.removeEventListener(S, j);
|
|
67
|
-
}, [j]), /* @__PURE__ */ d(M, {
|
|
68
|
-
scope: i,
|
|
69
|
-
orientation: s,
|
|
70
|
-
dir: T,
|
|
71
|
-
loop: f,
|
|
72
|
-
currentTabStopId: D,
|
|
73
|
-
onItemFocus: u.useCallback((e) => O(e), [O]),
|
|
74
|
-
onItemShiftTab: u.useCallback(() => A(!0), []),
|
|
75
|
-
onFocusableItemAdd: u.useCallback(() => I((e) => e + 1), []),
|
|
76
|
-
onFocusableItemRemove: u.useCallback(() => I((e) => e - 1), []),
|
|
77
|
-
children: /* @__PURE__ */ d(t.div, {
|
|
78
|
-
tabIndex: k || F === 0 ? -1 : 0,
|
|
79
|
-
"data-orientation": s,
|
|
80
|
-
...y,
|
|
81
|
-
ref: x,
|
|
82
|
-
style: {
|
|
83
|
-
outline: "none",
|
|
84
|
-
...n.style
|
|
85
|
-
},
|
|
86
|
-
onMouseDown: a(n.onMouseDown, () => {
|
|
87
|
-
P.current = !0;
|
|
88
|
-
}),
|
|
89
|
-
onFocus: a(n.onFocus, (e) => {
|
|
90
|
-
let t = !P.current;
|
|
91
|
-
if (e.target === e.currentTarget && t && !k) {
|
|
92
|
-
let t = new CustomEvent(S, C);
|
|
93
|
-
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
94
|
-
let e = N().filter((e) => e.focusable);
|
|
95
|
-
V([
|
|
96
|
-
e.find((e) => e.active),
|
|
97
|
-
e.find((e) => e.id === D),
|
|
98
|
-
...e
|
|
99
|
-
].filter(Boolean).map((e) => e.ref.current), v);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
P.current = !1;
|
|
103
|
-
}),
|
|
104
|
-
onBlur: a(n.onBlur, () => A(!1))
|
|
105
|
-
})
|
|
106
|
-
});
|
|
107
|
-
}, "RovingFocusGroupImpl")), I = "RovingFocusGroupItem", L = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(e, n) {
|
|
108
|
-
let { __scopeRovingFocusGroup: i, focusable: o = !0, active: c = !1, tabStopId: l, children: f, ...p } = e, m = s(), h = l || m, g = N(I, i), _ = g.currentTabStopId === h, v = E(i), { onFocusableItemAdd: b, onFocusableItemRemove: x, currentTabStopId: S } = g, C = y();
|
|
109
|
-
return r(() => {
|
|
110
|
-
if (!(!C || !o)) return b(), () => x();
|
|
111
|
-
}, [
|
|
112
|
-
C,
|
|
113
|
-
o,
|
|
114
|
-
b,
|
|
115
|
-
x
|
|
116
|
-
]), u.useEffect(() => {
|
|
117
|
-
if (!(C || !o)) return b(), () => x();
|
|
118
|
-
}, [
|
|
119
|
-
C,
|
|
120
|
-
o,
|
|
121
|
-
b,
|
|
122
|
-
x
|
|
123
|
-
]), /* @__PURE__ */ d(T.ItemSlot, {
|
|
124
|
-
scope: i,
|
|
125
|
-
id: h,
|
|
126
|
-
focusable: o,
|
|
127
|
-
active: c,
|
|
128
|
-
children: /* @__PURE__ */ d(t.span, {
|
|
129
|
-
tabIndex: _ ? 0 : -1,
|
|
130
|
-
"data-orientation": g.orientation,
|
|
131
|
-
...p,
|
|
132
|
-
ref: n,
|
|
133
|
-
onMouseDown: a(e.onMouseDown, (e) => {
|
|
134
|
-
o ? g.onItemFocus(h) : e.preventDefault();
|
|
135
|
-
}),
|
|
136
|
-
onFocus: a(e.onFocus, () => g.onItemFocus(h)),
|
|
137
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
138
|
-
if (e.key === "Tab" && e.shiftKey) {
|
|
139
|
-
g.onItemShiftTab();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
if (e.target !== e.currentTarget) return;
|
|
143
|
-
let t = B(e, g.orientation, g.dir);
|
|
144
|
-
if (t !== void 0) {
|
|
145
|
-
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
146
|
-
e.preventDefault();
|
|
147
|
-
let n = v().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
148
|
-
if (t === "last") n.reverse();
|
|
149
|
-
else if (t === "prev" || t === "next") {
|
|
150
|
-
t === "prev" && n.reverse();
|
|
151
|
-
let r = n.indexOf(e.currentTarget);
|
|
152
|
-
n = g.loop ? H(n, r + 1) : n.slice(r + 1);
|
|
153
|
-
}
|
|
154
|
-
setTimeout(() => V(n));
|
|
155
|
-
}
|
|
156
|
-
}),
|
|
157
|
-
children: typeof f == "function" ? f({
|
|
158
|
-
isCurrentTabStop: _,
|
|
159
|
-
hasTabStop: S != null
|
|
160
|
-
}) : f
|
|
161
|
-
})
|
|
162
|
-
});
|
|
163
|
-
}, "RovingFocusGroupItem")), R = {
|
|
164
|
-
ArrowLeft: "prev",
|
|
165
|
-
ArrowUp: "prev",
|
|
166
|
-
ArrowRight: "next",
|
|
167
|
-
ArrowDown: "next",
|
|
168
|
-
PageUp: "first",
|
|
169
|
-
Home: "first",
|
|
170
|
-
PageDown: "last",
|
|
171
|
-
End: "last"
|
|
172
|
-
};
|
|
173
|
-
function z(e, t) {
|
|
174
|
-
return t === j.RTL ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
175
|
-
}
|
|
176
|
-
x(z, "getDirectionAwareKey");
|
|
177
|
-
function B(e, t, n) {
|
|
178
|
-
let r = z(e.key, n);
|
|
179
|
-
if (!(t === A.Vertical && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === A.Horizontal && ["ArrowUp", "ArrowDown"].includes(r))) return R[r];
|
|
180
|
-
}
|
|
181
|
-
x(B, "getFocusIntent");
|
|
182
|
-
function V(e, t = !1) {
|
|
183
|
-
let n = document.activeElement;
|
|
184
|
-
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
185
|
-
}
|
|
186
|
-
x(V, "focusFirst");
|
|
187
|
-
function H(e, t) {
|
|
188
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
189
|
-
}
|
|
190
|
-
x(H, "wrapArray");
|
|
191
|
-
//#endregion
|
|
192
|
-
export { L as n, k as r, P as t };
|
package/dist/dist-BgXIqHHq.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-Zs2sjYhL.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-D7-Fky36.js"),s=require("./dist-C8Pm6LRc.js"),c=require("./dist-UnTrOmPV.js"),l=require("./dist-D1qkELLT.js"),u=require("./dist-BU-TFzJf.js"),d=require("./dist-Qm9hFvM1.js"),f=require("./dist-1zUKVGvf.js"),p=require("./es2015-DbAsWDbs.js"),m=require("./dist-N97cIp0_.js"),h=require("./dist-DEpkkABT.js");let g=require("react");g=e.r(g,1);let _=require("react/jsx-runtime");var v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0}),ee={LTR:`ltr`,RTL:`rtl`},b=[`Enter`,` `],x=[`ArrowDown`,`PageUp`,`Home`],te=[`ArrowUp`,`PageDown`,`End`],ne=[...x,...te],re={ltr:[...b,`ArrowRight`],rtl:[...b,`ArrowLeft`]},S={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},C=`Menu`,[w,ie,T]=i.t(C),[E,ae]=r.t(C,[T,m.a,h.r]),D=m.a(),oe=h.r(),[O,k]=E(C),[se,A]=E(C),j=y(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=D(t),[u,d]=g.useState(null),f=g.useRef(!1),p=l.t(a),h=c.n(i);return g.useEffect(()=>{let e=y(()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=y(()=>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})}},[]),g.useEffect(()=>{if(!n)return;let e=y(()=>p(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,p]),(0,_.jsx)(m.t,{...s,children:(0,_.jsx)(O,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:d,children:(0,_.jsx)(se,{scope:t,onClose:g.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:o,children:r})})})},`Menu`),M=g.forwardRef(y(function(e,t){let{__scopeMenu:n,...r}=e,i=D(n);return(0,_.jsx)(m.n,{...i,...r,ref:t})},`MenuAnchor`)),N=`MenuPortal`,[ce,P]=E(N,{forceMount:void 0}),le=y(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=k(N,t);return(0,_.jsx)(ce,{scope:t,forceMount:n,children:(0,_.jsx)(o.t,{present:n||a.open,children:(0,_.jsx)(f.t,{asChild:!0,container:i,children:r})})})},`MenuPortal`),F=`MenuContent`,[ue,I]=E(F),L=g.forwardRef(y(function(e,t){let n=P(F,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=k(F,e.__scopeMenu),s=A(F,e.__scopeMenu);return(0,_.jsx)(w.Provider,{scope:e.__scopeMenu,children:(0,_.jsx)(o.t,{present:r||a.open,children:(0,_.jsx)(w.Slot,{scope:e.__scopeMenu,children:s.modal?(0,_.jsx)(R,{...i,ref:t}):(0,_.jsx)(z,{...i,ref:t})})})})},`MenuContent`)),R=g.forwardRef(y(function(e,n){let r=k(F,e.__scopeMenu),i=g.useRef(null),o=t.a(n,i);return g.useEffect(()=>{let e=i.current;if(e)return p.t(e)},[]),(0,_.jsx)(B,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},`MenuRootContentModal`)),z=g.forwardRef(y(function(e,t){let n=k(F,e.__scopeMenu);return(0,_.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),de=t.n(`MenuContent.ScrollLock`),B=g.forwardRef(y(function(e,n){let{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:f,onEscapeKeyDown:v,onPointerDownOutside:ee,onFocusOutside:b,onInteractOutside:x,onDismiss:re,disableOutsideScroll:S,...C}=e,w=k(F,r),T=A(F,r),E=D(r),ae=oe(r),O=ie(r),[se,j]=g.useState(null),M=g.useRef(null),[N,ce]=g.useState(null);d.r(N);let{nodes:P,registry:le}=d.i(),I=!!(o||S),L=t.a(n,M,w.onContentChange,ce),R=g.useRef(0),z=g.useRef(``),B=g.useRef(0),V=g.useRef(null),H=g.useRef(`right`),U=g.useRef(0),W=g.useMemo(()=>S?[M,...P.map(e=>({current:e}))]:[],[M,P,S]),G=S?p.n:g.Fragment,K=S?{as:de,allowPinchZoom:!0,shards:W}:void 0,fe=y(e=>{let t=z.current+e,n=O().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ae(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){z.current=e,window.clearTimeout(R.current),e!==``&&(R.current=window.setTimeout(()=>s(``),1e3))}y(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);g.useEffect(()=>()=>window.clearTimeout(R.current),[]),p.r();let q=g.useCallback(e=>H.current===V.current?.side&&Me(e,V.current?.area),[]);return(0,_.jsx)(ue,{scope:r,searchRef:z,onItemEnter:g.useCallback(e=>{q(e)&&e.preventDefault()},[q]),onItemLeave:g.useCallback(e=>{q(e)||(M.current?.focus(),j(null))},[q]),onTriggerLeave:g.useCallback(e=>{q(e)&&e.preventDefault()},[q]),pointerGraceTimerRef:B,onPointerGraceIntentChange:g.useCallback(e=>{V.current=e},[]),children:(0,_.jsx)(d.n,{registry:I?le:null,children:(0,_.jsx)(G,{...K,children:(0,_.jsx)(d.t,{asChild:!0,trapped:o,branches:P,onMountAutoFocus:a.t(s,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,_.jsx)(u.t,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:v,onPointerDownOutside:ee,onFocusOutside:b,onInteractOutside:x,onDismiss:re,children:(0,_.jsx)(h.t,{asChild:!0,...ae,dir:T.dir,orientation:`vertical`,loop:i,currentTabStopId:se,onCurrentTabStopIdChange:j,onEntryFocus:a.t(f,e=>{T.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,_.jsx)(m.i,{role:`menu`,"aria-orientation":`vertical`,"data-state":X(w.open),"data-radix-menu-content":``,dir:T.dir,...E,...C,ref:L,style:{outline:`none`,...C.style},onKeyDown:a.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&&fe(e.key));let i=M.current;if(e.target!==i||!ne.includes(e.key))return;e.preventDefault();let a=O().filter(e=>!e.disabled).map(e=>e.ref.current);te.includes(e.key)&&a.reverse(),Oe(a)}),onBlur:a.t(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(R.current),z.current=``)}),onPointerMove:a.t(e.onPointerMove,$(e=>{let t=e.target,n=U.current!==e.clientX;e.currentTarget.contains(t)&&n&&(H.current=e.clientX>U.current?`right`:`left`,U.current=e.clientX)}))})})})})})})})},`MenuContentImpl`)),V=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{role:`group`,...i,ref:t})},`MenuGroup`)),H=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{...i,ref:t})},`MenuLabel`)),U=`MenuItem`,W=`menu.itemSelect`,G=g.forwardRef(y(function(e,r){let{disabled:i=!1,onSelect:o,...s}=e,c=g.useRef(null),l=A(U,e.__scopeMenu),u=I(U,e.__scopeMenu),d=t.a(r,c),f=g.useRef(!1),p=y(()=>{let e=c.current;if(!i&&e){let t=new CustomEvent(W,{bubbles:!0,cancelable:!0});e.addEventListener(W,e=>o?.(e),{once:!0}),n.n(e,t),t.defaultPrevented?f.current=!1:l.onClose()}},`handleSelect`);return(0,_.jsx)(K,{...s,ref:d,disabled:i,onClick:a.t(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:a.t(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:a.t(e.onKeyDown,e=>{i||e.target!==e.currentTarget||u.searchRef.current!==``&&e.key===` `||b.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),K=g.forwardRef(y(function(e,r){let{__scopeMenu:i,disabled:o=!1,textValue:s,...c}=e,l=I(U,i),u=oe(i),d=g.useRef(null),f=t.a(r,d),[p,m]=g.useState(!1),[v,y]=g.useState(``);return g.useEffect(()=>{let e=d.current;e&&y((e.textContent??``).trim())},[c.children]),(0,_.jsx)(w.ItemSlot,{scope:i,disabled:o,textValue:s??v,children:(0,_.jsx)(h.n,{asChild:!0,...u,focusable:!o,children:(0,_.jsx)(n.t.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":o||void 0,"data-disabled":o?``:void 0,...c,ref:f,onPointerMove:a.t(e.onPointerMove,$(e=>{o?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:a.t(e.onPointerLeave,$(e=>l.onItemLeave(e))),onFocus:a.t(e.onFocus,()=>m(!0)),onBlur:a.t(e.onBlur,()=>m(!1))})})})},`MenuItemImpl`)),fe=g.forwardRef(y(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,_.jsx)(_e,{scope:e.__scopeMenu,checked:n,children:(0,_.jsx)(G,{role:`menuitemcheckbox`,"aria-checked":Z(n)?`mixed`:n,...i,ref:t,"data-state":Q(n),onSelect:a.t(i.onSelect,()=>r?.(Z(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[q,pe]=E(`MenuRadioGroup`,{value:void 0,onValueChange:y(()=>{},`onValueChange`)}),me=g.forwardRef(y(function(e,t){let{value:n,onValueChange:r,...i}=e,a=l.t(r);return(0,_.jsx)(q,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,_.jsx)(V,{...i,ref:t})})},`MenuRadioGroup`)),he=`MenuRadioItem`,ge=g.forwardRef(y(function(e,t){let{value:n,...r}=e,i=pe(he,e.__scopeMenu),o=n===i.value;return(0,_.jsx)(_e,{scope:e.__scopeMenu,checked:o,children:(0,_.jsx)(G,{role:`menuitemradio`,"aria-checked":o,...r,ref:t,"data-state":Q(o),onSelect:a.t(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),J=`MenuItemIndicator`,[_e,ve]=E(J,{checked:!1}),ye=g.forwardRef(y(function(e,t){let{__scopeMenu:r,forceMount:i,...a}=e,s=ve(J,r);return(0,_.jsx)(o.t,{present:i||Z(s.checked)||s.checked===!0,children:(0,_.jsx)(n.t.span,{...a,ref:t,"data-state":Q(s.checked)})})},`MenuItemIndicator`)),be=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{role:`separator`,"aria-orientation":`horizontal`,...i,ref:t})},`MenuSeparator`)),xe=`MenuSub`,[Se,Ce]=E(xe),we=y(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=k(xe,t),o=D(t),[c,u]=g.useState(null),[d,f]=g.useState(null),p=l.t(i);return g.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,_.jsx)(m.t,{...o,children:(0,_.jsx)(O,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,_.jsx)(Se,{scope:t,contentId:s.t(),triggerId:s.t(),trigger:c,onTriggerChange:u,children:n})})})},`MenuSub`),Y=`MenuSubTrigger`,Te=g.forwardRef(y(function(e,n){let r=k(Y,e.__scopeMenu),i=A(Y,e.__scopeMenu),o=Ce(Y,e.__scopeMenu),s=I(Y,e.__scopeMenu),c=g.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},f=g.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);g.useEffect(()=>f,[f]),g.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);let p=t.a(n,o.onTriggerChange);return(0,_.jsx)(M,{asChild:!0,...d,children:(0,_.jsx)(K,{id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":r.open?o.contentId:void 0,"data-state":X(r.open),...e,ref:p,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:a.t(e.onPointerMove,$(t=>{s.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:a.t(e.onPointerLeave,$(e=>{f();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,o=t[i?`left`:`right`],c=t[i?`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:a.t(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||s.searchRef.current!==``&&t.key===` `||re[i.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),Ee=`MenuSubContent`,De=g.forwardRef(y(function(e,n){let r=P(F,e.__scopeMenu),{forceMount:i=r.forceMount,align:s=`start`,...c}=e,l=k(F,e.__scopeMenu),u=A(F,e.__scopeMenu),d=Ce(Ee,e.__scopeMenu),f=g.useRef(null),p=t.a(n,f);return(0,_.jsx)(w.Provider,{scope:e.__scopeMenu,children:(0,_.jsx)(o.t,{present:i||l.open,children:(0,_.jsx)(w.Slot,{scope:e.__scopeMenu,children:(0,_.jsx)(B,{id:d.contentId,"aria-labelledby":d.triggerId,...c,ref:p,align:s,side:u.dir===ee.RTL?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:a.t(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:a.t(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:a.t(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=S[u.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function X(e){return e?`open`:`closed`}y(X,`getOpenState`);function Z(e){return e===`indeterminate`}y(Z,`isIndeterminate`);function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}y(Q,`getCheckedState`);function Oe(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}y(Oe,`focusFirst`);function ke(e,t){return e.map((n,r)=>e[(t+r)%e.length])}y(ke,`wrapArray`);function Ae(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=ke(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}y(Ae,`getNextMatch`);function je(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}y(je,`isPointInPolygon`);function Me(e,t){return t?je({x:e.clientX,y:e.clientY},t):!1}y(Me,`isPointerInGraceArea`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}y($,`whenMouse`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return me}});
|
package/dist/dist-Bvfb4y_L.mjs
DELETED
|
@@ -1,100 +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-use-effect-event@0.0.5+c841d34b494ec30a/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = t.useEffectEvent, a = t.useInsertionEffect;
|
|
8
|
-
function o(n) {
|
|
9
|
-
if (typeof i == "function") return i(n);
|
|
10
|
-
let r = t.useRef(() => {
|
|
11
|
-
throw Error("Cannot call an event handler while rendering.");
|
|
12
|
-
});
|
|
13
|
-
return typeof a == "function" ? a(() => {
|
|
14
|
-
r.current = n;
|
|
15
|
-
}) : e(() => {
|
|
16
|
-
r.current = n;
|
|
17
|
-
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
18
|
-
}
|
|
19
|
-
r(o, "useEffectEvent");
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region ../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.3.0+c841d34b494ec30a/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
22
|
-
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
23
|
-
value: t,
|
|
24
|
-
configurable: !0
|
|
25
|
-
}), l = t.useInsertionEffect || e;
|
|
26
|
-
function u({ prop: e, defaultProp: n, onChange: r = /* @__PURE__ */ c(() => {}, "onChange"), caller: i }) {
|
|
27
|
-
let [a, o, s] = d({
|
|
28
|
-
defaultProp: n,
|
|
29
|
-
onChange: r
|
|
30
|
-
}), l = e !== void 0;
|
|
31
|
-
return [l ? e : a, t.useCallback((t) => {
|
|
32
|
-
if (l) {
|
|
33
|
-
let n = f(t) ? t(e) : t;
|
|
34
|
-
n !== e && s.current?.(n);
|
|
35
|
-
} else o(t);
|
|
36
|
-
}, [
|
|
37
|
-
l,
|
|
38
|
-
e,
|
|
39
|
-
o,
|
|
40
|
-
s
|
|
41
|
-
])];
|
|
42
|
-
}
|
|
43
|
-
c(u, "useControllableState");
|
|
44
|
-
function d({ defaultProp: e, onChange: n }) {
|
|
45
|
-
let [r, i] = t.useState(e), a = t.useRef(r), o = t.useRef(n);
|
|
46
|
-
return l(() => {
|
|
47
|
-
o.current = n;
|
|
48
|
-
}, [n]), t.useEffect(() => {
|
|
49
|
-
a.current !== r && (o.current?.(r), a.current = r);
|
|
50
|
-
}, [r, a]), [
|
|
51
|
-
r,
|
|
52
|
-
i,
|
|
53
|
-
o
|
|
54
|
-
];
|
|
55
|
-
}
|
|
56
|
-
c(d, "useUncontrolledState");
|
|
57
|
-
function f(e) {
|
|
58
|
-
return typeof e == "function";
|
|
59
|
-
}
|
|
60
|
-
c(f, "isFunction");
|
|
61
|
-
var p = Symbol("RADIX:SYNC_STATE");
|
|
62
|
-
function m(e, n, r, i) {
|
|
63
|
-
let { prop: a, defaultProp: s, onChange: c, caller: l } = n, u = a !== void 0, d = o(c), f = [{
|
|
64
|
-
...r,
|
|
65
|
-
state: s
|
|
66
|
-
}];
|
|
67
|
-
i && f.push(i);
|
|
68
|
-
let [m, h] = t.useReducer((t, n) => {
|
|
69
|
-
if (n.type === p) return {
|
|
70
|
-
...t,
|
|
71
|
-
state: n.state
|
|
72
|
-
};
|
|
73
|
-
let r = e(t, n);
|
|
74
|
-
return u && !Object.is(r.state, t.state) && d(r.state), r;
|
|
75
|
-
}, ...f), g = m.state, _ = t.useRef(g);
|
|
76
|
-
t.useEffect(() => {
|
|
77
|
-
_.current !== g && (_.current = g, u || d(g));
|
|
78
|
-
}, [
|
|
79
|
-
g,
|
|
80
|
-
_,
|
|
81
|
-
u
|
|
82
|
-
]);
|
|
83
|
-
let v = t.useMemo(() => a === void 0 ? m : {
|
|
84
|
-
...m,
|
|
85
|
-
state: a
|
|
86
|
-
}, [m, a]);
|
|
87
|
-
return t.useEffect(() => {
|
|
88
|
-
u && !Object.is(a, m.state) && h({
|
|
89
|
-
type: p,
|
|
90
|
-
state: a
|
|
91
|
-
});
|
|
92
|
-
}, [
|
|
93
|
-
a,
|
|
94
|
-
m.state,
|
|
95
|
-
u
|
|
96
|
-
]), [v, h];
|
|
97
|
-
}
|
|
98
|
-
c(m, "useControllableStateReducer");
|
|
99
|
-
//#endregion
|
|
100
|
-
export { u as t };
|
package/dist/dist-C8Pm6LRc.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.useId||(()=>void 0),o=0;function s(e){let[r,i]=n.useState(a());return t.t(()=>{e||i(e=>e??String(o++))},[e]),e||(r?`radix-${r}`:``)}i(s,`useId`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-CGgemr2V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js");let t=require("react");t=e.r(t,1);var n=globalThis?.document?t.useLayoutEffect:()=>{};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
package/dist/dist-CPAF050o.mjs
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../node_modules/.bun/@radix-ui+react-context@1.3.0+c841d34b494ec30a/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
|
-
//#endregion
|
|
90
|
-
export { a as t };
|
package/dist/dist-CS572Be42.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/@radix-ui+number@1.1.3/node_modules/@radix-ui/number/dist/index.mjs
|
|
2
|
-
var e = Object.defineProperty, t = (t, n) => e(t, "name", {
|
|
3
|
-
value: n,
|
|
4
|
-
configurable: !0
|
|
5
|
-
});
|
|
6
|
-
function n(e, [t, n]) {
|
|
7
|
-
return Math.min(n, Math.max(t, e));
|
|
8
|
-
}
|
|
9
|
-
t(n, "clamp");
|
|
10
|
-
//#endregion
|
|
11
|
-
export { n as t };
|