@gv-tech/ui-web 2.19.0 → 2.21.0
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-Be1vGv6M.js +1 -0
- package/dist/accordion-DXnU0LgU.mjs +221 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +3 -259
- package/dist/alert-dialog-BXRY0Ghq.js +7 -0
- package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
- package/dist/alert-dialog.cjs +1 -7
- package/dist/alert-dialog.mjs +4 -171
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +35 -32
- package/dist/aspect-ratio-BP5HarYZ.js +1 -0
- package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +3 -43
- package/dist/avatar-klFl8Sqa.js +1 -0
- package/dist/avatar-vGm9JN1a.mjs +184 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +3 -205
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +21 -24
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +60 -68
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +40 -40
- package/dist/calendar-aIuSXzs7.js +1 -0
- package/dist/calendar-oitID53a.mjs +3154 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +4 -2976
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +42 -32
- package/dist/carousel-BjTSkVh9.js +1 -0
- package/dist/carousel-CENzZCXN.mjs +1178 -0
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +4 -1403
- package/dist/chart.cjs +4 -4
- package/dist/chart.d.ts +3 -35
- package/dist/chart.mjs +123 -182
- package/dist/checkbox-Bwq7mXA2.mjs +170 -0
- package/dist/checkbox-DzEO1q4R.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +3 -258
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +6 -7
- package/dist/command-D7hksKY6.js +1 -0
- package/dist/command-Ws_iF1hM.mjs +531 -0
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +3 -396
- package/dist/context-menu-DJbgNJ7N.js +1 -0
- package/dist/context-menu-fu39gePi.mjs +292 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +3 -328
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +50 -66
- package/dist/dist-0FXx-pUX.js +1 -0
- package/dist/dist-4A0ut6a8.mjs +10 -0
- package/dist/dist-ALQAoSGx.mjs +10 -0
- package/dist/dist-B4N_7Tps.js +1 -0
- package/dist/dist-B5776DvK.js +5 -0
- package/dist/dist-B57mzJP3.mjs +28 -0
- package/dist/dist-B5VmV2K7.js +1 -0
- package/dist/dist-BBRD-Qfb.js +1 -0
- package/dist/dist-BC_VB6JL.mjs +25 -0
- package/dist/dist-BKFtvTm8.mjs +6 -0
- package/dist/dist-BUS_s_6N.js +1 -0
- package/dist/dist-BVKPqhkg.js +1 -0
- package/dist/dist-Ba7mQG9D.mjs +117 -0
- package/dist/dist-BeFCyPgD.js +1 -0
- package/dist/dist-Bf4P28CV.js +1 -0
- package/dist/dist-BfFVoFJN.js +1 -0
- package/dist/dist-BhtQH_6Z.js +1 -0
- package/dist/dist-BmjFh8i_.mjs +5 -0
- package/dist/dist-BrCTkQXt.mjs +62 -0
- package/dist/dist-BxmpAHsT.mjs +219 -0
- package/dist/dist-C2ArLRnq.js +1 -0
- package/dist/dist-C2pRTcV_.mjs +62 -0
- package/dist/dist-C9wnUiS4.mjs +27 -0
- package/dist/dist-CIRItnqs.js +1 -0
- package/dist/dist-CL1DhkaL.js +1 -0
- package/dist/dist-CRe7xawr.js +1 -0
- package/dist/dist-CUFjt0cI.js +1 -0
- package/dist/dist-CaaGWewc.mjs +557 -0
- package/dist/dist-Ci2whnVp.js +1 -0
- package/dist/dist-CmBtqW5f.js +1 -0
- package/dist/dist-CsEsK2jW.js +1 -0
- package/dist/dist-CscAxhT8.js +1 -0
- package/dist/dist-CvtF5JdF.mjs +95 -0
- package/dist/dist-Cvwtowos.mjs +77 -0
- package/dist/dist-D2f83VMO.mjs +73 -0
- package/dist/dist-Dh_jWJh-.mjs +11 -0
- package/dist/dist-DikyKBU3.mjs +12 -0
- package/dist/dist-DmmUjo_P.js +1 -0
- package/dist/dist-DqvQ5UFr.mjs +38 -0
- package/dist/dist-FGQAMrhH.mjs +29 -0
- package/dist/dist-Jtk3jeb9.mjs +18 -0
- package/dist/dist-Kqk0oQYU.js +1 -0
- package/dist/dist-VI9bl_Wk.mjs +45 -0
- package/dist/dist-Z7lEV5Nx.mjs +1282 -0
- package/dist/dist-_Osar3kp.js +1 -0
- package/dist/dist-bDoR0CBU.mjs +112 -0
- package/dist/dist-cRjbOZRf.js +1 -0
- package/dist/dist-d_pecHgw.mjs +66 -0
- package/dist/dist-r36zVVcK.js +1 -0
- package/dist/dist-sRlXdzvf.mjs +152 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +48 -54
- package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
- package/dist/dropdown-menu-uGMnmGL-.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +3 -316
- package/dist/es2015-Cx0gpR1a.js +41 -0
- package/dist/es2015-a1b8kENC.mjs +701 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +76 -67
- package/dist/hover-card-DdIYJP-Q.mjs +167 -0
- package/dist/hover-card-Ua-2KlY-.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +3 -188
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -35
- package/dist/index.mjs +56 -296
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +14 -19
- package/dist/jsx-runtime-CN3qjQQx.js +6 -0
- package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
- package/dist/label-8YSUv4kt.js +1 -0
- package/dist/label-Bur66PVg.mjs +22 -0
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +3 -22
- package/dist/menubar-Bq1Sfbf5.js +1 -0
- package/dist/menubar-D2fY6zkQ.mjs +410 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +3 -473
- package/dist/navigation-menu-BuOakbgA.mjs +602 -0
- package/dist/navigation-menu-so6EvLAY.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +3 -673
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +63 -68
- package/dist/popover-BUADXRkO.mjs +201 -0
- package/dist/popover-nBrSPqHk.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +3 -242
- package/dist/progress-BTApMbqg.js +6 -0
- package/dist/progress-BbN-RNvs.mjs +81 -0
- package/dist/progress.cjs +1 -6
- package/dist/progress.mjs +3 -99
- package/dist/radio-group-C5oprOrt.mjs +193 -0
- package/dist/radio-group-FDXr6VLM.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +3 -253
- package/dist/resizable-ChdgCzzx.mjs +1534 -0
- package/dist/resizable-ztiFzq_y.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +3 -1990
- package/dist/scroll-area-3o0-cc3n.mjs +520 -0
- package/dist/scroll-area-DXZqIKXN.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +3 -546
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +71 -84
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +53 -63
- package/dist/select-B2qM503G.mjs +744 -0
- package/dist/select-BHCeW-MD.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +3 -908
- package/dist/separator-BZJ-SDvg.js +1 -0
- package/dist/separator-DJ_IwKUQ.mjs +31 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +3 -35
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +59 -66
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +13 -7
- package/dist/slider-CJJPQ0fH.mjs +366 -0
- package/dist/slider-DHccqrW2.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +3 -442
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.mjs +21 -24
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +81 -117
- package/dist/switch-BbcAUYjl.mjs +103 -0
- package/dist/switch-DZfRzgWs.js +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +3 -149
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +159 -155
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +58 -57
- package/dist/tabs-BEy0IIV0.js +1 -0
- package/dist/tabs-DqAKyl9T.mjs +136 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +3 -195
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +41 -42
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +12 -17
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.mjs +15 -7
- package/dist/theme-toggle-DKQmD-FO.js +1 -0
- package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +3 -8
- package/dist/toast-C84Cpidq.js +1 -0
- package/dist/toast-CQbUslcw.mjs +427 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +3 -494
- package/dist/toaster-BpcpNRz1.js +1 -0
- package/dist/toaster-i6giQYiq.mjs +126 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +3 -6
- package/dist/toggle-group-B2S7fkhA.mjs +155 -0
- package/dist/toggle-group-BNn6MNiJ.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +3 -170
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +19 -14
- package/dist/tooltip-CElrNodA.js +1 -0
- package/dist/tooltip-oKfTBTbv.mjs +364 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +3 -342
- package/dist/utils-BxDanjP7.js +1 -0
- package/dist/utils-yc5uc46c.mjs +11 -0
- package/package.json +2 -2
- package/src/chart.tsx +7 -7
- package/src/setupTests.ts +5 -4
- package/dist/index-0ioNhtNM.mjs +0 -10
- package/dist/index-3j-XAIXT.mjs +0 -55
- package/dist/index-B2XtpfGY.js +0 -1
- package/dist/index-B39Lzq0v.js +0 -1
- package/dist/index-B7n6fy75.js +0 -1
- package/dist/index-B8dxbSWX.js +0 -41
- package/dist/index-BGIK9FQF.js +0 -1
- package/dist/index-BZPx6jYI.mjs +0 -8
- package/dist/index-BoNjHhm4.js +0 -1
- package/dist/index-BtZvtDmp.js +0 -1
- package/dist/index-Bv7qrYW6.mjs +0 -180
- package/dist/index-ByiPJW53.js +0 -5
- package/dist/index-C0dlIQIi.js +0 -1
- package/dist/index-C1qb0595.mjs +0 -27
- package/dist/index-C7HEunrh.mjs +0 -15
- package/dist/index-C8ni3LLa.js +0 -1
- package/dist/index-CCKe-Mpx.mjs +0 -6
- package/dist/index-CD6_IrA-.mjs +0 -10
- package/dist/index-CRyCZJLa.mjs +0 -677
- package/dist/index-CVx1AgNG.mjs +0 -615
- package/dist/index-Ce5TOFAK.js +0 -1
- package/dist/index-CeSLNJ60.mjs +0 -32
- package/dist/index-CefEQe_4.js +0 -1
- package/dist/index-Cj5hzyBi.js +0 -1
- package/dist/index-Cjj_rUPu.js +0 -1
- package/dist/index-Cl3G0jzM.js +0 -1
- package/dist/index-CwfE56Ep.mjs +0 -1545
- package/dist/index-CwyAfCwY.js +0 -1
- package/dist/index-CzY-WZXL.js +0 -1
- package/dist/index-D2HnlO3y.js +0 -1
- package/dist/index-DFdF7K7v.mjs +0 -50
- package/dist/index-DIsg7zU7.js +0 -1
- package/dist/index-DKN_vhyX.mjs +0 -32
- package/dist/index-DLcqcWxM.mjs +0 -29
- package/dist/index-DSxf1gN6.mjs +0 -118
- package/dist/index-DYxWvftI.js +0 -1
- package/dist/index-DaILh3TV.mjs +0 -32
- package/dist/index-Dfzl8TxY.mjs +0 -136
- package/dist/index-Dko2XdTk.js +0 -1
- package/dist/index-DlY82G31.mjs +0 -245
- package/dist/index-DnFcfnA9.mjs +0 -13
- package/dist/index-IZ2gq03c.mjs +0 -68
- package/dist/index-K9FzbxYw.mjs +0 -93
- package/dist/index-Le8p9oP4.mjs +0 -60
- package/dist/index-MQ0c3ZX_.js +0 -1
- package/dist/index-_XxjJPRD.js +0 -1
- package/dist/index-_wdrnYim.js +0 -1
- package/dist/index-jv3B4mTd.js +0 -1
- package/dist/index-kaM0u2Q1.js +0 -1
- package/dist/index-p6xVFRb4.mjs +0 -52
- package/dist/index-rKs9bXHr.mjs +0 -6
- package/dist/index-vuPgkS0V.mjs +0 -70
- package/dist/jsx-runtime-nZSsnGb7.js +0 -6
- package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
- package/dist/theme-toggle-DXQGNfCe.js +0 -1
- package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
- package/dist/toaster-C_S9hnXa.js +0 -1
- package/dist/toaster-k5DnQSsh.mjs +0 -118
- package/dist/utils-DY6fhrgS.mjs +0 -12
- package/dist/utils-cdbZV8DZ.js +0 -1
package/dist/dialog.mjs
CHANGED
|
@@ -1,67 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
));
|
|
53
|
-
b.displayName = r?.displayName || "DialogTitle";
|
|
54
|
-
const h = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t.jsx(c, { ref: o, className: s("text-muted-foreground text-sm", a), ...e }));
|
|
55
|
-
h.displayName = c?.displayName || "DialogDescription";
|
|
56
|
-
export {
|
|
57
|
-
T as Dialog,
|
|
58
|
-
z as DialogClose,
|
|
59
|
-
D as DialogContent,
|
|
60
|
-
h as DialogDescription,
|
|
61
|
-
j as DialogFooter,
|
|
62
|
-
N as DialogHeader,
|
|
63
|
-
m as DialogOverlay,
|
|
64
|
-
y as DialogPortal,
|
|
65
|
-
b as DialogTitle,
|
|
66
|
-
k as DialogTrigger
|
|
67
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
4
|
+
import { t } from "./utils-yc5uc46c.mjs";
|
|
5
|
+
import { a as n, c as r, i, n as a, o, r as s, s as c, t as l } from "./dist-BxmpAHsT.mjs";
|
|
6
|
+
import * as u from "react";
|
|
7
|
+
import { X as d } from "lucide-react";
|
|
8
|
+
//#region src/dialog.tsx
|
|
9
|
+
var f = e(), p = o, m = r, h = n, g = l, _ = u.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, f.jsx)(i, {
|
|
10
|
+
ref: r,
|
|
11
|
+
className: t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", e),
|
|
12
|
+
...n
|
|
13
|
+
}));
|
|
14
|
+
_.displayName = i?.displayName || "DialogOverlay";
|
|
15
|
+
var v = u.forwardRef(({ className: e, children: n, ...r }, i) => /* @__PURE__ */ (0, f.jsxs)(h, { children: [/* @__PURE__ */ (0, f.jsx)(_, {}), /* @__PURE__ */ (0, f.jsxs)(a, {
|
|
16
|
+
ref: i,
|
|
17
|
+
className: t("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg", e),
|
|
18
|
+
...r,
|
|
19
|
+
children: [n, /* @__PURE__ */ (0, f.jsxs)(l, {
|
|
20
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
|
|
21
|
+
children: [/* @__PURE__ */ (0, f.jsx)(d, { className: "h-4 w-4" }), /* @__PURE__ */ (0, f.jsx)("span", {
|
|
22
|
+
className: "sr-only",
|
|
23
|
+
children: "Close"
|
|
24
|
+
})]
|
|
25
|
+
})]
|
|
26
|
+
})] }));
|
|
27
|
+
v.displayName = a?.displayName || "DialogContent";
|
|
28
|
+
var y = ({ className: e, ...n }) => /* @__PURE__ */ (0, f.jsx)("div", {
|
|
29
|
+
className: t("flex flex-col space-y-1.5 text-center sm:text-left", e),
|
|
30
|
+
...n
|
|
31
|
+
});
|
|
32
|
+
y.displayName = "DialogHeader";
|
|
33
|
+
var b = ({ className: e, ...n }) => /* @__PURE__ */ (0, f.jsx)("div", {
|
|
34
|
+
className: t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
35
|
+
...n
|
|
36
|
+
});
|
|
37
|
+
b.displayName = "DialogFooter";
|
|
38
|
+
var x = u.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, f.jsx)(c, {
|
|
39
|
+
ref: r,
|
|
40
|
+
className: t("text-lg leading-none font-semibold tracking-tight", e),
|
|
41
|
+
...n
|
|
42
|
+
}));
|
|
43
|
+
x.displayName = c?.displayName || "DialogTitle";
|
|
44
|
+
var S = u.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, f.jsx)(s, {
|
|
45
|
+
ref: r,
|
|
46
|
+
className: t("text-muted-foreground text-sm", e),
|
|
47
|
+
...n
|
|
48
|
+
}));
|
|
49
|
+
S.displayName = s?.displayName || "DialogDescription";
|
|
50
|
+
//#endregion
|
|
51
|
+
export { p as Dialog, g as DialogClose, v as DialogContent, S as DialogDescription, b as DialogFooter, y as DialogHeader, _ as DialogOverlay, h as DialogPortal, x as DialogTitle, m as DialogTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`);let t=require(`react`);t=e.i(t,1);function n(e){let n=t.useRef({value:e,previous:e});return t.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e.useRef(t);
|
|
5
|
+
return e.useEffect(() => {
|
|
6
|
+
n.current = t;
|
|
7
|
+
}), e.useMemo(() => (...e) => n.current?.(...e), []);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-Kqk0oQYU.js`),n=require(`./dist-CsEsK2jW.js`),r=require(`./dist-DmmUjo_P.js`),i=require(`./dist-Ci2whnVp.js`),a=require(`./dist-B5VmV2K7.js`),o=require(`./dist-CUFjt0cI.js`),s=require(`./dist-BeFCyPgD.js`),c=require(`./dist-cRjbOZRf.js`);let l=require(`react`);l=e.i(l,1);var u=e.t(),d=`rovingFocusGroup.onEntryFocus`,f={bubbles:!1,cancelable:!0},p=`RovingFocusGroup`,[m,h,g]=i.t(p),[_,v]=t.n(p,[g]),[y,b]=_(p),x=l.forwardRef((e,t)=>(0,u.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(S,{...e,ref:t})})}));x.displayName=p;var S=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:o,loop:m=!1,dir:g,currentTabStopId:_,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:S=!1,...C}=e,w=l.useRef(null),T=n.n(t,w),E=s.t(g),[D,k]=a.t({prop:_,defaultProp:v??null,onChange:b,caller:p}),[A,j]=l.useState(!1),M=c.t(x),N=h(i),P=l.useRef(!1),[F,I]=l.useState(0);return l.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(d,M),()=>e.removeEventListener(d,M)},[M]),(0,u.jsx)(y,{scope:i,orientation:o,dir:E,loop:m,currentTabStopId:D,onItemFocus:l.useCallback(e=>k(e),[k]),onItemShiftTab:l.useCallback(()=>j(!0),[]),onFocusableItemAdd:l.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>I(e=>e-1),[]),children:(0,u.jsx)(r.t.div,{tabIndex:A||F===0?-1:0,"data-orientation":o,...C,ref:T,style:{outline:`none`,...e.style},onMouseDown:r.r(e.onMouseDown,()=>{P.current=!0}),onFocus:r.r(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(d,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),S)}}P.current=!1}),onBlur:r.r(e.onBlur,()=>j(!1))})})}),C=`RovingFocusGroupItem`,w=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:c,...d}=e,f=o.t(),p=s||f,g=b(C,n),_=g.currentTabStopId===p,v=h(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:S}=g;return l.useEffect(()=>{if(i)return y(),()=>x()},[i,y,x]),(0,u.jsx)(m.ItemSlot,{scope:n,id:p,focusable:i,active:a,children:(0,u.jsx)(r.t.span,{tabIndex:_?0:-1,"data-orientation":g.orientation,...d,ref:t,onMouseDown:r.r(e.onMouseDown,e=>{i?g.onItemFocus(p):e.preventDefault()}),onFocus:r.r(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:r.r(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=D(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?k(n,r+1):n.slice(r+1)}setTimeout(()=>O(n))}}),children:typeof c==`function`?c({isCurrentTabStop:_,hasTabStop:S!=null}):c})})});w.displayName=C;var T={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function E(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function D(e,t,n){let r=E(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return T[r]}function O(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function k(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var A=x,j=w;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return j}});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-Kqk0oQYU.js`),n=require(`./dist-CsEsK2jW.js`),r=require(`./dist-DmmUjo_P.js`),i=require(`./dist-B5VmV2K7.js`),a=require(`./dist-_Osar3kp.js`),o=require(`./dist-CUFjt0cI.js`),s=require(`./dist-C2ArLRnq.js`),c=require(`./es2015-Cx0gpR1a.js`),l=require(`./dist-CL1DhkaL.js`);let u=require(`react`);u=e.i(u,1);var d=e.t(),f=`Dialog`,[p,m]=t.n(f),[h,g]=p(f),_=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=u.useRef(null),p=u.useRef(null),[m,g]=i.t({prop:r,defaultProp:a??!1,onChange:s,caller:f});return(0,d.jsx)(h,{scope:t,triggerRef:l,contentRef:p,contentId:o.t(),titleId:o.t(),descriptionId:o.t(),open:m,onOpenChange:g,onOpenToggle:u.useCallback(()=>g(e=>!e),[g]),modal:c,children:n})};_.displayName=f;var v=`DialogTrigger`,y=u.forwardRef((e,t)=>{let{__scopeDialog:i,...a}=e,o=g(v,i),s=n.n(t,o.triggerRef);return(0,d.jsx)(r.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":z(o.open),...a,ref:s,onClick:r.r(e.onClick,o.onOpenToggle)})});y.displayName=v;var b=`DialogPortal`,[x,S]=p(b,{forceMount:void 0}),C=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=g(b,t);return(0,d.jsx)(x,{scope:t,forceMount:n,children:u.Children.map(r,e=>(0,d.jsx)(a.t,{present:n||o.open,children:(0,d.jsx)(l.t,{asChild:!0,container:i,children:e})}))})};C.displayName=b;var w=`DialogOverlay`,T=u.forwardRef((e,t)=>{let n=S(w,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=g(w,e.__scopeDialog);return o.modal?(0,d.jsx)(a.t,{present:r||o.open,children:(0,d.jsx)(D,{...i,ref:t})}):null});T.displayName=w;var E=r.i(`DialogOverlay.RemoveScroll`),D=u.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=g(w,n);return(0,d.jsx)(c.n,{as:E,allowPinchZoom:!0,shards:[a.contentRef],children:(0,d.jsx)(r.t.div,{"data-state":z(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),O=`DialogContent`,k=u.forwardRef((e,t)=>{let n=S(O,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=g(O,e.__scopeDialog);return(0,d.jsx)(a.t,{present:r||o.open,children:o.modal?(0,d.jsx)(A,{...i,ref:t}):(0,d.jsx)(j,{...i,ref:t})})});k.displayName=O;var A=u.forwardRef((e,t)=>{let i=g(O,e.__scopeDialog),a=u.useRef(null),o=n.n(t,i.contentRef,a);return u.useEffect(()=>{let e=a.current;if(e)return c.t(e)},[]),(0,d.jsx)(M,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:r.r(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:r.r(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:r.r(e.onFocusOutside,e=>e.preventDefault())})}),j=u.forwardRef((e,t)=>{let n=g(O,e.__scopeDialog),r=u.useRef(!1),i=u.useRef(!1);return(0,d.jsx)(M,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),M=u.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,f=g(O,r),p=u.useRef(null),m=n.n(t,p);return c.r(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.i,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,d.jsx)(s.n,{role:`dialog`,id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":z(f.open),...l,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{titleId:f.titleId}),(0,d.jsx)(G,{contentRef:p,descriptionId:f.descriptionId})]})]})}),N=`DialogTitle`,P=u.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=g(N,n);return(0,d.jsx)(r.t.h2,{id:a.titleId,...i,ref:t})});P.displayName=N;var F=`DialogDescription`,I=u.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=g(F,n);return(0,d.jsx)(r.t.p,{id:a.descriptionId,...i,ref:t})});I.displayName=F;var L=`DialogClose`,R=u.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=g(L,n);return(0,d.jsx)(r.t.button,{type:`button`,...i,ref:t,onClick:r.r(e.onClick,()=>a.onOpenChange(!1))})});R.displayName=L;function z(e){return e?`open`:`closed`}var B=`DialogTitleWarning`,[V,H]=t.t(B,{contentName:O,titleName:N,docsSlug:`dialog`}),U=({titleId:e})=>{let t=H(B),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},W=`DialogDescriptionWarning`,G=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H(W).contentName}}.`;return u.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},K=_,q=y,J=C,Y=T,X=k,Z=P,Q=I,$=R;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return m}});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { r as t, t as n } from "./dist-bDoR0CBU.mjs";
|
|
3
|
+
import { t as r } from "./dist-VI9bl_Wk.mjs";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
//#region ../../node_modules/.bun/@radix-ui+react-toggle@1.1.10+2d3f272c3a65784a/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
6
|
+
var a = e(), o = "Toggle", s = i.forwardRef((e, i) => {
|
|
7
|
+
let { pressed: s, defaultPressed: c, onPressedChange: l, ...u } = e, [d, f] = r({
|
|
8
|
+
prop: s,
|
|
9
|
+
onChange: l,
|
|
10
|
+
defaultProp: c ?? !1,
|
|
11
|
+
caller: o
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ (0, a.jsx)(n.button, {
|
|
14
|
+
type: "button",
|
|
15
|
+
"aria-pressed": d,
|
|
16
|
+
"data-state": d ? "on" : "off",
|
|
17
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
18
|
+
...u,
|
|
19
|
+
ref: i,
|
|
20
|
+
onClick: t(e.onClick, () => {
|
|
21
|
+
e.disabled || f(!d);
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
s.displayName = o;
|
|
26
|
+
var c = s;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as n, c as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-CscAxhT8.js`);let n=require(`react`);n=e.i(n,1);var r=n.useInsertionEffect||t.t;function i({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){let[s,c,l]=a({defaultProp:t,onChange:r}),u=e!==void 0,d=u?e:s;{let t=n.useRef(e!==void 0);n.useEffect(()=>{let e=t.current;e!==u&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${u?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=u},[u,i])}return[d,n.useCallback(t=>{if(u){let n=o(t)?t(e):t;n!==e&&l.current?.(n)}else c(t)},[u,e,c,l])]}function a({defaultProp:e,onChange:t}){let[i,a]=n.useState(e),o=n.useRef(i),s=n.useRef(t);return r(()=>{s.current=t},[t]),n.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,a,s]}function o(e){return typeof e==`function`}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-Kqk0oQYU.js`),n=require(`./dist-CsEsK2jW.js`),r=require(`./dist-DmmUjo_P.js`),i=require(`./dist-Ci2whnVp.js`),a=require(`./dist-_Osar3kp.js`),o=require(`./dist-CUFjt0cI.js`),s=require(`./dist-BeFCyPgD.js`),c=require(`./dist-cRjbOZRf.js`),l=require(`./dist-C2ArLRnq.js`),u=require(`./es2015-Cx0gpR1a.js`),d=require(`./dist-CL1DhkaL.js`),f=require(`./dist-BhtQH_6Z.js`),p=require(`./dist-B4N_7Tps.js`);let m=require(`react`);m=e.i(m,1);var h=e.t(),g=[`Enter`,` `],_=[`ArrowDown`,`PageUp`,`Home`],v=[`ArrowUp`,`PageDown`,`End`],ee=[..._,...v],te={ltr:[...g,`ArrowRight`],rtl:[...g,`ArrowLeft`]},y={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},b=`Menu`,[x,ne,S]=i.t(b),[C,w]=t.n(b,[S,f.a,p.r]),T=f.a(),re=p.r(),[E,D]=C(b),[ie,O]=C(b),k=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,l=T(t),[u,d]=m.useState(null),p=m.useRef(!1),g=c.t(a),_=s.t(i);return m.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>p.current=!1;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})}},[]),(0,h.jsx)(f.i,{...l,children:(0,h.jsx)(E,{scope:t,open:n,onOpenChange:g,content:u,onContentChange:d,children:(0,h.jsx)(ie,{scope:t,onClose:m.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:p,dir:_,modal:o,children:r})})})};k.displayName=b;var A=`MenuAnchor`,j=m.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=T(n);return(0,h.jsx)(f.t,{...i,...r,ref:t})});j.displayName=A;var M=`MenuPortal`,[N,P]=C(M,{forceMount:void 0}),F=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=D(M,t);return(0,h.jsx)(N,{scope:t,forceMount:n,children:(0,h.jsx)(a.t,{present:n||o.open,children:(0,h.jsx)(d.t,{asChild:!0,container:i,children:r})})})};F.displayName=M;var I=`MenuContent`,[ae,L]=C(I),R=m.forwardRef((e,t)=>{let n=P(I,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=D(I,e.__scopeMenu),s=O(I,e.__scopeMenu);return(0,h.jsx)(x.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(a.t,{present:r||o.open,children:(0,h.jsx)(x.Slot,{scope:e.__scopeMenu,children:s.modal?(0,h.jsx)(z,{...i,ref:t}):(0,h.jsx)(B,{...i,ref:t})})})})}),z=m.forwardRef((e,t)=>{let i=D(I,e.__scopeMenu),a=m.useRef(null),o=n.n(t,a);return m.useEffect(()=>{let e=a.current;if(e)return u.t(e)},[]),(0,h.jsx)(V,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:r.r(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),B=m.forwardRef((e,t)=>{let n=D(I,e.__scopeMenu);return(0,h.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),oe=r.i(`MenuContent.ScrollLock`),V=m.forwardRef((e,t)=>{let{__scopeMenu:i,loop:a=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:g,onEscapeKeyDown:_,onPointerDownOutside:te,onFocusOutside:y,onInteractOutside:b,onDismiss:x,disableOutsideScroll:S,...C}=e,w=D(I,i),E=O(I,i),ie=T(i),k=re(i),A=ne(i),[j,M]=m.useState(null),N=m.useRef(null),P=n.n(t,N,w.onContentChange),F=m.useRef(0),L=m.useRef(``),R=m.useRef(0),z=m.useRef(null),B=m.useRef(`right`),V=m.useRef(0),se=S?u.n:m.Fragment,H=S?{as:oe,allowPinchZoom:!0}:void 0,ce=e=>{let t=L.current+e,n=A().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ne(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){L.current=t,window.clearTimeout(F.current),t!==``&&(F.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};m.useEffect(()=>()=>window.clearTimeout(F.current),[]),u.r();let U=m.useCallback(e=>B.current===z.current?.side&&Fe(e,z.current?.area),[]);return(0,h.jsx)(ae,{scope:i,searchRef:L,onItemEnter:m.useCallback(e=>{U(e)&&e.preventDefault()},[U]),onItemLeave:m.useCallback(e=>{U(e)||(N.current?.focus(),M(null))},[U]),onTriggerLeave:m.useCallback(e=>{U(e)&&e.preventDefault()},[U]),pointerGraceTimerRef:R,onPointerGraceIntentChange:m.useCallback(e=>{z.current=e},[]),children:(0,h.jsx)(se,{...H,children:(0,h.jsx)(u.i,{asChild:!0,trapped:o,onMountAutoFocus:r.r(s,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,h.jsx)(l.n,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:_,onPointerDownOutside:te,onFocusOutside:y,onInteractOutside:b,onDismiss:x,children:(0,h.jsx)(p.n,{asChild:!0,...k,dir:E.dir,orientation:`vertical`,loop:a,currentTabStopId:j,onCurrentTabStopIdChange:M,onEntryFocus:r.r(g,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,h.jsx)(f.r,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ae(w.open),"data-radix-menu-content":``,dir:E.dir,...ie,...C,ref:P,style:{outline:`none`,...C.style},onKeyDown:r.r(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&&ce(e.key));let i=N.current;if(e.target!==i||!ee.includes(e.key))return;e.preventDefault();let a=A().filter(e=>!e.disabled).map(e=>e.ref.current);v.includes(e.key)&&a.reverse(),je(a)}),onBlur:r.r(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(F.current),L.current=``)}),onPointerMove:r.r(e.onPointerMove,$(e=>{let t=e.target,n=V.current!==e.clientX;e.currentTarget.contains(t)&&n&&(B.current=e.clientX>V.current?`right`:`left`,V.current=e.clientX)}))})})})})})})});R.displayName=I;var se=`MenuGroup`,H=m.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,h.jsx)(r.t.div,{role:`group`,...i,ref:t})});H.displayName=se;var ce=`MenuLabel`,U=m.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,h.jsx)(r.t.div,{...i,ref:t})});U.displayName=ce;var W=`MenuItem`,G=`menu.itemSelect`,K=m.forwardRef((e,t)=>{let{disabled:i=!1,onSelect:a,...o}=e,s=m.useRef(null),c=O(W,e.__scopeMenu),l=L(W,e.__scopeMenu),u=n.n(t,s),d=m.useRef(!1),f=()=>{let e=s.current;if(!i&&e){let t=new CustomEvent(G,{bubbles:!0,cancelable:!0});e.addEventListener(G,e=>a?.(e),{once:!0}),r.n(e,t),t.defaultPrevented?d.current=!1:c.onClose()}};return(0,h.jsx)(le,{...o,ref:u,disabled:i,onClick:r.r(e.onClick,f),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:r.r(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:r.r(e.onKeyDown,e=>{let t=l.searchRef.current!==``;i||t&&e.key===` `||g.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});K.displayName=W;var le=m.forwardRef((e,t)=>{let{__scopeMenu:i,disabled:a=!1,textValue:o,...s}=e,c=L(W,i),l=re(i),u=m.useRef(null),d=n.n(t,u),[f,g]=m.useState(!1),[_,v]=m.useState(``);return m.useEffect(()=>{let e=u.current;e&&v((e.textContent??``).trim())},[s.children]),(0,h.jsx)(x.ItemSlot,{scope:i,disabled:a,textValue:o??_,children:(0,h.jsx)(p.t,{asChild:!0,...l,focusable:!a,children:(0,h.jsx)(r.t.div,{role:`menuitem`,"data-highlighted":f?``:void 0,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,...s,ref:d,onPointerMove:r.r(e.onPointerMove,$(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:r.r(e.onPointerLeave,$(e=>c.onItemLeave(e))),onFocus:r.r(e.onFocus,()=>g(!0)),onBlur:r.r(e.onBlur,()=>g(!1))})})})}),ue=`MenuCheckboxItem`,de=m.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:i,...a}=e;return(0,h.jsx)(_e,{scope:e.__scopeMenu,checked:n,children:(0,h.jsx)(K,{role:`menuitemcheckbox`,"aria-checked":Z(n)?`mixed`:n,...a,ref:t,"data-state":Q(n),onSelect:r.r(a.onSelect,()=>i?.(Z(n)?!0:!n),{checkForDefaultPrevented:!1})})})});de.displayName=ue;var q=`MenuRadioGroup`,[fe,pe]=C(q,{value:void 0,onValueChange:()=>{}}),me=m.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=c.t(r);return(0,h.jsx)(fe,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,h.jsx)(H,{...i,ref:t})})});me.displayName=q;var he=`MenuRadioItem`,ge=m.forwardRef((e,t)=>{let{value:n,...i}=e,a=pe(he,e.__scopeMenu),o=n===a.value;return(0,h.jsx)(_e,{scope:e.__scopeMenu,checked:o,children:(0,h.jsx)(K,{role:`menuitemradio`,"aria-checked":o,...i,ref:t,"data-state":Q(o),onSelect:r.r(i.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ge.displayName=he;var J=`MenuItemIndicator`,[_e,ve]=C(J,{checked:!1}),ye=m.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:i,...o}=e,s=ve(J,n);return(0,h.jsx)(a.t,{present:i||Z(s.checked)||s.checked===!0,children:(0,h.jsx)(r.t.span,{...o,ref:t,"data-state":Q(s.checked)})})});ye.displayName=J;var be=`MenuSeparator`,xe=m.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,h.jsx)(r.t.div,{role:`separator`,"aria-orientation":`horizontal`,...i,ref:t})});xe.displayName=be;var Se=`MenuArrow`,Ce=m.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=T(n);return(0,h.jsx)(f.n,{...i,...r,ref:t})});Ce.displayName=Se;var Y=`MenuSub`,[we,Te]=C(Y),Ee=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=D(Y,t),s=T(t),[l,u]=m.useState(null),[d,p]=m.useState(null),g=c.t(i);return m.useEffect(()=>(a.open===!1&&g(!1),()=>g(!1)),[a.open,g]),(0,h.jsx)(f.i,{...s,children:(0,h.jsx)(E,{scope:t,open:r,onOpenChange:g,content:d,onContentChange:p,children:(0,h.jsx)(we,{scope:t,contentId:o.t(),triggerId:o.t(),trigger:l,onTriggerChange:u,children:n})})})};Ee.displayName=Y;var X=`MenuSubTrigger`,De=m.forwardRef((e,t)=>{let i=D(X,e.__scopeMenu),a=O(X,e.__scopeMenu),o=Te(X,e.__scopeMenu),s=L(X,e.__scopeMenu),c=m.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},f=m.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return m.useEffect(()=>f,[f]),m.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),(0,h.jsx)(j,{asChild:!0,...d,children:(0,h.jsx)(le,{id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":i.open,"aria-controls":o.contentId,"data-state":Ae(i.open),...e,ref:n.t(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:r.r(e.onPointerMove,$(t=>{s.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!i.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{i.onOpenChange(!0),f()},100))})),onPointerLeave:r.r(e.onPointerLeave,$(e=>{f();let t=i.content?.getBoundingClientRect();if(t){let n=i.content?.dataset.side,r=n===`right`,a=r?-5:5,o=t[r?`left`:`right`],c=t[r?`right`:`left`];s.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:o,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:r.r(e.onKeyDown,t=>{let n=s.searchRef.current!==``;e.disabled||n&&t.key===` `||te[a.dir].includes(t.key)&&(i.onOpenChange(!0),i.content?.focus(),t.preventDefault())})})})});De.displayName=X;var Oe=`MenuSubContent`,ke=m.forwardRef((e,t)=>{let i=P(I,e.__scopeMenu),{forceMount:o=i.forceMount,...s}=e,c=D(I,e.__scopeMenu),l=O(I,e.__scopeMenu),u=Te(Oe,e.__scopeMenu),d=m.useRef(null),f=n.n(t,d);return(0,h.jsx)(x.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(a.t,{present:o||c.open,children:(0,h.jsx)(x.Slot,{scope:e.__scopeMenu,children:(0,h.jsx)(V,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:f,align:`start`,side:l.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:r.r(e.onFocusOutside,e=>{e.target!==u.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:r.r(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:r.r(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=y[l.dir].includes(e.key);t&&n&&(c.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});ke.displayName=Oe;function Ae(e){return e?`open`:`closed`}function Z(e){return e===`indeterminate`}function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}function je(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Me(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ne(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=Me(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}function Pe(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}function Fe(e,t){return t?Pe({x:e.clientX,y:e.clientY},t):!1}function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Ie=k,Le=j,Re=F,ze=R,Be=H,Ve=U,He=K,Ue=de,We=me,Ge=ge,Ke=ye,qe=xe,Je=Ce,Ye=Ee,Xe=De,Ze=ke;Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Ze}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Ue}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return We}});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.2+7adf8d6cb8833b18/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
if (typeof e == "function") return e(t);
|
|
5
|
+
e != null && (e.current = t);
|
|
6
|
+
}
|
|
7
|
+
function n(...e) {
|
|
8
|
+
return (n) => {
|
|
9
|
+
let r = !1, i = e.map((e) => {
|
|
10
|
+
let i = t(e, n);
|
|
11
|
+
return !r && typeof i == "function" && (r = !0), i;
|
|
12
|
+
});
|
|
13
|
+
if (r) return () => {
|
|
14
|
+
for (let n = 0; n < i.length; n++) {
|
|
15
|
+
let r = i[n];
|
|
16
|
+
typeof r == "function" ? r() : t(e[n], null);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function r(...t) {
|
|
22
|
+
return e.useCallback(n(...t), t);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as n, n as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,[t,n]){return Math.min(n,Math.max(t,e))}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-CscAxhT8.js`);let n=require(`react`);n=e.i(n,1);function r(e){let[r,i]=n.useState(void 0);return t.t(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),r}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { n as t } from "./dist-BC_VB6JL.mjs";
|
|
3
|
+
import { n, r, t as i } from "./dist-bDoR0CBU.mjs";
|
|
4
|
+
import { t as a } from "./dist-ALQAoSGx.mjs";
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-escape-keydown@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
7
|
+
function s(e, t = globalThis?.document) {
|
|
8
|
+
let n = a(e);
|
|
9
|
+
o.useEffect(() => {
|
|
10
|
+
let e = (e) => {
|
|
11
|
+
e.key === "Escape" && n(e);
|
|
12
|
+
};
|
|
13
|
+
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
14
|
+
}, [n, t]);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+2d3f272c3a65784a/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
18
|
+
var c = e(), l = "DismissableLayer", u = "dismissableLayer.update", d = "dismissableLayer.pointerDownOutside", f = "dismissableLayer.focusOutside", p, m = o.createContext({
|
|
19
|
+
layers: /* @__PURE__ */ new Set(),
|
|
20
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
21
|
+
branches: /* @__PURE__ */ new Set()
|
|
22
|
+
}), h = o.forwardRef((e, n) => {
|
|
23
|
+
let { disableOutsidePointerEvents: a = !1, onEscapeKeyDown: l, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: h, onDismiss: g, ..._ } = e, x = o.useContext(m), [S, C] = o.useState(null), w = S?.ownerDocument ?? globalThis?.document, [, T] = o.useState({}), E = t(n, (e) => C(e)), D = Array.from(x.layers), [O] = [...x.layersWithOutsidePointerEventsDisabled].slice(-1), k = D.indexOf(O), A = S ? D.indexOf(S) : -1, j = x.layersWithOutsidePointerEventsDisabled.size > 0, M = A >= k, N = v((e) => {
|
|
24
|
+
let t = e.target, n = [...x.branches].some((e) => e.contains(t));
|
|
25
|
+
!M || n || (d?.(e), h?.(e), e.defaultPrevented || g?.());
|
|
26
|
+
}, w), P = y((e) => {
|
|
27
|
+
let t = e.target;
|
|
28
|
+
[...x.branches].some((e) => e.contains(t)) || (f?.(e), h?.(e), e.defaultPrevented || g?.());
|
|
29
|
+
}, w);
|
|
30
|
+
return s((e) => {
|
|
31
|
+
A === x.layers.size - 1 && (l?.(e), !e.defaultPrevented && g && (e.preventDefault(), g()));
|
|
32
|
+
}, w), o.useEffect(() => {
|
|
33
|
+
if (S) return a && (x.layersWithOutsidePointerEventsDisabled.size === 0 && (p = w.body.style.pointerEvents, w.body.style.pointerEvents = "none"), x.layersWithOutsidePointerEventsDisabled.add(S)), x.layers.add(S), b(), () => {
|
|
34
|
+
a && x.layersWithOutsidePointerEventsDisabled.size === 1 && (w.body.style.pointerEvents = p);
|
|
35
|
+
};
|
|
36
|
+
}, [
|
|
37
|
+
S,
|
|
38
|
+
w,
|
|
39
|
+
a,
|
|
40
|
+
x
|
|
41
|
+
]), o.useEffect(() => () => {
|
|
42
|
+
S && (x.layers.delete(S), x.layersWithOutsidePointerEventsDisabled.delete(S), b());
|
|
43
|
+
}, [S, x]), o.useEffect(() => {
|
|
44
|
+
let e = () => T({});
|
|
45
|
+
return document.addEventListener(u, e), () => document.removeEventListener(u, e);
|
|
46
|
+
}, []), /* @__PURE__ */ (0, c.jsx)(i.div, {
|
|
47
|
+
..._,
|
|
48
|
+
ref: E,
|
|
49
|
+
style: {
|
|
50
|
+
pointerEvents: j ? M ? "auto" : "none" : void 0,
|
|
51
|
+
...e.style
|
|
52
|
+
},
|
|
53
|
+
onFocusCapture: r(e.onFocusCapture, P.onFocusCapture),
|
|
54
|
+
onBlurCapture: r(e.onBlurCapture, P.onBlurCapture),
|
|
55
|
+
onPointerDownCapture: r(e.onPointerDownCapture, N.onPointerDownCapture)
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
h.displayName = l;
|
|
59
|
+
var g = "DismissableLayerBranch", _ = o.forwardRef((e, n) => {
|
|
60
|
+
let r = o.useContext(m), a = o.useRef(null), s = t(n, a);
|
|
61
|
+
return o.useEffect(() => {
|
|
62
|
+
let e = a.current;
|
|
63
|
+
if (e) return r.branches.add(e), () => {
|
|
64
|
+
r.branches.delete(e);
|
|
65
|
+
};
|
|
66
|
+
}, [r.branches]), /* @__PURE__ */ (0, c.jsx)(i.div, {
|
|
67
|
+
...e,
|
|
68
|
+
ref: s
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
_.displayName = g;
|
|
72
|
+
function v(e, t = globalThis?.document) {
|
|
73
|
+
let n = a(e), r = o.useRef(!1), i = o.useRef(() => {});
|
|
74
|
+
return o.useEffect(() => {
|
|
75
|
+
let e = (e) => {
|
|
76
|
+
if (e.target && !r.current) {
|
|
77
|
+
let r = function() {
|
|
78
|
+
x(d, n, a, { discrete: !0 });
|
|
79
|
+
}, a = { originalEvent: e };
|
|
80
|
+
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
81
|
+
} else t.removeEventListener("click", i.current);
|
|
82
|
+
r.current = !1;
|
|
83
|
+
}, a = window.setTimeout(() => {
|
|
84
|
+
t.addEventListener("pointerdown", e);
|
|
85
|
+
}, 0);
|
|
86
|
+
return () => {
|
|
87
|
+
window.clearTimeout(a), t.removeEventListener("pointerdown", e), t.removeEventListener("click", i.current);
|
|
88
|
+
};
|
|
89
|
+
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
90
|
+
}
|
|
91
|
+
function y(e, t = globalThis?.document) {
|
|
92
|
+
let n = a(e), r = o.useRef(!1);
|
|
93
|
+
return o.useEffect(() => {
|
|
94
|
+
let e = (e) => {
|
|
95
|
+
e.target && !r.current && x(f, n, { originalEvent: e }, { discrete: !1 });
|
|
96
|
+
};
|
|
97
|
+
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
98
|
+
}, [t, n]), {
|
|
99
|
+
onFocusCapture: () => r.current = !0,
|
|
100
|
+
onBlurCapture: () => r.current = !1
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function b() {
|
|
104
|
+
let e = new CustomEvent(u);
|
|
105
|
+
document.dispatchEvent(e);
|
|
106
|
+
}
|
|
107
|
+
function x(e, t, r, { discrete: i }) {
|
|
108
|
+
let a = r.originalEvent.target, o = new CustomEvent(e, {
|
|
109
|
+
bubbles: !1,
|
|
110
|
+
cancelable: !0,
|
|
111
|
+
detail: r
|
|
112
|
+
});
|
|
113
|
+
t && a.addEventListener(e, t, { once: !0 }), i ? n(a, o) : a.dispatchEvent(o);
|
|
114
|
+
}
|
|
115
|
+
var S = h, C = _;
|
|
116
|
+
//#endregion
|
|
117
|
+
export { h as n, S as r, C as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`);let t=require(`react`);t=e.i(t,1),e.t();var n=t.createContext(void 0);function r(e){let r=t.useContext(n);return e||r||`ltr`}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-DmmUjo_P.js`),n=require(`./dist-B5VmV2K7.js`);let r=require(`react`);r=e.i(r,1);var i=e.t(),a=`Toggle`,o=r.forwardRef((e,r)=>{let{pressed:o,defaultPressed:s,onPressedChange:c,...l}=e,[u,d]=n.t({prop:o,onChange:c,defaultProp:s??!1,caller:a});return(0,i.jsx)(t.t.button,{type:`button`,"aria-pressed":u,"data-state":u?`on`:`off`,"data-disabled":e.disabled?``:void 0,...l,ref:r,onClick:t.r(e.onClick,()=>{e.disabled||d(!u)})})});o.displayName=a;var s=o;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-DmmUjo_P.js`);let n=require(`react`);n=e.i(n,1);var r=e.t(),i=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`}),a=`VisuallyHidden`,o=n.forwardRef((e,n)=>(0,r.jsx)(t.t.span,{...e,ref:n,style:{...i,...e.style}}));o.displayName=a;var s=o;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-Kqk0oQYU.js`),n=require(`./dist-CsEsK2jW.js`),r=require(`./dist-DmmUjo_P.js`),i=require(`./dist-CscAxhT8.js`),a=require(`./dist-cRjbOZRf.js`),o=require(`./dist-BVKPqhkg.js`);let s=require(`react`);s=e.i(s,1);let c=require(`react-dom`);c=e.i(c,1);var l=[`top`,`right`,`bottom`,`left`],u=Math.min,d=Math.max,f=Math.round,p=Math.floor,m=e=>({x:e,y:e}),h={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function g(e,t,n){return d(e,u(t,n))}function _(e,t){return typeof e==`function`?e(t):e}function v(e){return e.split(`-`)[0]}function y(e){return e.split(`-`)[1]}function b(e){return e===`x`?`y`:`x`}function x(e){return e===`y`?`height`:`width`}function S(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function C(e){return b(S(e))}function w(e,t,n){n===void 0&&(n=!1);let r=y(e),i=C(e),a=x(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=N(o)),[o,N(o)]}function T(e){let t=N(e);return[E(e),t,E(t)]}function E(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var D=[`left`,`right`],O=[`right`,`left`],k=[`top`,`bottom`],A=[`bottom`,`top`];function j(e,t,n){switch(e){case`top`:case`bottom`:return n?t?O:D:t?D:O;case`left`:case`right`:return t?k:A;default:return[]}}function M(e,t,n,r){let i=y(e),a=j(v(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(E)))),a}function N(e){let t=v(e);return h[t]+e.slice(t.length)}function P(e){return{top:0,right:0,bottom:0,left:0,...e}}function F(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:P(e)}function I(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function L(e,t,n){let{reference:r,floating:i}=e,a=S(t),o=C(t),s=x(o),c=v(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(y(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function R(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=_(t,e),p=F(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=I(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:v,strategy:s}):g);return{top:(h.top-b.top+p.top)/y.y,bottom:(b.bottom-h.bottom+p.bottom)/y.y,left:(h.left-b.left+p.left)/y.x,right:(b.right-h.right+p.right)/y.x}}var z=50,B=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:R},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=L(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<z&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=L(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:d=0}=_(e,t)||{};if(l==null)return{};let f=F(d),p={x:n,y:r},m=C(i),h=x(m),v=await o.getDimensions(l),b=m===`y`,S=b?`top`:`left`,w=b?`bottom`:`right`,T=b?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[T]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[T]||a.floating[h]);let A=E/2-D/2,j=k/2-v[h]/2-1,M=u(f[S],j),N=u(f[w],j),P=M,I=k-v[h]-N,L=k/2-v[h]/2+A,R=g(P,L,I),z=!c.arrow&&y(i)!=null&&L!==R&&a.reference[h]/2-(L<P?M:N)-v[h]/2<0,B=z?L<P?L-P:L-I:0;return{[m]:p[m]+B,data:{[m]:R,centerOffset:L-R-B,...z&&{alignmentOffset:B}},reset:z}}}),te=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=_(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=v(r),y=S(o),b=v(o)===o,x=await(s.isRTL==null?void 0:s.isRTL(c.floating)),C=d||(b||!m?[N(o)]:T(o)),E=p!==`none`;!d&&E&&C.push(...M(o,m,p,x));let D=[o,...C],O=await s.detectOverflow(t,h),k=[],A=i.flip?.overflows||[];if(l&&k.push(O[g]),u){let e=w(r,a,x);k.push(O[e[0]],O[e[1]])}if(A=[...A,{placement:r,overflows:k}],!k.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=D[e];if(t&&(!(u===`alignment`&&y!==S(t))||A.every(e=>S(e.placement)===y?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(E){let t=S(e.placement);return t===y||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return l.some(t=>e[t]>=0)}var ie=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=_(e,t);switch(i){case`referenceHidden`:{let e=ne(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:re(e)}}}case`escaped`:{let e=ne(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:re(e)}}}default:return{}}}}},ae=new Set([`left`,`top`]);async function oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=v(n),s=y(n),c=S(n)===`y`,l=ae.has(o)?-1:1,u=a&&c?-1:1,d=_(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var se=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ce=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=S(v(i)),p=b(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=g(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=g(n,h,r)}let y=c.fn({...t,[p]:m,[f]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:o,[f]:s}}}}}},le=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=_(e,t),u={x:n,y:r},d=S(i),f=b(d),p=u[f],m=u[d],h=_(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ae.has(v(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=_(e,t),f=await o.detectOverflow(t,l),p=v(i),m=y(i),h=S(i)===`y`,{width:g,height:b}=a.floating,x,C;p===`top`||p===`bottom`?(x=p,C=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(C=p,x=m===`end`?`top`:`bottom`);let w=b-f.top-f.bottom,T=g-f.left-f.right,E=u(b-f[x],w),D=u(g-f[C],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),O&&!m){let e=d(f.left,0),t=d(f.right,0),n=d(f.top,0),r=d(f.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:d(f.left,f.right)):k=b-2*(n!==0||r!==0?n+r:d(f.top,f.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||b!==j.height?{reset:{rects:!0}}:{}}}};function de(){return typeof window<`u`}function V(e){return fe(e)?(e.nodeName||``).toLowerCase():`#document`}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){return((fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fe(e){return de()?e instanceof Node||e instanceof H(e).Node:!1}function W(e){return de()?e instanceof Element||e instanceof H(e).Element:!1}function G(e){return de()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function pe(e){return!de()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function K(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function me(e){return/^(table|td|th)$/.test(V(e))}function he(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ge=/transform|translate|scale|rotate|perspective|filter/,_e=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,ve;function ye(e){let t=W(e)?Y(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!xe()&&(q(t.backdropFilter)||q(t.filter))||ge.test(t.willChange||``)||_e.test(t.contain||``)}function be(e){let t=X(e);for(;G(t)&&!J(t);){if(ye(t))return t;if(he(t))return null;t=X(t)}return null}function xe(){return ve??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ve}function J(e){return/^(html|body|#document)$/.test(V(e))}function Y(e){return H(e).getComputedStyle(e)}function Se(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(V(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pe(e)&&e.host||U(e);return pe(t)?t.host:t}function Ce(e){let t=X(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&K(t)?t:Ce(t)}function we(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ce(e),i=r===e.ownerDocument?.body,a=H(r);if(i){let e=Te(a);return t.concat(a,a.visualViewport||[],K(r)?r:[],e&&n?we(e):[])}else return t.concat(r,we(r,[],n))}function Te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ee(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=G(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=f(n)!==a||f(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function De(e){return W(e)?e:e.contextElement}function Z(e){let t=De(e);if(!G(t))return m(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ee(t),o=(a?f(n.width):n.width)/r,s=(a?f(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Oe=m(0);function ke(e){let t=H(e);return!xe()||!t.visualViewport?Oe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=De(e),o=m(1);t&&(r?W(r)&&(o=Z(r)):o=Z(e));let s=Ae(a,n,r)?ke(a):m(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=H(a),t=r&&W(r)?H(r):r,n=e,i=Te(n);for(;i&&r&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=H(i),i=Te(n)}}return I({width:u,height:d,x:c,y:l})}function je(e,t){let n=Se(e).scrollLeft;return t?t.left+n:Q(U(e)).left+n}function Me(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-je(e,n),y:n.top+t.scrollTop}}function Ne(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=U(r),s=t?he(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=m(1),u=m(0),d=G(r);if((d||!d&&!a)&&((V(r)!==`body`||K(o))&&(c=Se(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Me(o,c):m(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Pe(e){return Array.from(e.getClientRects())}function Fe(e){let t=U(e),n=Se(e),r=e.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=d(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+je(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=d(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ie=25;function Le(e,t){let n=H(e),r=U(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=xe();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=je(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ie&&(a-=o)}else l<=Ie&&(a+=l);return{width:a,height:o,x:s,y:c}}function Re(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=G(e)?Z(e):m(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ze(e,t,n){let r;if(t===`viewport`)r=Le(e,n);else if(t===`document`)r=Fe(U(e));else if(W(t))r=Re(t,n);else{let n=ke(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return I(r)}function Be(e,t){let n=X(e);return n===t||!W(n)||J(n)?!1:Y(n).position===`fixed`||Be(n,t)}function Ve(e,t){let n=t.get(e);if(n)return n;let r=we(e,[],!1).filter(e=>W(e)&&V(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;W(o)&&!J(o);){let t=Y(o),n=ye(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||K(o)&&!n&&Be(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function He(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?he(t)?[]:Ve(t,this._c):[].concat(n),r],o=ze(t,a[0],i),s=o.top,c=o.right,l=o.bottom,f=o.left;for(let e=1;e<a.length;e++){let n=ze(t,a[e],i);s=d(n.top,s),c=u(n.right,c),l=u(n.bottom,l),f=d(n.left,f)}return{width:c-f,height:l-s,x:f,y:s}}function Ue(e){let{width:t,height:n}=Ee(e);return{width:t,height:n}}function We(e,t,n){let r=G(t),i=U(t),a=n===`fixed`,o=Q(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=m(0);function l(){c.x=je(i)}if(r||!r&&!a)if((V(t)!==`body`||K(i))&&(s=Se(t)),r){let e=Q(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Me(i,s):m(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ge(e){return Y(e).position===`static`}function Ke(e,t){if(!G(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function qe(e,t){let n=H(e);if(he(e))return n;if(!G(e)){let t=X(e);for(;t&&!J(t);){if(W(t)&&!Ge(t))return t;t=X(t)}return n}let r=Ke(e,t);for(;r&&me(r)&&Ge(r);)r=Ke(r,t);return r&&J(r)&&Ge(r)&&!ye(r)?n:r||be(e)||n}var Je=async function(e){let t=this.getOffsetParent||qe,n=this.getDimensions,r=await n(e.floating);return{reference:We(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ye(e){return Y(e).direction===`rtl`}var Xe={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:U,getClippingRect:He,getOffsetParent:qe,getElementRects:Je,getClientRects:Pe,getDimensions:Ue,getScale:Z,isElement:W,isRTL:Ye};function Ze(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qe(e,t){let n=null,r,i=U(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:f,top:m,width:h,height:g}=l;if(s||t(),!h||!g)return;let _=p(m),v=p(i.clientWidth-(f+h)),y=p(i.clientHeight-(m+g)),b=p(f),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:d(0,u(1,c))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==c){if(!S)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ze(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function $e(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=De(e),u=i||a?[...l?we(l):[],...t?we(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Qe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!Ze(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var et=se,tt=ce,nt=te,rt=ue,it=ie,at=ee,ot=le,st=(e,t,n)=>{let r=new Map,i={platform:Xe,...n},a={...i.platform,_c:r};return B(e,t,{...i,platform:a})},ct=typeof document<`u`?s.useLayoutEffect:function(){};function lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!lt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!lt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ut(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dt(e,t){let n=ut(e);return Math.round(t*n)/n}function ft(e){let t=s.useRef(e);return ct(()=>{t.current=e}),t}function pt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);lt(m,r)||h(r);let[g,_]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=s.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=s.useRef(null),T=s.useRef(null),E=s.useRef(f),D=u!=null,O=ft(u),k=ft(i),A=ft(d),j=s.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),st(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!lt(E.current,t)&&(E.current=t,c.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);ct(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=s.useRef(!1);ct(()=>(M.current=!0,()=>{M.current=!1}),[]),ct(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=s.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=s.useMemo(()=>({reference:S,floating:C}),[S,C]),F=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=dt(P.floating,f.x),r=dt(P.floating,f.y);return l?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ut(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,l,P.floating,f.x,f.y]);return s.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var mt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:at({element:r.current,padding:i}).fn(n):r?at({element:r,padding:i}).fn(n):{}}}},ht=(e,t)=>{let n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},gt=(e,t)=>{let n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},_t=(e,t)=>({fn:ot(e).fn,options:[e,t]}),vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},xt=(e,t)=>{let n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=e.t(),St=`Arrow`,Ct=s.forwardRef((e,t)=>{let{children:n,width:i=10,height:a=5,...o}=e;return(0,$.jsx)(r.t.svg,{...o,ref:t,width:i,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Ct.displayName=St;var wt=Ct,Tt=`Popper`,[Et,Dt]=t.n(Tt),[Ot,kt]=Et(Tt),At=e=>{let{__scopePopper:t,children:n}=e,[r,i]=s.useState(null);return(0,$.jsx)(Ot,{scope:t,anchor:r,onAnchorChange:i,children:n})};At.displayName=Tt;var jt=`PopperAnchor`,Mt=s.forwardRef((e,t)=>{let{__scopePopper:i,virtualRef:a,...o}=e,c=kt(jt,i),l=s.useRef(null),u=n.n(t,l),d=s.useRef(null);return s.useEffect(()=>{let e=d.current;d.current=a?.current||l.current,e!==d.current&&c.onAnchorChange(d.current)}),a?null:(0,$.jsx)(r.t.div,{...o,ref:u})});Mt.displayName=jt;var Nt=`PopperContent`,[Pt,Ft]=Et(Nt),It=s.forwardRef((e,t)=>{let{__scopePopper:c,side:l=`bottom`,sideOffset:u=0,align:d=`center`,alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=kt(Nt,c),[C,w]=s.useState(null),T=n.n(t,e=>w(e)),[E,D]=s.useState(null),O=o.t(E),k=O?.width??0,A=O?.height??0,j=l+(d===`center`?``:`-`+d),M=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(h)?h:[h],P=N.length>0,F={padding:M,boundary:N.filter(Bt),altBoundary:P},{refs:I,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=pt({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>$e(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[ht({mainAxis:u+A,alignmentAxis:f}),m&>({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?_t():void 0,...F}),m&&vt({...F}),yt({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&xt({element:E,padding:p}),Vt({arrowWidth:k,arrowHeight:A}),v&&bt({strategy:`referenceHidden`,...F})]}),[ee,te]=Ht(R),ne=a.t(b);i.t(()=>{z&&ne?.()},[z,ne]);let re=B.arrow?.x,ie=B.arrow?.y,ae=B.arrow?.centerOffset!==0,[oe,se]=s.useState();return i.t(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),(0,$.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(Pt,{scope:c,placedSide:ee,onArrowChange:D,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,$.jsx)(r.t.div,{"data-side":ee,"data-align":te,...x,ref:T,style:{...x.style,animation:z?void 0:`none`}})})})});It.displayName=Nt;var Lt=`PopperArrow`,Rt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zt=s.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Ft(Lt,n),a=Rt[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(wt,{...r,ref:t,style:{...r.style,display:`block`}})})});zt.displayName=Lt;function Bt(e){return e!==null}var Vt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ht(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ht(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ut=At,Wt=Mt,Gt=It,Kt=zt;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Wt}});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3
|
+
var t = globalThis?.document ? e.useLayoutEffect : () => {};
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { n as t } from "./dist-Cvwtowos.mjs";
|
|
3
|
+
import { n } from "./dist-BC_VB6JL.mjs";
|
|
4
|
+
import { i as r } from "./dist-bDoR0CBU.mjs";
|
|
5
|
+
import i from "react";
|
|
6
|
+
//#region ../../node_modules/.bun/@radix-ui+react-collection@1.1.7+2d3f272c3a65784a/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
7
|
+
var a = e();
|
|
8
|
+
function o(e) {
|
|
9
|
+
let o = e + "CollectionProvider", [s, c] = t(o), [l, u] = s(o, {
|
|
10
|
+
collectionRef: { current: null },
|
|
11
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
12
|
+
}), d = (e) => {
|
|
13
|
+
let { scope: t, children: n } = e, r = i.useRef(null), o = i.useRef(/* @__PURE__ */ new Map()).current;
|
|
14
|
+
return /* @__PURE__ */ (0, a.jsx)(l, {
|
|
15
|
+
scope: t,
|
|
16
|
+
itemMap: o,
|
|
17
|
+
collectionRef: r,
|
|
18
|
+
children: n
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
d.displayName = o;
|
|
22
|
+
let f = e + "CollectionSlot", p = r(f), m = i.forwardRef((e, t) => {
|
|
23
|
+
let { scope: r, children: i } = e;
|
|
24
|
+
return /* @__PURE__ */ (0, a.jsx)(p, {
|
|
25
|
+
ref: n(t, u(f, r).collectionRef),
|
|
26
|
+
children: i
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
m.displayName = f;
|
|
30
|
+
let h = e + "CollectionItemSlot", g = "data-radix-collection-item", _ = r(h), v = i.forwardRef((e, t) => {
|
|
31
|
+
let { scope: r, children: o, ...s } = e, c = i.useRef(null), l = n(t, c), d = u(h, r);
|
|
32
|
+
return i.useEffect(() => (d.itemMap.set(c, {
|
|
33
|
+
ref: c,
|
|
34
|
+
...s
|
|
35
|
+
}), () => void d.itemMap.delete(c))), /* @__PURE__ */ (0, a.jsx)(_, {
|
|
36
|
+
[g]: "",
|
|
37
|
+
ref: l,
|
|
38
|
+
children: o
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
v.displayName = h;
|
|
42
|
+
function y(t) {
|
|
43
|
+
let n = u(e + "CollectionConsumer", t);
|
|
44
|
+
return i.useCallback(() => {
|
|
45
|
+
let e = n.collectionRef.current;
|
|
46
|
+
if (!e) return [];
|
|
47
|
+
let t = Array.from(e.querySelectorAll(`[${g}]`));
|
|
48
|
+
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
49
|
+
}, [n.collectionRef, n.itemMap]);
|
|
50
|
+
}
|
|
51
|
+
return [
|
|
52
|
+
{
|
|
53
|
+
Provider: d,
|
|
54
|
+
Slot: m,
|
|
55
|
+
ItemSlot: v
|
|
56
|
+
},
|
|
57
|
+
y,
|
|
58
|
+
c
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { o as t };
|