@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
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-context@1.1.2+7adf8d6cb8833b18/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4
|
+
var n = e();
|
|
5
|
+
function r(e, r) {
|
|
6
|
+
let i = t.createContext(r), a = (e) => {
|
|
7
|
+
let { children: r, ...a } = e, o = t.useMemo(() => a, Object.values(a));
|
|
8
|
+
return /* @__PURE__ */ (0, n.jsx)(i.Provider, {
|
|
9
|
+
value: o,
|
|
10
|
+
children: r
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
a.displayName = e + "Provider";
|
|
14
|
+
function o(n) {
|
|
15
|
+
let a = t.useContext(i);
|
|
16
|
+
if (a) return a;
|
|
17
|
+
if (r !== void 0) return r;
|
|
18
|
+
throw Error(`\`${n}\` must be used within \`${e}\``);
|
|
19
|
+
}
|
|
20
|
+
return [a, o];
|
|
21
|
+
}
|
|
22
|
+
function i(e, r = []) {
|
|
23
|
+
let i = [];
|
|
24
|
+
function o(r, a) {
|
|
25
|
+
let o = t.createContext(a), s = i.length;
|
|
26
|
+
i = [...i, a];
|
|
27
|
+
let c = (r) => {
|
|
28
|
+
let { scope: i, children: a, ...c } = r, l = i?.[e]?.[s] || o, u = t.useMemo(() => c, Object.values(c));
|
|
29
|
+
return /* @__PURE__ */ (0, n.jsx)(l.Provider, {
|
|
30
|
+
value: u,
|
|
31
|
+
children: a
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
c.displayName = r + "Provider";
|
|
35
|
+
function l(n, i) {
|
|
36
|
+
let c = i?.[e]?.[s] || o, l = t.useContext(c);
|
|
37
|
+
if (l) return l;
|
|
38
|
+
if (a !== void 0) return a;
|
|
39
|
+
throw Error(`\`${n}\` must be used within \`${r}\``);
|
|
40
|
+
}
|
|
41
|
+
return [c, l];
|
|
42
|
+
}
|
|
43
|
+
let s = () => {
|
|
44
|
+
let n = i.map((e) => t.createContext(e));
|
|
45
|
+
return function(r) {
|
|
46
|
+
let i = r?.[e] || n;
|
|
47
|
+
return t.useMemo(() => ({ [`__scope${e}`]: {
|
|
48
|
+
...r,
|
|
49
|
+
[e]: i
|
|
50
|
+
} }), [r, i]);
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
return s.scopeName = e, [o, a(s, ...r)];
|
|
54
|
+
}
|
|
55
|
+
function a(...e) {
|
|
56
|
+
let n = e[0];
|
|
57
|
+
if (e.length === 1) return n;
|
|
58
|
+
let r = () => {
|
|
59
|
+
let r = e.map((e) => ({
|
|
60
|
+
useScope: e(),
|
|
61
|
+
scopeName: e.scopeName
|
|
62
|
+
}));
|
|
63
|
+
return function(e) {
|
|
64
|
+
let i = r.reduce((t, { useScope: n, scopeName: r }) => {
|
|
65
|
+
let i = n(e)[`__scope${r}`];
|
|
66
|
+
return {
|
|
67
|
+
...t,
|
|
68
|
+
...i
|
|
69
|
+
};
|
|
70
|
+
}, {});
|
|
71
|
+
return t.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
return r.scopeName = n.scopeName, r;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { i as n, r as t };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { t } from "./dist-BC_VB6JL.mjs";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
//#region ../../node_modules/.bun/@radix-ui+react-slot@1.2.4+7adf8d6cb8833b18/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5
|
+
var r = e(), i = Symbol.for("react.lazy"), a = n.use;
|
|
6
|
+
function o(e) {
|
|
7
|
+
return typeof e == "object" && !!e && "then" in e;
|
|
8
|
+
}
|
|
9
|
+
function s(e) {
|
|
10
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === i && "_payload" in e && o(e._payload);
|
|
11
|
+
}
|
|
12
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
13
|
+
function c(e) {
|
|
14
|
+
let t = /* @__PURE__ */ u(e), i = n.forwardRef((e, i) => {
|
|
15
|
+
let { children: o, ...c } = e;
|
|
16
|
+
s(o) && typeof a == "function" && (o = a(o._payload));
|
|
17
|
+
let l = n.Children.toArray(o), u = l.find(f);
|
|
18
|
+
if (u) {
|
|
19
|
+
let e = u.props.children, a = l.map((t) => t === u ? n.Children.count(e) > 1 ? n.Children.only(null) : n.isValidElement(e) ? e.props.children : null : t);
|
|
20
|
+
return /* @__PURE__ */ (0, r.jsx)(t, {
|
|
21
|
+
...c,
|
|
22
|
+
ref: i,
|
|
23
|
+
children: n.isValidElement(e) ? n.cloneElement(e, void 0, a) : null
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ (0, r.jsx)(t, {
|
|
27
|
+
...c,
|
|
28
|
+
ref: i,
|
|
29
|
+
children: o
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return i.displayName = `${e}.Slot`, i;
|
|
33
|
+
}
|
|
34
|
+
var l = /* @__PURE__ */ c("Slot");
|
|
35
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
36
|
+
function u(e) {
|
|
37
|
+
let r = n.forwardRef((e, r) => {
|
|
38
|
+
let { children: i, ...o } = e;
|
|
39
|
+
if (s(i) && typeof a == "function" && (i = a(i._payload)), n.isValidElement(i)) {
|
|
40
|
+
let e = m(i), a = p(o, i.props);
|
|
41
|
+
return i.type !== n.Fragment && (a.ref = r ? t(r, e) : e), n.cloneElement(i, a);
|
|
42
|
+
}
|
|
43
|
+
return n.Children.count(i) > 1 ? n.Children.only(null) : null;
|
|
44
|
+
});
|
|
45
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
46
|
+
}
|
|
47
|
+
var d = Symbol("radix.slottable");
|
|
48
|
+
function f(e) {
|
|
49
|
+
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
|
50
|
+
}
|
|
51
|
+
function p(e, t) {
|
|
52
|
+
let n = { ...t };
|
|
53
|
+
for (let r in t) {
|
|
54
|
+
let i = e[r], a = t[r];
|
|
55
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
56
|
+
let t = a(...e);
|
|
57
|
+
return i(...e), t;
|
|
58
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
59
|
+
...i,
|
|
60
|
+
...a
|
|
61
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
...e,
|
|
65
|
+
...n
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function m(e) {
|
|
69
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
70
|
+
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);
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { c as n, l as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-previous@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e.useRef({
|
|
5
|
+
value: t,
|
|
6
|
+
previous: t
|
|
7
|
+
});
|
|
8
|
+
return e.useMemo(() => (n.current.value !== t && (n.current.previous = n.current.value, n.current.value = t), n.current.previous), [t]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./dist-BmjFh8i_.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-id@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
|
+
var n = t.useId || (() => void 0), r = 0;
|
|
5
|
+
function i(i) {
|
|
6
|
+
let [a, o] = t.useState(n());
|
|
7
|
+
return e(() => {
|
|
8
|
+
i || o((e) => e ?? String(r++));
|
|
9
|
+
}, [i]), i || (a ? `radix-${a}` : "");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./dist-CsEsK2jW.js`);let n=require(`react`);n=e.i(n,1);let r=require(`react-dom`);r=e.i(r,1);var i=e.t();function a(e){let t=o(e),r=n.forwardRef((e,r)=>{let{children:a,...o}=e,s=n.Children.toArray(a),c=s.find(l);if(c){let e=c.props.children,a=s.map(t=>t===c?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,i.jsx)(t,{...o,ref:r,children:a})});return r.displayName=`${e}.Slot`,r}function o(e){let r=n.forwardRef((e,r)=>{let{children:i,...a}=e;if(n.isValidElement(i)){let e=d(i),o=u(a,i.props);return i.type!==n.Fragment&&(o.ref=r?t.t(r,e):e),n.cloneElement(i,o)}return n.Children.count(i)>1?n.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var s=Symbol(`radix.slottable`);function c(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}function l(e){return n.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===s}function u(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function d(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}typeof window<`u`&&window.document&&window.document.createElement;function f(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var p=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let r=a(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:a,...o}=e,s=a?r:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,i.jsx)(s,{...o,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function m(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { n as t } from "./dist-D2f83VMO.mjs";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
//#region ../../node_modules/.bun/@radix-ui+react-primitive@2.1.4+2d3f272c3a65784a/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
+
var r = e(), i = [
|
|
7
|
+
"a",
|
|
8
|
+
"button",
|
|
9
|
+
"div",
|
|
10
|
+
"form",
|
|
11
|
+
"h2",
|
|
12
|
+
"h3",
|
|
13
|
+
"img",
|
|
14
|
+
"input",
|
|
15
|
+
"label",
|
|
16
|
+
"li",
|
|
17
|
+
"nav",
|
|
18
|
+
"ol",
|
|
19
|
+
"p",
|
|
20
|
+
"select",
|
|
21
|
+
"span",
|
|
22
|
+
"svg",
|
|
23
|
+
"ul"
|
|
24
|
+
].reduce((e, i) => {
|
|
25
|
+
let a = t(`Primitive.${i}`), o = n.forwardRef((e, t) => {
|
|
26
|
+
let { asChild: n, ...o } = e, s = n ? a : i;
|
|
27
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0, r.jsx)(s, {
|
|
28
|
+
...o,
|
|
29
|
+
ref: t
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return o.displayName = `Primitive.${i}`, {
|
|
33
|
+
...e,
|
|
34
|
+
[i]: o
|
|
35
|
+
};
|
|
36
|
+
}, {});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { i as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as e } from "./dist-BmjFh8i_.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-size@1.1.1+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
|
+
function n(n) {
|
|
5
|
+
let [r, i] = t.useState(void 0);
|
|
6
|
+
return e(() => {
|
|
7
|
+
if (n) {
|
|
8
|
+
i({
|
|
9
|
+
width: n.offsetWidth,
|
|
10
|
+
height: n.offsetHeight
|
|
11
|
+
});
|
|
12
|
+
let e = new ResizeObserver((e) => {
|
|
13
|
+
if (!Array.isArray(e) || !e.length) return;
|
|
14
|
+
let t = e[0], r, a;
|
|
15
|
+
if ("borderBoxSize" in t) {
|
|
16
|
+
let e = t.borderBoxSize, n = Array.isArray(e) ? e[0] : e;
|
|
17
|
+
r = n.inlineSize, a = n.blockSize;
|
|
18
|
+
} else r = n.offsetWidth, a = n.offsetHeight;
|
|
19
|
+
i({
|
|
20
|
+
width: r,
|
|
21
|
+
height: a
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
return e.observe(n, { box: "border-box" }), () => e.unobserve(n);
|
|
25
|
+
} else i(void 0);
|
|
26
|
+
}, [n]), r;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { n as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { t } from "./dist-bDoR0CBU.mjs";
|
|
3
|
+
import { t as n } from "./dist-BmjFh8i_.mjs";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import i from "react-dom";
|
|
6
|
+
//#region ../../node_modules/.bun/@radix-ui+react-portal@1.1.9+2d3f272c3a65784a/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
7
|
+
var a = e(), o = "Portal", s = r.forwardRef((e, o) => {
|
|
8
|
+
let { container: s, ...c } = e, [l, u] = r.useState(!1);
|
|
9
|
+
n(() => u(!0), []);
|
|
10
|
+
let d = s || l && globalThis?.document?.body;
|
|
11
|
+
return d ? i.createPortal(/* @__PURE__ */ (0, a.jsx)(t.div, {
|
|
12
|
+
...c,
|
|
13
|
+
ref: o
|
|
14
|
+
}), d) : null;
|
|
15
|
+
});
|
|
16
|
+
s.displayName = o;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { s as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`);let t=require(`react`);t=e.i(t,1);var n=e.t();function r(e,r){let i=t.createContext(r),a=e=>{let{children:r,...a}=e,o=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(i.Provider,{value:o,children:r})};a.displayName=e+`Provider`;function o(n){let a=t.useContext(i);if(a)return a;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}return[a,o]}function i(e,r=[]){let i=[];function o(r,a){let o=t.createContext(a),s=i.length;i=[...i,a];let c=r=>{let{scope:i,children:a,...c}=r,l=i?.[e]?.[s]||o,u=t.useMemo(()=>c,Object.values(c));return(0,n.jsx)(l.Provider,{value:u,children:a})};c.displayName=r+`Provider`;function l(n,i){let c=i?.[e]?.[s]||o,l=t.useContext(c);if(l)return l;if(a!==void 0)return a;throw Error(`\`${n}\` must be used within \`${r}\``)}return[c,l]}let s=()=>{let n=i.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[o,a(s,...r)]}function a(...e){let n=e[0];if(e.length===1)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as e } from "./dist-BmjFh8i_.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-controllable-state@1.2.2+7adf8d6cb8833b18/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
4
|
+
var n = t.useInsertionEffect || e;
|
|
5
|
+
function r({ prop: e, defaultProp: n, onChange: r = () => {}, caller: o }) {
|
|
6
|
+
let [s, c, l] = i({
|
|
7
|
+
defaultProp: n,
|
|
8
|
+
onChange: r
|
|
9
|
+
}), u = e !== void 0, d = u ? e : s;
|
|
10
|
+
{
|
|
11
|
+
let n = t.useRef(e !== void 0);
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
let e = n.current;
|
|
14
|
+
e !== u && console.warn(`${o} 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.`), n.current = u;
|
|
15
|
+
}, [u, o]);
|
|
16
|
+
}
|
|
17
|
+
return [d, t.useCallback((t) => {
|
|
18
|
+
if (u) {
|
|
19
|
+
let n = a(t) ? t(e) : t;
|
|
20
|
+
n !== e && l.current?.(n);
|
|
21
|
+
} else c(t);
|
|
22
|
+
}, [
|
|
23
|
+
u,
|
|
24
|
+
e,
|
|
25
|
+
c,
|
|
26
|
+
l
|
|
27
|
+
])];
|
|
28
|
+
}
|
|
29
|
+
function i({ defaultProp: e, onChange: r }) {
|
|
30
|
+
let [i, a] = t.useState(e), o = t.useRef(i), s = t.useRef(r);
|
|
31
|
+
return n(() => {
|
|
32
|
+
s.current = r;
|
|
33
|
+
}, [r]), t.useEffect(() => {
|
|
34
|
+
o.current !== i && (s.current?.(i), o.current = i);
|
|
35
|
+
}, [i, o]), [
|
|
36
|
+
i,
|
|
37
|
+
a,
|
|
38
|
+
s
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
function a(e) {
|
|
42
|
+
return typeof e == "function";
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { r as t };
|