@gv-tech/ui-web 2.29.2 → 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 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +1 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
-
import { t } from "./dist-B76UOZbx.mjs";
|
|
3
|
-
import { t as n } from "./dist-COqM3IM6.mjs";
|
|
4
|
-
import { t as r } from "./dist-B7Ph9-T6.mjs";
|
|
5
|
-
import { a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y } from "./dist-fzmUl3YX.mjs";
|
|
6
|
-
import { t as b } from "./dist-DKI-XYwI.mjs";
|
|
7
|
-
import { CheckIcon as x, ChevronRightIcon as S } from "lucide-react";
|
|
8
|
-
import * as C from "react";
|
|
9
|
-
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
10
|
-
// ../../node_modules/.bun/@radix-ui+react-context-menu@2.4.1+2b23df507bdda662/node_modules/@radix-ui/react-context-menu/dist/index.mjs
|
|
11
|
-
var ee = Object.defineProperty, D = (e, t) => ee(e, "name", {
|
|
12
|
-
value: t,
|
|
13
|
-
configurable: !0
|
|
14
|
-
}), O = "ContextMenu", [k, te] = n(O, [c]), A = c(), [j, M] = k(O), N = /* @__PURE__ */ D((e) => {
|
|
15
|
-
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, dir: a, modal: o = !0 } = e, s = C.useRef(!1), [c, l] = b({
|
|
16
|
-
prop: i,
|
|
17
|
-
defaultProp: !1,
|
|
18
|
-
onChange: r,
|
|
19
|
-
caller: O
|
|
20
|
-
}), u = A(t);
|
|
21
|
-
return /* @__PURE__ */ T(j, {
|
|
22
|
-
scope: t,
|
|
23
|
-
open: c,
|
|
24
|
-
onOpenChange: l,
|
|
25
|
-
modal: o,
|
|
26
|
-
hasInteractedRef: s,
|
|
27
|
-
children: /* @__PURE__ */ T(v, {
|
|
28
|
-
...u,
|
|
29
|
-
dir: a,
|
|
30
|
-
open: c,
|
|
31
|
-
onOpenChange: l,
|
|
32
|
-
modal: o,
|
|
33
|
-
children: n
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
}, "ContextMenu"), P = "ContextMenuTrigger", F = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, n) {
|
|
37
|
-
let { __scopeContextMenu: i, disabled: a = !1, ...o } = e, s = M(P, i), c = A(i), [l, u] = C.useState({
|
|
38
|
-
x: 0,
|
|
39
|
-
y: 0
|
|
40
|
-
}), d = C.useMemo(() => ({ current: { getBoundingClientRect: /* @__PURE__ */ D(() => DOMRect.fromRect({
|
|
41
|
-
width: 0,
|
|
42
|
-
height: 0,
|
|
43
|
-
...l
|
|
44
|
-
}), "getBoundingClientRect") } }), [l]), f = C.useRef(0), m = C.useCallback(() => window.clearTimeout(f.current), []), h = /* @__PURE__ */ D((e) => {
|
|
45
|
-
s.hasInteractedRef.current = !0, u({
|
|
46
|
-
x: e.clientX,
|
|
47
|
-
y: e.clientY
|
|
48
|
-
}), s.onOpenChange(!0);
|
|
49
|
-
}, "handleOpen");
|
|
50
|
-
return C.useEffect(() => m, [m]), C.useEffect(() => void (a && m()), [a, m]), /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(p, {
|
|
51
|
-
...c,
|
|
52
|
-
virtualRef: d
|
|
53
|
-
}), /* @__PURE__ */ T(r.span, {
|
|
54
|
-
"data-state": s.open ? "open" : "closed",
|
|
55
|
-
"data-disabled": a ? "" : void 0,
|
|
56
|
-
...o,
|
|
57
|
-
ref: n,
|
|
58
|
-
style: {
|
|
59
|
-
WebkitTouchCallout: "none",
|
|
60
|
-
...e.style
|
|
61
|
-
},
|
|
62
|
-
onContextMenu: a ? e.onContextMenu : t(e.onContextMenu, (e) => {
|
|
63
|
-
m(), h(e), e.preventDefault();
|
|
64
|
-
}),
|
|
65
|
-
onPointerDown: a ? e.onPointerDown : t(e.onPointerDown, X((e) => {
|
|
66
|
-
m(), s.open && s.onOpenChange(!1), f.current = window.setTimeout(() => h(e), 700);
|
|
67
|
-
})),
|
|
68
|
-
onPointerMove: a ? e.onPointerMove : t(e.onPointerMove, X(m)),
|
|
69
|
-
onPointerCancel: a ? e.onPointerCancel : t(e.onPointerCancel, X(m)),
|
|
70
|
-
onPointerUp: a ? e.onPointerUp : t(e.onPointerUp, X(m))
|
|
71
|
-
})] });
|
|
72
|
-
}, "ContextMenuTrigger")), I = /* @__PURE__ */ D((e) => {
|
|
73
|
-
let { __scopeContextMenu: t, ...n } = e, r = A(t);
|
|
74
|
-
return /* @__PURE__ */ T(d, {
|
|
75
|
-
...r,
|
|
76
|
-
...n
|
|
77
|
-
});
|
|
78
|
-
}, "ContextMenuPortal"), L = "ContextMenuContent", R = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
79
|
-
let { __scopeContextMenu: n, ...r } = e, i = M(L, n), a = A(n), o = C.useRef(!1);
|
|
80
|
-
return /* @__PURE__ */ T(u, {
|
|
81
|
-
...a,
|
|
82
|
-
side: "right",
|
|
83
|
-
sideOffset: 2,
|
|
84
|
-
align: "start",
|
|
85
|
-
...r,
|
|
86
|
-
ref: t,
|
|
87
|
-
onCloseAutoFocus: (t) => {
|
|
88
|
-
e.onCloseAutoFocus?.(t), !t.defaultPrevented && o.current && t.preventDefault(), o.current = !1;
|
|
89
|
-
},
|
|
90
|
-
onInteractOutside: (t) => {
|
|
91
|
-
e.onInteractOutside?.(t), !t.defaultPrevented && !i.modal && (o.current = !0);
|
|
92
|
-
},
|
|
93
|
-
style: {
|
|
94
|
-
...e.style,
|
|
95
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
96
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
97
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
98
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
99
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}, "ContextMenuContent")), z = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
103
|
-
let { __scopeContextMenu: n, ...r } = e, a = A(n);
|
|
104
|
-
return /* @__PURE__ */ T(i, {
|
|
105
|
-
...a,
|
|
106
|
-
...r,
|
|
107
|
-
ref: t
|
|
108
|
-
});
|
|
109
|
-
}, "ContextMenuGroup")), B = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
110
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
111
|
-
return /* @__PURE__ */ T(a, {
|
|
112
|
-
...i,
|
|
113
|
-
...r,
|
|
114
|
-
ref: t
|
|
115
|
-
});
|
|
116
|
-
}, "ContextMenuLabel")), V = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
117
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
118
|
-
return /* @__PURE__ */ T(m, {
|
|
119
|
-
...i,
|
|
120
|
-
...r,
|
|
121
|
-
ref: t
|
|
122
|
-
});
|
|
123
|
-
}, "ContextMenuItem")), H = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
124
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
125
|
-
return /* @__PURE__ */ T(g, {
|
|
126
|
-
...i,
|
|
127
|
-
...r,
|
|
128
|
-
ref: t
|
|
129
|
-
});
|
|
130
|
-
}, "ContextMenuCheckboxItem")), U = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
131
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
132
|
-
return /* @__PURE__ */ T(y, {
|
|
133
|
-
...i,
|
|
134
|
-
...r,
|
|
135
|
-
ref: t
|
|
136
|
-
});
|
|
137
|
-
}, "ContextMenuRadioGroup")), W = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
138
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
139
|
-
return /* @__PURE__ */ T(o, {
|
|
140
|
-
...i,
|
|
141
|
-
...r,
|
|
142
|
-
ref: t
|
|
143
|
-
});
|
|
144
|
-
}, "ContextMenuRadioItem")), G = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
145
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
146
|
-
return /* @__PURE__ */ T(_, {
|
|
147
|
-
...i,
|
|
148
|
-
...r,
|
|
149
|
-
ref: t
|
|
150
|
-
});
|
|
151
|
-
}, "ContextMenuItemIndicator")), ne = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
152
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
153
|
-
return /* @__PURE__ */ T(s, {
|
|
154
|
-
...i,
|
|
155
|
-
...r,
|
|
156
|
-
ref: t
|
|
157
|
-
});
|
|
158
|
-
}, "ContextMenuSeparator")), K = "ContextMenuSub", q = /* @__PURE__ */ D((e) => {
|
|
159
|
-
let { __scopeContextMenu: t, children: n, onOpenChange: r, open: i, defaultOpen: a } = e, o = A(t), [s, c] = b({
|
|
160
|
-
prop: i,
|
|
161
|
-
defaultProp: a ?? !1,
|
|
162
|
-
onChange: r,
|
|
163
|
-
caller: K
|
|
164
|
-
});
|
|
165
|
-
return /* @__PURE__ */ T(h, {
|
|
166
|
-
...o,
|
|
167
|
-
open: s,
|
|
168
|
-
onOpenChange: c,
|
|
169
|
-
children: n
|
|
170
|
-
});
|
|
171
|
-
}, "ContextMenuSub"), J = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
172
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
173
|
-
return /* @__PURE__ */ T(l, {
|
|
174
|
-
...i,
|
|
175
|
-
...r,
|
|
176
|
-
ref: t
|
|
177
|
-
});
|
|
178
|
-
}, "ContextMenuSubTrigger")), Y = /* @__PURE__ */ C.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
179
|
-
let { __scopeContextMenu: n, ...r } = e, i = A(n);
|
|
180
|
-
return /* @__PURE__ */ T(f, {
|
|
181
|
-
...i,
|
|
182
|
-
...r,
|
|
183
|
-
ref: t,
|
|
184
|
-
style: {
|
|
185
|
-
...e.style,
|
|
186
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
187
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
188
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
189
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
190
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}, "ContextMenuSubContent"));
|
|
194
|
-
function X(e) {
|
|
195
|
-
return (t) => t.pointerType === "mouse" ? void 0 : e(t);
|
|
196
|
-
}
|
|
197
|
-
D(X, "whenTouchOrPen");
|
|
198
|
-
// src/context-menu.tsx
|
|
199
|
-
function Z({ ...e }) {
|
|
200
|
-
return /* @__PURE__ */ T(N, {
|
|
201
|
-
"data-slot": "context-menu",
|
|
202
|
-
...e
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function Q({ className: t, ...n }) {
|
|
206
|
-
return /* @__PURE__ */ T(F, {
|
|
207
|
-
"data-slot": "context-menu-trigger",
|
|
208
|
-
className: e("select-none", t),
|
|
209
|
-
...n
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
function re({ ...e }) {
|
|
213
|
-
return /* @__PURE__ */ T(z, {
|
|
214
|
-
"data-slot": "context-menu-group",
|
|
215
|
-
...e
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
function ie({ ...e }) {
|
|
219
|
-
return /* @__PURE__ */ T(I, {
|
|
220
|
-
"data-slot": "context-menu-portal",
|
|
221
|
-
...e
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function ae({ ...e }) {
|
|
225
|
-
return /* @__PURE__ */ T(q, {
|
|
226
|
-
"data-slot": "context-menu-sub",
|
|
227
|
-
...e
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
function oe({ ...e }) {
|
|
231
|
-
return /* @__PURE__ */ T(U, {
|
|
232
|
-
"data-slot": "context-menu-radio-group",
|
|
233
|
-
...e
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
function $({ className: t, ...n }) {
|
|
237
|
-
return /* @__PURE__ */ T(I, { children: /* @__PURE__ */ T(R, {
|
|
238
|
-
"data-slot": "context-menu-content",
|
|
239
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100", t),
|
|
240
|
-
...n
|
|
241
|
-
}) });
|
|
242
|
-
}
|
|
243
|
-
function se({ className: t, inset: n, variant: r = "default", ...i }) {
|
|
244
|
-
return /* @__PURE__ */ T(V, {
|
|
245
|
-
"data-slot": "context-menu-item",
|
|
246
|
-
"data-inset": n,
|
|
247
|
-
"data-variant": r,
|
|
248
|
-
className: e("group/context-menu-item focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
249
|
-
...i
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
function ce({ className: t, inset: n, children: r, ...i }) {
|
|
253
|
-
return /* @__PURE__ */ E(J, {
|
|
254
|
-
"data-slot": "context-menu-sub-trigger",
|
|
255
|
-
"data-inset": n,
|
|
256
|
-
className: e("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
257
|
-
...i,
|
|
258
|
-
children: [r, /* @__PURE__ */ T(S, { className: "ms-auto rtl:rotate-180" })]
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
function le({ className: t, ...n }) {
|
|
262
|
-
return /* @__PURE__ */ T(Y, {
|
|
263
|
-
"data-slot": "context-menu-sub-content",
|
|
264
|
-
className: e("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg duration-100", t),
|
|
265
|
-
...n
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
function ue({ className: t, children: n, checked: r, inset: i, ...a }) {
|
|
269
|
-
return /* @__PURE__ */ E(H, {
|
|
270
|
-
"data-slot": "context-menu-checkbox-item",
|
|
271
|
-
"data-inset": i,
|
|
272
|
-
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
273
|
-
checked: r,
|
|
274
|
-
...a,
|
|
275
|
-
children: [/* @__PURE__ */ T("span", {
|
|
276
|
-
className: "pointer-events-none absolute end-2",
|
|
277
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(x, {}) })
|
|
278
|
-
}), n]
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
function de({ className: t, children: n, inset: r, ...i }) {
|
|
282
|
-
return /* @__PURE__ */ E(W, {
|
|
283
|
-
"data-slot": "context-menu-radio-item",
|
|
284
|
-
"data-inset": r,
|
|
285
|
-
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
286
|
-
...i,
|
|
287
|
-
children: [/* @__PURE__ */ T("span", {
|
|
288
|
-
className: "pointer-events-none absolute end-2",
|
|
289
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(x, {}) })
|
|
290
|
-
}), n]
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
function fe({ className: t, inset: n, ...r }) {
|
|
294
|
-
return /* @__PURE__ */ T(B, {
|
|
295
|
-
"data-slot": "context-menu-label",
|
|
296
|
-
"data-inset": n,
|
|
297
|
-
className: e("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", t),
|
|
298
|
-
...r
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
function pe({ className: t, ...n }) {
|
|
302
|
-
return /* @__PURE__ */ T(ne, {
|
|
303
|
-
"data-slot": "context-menu-separator",
|
|
304
|
-
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
305
|
-
...n
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function me({ className: t, ...n }) {
|
|
309
|
-
return /* @__PURE__ */ T("span", {
|
|
310
|
-
"data-slot": "context-menu-shortcut",
|
|
311
|
-
className: e("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
|
|
312
|
-
...n
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
export { se as a, oe as c, me as d, ae as f, Q as h, re as i, de as l, ce as m, ue as n, fe as o, le as p, $ as r, ie as s, Z as t, pe as u };
|
package/dist/dist-7YyzJonC.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DhubV_gU.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-use-size@1.1.5+0ac650c021fb1b59/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
});
|
|
8
|
-
function i(n) {
|
|
9
|
-
let [r, i] = t.useState(void 0);
|
|
10
|
-
return e(() => {
|
|
11
|
-
if (n) {
|
|
12
|
-
i({
|
|
13
|
-
width: n.offsetWidth,
|
|
14
|
-
height: n.offsetHeight
|
|
15
|
-
});
|
|
16
|
-
let e = 0, t = new ResizeObserver((t) => {
|
|
17
|
-
if (!Array.isArray(t) || !t.length) return;
|
|
18
|
-
let r = t[0];
|
|
19
|
-
window.cancelAnimationFrame(e), e = window.requestAnimationFrame(() => {
|
|
20
|
-
let e, t;
|
|
21
|
-
if ("borderBoxSize" in r) {
|
|
22
|
-
let n = r.borderBoxSize, i = Array.isArray(n) ? n[0] : n;
|
|
23
|
-
e = i.inlineSize, t = i.blockSize;
|
|
24
|
-
} else e = n.offsetWidth, t = n.offsetHeight;
|
|
25
|
-
i({
|
|
26
|
-
width: e,
|
|
27
|
-
height: t
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
return t.observe(n, { box: "border-box" }), () => {
|
|
32
|
-
window.cancelAnimationFrame(e), t.unobserve(n);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
i(void 0);
|
|
36
|
-
}, [n]), r;
|
|
37
|
-
}
|
|
38
|
-
r(i, "useSize");
|
|
39
|
-
export { i as t };
|
package/dist/dist-AlmToDtO.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DhubV_gU.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.5+0ac650c021fb1b59/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = t.useInsertionEffect;
|
|
8
|
-
function a(n) {
|
|
9
|
-
let r = t.useRef(n);
|
|
10
|
-
return typeof i == "function" ? i(() => {
|
|
11
|
-
r.current = n;
|
|
12
|
-
}) : e(() => {
|
|
13
|
-
r.current = n;
|
|
14
|
-
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
15
|
-
}
|
|
16
|
-
r(a, "useCallbackRef");
|
|
17
|
-
export { a as t };
|
package/dist/dist-B76UOZbx.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/.bun/@radix-ui+primitive@1.2.0/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
2
|
-
var e = Object.defineProperty, t = (t, n) => e(t, "name", {
|
|
3
|
-
value: n,
|
|
4
|
-
configurable: !0
|
|
5
|
-
}), n = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6
|
-
function r(e, n, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
7
|
-
return /* @__PURE__ */ t(function(t) {
|
|
8
|
-
if (e?.(t), r === !1 || !t || !t.defaultPrevented) return n?.(t);
|
|
9
|
-
}, "handleEvent");
|
|
10
|
-
}
|
|
11
|
-
t(r, "composeEventHandlers");
|
|
12
|
-
function i(e) {
|
|
13
|
-
if (!n) throw Error("Cannot access window outside of the DOM");
|
|
14
|
-
return e?.ownerDocument?.defaultView ?? window;
|
|
15
|
-
}
|
|
16
|
-
t(i, "getOwnerWindow");
|
|
17
|
-
function a(e) {
|
|
18
|
-
if (!n) throw Error("Cannot access document outside of the DOM");
|
|
19
|
-
return e?.ownerDocument ?? document;
|
|
20
|
-
}
|
|
21
|
-
t(a, "getOwnerDocument");
|
|
22
|
-
function o(e, t = !1) {
|
|
23
|
-
let { activeElement: n } = a(e);
|
|
24
|
-
if (!n?.nodeName) return null;
|
|
25
|
-
if (s(n) && n.contentDocument) return o(n.contentDocument.body, t);
|
|
26
|
-
if (t) {
|
|
27
|
-
let e = n.getAttribute("aria-activedescendant");
|
|
28
|
-
if (e) {
|
|
29
|
-
let t = a(n).getElementById(e);
|
|
30
|
-
if (t) return t;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return n;
|
|
34
|
-
}
|
|
35
|
-
t(o, "getActiveElement");
|
|
36
|
-
function s(e) {
|
|
37
|
-
return e.tagName === "IFRAME";
|
|
38
|
-
}
|
|
39
|
-
t(s, "isFrame");
|
|
40
|
-
export { r as t };
|
package/dist/dist-B7Ph9-T6.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./dist-C516Vwxy.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
import * as n from "react-dom";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
// ../../node_modules/.bun/@radix-ui+react-primitive@2.2.0+2b23df507bdda662/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
-
var i = Object.defineProperty, a = (e, t) => i(e, "name", {
|
|
7
|
-
value: t,
|
|
8
|
-
configurable: !0
|
|
9
|
-
}), o = [
|
|
10
|
-
"a",
|
|
11
|
-
"button",
|
|
12
|
-
"div",
|
|
13
|
-
"form",
|
|
14
|
-
"h2",
|
|
15
|
-
"h3",
|
|
16
|
-
"img",
|
|
17
|
-
"input",
|
|
18
|
-
"label",
|
|
19
|
-
"li",
|
|
20
|
-
"nav",
|
|
21
|
-
"ol",
|
|
22
|
-
"p",
|
|
23
|
-
"select",
|
|
24
|
-
"span",
|
|
25
|
-
"svg",
|
|
26
|
-
"ul"
|
|
27
|
-
].reduce((n, i) => {
|
|
28
|
-
let a = e(`Primitive.${i}`), o = t.forwardRef((e, t) => {
|
|
29
|
-
let { asChild: n, ...o } = e, s = n ? a : i;
|
|
30
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ r(s, {
|
|
31
|
-
...o,
|
|
32
|
-
ref: t
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
return o.displayName = `Primitive.${i}`, {
|
|
36
|
-
...n,
|
|
37
|
-
[i]: o
|
|
38
|
-
};
|
|
39
|
-
}, {});
|
|
40
|
-
function s(e, t) {
|
|
41
|
-
e && n.flushSync(() => e.dispatchEvent(t));
|
|
42
|
-
}
|
|
43
|
-
a(s, "dispatchDiscreteCustomEvent");
|
|
44
|
-
export { s as n, o as t };
|
package/dist/dist-B7jnFMko.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js");let t=require("react"),n=e.r(t,1);t=e.r(t);var r=globalThis?.document?n.useLayoutEffect:()=>{};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
package/dist/dist-BOiFyvyS.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// ../../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
|
-
export { n as t };
|
package/dist/dist-BQkDLAY7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DZiOPWLp.js"),n=require("./dist-Co_xSt6d.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DW2ltK5-.js"),a=require("./dist-RXrZgzkO.js"),o=require("./dist-CBlqVBTk.js"),s=require("./dist-pqMcQ1Nk.js"),c=require("./dist-zmnQp5Xf.js"),l=require("./dist-DdAeWIwf.js"),u=require("./dist-B7jnFMko.js");let d=require("react"),f=e.r(d,1);d=e.r(d);let p=require("react/jsx-runtime");var m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0}),g=!1;function _(){let[e,t]=f.useState(g);return f.useEffect(()=>{g||(g=!0,t(!0))},[]),e}h(_,`useIsHydrated`);var v=f.useSyncExternalStore;function y(){return()=>{}}h(y,`subscribe`);function b(){return v(y,()=>!0,()=>!1)}h(b,`useIsHydratedModern`);var x=typeof v==`function`?b:_,S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0}),w=`rovingFocusGroup.onEntryFocus`,T={bubbles:!1,cancelable:!0},E=`RovingFocusGroup`,[D,O,k]=n.t(E),[A,j]=i.t(E,[k]),M={Vertical:`vertical`,Horizontal:`horizontal`},N={LTR:`ltr`,RTL:`rtl`},[P,F]=A(E),I=f.forwardRef(C(function(e,t){return(0,p.jsx)(D.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(D.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(L,{...e,ref:t})})})},`RovingFocusGroup`)),L=f.forwardRef(C(function(e,n){let{__scopeRovingFocusGroup:i,orientation:a,loop:u=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:_,preventScrollOnEntryFocus:v=!1,...y}=e,b=f.useRef(null),x=r.a(n,b),S=l.n(d),[C,D]=c.t({prop:m,defaultProp:h??null,onChange:g,caller:E}),[k,A]=f.useState(!1),j=s.t(_),M=O(i),N=f.useRef(!1),[F,I]=f.useState(0);return f.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(w,j),()=>e.removeEventListener(w,j)},[j]),(0,p.jsx)(P,{scope:i,orientation:a,dir:S,loop:u,currentTabStopId:C,onItemFocus:f.useCallback(e=>D(e),[D]),onItemShiftTab:f.useCallback(()=>A(!0),[]),onFocusableItemAdd:f.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:f.useCallback(()=>I(e=>e-1),[]),children:(0,p.jsx)(o.t.div,{tabIndex:k||F===0?-1:0,"data-orientation":a,...y,ref:x,style:{outline:`none`,...e.style},onMouseDown:t.t(e.onMouseDown,()=>{N.current=!0}),onFocus:t.t(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(w,T);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);U([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),v)}}N.current=!1}),onBlur:t.t(e.onBlur,()=>A(!1))})})},`RovingFocusGroupImpl`)),R=`RovingFocusGroupItem`,z=f.forwardRef(C(function(e,n){let{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:l,...d}=e,m=a.t(),h=c||m,g=F(R,r),_=g.currentTabStopId===h,v=O(r),{onFocusableItemAdd:y,onFocusableItemRemove:b,currentTabStopId:S}=g,C=x();return u.t(()=>{if(C&&i)return y(),()=>b()},[C,i,y,b]),f.useEffect(()=>{if(!C&&i)return y(),()=>b()},[C,i,y,b]),(0,p.jsx)(D.ItemSlot,{scope:r,id:h,focusable:i,active:s,children:(0,p.jsx)(o.t.span,{tabIndex:_?0:-1,"data-orientation":g.orientation,...d,ref:n,onMouseDown:t.t(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:t.t(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:t.t(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=H(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?W(n,r+1):n.slice(r+1)}setTimeout(()=>U(n))}}),children:typeof l==`function`?l({isCurrentTabStop:_,hasTabStop:S!=null}):l})})},`RovingFocusGroupItem`)),B={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function V(e,t){return t===N.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}C(V,`getDirectionAwareKey`);function H(e,t,n){let r=V(e.key,n);if(!(t===M.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===M.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return B[r]}C(H,`getFocusIntent`);function U(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}C(U,`focusFirst`);function W(e,t){return e.map((n,r)=>e[(t+r)%e.length])}C(W,`wrapArray`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return I}});
|
package/dist/dist-Bal96K8t.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-B7jnFMko.js");let n=require("react"),r=e.r(n,1);n=e.r(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e){let[n,i]=r.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)}}i(void 0)},[e]),n}a(o,`useSize`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/dist/dist-Blgp9lfa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-B7jnFMko.js");let n=require("react"),r=e.r(n,1);n=e.r(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0});function o(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}a(o,`useStateMachine`);var s=a(e=>{let{present:t,children:n}=e,i=c(t),a=typeof n==`function`?n({present:i.isPresent}):r.Children.only(n),o=u(i.ref,f(a));return typeof n==`function`||i.isPresent?r.cloneElement(a,{ref:o}):null},`Presence`);function c(e){let[n,i]=r.useState(),s=r.useRef(null),c=r.useRef(e),l=r.useRef(`none`),u=r.useRef(void 0),[f,p]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return r.useEffect(()=>{f===`mounted`?(l.current=u.current??d(s.current),u.current=void 0):l.current=`none`},[f]),t.t(()=>{let t=s.current,n=c.current;if(n!==e){let r=l.current,i=d(t);e?(u.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(n){let e,t=n.ownerDocument.defaultView??window,r=a(r=>{let i=d(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(p(`ANIMATION_END`),!c.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},`handleAnimationEnd`),i=a(e=>{e.target===n&&(l.current=d(s.current))},`handleAnimationStart`);return n.addEventListener(`animationstart`,i),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,i),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}p(`ANIMATION_END`)},[n,p]),{isPresent:[`mounted`,`unmountSuspended`].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,u.current=d(t)}else s.current=null;i(e)},[])}}a(c,`usePresence`);function l(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}a(l,`setRef`);function u(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=l(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():l(n[e],null)}}},[])}a(u,`useStableComposedRefs`);function d(e){return e?.animationName||`none`}a(d,`getAnimationName`);function f(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)}a(f,`getElementRef`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-BnlI08Je.mjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DhubV_gU.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-presence@1.1.11+2b23df507bdda662/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
|
-
}
|
|
53
|
-
p("ANIMATION_END");
|
|
54
|
-
}, [a, p]), {
|
|
55
|
-
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
56
|
-
ref: t.useCallback((e) => {
|
|
57
|
-
if (e) {
|
|
58
|
-
let t = getComputedStyle(e);
|
|
59
|
-
s.current = t, d.current = l(t);
|
|
60
|
-
} else s.current = null;
|
|
61
|
-
o(e);
|
|
62
|
-
}, [])
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
r(o, "usePresence");
|
|
66
|
-
function s(e, t) {
|
|
67
|
-
if (typeof e == "function") return e(t);
|
|
68
|
-
e != null && (e.current = t);
|
|
69
|
-
}
|
|
70
|
-
r(s, "setRef");
|
|
71
|
-
function c(...e) {
|
|
72
|
-
let n = t.useRef(e);
|
|
73
|
-
return n.current = e, t.useCallback((e) => {
|
|
74
|
-
let t = n.current, r = !1, i = t.map((t) => {
|
|
75
|
-
let n = s(t, e);
|
|
76
|
-
return !r && typeof n == "function" && (r = !0), n;
|
|
77
|
-
});
|
|
78
|
-
if (r) return () => {
|
|
79
|
-
for (let e = 0; e < i.length; e++) {
|
|
80
|
-
let n = i[e];
|
|
81
|
-
typeof n == "function" ? n() : s(t[e], null);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}, []);
|
|
85
|
-
}
|
|
86
|
-
r(c, "useStableComposedRefs");
|
|
87
|
-
function l(e) {
|
|
88
|
-
return e?.animationName || "none";
|
|
89
|
-
}
|
|
90
|
-
r(l, "getAnimationName");
|
|
91
|
-
function u(e) {
|
|
92
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
93
|
-
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);
|
|
94
|
-
}
|
|
95
|
-
r(u, "getElementRef");
|
|
96
|
-
export { a as t };
|