@nxgt/material 3.75.0 → 3.76.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/CHANGELOG.md +40 -0
- package/README.md +37 -1
- package/dist/{alert-dialog-BfO_ri-N.js → alert-dialog-653apk3f.js} +8 -7
- package/dist/{async-slice-roMAJVzG.js → async-slice-CXLbQuOc.js} +1 -1
- package/dist/{bubble-input-B7BVd9fX.js → bubble-input-CQwVSoU3.js} +30 -29
- package/dist/{button-DgenqmpS.js → button-3op3rtZh.js} +5 -4
- package/dist/calculator-BaSMe0SK.js +1189 -0
- package/dist/calculator-announce-DRd2c6Dq.js +89 -0
- package/dist/calculator-context-BugcKuVG.js +10 -0
- package/dist/calculator-field.js +172 -0
- package/dist/calculator-panel-announce-AZSnZUSr.js +29 -0
- package/dist/calculator-segment-BlJE1LaS.js +22 -0
- package/dist/calculator.js +2 -0
- package/dist/charts.js +3 -3
- package/dist/{chip-CiDczNxO.js → chip-MuKDwtkG.js} +2 -2
- package/dist/{code-editor-CohlhFsA.js → code-editor-Bp2RrdNx.js} +13 -13
- package/dist/code-editor.js +37 -37
- package/dist/{code-language-items-Cs8GLYDp.js → code-language-items-B7WR5ua_.js} +19 -24
- package/dist/components/base-content.css +9 -4
- package/dist/components/ui/collections/server-table/server-table-phone-row.css +10 -3
- package/dist/{components-zJdfH4im.js → components-Ci3Zo8kC.js} +15837 -17245
- package/dist/components.js +37 -28
- package/dist/conversion-variant-BDFAxqe9.js +529 -0
- package/dist/copy-to-clipboard-Be5Ffvs_.js +7 -0
- package/dist/currency-B-r3ig11.js +16 -0
- package/dist/currency-field-BJ9rSrif.js +285 -0
- package/dist/{number.utils-BG_eEt5g.js → date.utils-DUvqcjan.js} +1 -7
- package/dist/dialog-Bm5LvVlB.js +166 -0
- package/dist/dist-BZe2evxL.js +139 -0
- package/dist/dist-CxhKjOYm.js +28 -0
- package/dist/dist-DHdUUM1w.js +241 -0
- package/dist/{dist-C4wtXCjf.js → dist-DOK3zo5C.js} +33 -32
- package/dist/dist-DWZXlCZR.js +182 -0
- package/dist/dist-DkQbkF9T.js +33 -0
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-CzR6JP31.js → dropdown-menu-xlZ6NYUA.js} +160 -159
- package/dist/editor.js +299 -298
- package/dist/{empty-state-DjHGMp5F.js → empty-state-C0kviQdW.js} +2 -2
- package/dist/{field-blur-CdASxjL7.js → field-blur-DkiZOVNV.js} +178 -180
- package/dist/{field-blur-context-kZ4SD7xu.js → field-blur-context-BLGgf_3z.js} +2 -2
- package/dist/financial-variant-BsZEa5sF.js +459 -0
- package/dist/{hooks-Dqq8O3Az.js → hooks-Dg94jPRq.js} +12 -12
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-BPKqte4a.js → hover-card-B1g55Hi6.js} +44 -43
- package/dist/i18n.js +3 -3
- package/dist/icon-badge-BcW66bRk.js +17 -0
- package/dist/{icon-button-Cr-DyDGg.js → icon-button-Cogxy1cy.js} +5 -4
- package/dist/{in-dialog-Vwkyp-M5.js → in-dialog-D61Yeaol.js} +2 -1
- package/dist/input-CC2joTjB.js +56 -0
- package/dist/key-layout-cR79xfGE.js +38 -0
- package/dist/lib/calculator/index.d.ts +16 -0
- package/dist/lib/calculator-field/index.d.ts +12 -0
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -2
- package/dist/lib/components/ui/feedback/moment/moment-body.d.ts +17 -2
- package/dist/lib/components/ui/feedback/moment/moment-passive.d.ts +13 -0
- package/dist/lib/components/ui/feedback/moment/moment.d.ts +16 -2
- package/dist/lib/components/ui/fields/calculator-field/apply-calculated.d.ts +17 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field-content.d.ts +16 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field-trigger.d.ts +4 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field.d.ts +12 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field.types.d.ts +31 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-form-field.d.ts +4 -0
- package/dist/lib/components/ui/fields/calculator-field/index.d.ts +3 -0
- package/dist/lib/components/ui/fields/calculator-field/use-calculator-field.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +7 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-context.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-announce.d.ts +27 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-clipboard.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-context.d.ts +49 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-feedback.d.ts +18 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-keyboard.d.ts +30 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-storage.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-variant-steps.d.ts +16 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.d.ts +11 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.selectors.d.ts +23 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.slice.d.ts +1881 -0
- package/dist/lib/components/ui/widgets/calculator/currency.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/engine.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/index.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-announcer.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-display.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-key.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +8 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-loading.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-memory.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-announce.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-body.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-screen.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-segment.d.ts +21 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-shell.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-switcher.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-tape.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-tools.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/keypad-navigation.d.ts +24 -0
- package/dist/lib/components/ui/widgets/calculator/types.d.ts +102 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-clipboard.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-conversion.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-feedback.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-keyboard.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-persistence.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-pos.d.ts +25 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-press.d.ts +26 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-tape.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-value.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-variant.d.ts +23 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/use-engine-settings.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-fields.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-labels.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-math.d.ts +31 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-names.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-panel.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-rates.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-result.d.ts +15 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-state.d.ts +36 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/use-conversion.d.ts +24 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-change.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-figures.d.ts +43 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-format.d.ts +12 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan-math.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-margin.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-math.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-panel.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-parts.d.ts +35 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-table.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-vat.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +51 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-announce.d.ts +16 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-aside.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-display.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-fields.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-layout.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-line.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-state.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-tender.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket-data.d.ts +41 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-totals.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-types.d.ts +76 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-vat.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-view.d.ts +28 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-announce.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-base.d.ts +11 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-bitpad.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-display.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-readouts.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-reduce.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-state.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-toolbar.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-word.d.ts +15 -0
- package/dist/lib/components/ui/widgets/calculator/variants/registry.d.ts +21 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-toolbar.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/standard/standard-layout.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-loader.d.ts +34 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-logic.d.ts +40 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-types.d.ts +62 -0
- package/dist/lib/i18n/resources/en/en.d.ts +412 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +412 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +412 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +412 -0
- package/dist/lib/i18n/resources/resources.d.ts +824 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +4 -3
- package/dist/main.js +50 -40
- package/dist/map.js +66 -65
- package/dist/material.css +1 -1
- package/dist/native-select-w_FlBLHV.js +40 -0
- package/dist/number.utils-CSueQZcv.js +7 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/percent-field-lahyDJDG.js +14 -0
- package/dist/picker-surface-CV09H7Nb.js +1220 -0
- package/dist/popover-Cd7DkND4.js +233 -0
- package/dist/pos-types-DKCkOTYy.js +49 -0
- package/dist/pos-variant-GrUfbTTP.js +603 -0
- package/dist/print.js +1 -1
- package/dist/programmer-variant-eKJNKENL.js +501 -0
- package/dist/programmer-word-CNCF7DJF.js +15 -0
- package/dist/{public-DC9VQw4Z.js → public-y6g4ddxd.js} +895 -892
- package/dist/{rich-code-block-DBSL9zEN.js → rich-code-block-CRQ0iyLb.js} +5 -5
- package/dist/scientific-variant-2y3UxAAU.js +149 -0
- package/dist/{sortable-provider-C4tk5esY.js → sortable-provider-DdiI3Fwk.js} +2 -2
- package/dist/{spinner-B2MubVWb.js → spinner-C1QIewWv.js} +133 -159
- package/dist/standard-layout-BuSRr3TY.js +40 -0
- package/dist/tabs-DzEqMb1W.js +383 -0
- package/dist/{icon-badge-B9uvDoyY.js → text-field-BAdY-kpO.js} +20 -34
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-BInlu21G.js → theme-toggle-C_VeiiCm.js} +2 -2
- package/dist/toggle-FeCCJqbg.js +40 -0
- package/dist/{toggle-group-DXXlqid2.js → toggle-group-CVMxEpWi.js} +1 -1
- package/dist/{toolbar-items-CRJSx1MU.js → toolbar-items-D310xDuM.js} +333 -554
- package/dist/{translate-material-pVlPJ1v4.js → translate-material-BypJJ1l5.js} +1 -1
- package/dist/{translator-BoYCward.js → translator-DJkf4J7t.js} +824 -0
- package/dist/{typography-B6YMbCge.js → typography-CYEquVeb.js} +1 -1
- package/dist/{use-chat-composer-BvWQogJe.js → use-chat-composer-DMXu9E1O.js} +4198 -4600
- package/dist/{use-heading-spy-B_Z4ArDh.js → use-heading-spy-DJR8YYm6.js} +19 -19
- package/dist/{use-material-translation-CIS2n3RB.js → use-material-translation-CD6QoVal.js} +1 -1
- package/dist/{use-return-focus-DNQtADAR.js → use-return-focus-Cevw_6yq.js} +106 -105
- package/dist/useLatest-C2PnQEeD.js +8 -0
- package/docs/README.md +1 -0
- package/docs/components/feedback-and-status.md +10 -1
- package/docs/components/form-fields.md +1 -0
- package/docs/components/rich-widgets.md +108 -0
- package/docs/getting-started.md +1 -0
- package/docs/guides/calculator.md +468 -0
- package/docs/guides/forms.md +4 -2
- package/docs/guides/i18n.md +5 -0
- package/docs/previews/rich-widgets-calculator-conversion.webp +0 -0
- package/docs/previews/rich-widgets-calculator-point-of-sale.webp +0 -0
- package/docs/previews/rich-widgets-calculator.webp +0 -0
- package/docs/roadmap.md +9 -3
- package/docs/troubleshooting.md +134 -0
- package/lib/components/base-content.css +9 -4
- package/lib/components/ui/collections/server-table/server-table-phone-row.css +10 -3
- package/lib/components/ui/widgets/calculator/calculator-bands.css +146 -0
- package/lib/components/ui/widgets/calculator/calculator-display.css +83 -0
- package/lib/components/ui/widgets/calculator/calculator-keys.css +118 -0
- package/lib/components/ui/widgets/calculator/calculator-pos-ticket.css +185 -0
- package/lib/components/ui/widgets/calculator/calculator-pos.css +38 -0
- package/lib/components/ui/widgets/calculator/calculator-tape.css +71 -0
- package/lib/components/ui/widgets/calculator/calculator.css +97 -0
- package/lib/components/ui/widgets/calculator/variants/conversion/conversion.css +98 -0
- package/lib/components/ui/widgets/calculator/variants/financial/financial.css +162 -0
- package/lib/components/ui/widgets/calculator/variants/programmer/programmer.css +162 -0
- package/package.json +17 -3
- package/dist/dialog-AGsB3bv4.js +0 -219
- package/dist/dist-B7RjY7SL.js +0 -158
- package/dist/dist-lmHmz_bu.js +0 -419
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { n as e } from "./dist-DWZXlCZR.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../node_modules/@radix-ui/react-context/dist/index.mjs
|
|
5
|
+
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
|
+
value: t,
|
|
7
|
+
configurable: !0
|
|
8
|
+
});
|
|
9
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
|
+
function a(e, r) {
|
|
11
|
+
let a = t.createContext(r);
|
|
12
|
+
a.displayName = e + "Context";
|
|
13
|
+
let o = /* @__PURE__ */ i((e) => {
|
|
14
|
+
let { children: r, ...i } = e, o = t.useMemo(() => i, Object.values(i));
|
|
15
|
+
return /* @__PURE__ */ n(a.Provider, {
|
|
16
|
+
value: o,
|
|
17
|
+
children: r
|
|
18
|
+
});
|
|
19
|
+
}, "Provider");
|
|
20
|
+
o.displayName = e + "Provider";
|
|
21
|
+
function s(n, i = {}) {
|
|
22
|
+
let { optional: o = !1 } = i, s = t.useContext(a);
|
|
23
|
+
if (s) return s;
|
|
24
|
+
if (r !== void 0) return r;
|
|
25
|
+
if (!o) throw Error(`\`${n}\` must be used within \`${e}\``);
|
|
26
|
+
}
|
|
27
|
+
return i(s, "useContext"), [o, s];
|
|
28
|
+
}
|
|
29
|
+
i(a, "createContext");
|
|
30
|
+
// @__NO_SIDE_EFFECTS__
|
|
31
|
+
function o(e, r = []) {
|
|
32
|
+
let a = [];
|
|
33
|
+
function o(r, o) {
|
|
34
|
+
let s = t.createContext(o);
|
|
35
|
+
s.displayName = r + "Context";
|
|
36
|
+
let c = a.length;
|
|
37
|
+
a = [...a, o];
|
|
38
|
+
let l = /* @__PURE__ */ i((r) => {
|
|
39
|
+
let { scope: i, children: a, ...o } = r, l = i?.[e]?.[c] || s, u = t.useMemo(() => o, Object.values(o));
|
|
40
|
+
return /* @__PURE__ */ n(l.Provider, {
|
|
41
|
+
value: u,
|
|
42
|
+
children: a
|
|
43
|
+
});
|
|
44
|
+
}, "Provider");
|
|
45
|
+
l.displayName = r + "Provider";
|
|
46
|
+
function u(n, i, a = {}) {
|
|
47
|
+
let { optional: l = !1 } = a, u = i?.[e]?.[c] || s, d = t.useContext(u);
|
|
48
|
+
if (d) return d;
|
|
49
|
+
if (o !== void 0) return o;
|
|
50
|
+
if (!l) throw Error(`\`${n}\` must be used within \`${r}\``);
|
|
51
|
+
}
|
|
52
|
+
return i(u, "useContext"), [l, u];
|
|
53
|
+
}
|
|
54
|
+
i(o, "createContext");
|
|
55
|
+
let c = /* @__PURE__ */ i(() => {
|
|
56
|
+
let n = a.map((e) => t.createContext(e));
|
|
57
|
+
return /* @__PURE__ */ i(function(r) {
|
|
58
|
+
let i = r?.[e] || n;
|
|
59
|
+
return t.useMemo(() => ({ [`__scope${e}`]: {
|
|
60
|
+
...r,
|
|
61
|
+
[e]: i
|
|
62
|
+
} }), [r, i]);
|
|
63
|
+
}, "useScope");
|
|
64
|
+
}, "createScope");
|
|
65
|
+
return c.scopeName = e, [o, s(c, ...r)];
|
|
66
|
+
}
|
|
67
|
+
i(o, "createContextScope");
|
|
68
|
+
function s(...e) {
|
|
69
|
+
let n = e[0];
|
|
70
|
+
if (e.length === 1) return n;
|
|
71
|
+
let r = /* @__PURE__ */ i(() => {
|
|
72
|
+
let r = e.map((e) => ({
|
|
73
|
+
useScope: e(),
|
|
74
|
+
scopeName: e.scopeName
|
|
75
|
+
}));
|
|
76
|
+
return /* @__PURE__ */ i(function(e) {
|
|
77
|
+
let i = r.reduce((t, { useScope: n, scopeName: r }) => {
|
|
78
|
+
let i = n(e)[`__scope${r}`];
|
|
79
|
+
return {
|
|
80
|
+
...t,
|
|
81
|
+
...i
|
|
82
|
+
};
|
|
83
|
+
}, {});
|
|
84
|
+
return t.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
|
|
85
|
+
}, "useComposedScopes");
|
|
86
|
+
}, "createScope");
|
|
87
|
+
return r.scopeName = n.scopeName, r;
|
|
88
|
+
}
|
|
89
|
+
i(s, "composeContextScopes");
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../../node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
92
|
+
var c = Object.defineProperty, l = (e, t) => c(e, "name", {
|
|
93
|
+
value: t,
|
|
94
|
+
configurable: !0
|
|
95
|
+
});
|
|
96
|
+
function u(e, n) {
|
|
97
|
+
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
98
|
+
}
|
|
99
|
+
l(u, "useStateMachine");
|
|
100
|
+
var d = /* @__PURE__ */ l((e) => {
|
|
101
|
+
let { present: n, children: r } = e, i = f(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), o = m(i.ref, g(a));
|
|
102
|
+
return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: o }) : null;
|
|
103
|
+
}, "Presence");
|
|
104
|
+
function f(n) {
|
|
105
|
+
let [r, i] = t.useState(), a = t.useRef(null), o = t.useRef(n), s = t.useRef("none"), c = t.useRef(void 0), [d, f] = u(n ? "mounted" : "unmounted", {
|
|
106
|
+
mounted: {
|
|
107
|
+
UNMOUNT: "unmounted",
|
|
108
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
109
|
+
},
|
|
110
|
+
unmountSuspended: {
|
|
111
|
+
MOUNT: "mounted",
|
|
112
|
+
ANIMATION_END: "unmounted"
|
|
113
|
+
},
|
|
114
|
+
unmounted: { MOUNT: "mounted" }
|
|
115
|
+
});
|
|
116
|
+
return t.useEffect(() => {
|
|
117
|
+
d === "mounted" ? (s.current = c.current ?? h(a.current), c.current = void 0) : s.current = "none";
|
|
118
|
+
}, [d]), e(() => {
|
|
119
|
+
let e = a.current, t = o.current;
|
|
120
|
+
if (t !== n) {
|
|
121
|
+
let r = s.current, i = h(e);
|
|
122
|
+
n ? (c.current = i, f("MOUNT")) : i === "none" || e?.display === "none" ? f("UNMOUNT") : f(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
|
|
123
|
+
}
|
|
124
|
+
}, [n, f]), e(() => {
|
|
125
|
+
if (r) {
|
|
126
|
+
let e, t = r.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ l((n) => {
|
|
127
|
+
let i = h(a.current).includes(CSS.escape(n.animationName));
|
|
128
|
+
if (n.target === r && i && (f("ANIMATION_END"), !o.current)) {
|
|
129
|
+
let n = r.style.animationFillMode;
|
|
130
|
+
r.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
131
|
+
r.style.animationFillMode === "forwards" && (r.style.animationFillMode = n);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}, "handleAnimationEnd"), i = /* @__PURE__ */ l((e) => {
|
|
135
|
+
e.target === r && (s.current = h(a.current));
|
|
136
|
+
}, "handleAnimationStart");
|
|
137
|
+
return r.addEventListener("animationstart", i), r.addEventListener("animationcancel", n), r.addEventListener("animationend", n), () => {
|
|
138
|
+
t.clearTimeout(e), r.removeEventListener("animationstart", i), r.removeEventListener("animationcancel", n), r.removeEventListener("animationend", n);
|
|
139
|
+
};
|
|
140
|
+
} else f("ANIMATION_END");
|
|
141
|
+
}, [r, f]), {
|
|
142
|
+
isPresent: ["mounted", "unmountSuspended"].includes(d),
|
|
143
|
+
ref: t.useCallback((e) => {
|
|
144
|
+
if (e) {
|
|
145
|
+
let t = getComputedStyle(e);
|
|
146
|
+
a.current = t, c.current = h(t);
|
|
147
|
+
} else a.current = null;
|
|
148
|
+
i(e);
|
|
149
|
+
}, [])
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
l(f, "usePresence");
|
|
153
|
+
function p(e, t) {
|
|
154
|
+
if (typeof e == "function") return e(t);
|
|
155
|
+
e != null && (e.current = t);
|
|
156
|
+
}
|
|
157
|
+
l(p, "setRef");
|
|
158
|
+
function m(...e) {
|
|
159
|
+
let n = t.useRef(e);
|
|
160
|
+
return n.current = e, t.useCallback((e) => {
|
|
161
|
+
let t = n.current, r = !1, i = t.map((t) => {
|
|
162
|
+
let n = p(t, e);
|
|
163
|
+
return !r && typeof n == "function" && (r = !0), n;
|
|
164
|
+
});
|
|
165
|
+
if (r) return () => {
|
|
166
|
+
for (let e = 0; e < i.length; e++) {
|
|
167
|
+
let n = i[e];
|
|
168
|
+
typeof n == "function" ? n() : p(t[e], null);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}, []);
|
|
172
|
+
}
|
|
173
|
+
l(m, "useStableComposedRefs");
|
|
174
|
+
function h(e) {
|
|
175
|
+
return e?.animationName || "none";
|
|
176
|
+
}
|
|
177
|
+
l(h, "getAnimationName");
|
|
178
|
+
function g(e) {
|
|
179
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
180
|
+
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);
|
|
181
|
+
}
|
|
182
|
+
l(g, "getElementRef");
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region ../../node_modules/@radix-ui/react-id/dist/index.mjs
|
|
185
|
+
var _ = Object.defineProperty, v = (e, t) => _(e, "name", {
|
|
186
|
+
value: t,
|
|
187
|
+
configurable: !0
|
|
188
|
+
}), y = t.useId || (() => void 0), b = 0;
|
|
189
|
+
function x(n) {
|
|
190
|
+
let [r, i] = t.useState(y());
|
|
191
|
+
return e(() => {
|
|
192
|
+
n || i((e) => e ?? String(b++));
|
|
193
|
+
}, [n]), n || (r ? `radix-${r}` : "");
|
|
194
|
+
}
|
|
195
|
+
v(x, "useId");
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region ../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
198
|
+
var S = Object.defineProperty, C = (e, t) => S(e, "name", {
|
|
199
|
+
value: t,
|
|
200
|
+
configurable: !0
|
|
201
|
+
});
|
|
202
|
+
function w(e) {
|
|
203
|
+
let n = t.useRef(e);
|
|
204
|
+
return t.useEffect(() => {
|
|
205
|
+
n.current = e;
|
|
206
|
+
}), t.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
207
|
+
}
|
|
208
|
+
C(w, "useCallbackRef");
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region ../../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
211
|
+
var T = Object.defineProperty, E = (e, t) => T(e, "name", {
|
|
212
|
+
value: t,
|
|
213
|
+
configurable: !0
|
|
214
|
+
});
|
|
215
|
+
function D(n) {
|
|
216
|
+
let [r, i] = t.useState(void 0);
|
|
217
|
+
return e(() => {
|
|
218
|
+
if (n) {
|
|
219
|
+
i({
|
|
220
|
+
width: n.offsetWidth,
|
|
221
|
+
height: n.offsetHeight
|
|
222
|
+
});
|
|
223
|
+
let e = new ResizeObserver((e) => {
|
|
224
|
+
if (!Array.isArray(e) || !e.length) return;
|
|
225
|
+
let t = e[0], r, a;
|
|
226
|
+
if ("borderBoxSize" in t) {
|
|
227
|
+
let e = t.borderBoxSize, n = Array.isArray(e) ? e[0] : e;
|
|
228
|
+
r = n.inlineSize, a = n.blockSize;
|
|
229
|
+
} else r = n.offsetWidth, a = n.offsetHeight;
|
|
230
|
+
i({
|
|
231
|
+
width: r,
|
|
232
|
+
height: a
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
return e.observe(n, { box: "border-box" }), () => e.unobserve(n);
|
|
236
|
+
} else i(void 0);
|
|
237
|
+
}, [n]), r;
|
|
238
|
+
}
|
|
239
|
+
E(D, "useSize");
|
|
240
|
+
//#endregion
|
|
241
|
+
export { o as a, d as i, w as n, x as r, D as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { o as e, r as t } from "./dist-DVRQkaTK.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as n, n as r, r as i, t as a } from "./dist-DWZXlCZR.js";
|
|
3
|
+
import { a as o, n as s, r as c } from "./dist-DHdUUM1w.js";
|
|
3
4
|
import * as l from "react";
|
|
4
5
|
import { jsx as u } from "react/jsx-runtime";
|
|
5
6
|
//#region ../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
@@ -9,7 +10,7 @@ var d = Object.defineProperty, f = (e, t) => d(e, "name", {
|
|
|
9
10
|
});
|
|
10
11
|
// @__NO_SIDE_EFFECTS__
|
|
11
12
|
function p(n) {
|
|
12
|
-
let
|
|
13
|
+
let r = n + "CollectionProvider", [i, a] = o(r), [s, c] = i(r, {
|
|
13
14
|
collectionRef: { current: null },
|
|
14
15
|
itemMap: /* @__PURE__ */ new Map()
|
|
15
16
|
}), d = /* @__PURE__ */ f((e) => {
|
|
@@ -21,7 +22,7 @@ function p(n) {
|
|
|
21
22
|
children: n
|
|
22
23
|
});
|
|
23
24
|
}, "CollectionProvider");
|
|
24
|
-
d.displayName =
|
|
25
|
+
d.displayName = r;
|
|
25
26
|
let p = n + "CollectionSlot", m = t(p), h = l.forwardRef((t, n) => {
|
|
26
27
|
let { scope: r, children: i } = t, a = e(n, c(p, r).collectionRef);
|
|
27
28
|
return /* @__PURE__ */ u(m, {
|
|
@@ -58,7 +59,7 @@ function p(n) {
|
|
|
58
59
|
ItemSlot: y
|
|
59
60
|
},
|
|
60
61
|
b,
|
|
61
|
-
|
|
62
|
+
a
|
|
62
63
|
];
|
|
63
64
|
}
|
|
64
65
|
f(p, "createCollection");
|
|
@@ -284,7 +285,7 @@ function v(e) {
|
|
|
284
285
|
f(v, "toSafeInteger");
|
|
285
286
|
// @__NO_SIDE_EFFECTS__
|
|
286
287
|
function y(n) {
|
|
287
|
-
let
|
|
288
|
+
let r = n + "CollectionProvider", [i, a] = o(r), [s, c] = i(r, {
|
|
288
289
|
collectionElement: null,
|
|
289
290
|
collectionRef: { current: null },
|
|
290
291
|
collectionRefObject: { current: null },
|
|
@@ -294,7 +295,7 @@ function y(n) {
|
|
|
294
295
|
...t,
|
|
295
296
|
state: e
|
|
296
297
|
}) : /* @__PURE__ */ u(p, { ...t }), "CollectionProvider");
|
|
297
|
-
d.displayName =
|
|
298
|
+
d.displayName = r;
|
|
298
299
|
let p = /* @__PURE__ */ f((e) => {
|
|
299
300
|
let t = T();
|
|
300
301
|
return /* @__PURE__ */ u(m, {
|
|
@@ -302,7 +303,7 @@ function y(n) {
|
|
|
302
303
|
state: t
|
|
303
304
|
});
|
|
304
305
|
}, "CollectionInit");
|
|
305
|
-
p.displayName =
|
|
306
|
+
p.displayName = r + "Init";
|
|
306
307
|
let m = /* @__PURE__ */ f((t) => {
|
|
307
308
|
let { scope: n, children: r, state: i } = t, a = l.useRef(null), [o, c] = l.useState(null), d = e(a, c), [f, p] = i;
|
|
308
309
|
return l.useEffect(() => {
|
|
@@ -324,7 +325,7 @@ function y(n) {
|
|
|
324
325
|
children: r
|
|
325
326
|
});
|
|
326
327
|
}, "CollectionProviderImpl");
|
|
327
|
-
m.displayName =
|
|
328
|
+
m.displayName = r + "Impl";
|
|
328
329
|
let g = n + "CollectionSlot", _ = t(g), v = l.forwardRef((t, n) => {
|
|
329
330
|
let { scope: r, children: i } = t, a = e(n, c(g, r).collectionRef);
|
|
330
331
|
return /* @__PURE__ */ u(_, {
|
|
@@ -372,7 +373,7 @@ function y(n) {
|
|
|
372
373
|
Slot: v,
|
|
373
374
|
ItemSlot: w
|
|
374
375
|
}, {
|
|
375
|
-
createCollectionScope:
|
|
376
|
+
createCollectionScope: a,
|
|
376
377
|
useCollection: E,
|
|
377
378
|
useInitCollection: T
|
|
378
379
|
}];
|
|
@@ -443,7 +444,7 @@ var F = typeof M == "function" ? P : j, ee = Object.defineProperty, I = (e, t) =
|
|
|
443
444
|
}), L = "rovingFocusGroup.onEntryFocus", R = {
|
|
444
445
|
bubbles: !1,
|
|
445
446
|
cancelable: !0
|
|
446
|
-
}, z = "RovingFocusGroup", [B, V, H] = /* @__PURE__ */ p(z), [U, W] =
|
|
447
|
+
}, z = "RovingFocusGroup", [B, V, H] = /* @__PURE__ */ p(z), [U, W] = o(z, [H]), [G, K] = U(z), q = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ I(function(e, t) {
|
|
447
448
|
return /* @__PURE__ */ u(B.Provider, {
|
|
448
449
|
scope: e.__scopeRovingFocusGroup,
|
|
449
450
|
children: /* @__PURE__ */ u(B.Slot, {
|
|
@@ -455,18 +456,18 @@ var F = typeof M == "function" ? P : j, ee = Object.defineProperty, I = (e, t) =
|
|
|
455
456
|
})
|
|
456
457
|
});
|
|
457
458
|
}, "RovingFocusGroup")), J = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ I(function(t, r) {
|
|
458
|
-
let { __scopeRovingFocusGroup: o, orientation:
|
|
459
|
+
let { __scopeRovingFocusGroup: o, orientation: c, loop: d = !1, dir: f, currentTabStopId: p, defaultCurrentTabStopId: m, onCurrentTabStopIdChange: h, onEntryFocus: g, preventScrollOnEntryFocus: _ = !1, ...v } = t, y = l.useRef(null), b = e(r, y), x = D(f), [S, C] = a({
|
|
459
460
|
prop: p,
|
|
460
461
|
defaultProp: m ?? null,
|
|
461
462
|
onChange: h,
|
|
462
463
|
caller: z
|
|
463
|
-
}), [w, T] = l.useState(!1), E =
|
|
464
|
+
}), [w, T] = l.useState(!1), E = s(g), O = V(o), k = l.useRef(!1), [A, j] = l.useState(0);
|
|
464
465
|
return l.useEffect(() => {
|
|
465
466
|
let e = y.current;
|
|
466
467
|
if (e) return e.addEventListener(L, E), () => e.removeEventListener(L, E);
|
|
467
468
|
}, [E]), /* @__PURE__ */ u(G, {
|
|
468
469
|
scope: o,
|
|
469
|
-
orientation:
|
|
470
|
+
orientation: c,
|
|
470
471
|
dir: x,
|
|
471
472
|
loop: d,
|
|
472
473
|
currentTabStopId: S,
|
|
@@ -474,19 +475,19 @@ var F = typeof M == "function" ? P : j, ee = Object.defineProperty, I = (e, t) =
|
|
|
474
475
|
onItemShiftTab: l.useCallback(() => T(!0), []),
|
|
475
476
|
onFocusableItemAdd: l.useCallback(() => j((e) => e + 1), []),
|
|
476
477
|
onFocusableItemRemove: l.useCallback(() => j((e) => e - 1), []),
|
|
477
|
-
children: /* @__PURE__ */ u(
|
|
478
|
+
children: /* @__PURE__ */ u(n.div, {
|
|
478
479
|
tabIndex: w || A === 0 ? -1 : 0,
|
|
479
|
-
"data-orientation":
|
|
480
|
+
"data-orientation": c,
|
|
480
481
|
...v,
|
|
481
482
|
ref: b,
|
|
482
483
|
style: {
|
|
483
484
|
outline: "none",
|
|
484
485
|
...t.style
|
|
485
486
|
},
|
|
486
|
-
onMouseDown:
|
|
487
|
+
onMouseDown: i(t.onMouseDown, () => {
|
|
487
488
|
k.current = !0;
|
|
488
489
|
}),
|
|
489
|
-
onFocus:
|
|
490
|
+
onFocus: i(t.onFocus, (e) => {
|
|
490
491
|
let t = !k.current;
|
|
491
492
|
if (e.target === e.currentTarget && t && !w) {
|
|
492
493
|
let t = new CustomEvent(L, R);
|
|
@@ -501,40 +502,40 @@ var F = typeof M == "function" ? P : j, ee = Object.defineProperty, I = (e, t) =
|
|
|
501
502
|
}
|
|
502
503
|
k.current = !1;
|
|
503
504
|
}),
|
|
504
|
-
onBlur:
|
|
505
|
+
onBlur: i(t.onBlur, () => T(!1))
|
|
505
506
|
})
|
|
506
507
|
});
|
|
507
508
|
}, "RovingFocusGroupImpl")), Y = "RovingFocusGroupItem", te = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ I(function(e, t) {
|
|
508
|
-
let { __scopeRovingFocusGroup:
|
|
509
|
-
return
|
|
510
|
-
if (!(!S || !
|
|
509
|
+
let { __scopeRovingFocusGroup: a, focusable: o = !0, active: s = !1, tabStopId: d, children: f, ...p } = e, m = c(), h = d || m, g = K(Y, a), _ = g.currentTabStopId === h, v = V(a), { onFocusableItemAdd: y, onFocusableItemRemove: b, currentTabStopId: x } = g, S = F();
|
|
510
|
+
return r(() => {
|
|
511
|
+
if (!(!S || !o)) return y(), () => b();
|
|
511
512
|
}, [
|
|
512
513
|
S,
|
|
513
|
-
|
|
514
|
+
o,
|
|
514
515
|
y,
|
|
515
516
|
b
|
|
516
517
|
]), l.useEffect(() => {
|
|
517
|
-
if (!(S || !
|
|
518
|
+
if (!(S || !o)) return y(), () => b();
|
|
518
519
|
}, [
|
|
519
520
|
S,
|
|
520
|
-
|
|
521
|
+
o,
|
|
521
522
|
y,
|
|
522
523
|
b
|
|
523
524
|
]), /* @__PURE__ */ u(B.ItemSlot, {
|
|
524
|
-
scope:
|
|
525
|
+
scope: a,
|
|
525
526
|
id: h,
|
|
526
|
-
focusable:
|
|
527
|
-
active:
|
|
528
|
-
children: /* @__PURE__ */ u(
|
|
527
|
+
focusable: o,
|
|
528
|
+
active: s,
|
|
529
|
+
children: /* @__PURE__ */ u(n.span, {
|
|
529
530
|
tabIndex: _ ? 0 : -1,
|
|
530
531
|
"data-orientation": g.orientation,
|
|
531
532
|
...p,
|
|
532
533
|
ref: t,
|
|
533
|
-
onMouseDown:
|
|
534
|
-
|
|
534
|
+
onMouseDown: i(e.onMouseDown, (e) => {
|
|
535
|
+
o ? g.onItemFocus(h) : e.preventDefault();
|
|
535
536
|
}),
|
|
536
|
-
onFocus:
|
|
537
|
-
onKeyDown:
|
|
537
|
+
onFocus: i(e.onFocus, () => g.onItemFocus(h)),
|
|
538
|
+
onKeyDown: i(e.onKeyDown, (e) => {
|
|
538
539
|
if (e.key === "Tab" && e.shiftKey) {
|
|
539
540
|
g.onItemShiftTab();
|
|
540
541
|
return;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { r as e } from "./dist-DVRQkaTK.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "react-dom";
|
|
5
|
+
//#region ../../node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
+
var i = Object.defineProperty, a = (e, t) => i(e, "name", {
|
|
7
|
+
value: t,
|
|
8
|
+
configurable: !0
|
|
9
|
+
}), o = [
|
|
10
|
+
"a",
|
|
11
|
+
"button",
|
|
12
|
+
"div",
|
|
13
|
+
"form",
|
|
14
|
+
"h2",
|
|
15
|
+
"h3",
|
|
16
|
+
"img",
|
|
17
|
+
"input",
|
|
18
|
+
"label",
|
|
19
|
+
"li",
|
|
20
|
+
"nav",
|
|
21
|
+
"ol",
|
|
22
|
+
"p",
|
|
23
|
+
"select",
|
|
24
|
+
"span",
|
|
25
|
+
"svg",
|
|
26
|
+
"ul"
|
|
27
|
+
].reduce((r, i) => {
|
|
28
|
+
let a = e(`Primitive.${i}`), o = t.forwardRef((e, t) => {
|
|
29
|
+
let { asChild: r, ...o } = e, s = r ? a : i;
|
|
30
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, {
|
|
31
|
+
...o,
|
|
32
|
+
ref: t
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
return o.displayName = `Primitive.${i}`, {
|
|
36
|
+
...r,
|
|
37
|
+
[i]: o
|
|
38
|
+
};
|
|
39
|
+
}, {});
|
|
40
|
+
function s(e, t) {
|
|
41
|
+
e && r.flushSync(() => e.dispatchEvent(t));
|
|
42
|
+
}
|
|
43
|
+
a(s, "dispatchDiscreteCustomEvent");
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../../node_modules/@radix-ui/primitive/dist/index.mjs
|
|
46
|
+
var c = Object.defineProperty, l = (e, t) => c(e, "name", {
|
|
47
|
+
value: t,
|
|
48
|
+
configurable: !0
|
|
49
|
+
}), u = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
50
|
+
function d(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
51
|
+
return /* @__PURE__ */ l(function(r) {
|
|
52
|
+
if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
|
|
53
|
+
}, "handleEvent");
|
|
54
|
+
}
|
|
55
|
+
l(d, "composeEventHandlers");
|
|
56
|
+
function f(e) {
|
|
57
|
+
if (!u) throw Error("Cannot access window outside of the DOM");
|
|
58
|
+
return e?.ownerDocument?.defaultView ?? window;
|
|
59
|
+
}
|
|
60
|
+
l(f, "getOwnerWindow");
|
|
61
|
+
function p(e) {
|
|
62
|
+
if (!u) throw Error("Cannot access document outside of the DOM");
|
|
63
|
+
return e?.ownerDocument ?? document;
|
|
64
|
+
}
|
|
65
|
+
l(p, "getOwnerDocument");
|
|
66
|
+
function m(e, t = !1) {
|
|
67
|
+
let { activeElement: n } = p(e);
|
|
68
|
+
if (!n?.nodeName) return null;
|
|
69
|
+
if (h(n) && n.contentDocument) return m(n.contentDocument.body, t);
|
|
70
|
+
if (t) {
|
|
71
|
+
let e = n.getAttribute("aria-activedescendant");
|
|
72
|
+
if (e) {
|
|
73
|
+
let t = p(n).getElementById(e);
|
|
74
|
+
if (t) return t;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return n;
|
|
78
|
+
}
|
|
79
|
+
l(m, "getActiveElement");
|
|
80
|
+
function h(e) {
|
|
81
|
+
return e.tagName === "IFRAME";
|
|
82
|
+
}
|
|
83
|
+
l(h, "isFrame");
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
86
|
+
var g = globalThis?.document ? t.useLayoutEffect : () => {}, _ = Object.defineProperty, v = (e, t) => _(e, "name", {
|
|
87
|
+
value: t,
|
|
88
|
+
configurable: !0
|
|
89
|
+
}), y = t.useEffectEvent, b = t.useInsertionEffect;
|
|
90
|
+
function x(e) {
|
|
91
|
+
if (typeof y == "function") return y(e);
|
|
92
|
+
let n = t.useRef(() => {
|
|
93
|
+
throw Error("Cannot call an event handler while rendering.");
|
|
94
|
+
});
|
|
95
|
+
return typeof b == "function" ? b(() => {
|
|
96
|
+
n.current = e;
|
|
97
|
+
}) : g(() => {
|
|
98
|
+
n.current = e;
|
|
99
|
+
}), t.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
100
|
+
}
|
|
101
|
+
v(x, "useEffectEvent");
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region ../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
104
|
+
var S = Object.defineProperty, C = (e, t) => S(e, "name", {
|
|
105
|
+
value: t,
|
|
106
|
+
configurable: !0
|
|
107
|
+
}), w = t.useInsertionEffect || g;
|
|
108
|
+
function T({ prop: e, defaultProp: n, onChange: r = /* @__PURE__ */ C(() => {}, "onChange"), caller: i }) {
|
|
109
|
+
let [a, o, s] = E({
|
|
110
|
+
defaultProp: n,
|
|
111
|
+
onChange: r
|
|
112
|
+
}), c = e !== void 0;
|
|
113
|
+
return [c ? e : a, t.useCallback((t) => {
|
|
114
|
+
if (c) {
|
|
115
|
+
let n = D(t) ? t(e) : t;
|
|
116
|
+
n !== e && s.current?.(n);
|
|
117
|
+
} else o(t);
|
|
118
|
+
}, [
|
|
119
|
+
c,
|
|
120
|
+
e,
|
|
121
|
+
o,
|
|
122
|
+
s
|
|
123
|
+
])];
|
|
124
|
+
}
|
|
125
|
+
C(T, "useControllableState");
|
|
126
|
+
function E({ defaultProp: e, onChange: n }) {
|
|
127
|
+
let [r, i] = t.useState(e), a = t.useRef(r), o = t.useRef(n);
|
|
128
|
+
return w(() => {
|
|
129
|
+
o.current = n;
|
|
130
|
+
}, [n]), t.useEffect(() => {
|
|
131
|
+
a.current !== r && (o.current?.(r), a.current = r);
|
|
132
|
+
}, [r, a]), [
|
|
133
|
+
r,
|
|
134
|
+
i,
|
|
135
|
+
o
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
C(E, "useUncontrolledState");
|
|
139
|
+
function D(e) {
|
|
140
|
+
return typeof e == "function";
|
|
141
|
+
}
|
|
142
|
+
C(D, "isFunction");
|
|
143
|
+
var O = Symbol("RADIX:SYNC_STATE");
|
|
144
|
+
function k(e, n, r, i) {
|
|
145
|
+
let { prop: a, defaultProp: o, onChange: s, caller: c } = n, l = a !== void 0, u = x(s), d = [{
|
|
146
|
+
...r,
|
|
147
|
+
state: o
|
|
148
|
+
}];
|
|
149
|
+
i && d.push(i);
|
|
150
|
+
let [f, p] = t.useReducer((t, n) => {
|
|
151
|
+
if (n.type === O) return {
|
|
152
|
+
...t,
|
|
153
|
+
state: n.state
|
|
154
|
+
};
|
|
155
|
+
let r = e(t, n);
|
|
156
|
+
return l && !Object.is(r.state, t.state) && u(r.state), r;
|
|
157
|
+
}, ...d), m = f.state, h = t.useRef(m);
|
|
158
|
+
t.useEffect(() => {
|
|
159
|
+
h.current !== m && (h.current = m, l || u(m));
|
|
160
|
+
}, [
|
|
161
|
+
m,
|
|
162
|
+
h,
|
|
163
|
+
l
|
|
164
|
+
]);
|
|
165
|
+
let g = t.useMemo(() => a === void 0 ? f : {
|
|
166
|
+
...f,
|
|
167
|
+
state: a
|
|
168
|
+
}, [f, a]);
|
|
169
|
+
return t.useEffect(() => {
|
|
170
|
+
l && !Object.is(a, f.state) && p({
|
|
171
|
+
type: O,
|
|
172
|
+
state: a
|
|
173
|
+
});
|
|
174
|
+
}, [
|
|
175
|
+
a,
|
|
176
|
+
f.state,
|
|
177
|
+
l
|
|
178
|
+
]), [g, p];
|
|
179
|
+
}
|
|
180
|
+
C(k, "useControllableStateReducer");
|
|
181
|
+
//#endregion
|
|
182
|
+
export { s as a, o as i, g as n, d as r, T as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { n as e } from "./utils-BLfntITJ.js";
|
|
2
|
+
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3
|
+
var t = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, n = e, r = (e, r) => (i) => {
|
|
4
|
+
if (r?.variants == null) return n(e, i?.class, i?.className);
|
|
5
|
+
let { variants: a, defaultVariants: o } = r, s = Object.keys(a).map((e) => {
|
|
6
|
+
let n = i?.[e], r = o?.[e];
|
|
7
|
+
if (n === null) return null;
|
|
8
|
+
let s = t(n) || t(r);
|
|
9
|
+
return a[e][s];
|
|
10
|
+
}), c = i && Object.entries(i).reduce((e, t) => {
|
|
11
|
+
let [n, r] = t;
|
|
12
|
+
return r === void 0 || (e[n] = r), e;
|
|
13
|
+
}, {});
|
|
14
|
+
return n(e, s, r?.compoundVariants?.reduce((e, t) => {
|
|
15
|
+
let { class: n, className: r, ...i } = t;
|
|
16
|
+
return Object.entries(i).every((e) => {
|
|
17
|
+
let [t, n] = e;
|
|
18
|
+
return Array.isArray(n) ? n.includes({
|
|
19
|
+
...o,
|
|
20
|
+
...c
|
|
21
|
+
}[t]) : {
|
|
22
|
+
...o,
|
|
23
|
+
...c
|
|
24
|
+
}[t] === n;
|
|
25
|
+
}) ? [
|
|
26
|
+
...e,
|
|
27
|
+
n,
|
|
28
|
+
r
|
|
29
|
+
] : e;
|
|
30
|
+
}, []), i?.class, i?.className);
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as t };
|
package/dist/dnd.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as e } from "./compose-refs-G4J4kaUA.js";
|
|
2
|
-
import { _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./sortable-provider-
|
|
2
|
+
import { _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./sortable-provider-DdiI3Fwk.js";
|
|
3
3
|
export { r as CSS, u as DndOverlay, i as DndProvider, g as DragHandle, p as Draggable, n as DraggableDroppable, l as Droppable, f as Sortable, _ as SortableProvider, o as arrayMove, c as closestCenter, e as composeRefs, m as horizontalListSortingStrategy, h as insertIds, s as pointerWithin, t as rectIntersection, v as useDndActiveId, a as useDndItem, d as verticalListSortingStrategy };
|