highsoft-ui 1.0.133 → 1.0.134
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/{Button-BWe-hGo0.js → Button-K3WlRB7Q.js} +2 -2
- package/dist/{ButtonGroup-CXgj-MxA.js → ButtonGroup-Di8R8XMS.js} +2 -2
- package/dist/{Checkbox-Dgs_Bq30.js → Checkbox-Yg8sUFcu.js} +2 -2
- package/dist/{Container-mH6tG_kR.js → Container--5g4TI1z.js} +1 -1
- package/dist/{CookiePolicyModal-loN0LAaO.js → CookiePolicyModal-BDtX6aXU.js} +6 -6
- package/dist/{CopyCode-D6zuZ3nb.js → CopyCode-CPC5QPAz.js} +4 -4
- package/dist/{DiscordInvite-CR7g5hay.js → DiscordInvite-CLYxexdH.js} +2 -2
- package/dist/Dropdown-CMR98u7M.js +821 -0
- package/dist/{Footer-CLBv8yI9.js → Footer-DJ2xOs6M.js} +11 -11
- package/dist/{FooterBottom-BuUj1R5w.js → FooterBottom-BSII1GXN.js} +4 -4
- package/dist/{FooterHelp-aae_c9D0.js → FooterHelp-D14IrxvA.js} +5 -5
- package/dist/{FooterLinks-CMoTnXpW.js → FooterLinks-_OSgp8_1.js} +5 -5
- package/dist/{GPTInput-Cgu6_F53.js → GPTInput-C0YG1990.js} +1 -1
- package/dist/{Header-DjRIOI5-.js → Header-CB4t3RmW.js} +10 -10
- package/dist/{Heading-DvLlRFvQ.js → Heading-pg3St8MI.js} +1 -1
- package/dist/{Icon-Dwo9ZDNX.js → Icon-VeXJMj8Q.js} +1 -1
- package/dist/{InputGrouped-qenKO8Jl.js → InputGrouped-ENTLSUR_.js} +3 -3
- package/dist/{InputSolo-DOZp13Mv.js → InputSolo-BUg1ip7e.js} +1 -1
- package/dist/{Label-DkJ9JjU6.js → Label-gTAMwE0j.js} +2 -2
- package/dist/{Logo-BRXxiQk8.js → Logo-DTfFHBgU.js} +1 -1
- package/dist/{NewsletterSignup-CQ16wS4l.js → NewsletterSignup-hFZm8H5q.js} +9 -9
- package/dist/{Notification-BDC_8mYw.js → Notification-DcC9pjzU.js} +5 -5
- package/dist/{PrefPanel-Cf-9oKfS.js → PrefPanel-pFTxxuQW.js} +54 -53
- package/dist/{ProductIcon-DjgAODwc.js → ProductIcon-DFLAYWbu.js} +1 -1
- package/dist/{RadioBox-B9rLrNTK.js → RadioBox-o1Ssyj0s.js} +1 -1
- package/dist/{RoadmapDetails-8I0H8cJO.js → RoadmapDetails-Cv-T7-lm.js} +4 -4
- package/dist/{Search-BvuVKy00.js → Search-DwY5daIl.js} +1039 -943
- package/dist/{Tabs-DanjfIHP.js → Tabs-BEpADhmv.js} +2 -2
- package/dist/{Typography-Dw2_XzMu.js → Typography-CJ7GcPcE.js} +1 -1
- package/dist/{YoutubeModal-CcsPAJj8.js → YoutubeModal-CiBt7a4G.js} +7 -7
- package/dist/components/Box/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/DiscordInvite/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/GPTInput/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/Heading/index.js +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/InputSolo/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/Logo/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +4 -4
- package/dist/components/Modal/index.js +5 -5
- package/dist/components/NewsletterSignup/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/index.js +1 -1
- package/dist/components/ProductIcon/icons/line/index.js +1 -1
- package/dist/components/ProductIcon/icons/monochrome/index.js +1 -1
- package/dist/components/ProductIcon/icons/multi/index.js +1 -1
- package/dist/components/ProductIcon/index.js +1 -1
- package/dist/components/RadioBox/index.js +1 -1
- package/dist/components/RoadmapDetails/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/{dist-MBZ50zVE.js → dist-B04QoImH.js} +60 -45
- package/dist/{dist-BMBUb7XY.js → dist-CE9LFbij.js} +71 -72
- package/dist/{dist-SfVqm611.js → dist-J9cXmrDi.js} +1 -1
- package/dist/dist-f0z6DapB.js +185 -0
- package/dist/{es2015-CJyFgdNb.js → es2015-DWa0ZZ7A.js} +395 -337
- package/dist/{esm-CH52zwuf.js → esm-Co_Guu6S.js} +89 -89
- package/dist/{fa-Ci5IATkb.js → fa-B95RwBpz.js} +6 -6
- package/dist/lib/components/ButtonGroup/index.d.ts +1 -1
- package/dist/lib/components/Checkbox/index.d.ts +2 -2
- package/dist/lib/components/DiscordInvite/index.d.ts +1 -1
- package/dist/lib/components/Dropdown/index.d.ts +3 -3
- package/dist/lib/components/Footer/CookiePolicyModal.d.ts +1 -1
- package/dist/lib/components/Footer/FooterBottom.d.ts +1 -1
- package/dist/lib/components/Footer/FooterHelp.d.ts +1 -1
- package/dist/lib/components/Footer/FooterLinks.d.ts +1 -1
- package/dist/lib/components/Footer/YoutubeModal.d.ts +1 -1
- package/dist/lib/components/Footer/index.d.ts +1 -1
- package/dist/lib/components/GPTInput/index.d.ts +2 -2
- package/dist/lib/components/Header/index.d.ts +2 -2
- package/dist/lib/components/Icon/index.d.ts +1 -1
- package/dist/lib/components/InputGrouped/index.d.ts +1 -1
- package/dist/lib/components/Label/index.d.ts +1 -1
- package/dist/lib/components/Link/index.d.ts +1 -1
- package/dist/lib/components/Logo/index.d.ts +1 -1
- package/dist/lib/components/Modal/ModalContactFooter.d.ts +1 -1
- package/dist/lib/components/Modal/index.d.ts +1 -1
- package/dist/lib/components/NewsletterSignup/index.d.ts +1 -1
- package/dist/lib/components/Notification/index.d.ts +1 -1
- package/dist/lib/components/PrefPanel/index.d.ts +2 -2
- package/dist/lib/components/ProductIcon/icons/grayscale/Accessibility.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Advantageplus.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Api.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/CaseStudies.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Changelog.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/ChartChooser.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Core.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/CustomProjects.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Dashboards.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Demos.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Docs.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Editor.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/EduLicense.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/ExportServer.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Gantt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Gpt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Grid.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Hca.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Lab.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/License.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Maps.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Python.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Roadmap.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Stock.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Support.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Accessibility.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Advantageplus.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Api.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/CaseStudies.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Changelog.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/ChartChooser.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Core.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/CustomProjects.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Dashboards.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Demos.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Docs.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Editor.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/EduLicense.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/ExportServer.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Gantt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Gpt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Grid.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Hca.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Lab.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/License.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Maps.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Python.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Roadmap.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Stock.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/line/Support.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Accessibility.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Advantageplus.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Api.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/CaseStudies.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Changelog.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/ChartChooser.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Core.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/CustomProjects.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Dashboards.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Demos.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Docs.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Editor.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/EduLicense.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/ExportServer.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Gantt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Gpt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Grid.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Hca.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Lab.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/License.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Maps.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Python.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Roadmap.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Stock.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/monochrome/Support.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Accessibility.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Advantageplus.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Api.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/CaseStudies.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Changelog.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/ChartChooser.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Core.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/CustomProjects.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Dashboards.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Demos.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Docs.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Editor.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/EduLicense.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/ExportServer.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Gantt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Gpt.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Grid.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Hca.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Lab.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/License.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Maps.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Python.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Roadmap.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Stock.d.ts +1 -1
- package/dist/lib/components/ProductIcon/icons/multi/Support.d.ts +1 -1
- package/dist/lib/components/ProductIcon/index.d.ts +1 -1
- package/dist/lib/components/RadioBox/index.d.ts +2 -2
- package/dist/lib/components/RoadmapDetails/index.d.ts +1 -1
- package/dist/lib/components/Search/index.d.ts +1 -1
- package/dist/lib/components/Tabs/index.d.ts +1 -1
- package/dist/lib/components/ThemeLoader/index.d.ts +1 -1
- package/dist/lib/components/icons/Bubble.d.ts +1 -1
- package/dist/lib/components/icons/MadeInNorway.d.ts +1 -1
- package/dist/lib/components/icons/Plane.d.ts +1 -1
- package/dist/main.js +27 -27
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/Dropdown-fBTRMHW7.js +0 -817
- package/dist/dist-9h8Pur86.js +0 -211
- /package/dist/{Box-Bi-n_ZxQ.js → Box-BZgeSeCV.js} +0 -0
- /package/dist/{Link-DGMiLJES.js → Link-CYR92_U0.js} +0 -0
- /package/dist/{chunk-foFoljWS.js → chunk-jwUa06l-.js} +0 -0
- /package/dist/{clsx-D7D_XZ_-.js → clsx-BWCAbrjV.js} +0 -0
- /package/dist/{styles.module-BZplfYRW.js → styles.module-BDcr8Smc.js} +0 -0
- /package/dist/{utils-BCI5dixg.js → utils-K9S_6_Eq.js} +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { _ as e, c as t,
|
|
1
|
+
import { _ as e, c as t, d as n, h as r, l as i, m as a, p as o, y as s } from "./es2015-DWa0ZZ7A.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import l from "react";
|
|
4
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
4
|
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
6
|
-
function
|
|
7
|
-
let n = t + "CollectionProvider", [r,
|
|
5
|
+
function u(t) {
|
|
6
|
+
let n = t + "CollectionProvider", [r, i] = a(n), [o, u] = r(n, {
|
|
8
7
|
collectionRef: { current: null },
|
|
9
8
|
itemMap: /* @__PURE__ */ new Map()
|
|
10
9
|
}), d = (e) => {
|
|
11
|
-
let { scope: t, children: n } = e, r =
|
|
12
|
-
return /* @__PURE__ */
|
|
10
|
+
let { scope: t, children: n } = e, r = c.useRef(null), i = c.useRef(/* @__PURE__ */ new Map()).current;
|
|
11
|
+
return /* @__PURE__ */ l(o, {
|
|
13
12
|
scope: t,
|
|
14
13
|
itemMap: i,
|
|
15
14
|
collectionRef: r,
|
|
@@ -17,20 +16,20 @@ function d(t) {
|
|
|
17
16
|
});
|
|
18
17
|
};
|
|
19
18
|
d.displayName = n;
|
|
20
|
-
let f = t + "CollectionSlot", p = e(f), m =
|
|
19
|
+
let f = t + "CollectionSlot", p = e(f), m = c.forwardRef((e, t) => {
|
|
21
20
|
let { scope: n, children: r } = e;
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
ref: s(t,
|
|
21
|
+
return /* @__PURE__ */ l(p, {
|
|
22
|
+
ref: s(t, u(f, n).collectionRef),
|
|
24
23
|
children: r
|
|
25
24
|
});
|
|
26
25
|
});
|
|
27
26
|
m.displayName = f;
|
|
28
|
-
let h = t + "CollectionItemSlot", g = "data-radix-collection-item", _ = e(h), v =
|
|
29
|
-
let { scope: n, children: r, ...i } = e, a =
|
|
30
|
-
return
|
|
27
|
+
let h = t + "CollectionItemSlot", g = "data-radix-collection-item", _ = e(h), v = c.forwardRef((e, t) => {
|
|
28
|
+
let { scope: n, children: r, ...i } = e, a = c.useRef(null), o = s(t, a), d = u(h, n);
|
|
29
|
+
return c.useEffect(() => (d.itemMap.set(a, {
|
|
31
30
|
ref: a,
|
|
32
31
|
...i
|
|
33
|
-
}), () => void d.itemMap.delete(a))), /* @__PURE__ */
|
|
32
|
+
}), () => void d.itemMap.delete(a))), /* @__PURE__ */ l(_, {
|
|
34
33
|
[g]: "",
|
|
35
34
|
ref: o,
|
|
36
35
|
children: r
|
|
@@ -38,8 +37,8 @@ function d(t) {
|
|
|
38
37
|
});
|
|
39
38
|
v.displayName = h;
|
|
40
39
|
function y(e) {
|
|
41
|
-
let n =
|
|
42
|
-
return
|
|
40
|
+
let n = u(t + "CollectionConsumer", e);
|
|
41
|
+
return c.useCallback(() => {
|
|
43
42
|
let e = n.collectionRef.current;
|
|
44
43
|
if (!e) return [];
|
|
45
44
|
let t = Array.from(e.querySelectorAll(`[${g}]`));
|
|
@@ -53,45 +52,45 @@ function d(t) {
|
|
|
53
52
|
ItemSlot: v
|
|
54
53
|
},
|
|
55
54
|
y,
|
|
56
|
-
|
|
55
|
+
i
|
|
57
56
|
];
|
|
58
57
|
}
|
|
59
58
|
//#endregion
|
|
60
59
|
//#region node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
let t = c.useContext(
|
|
60
|
+
var d = c.createContext(void 0);
|
|
61
|
+
function f(e) {
|
|
62
|
+
let t = c.useContext(d);
|
|
64
63
|
return e || t || "ltr";
|
|
65
64
|
}
|
|
66
65
|
//#endregion
|
|
67
66
|
//#region node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
68
|
-
var
|
|
67
|
+
var p = "rovingFocusGroup.onEntryFocus", m = {
|
|
69
68
|
bubbles: !1,
|
|
70
69
|
cancelable: !0
|
|
71
|
-
},
|
|
70
|
+
}, h = "RovingFocusGroup", [g, _, v] = u(h), [y, b] = a(h, [v]), [x, S] = y(h), C = c.forwardRef((e, t) => /* @__PURE__ */ l(g.Provider, {
|
|
72
71
|
scope: e.__scopeRovingFocusGroup,
|
|
73
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ l(g.Slot, {
|
|
74
73
|
scope: e.__scopeRovingFocusGroup,
|
|
75
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ l(w, {
|
|
76
75
|
...e,
|
|
77
76
|
ref: t
|
|
78
77
|
})
|
|
79
78
|
})
|
|
80
79
|
}));
|
|
81
|
-
|
|
82
|
-
var
|
|
83
|
-
let { __scopeRovingFocusGroup:
|
|
84
|
-
prop:
|
|
80
|
+
C.displayName = h;
|
|
81
|
+
var w = c.forwardRef((e, i) => {
|
|
82
|
+
let { __scopeRovingFocusGroup: a, orientation: u, loop: d = !1, dir: g, currentTabStopId: v, defaultCurrentTabStopId: y, onCurrentTabStopIdChange: b, onEntryFocus: S, preventScrollOnEntryFocus: C = !1, ...w } = e, T = c.useRef(null), E = s(i, T), D = f(g), [O, k] = n({
|
|
83
|
+
prop: v,
|
|
85
84
|
defaultProp: y ?? null,
|
|
86
85
|
onChange: b,
|
|
87
|
-
caller:
|
|
88
|
-
}), [
|
|
86
|
+
caller: h
|
|
87
|
+
}), [j, M] = c.useState(!1), N = t(S), P = _(a), F = c.useRef(!1), [I, L] = c.useState(0);
|
|
89
88
|
return c.useEffect(() => {
|
|
90
89
|
let e = T.current;
|
|
91
|
-
if (e) return e.addEventListener(
|
|
92
|
-
}, [N]), /* @__PURE__ */
|
|
93
|
-
scope:
|
|
94
|
-
orientation:
|
|
90
|
+
if (e) return e.addEventListener(p, N), () => e.removeEventListener(p, N);
|
|
91
|
+
}, [N]), /* @__PURE__ */ l(x, {
|
|
92
|
+
scope: a,
|
|
93
|
+
orientation: u,
|
|
95
94
|
dir: D,
|
|
96
95
|
loop: d,
|
|
97
96
|
currentTabStopId: O,
|
|
@@ -99,25 +98,25 @@ var T = c.forwardRef((e, t) => {
|
|
|
99
98
|
onItemShiftTab: c.useCallback(() => M(!0), []),
|
|
100
99
|
onFocusableItemAdd: c.useCallback(() => L((e) => e + 1), []),
|
|
101
100
|
onFocusableItemRemove: c.useCallback(() => L((e) => e - 1), []),
|
|
102
|
-
children: /* @__PURE__ */
|
|
103
|
-
tabIndex:
|
|
104
|
-
"data-orientation":
|
|
101
|
+
children: /* @__PURE__ */ l(r.div, {
|
|
102
|
+
tabIndex: j || I === 0 ? -1 : 0,
|
|
103
|
+
"data-orientation": u,
|
|
105
104
|
...w,
|
|
106
105
|
ref: E,
|
|
107
106
|
style: {
|
|
108
107
|
outline: "none",
|
|
109
108
|
...e.style
|
|
110
109
|
},
|
|
111
|
-
onMouseDown:
|
|
110
|
+
onMouseDown: o(e.onMouseDown, () => {
|
|
112
111
|
F.current = !0;
|
|
113
112
|
}),
|
|
114
|
-
onFocus:
|
|
113
|
+
onFocus: o(e.onFocus, (e) => {
|
|
115
114
|
let t = !F.current;
|
|
116
|
-
if (e.target === e.currentTarget && t && !
|
|
117
|
-
let t = new CustomEvent(
|
|
115
|
+
if (e.target === e.currentTarget && t && !j) {
|
|
116
|
+
let t = new CustomEvent(p, m);
|
|
118
117
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
119
118
|
let e = P().filter((e) => e.focusable);
|
|
120
|
-
|
|
119
|
+
A([
|
|
121
120
|
e.find((e) => e.active),
|
|
122
121
|
e.find((e) => e.id === O),
|
|
123
122
|
...e
|
|
@@ -126,38 +125,38 @@ var T = c.forwardRef((e, t) => {
|
|
|
126
125
|
}
|
|
127
126
|
F.current = !1;
|
|
128
127
|
}),
|
|
129
|
-
onBlur:
|
|
128
|
+
onBlur: o(e.onBlur, () => M(!1))
|
|
130
129
|
})
|
|
131
130
|
});
|
|
132
|
-
}),
|
|
133
|
-
let { __scopeRovingFocusGroup:
|
|
131
|
+
}), T = "RovingFocusGroupItem", E = c.forwardRef((e, t) => {
|
|
132
|
+
let { __scopeRovingFocusGroup: n, focusable: a = !0, active: s = !1, tabStopId: u, children: d, ...f } = e, p = i(), m = u || p, h = S(T, n), v = h.currentTabStopId === m, y = _(n), { onFocusableItemAdd: b, onFocusableItemRemove: x, currentTabStopId: C } = h;
|
|
134
133
|
return c.useEffect(() => {
|
|
135
|
-
if (
|
|
134
|
+
if (a) return b(), () => x();
|
|
136
135
|
}, [
|
|
137
|
-
|
|
136
|
+
a,
|
|
138
137
|
b,
|
|
139
138
|
x
|
|
140
|
-
]), /* @__PURE__ */
|
|
141
|
-
scope:
|
|
139
|
+
]), /* @__PURE__ */ l(g.ItemSlot, {
|
|
140
|
+
scope: n,
|
|
142
141
|
id: m,
|
|
143
|
-
focusable:
|
|
142
|
+
focusable: a,
|
|
144
143
|
active: s,
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
tabIndex:
|
|
144
|
+
children: /* @__PURE__ */ l(r.span, {
|
|
145
|
+
tabIndex: v ? 0 : -1,
|
|
147
146
|
"data-orientation": h.orientation,
|
|
148
147
|
...f,
|
|
149
|
-
ref:
|
|
150
|
-
onMouseDown:
|
|
151
|
-
|
|
148
|
+
ref: t,
|
|
149
|
+
onMouseDown: o(e.onMouseDown, (e) => {
|
|
150
|
+
a ? h.onItemFocus(m) : e.preventDefault();
|
|
152
151
|
}),
|
|
153
|
-
onFocus:
|
|
154
|
-
onKeyDown:
|
|
152
|
+
onFocus: o(e.onFocus, () => h.onItemFocus(m)),
|
|
153
|
+
onKeyDown: o(e.onKeyDown, (e) => {
|
|
155
154
|
if (e.key === "Tab" && e.shiftKey) {
|
|
156
155
|
h.onItemShiftTab();
|
|
157
156
|
return;
|
|
158
157
|
}
|
|
159
158
|
if (e.target !== e.currentTarget) return;
|
|
160
|
-
let t =
|
|
159
|
+
let t = k(e, h.orientation, h.dir);
|
|
161
160
|
if (t !== void 0) {
|
|
162
161
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
163
162
|
e.preventDefault();
|
|
@@ -166,20 +165,20 @@ var T = c.forwardRef((e, t) => {
|
|
|
166
165
|
else if (t === "prev" || t === "next") {
|
|
167
166
|
t === "prev" && n.reverse();
|
|
168
167
|
let r = n.indexOf(e.currentTarget);
|
|
169
|
-
n = h.loop ?
|
|
168
|
+
n = h.loop ? j(n, r + 1) : n.slice(r + 1);
|
|
170
169
|
}
|
|
171
|
-
setTimeout(() =>
|
|
170
|
+
setTimeout(() => A(n));
|
|
172
171
|
}
|
|
173
172
|
}),
|
|
174
173
|
children: typeof d == "function" ? d({
|
|
175
|
-
isCurrentTabStop:
|
|
176
|
-
hasTabStop:
|
|
174
|
+
isCurrentTabStop: v,
|
|
175
|
+
hasTabStop: C != null
|
|
177
176
|
}) : d
|
|
178
177
|
})
|
|
179
178
|
});
|
|
180
179
|
});
|
|
181
|
-
|
|
182
|
-
var
|
|
180
|
+
E.displayName = T;
|
|
181
|
+
var D = {
|
|
183
182
|
ArrowLeft: "prev",
|
|
184
183
|
ArrowUp: "prev",
|
|
185
184
|
ArrowRight: "next",
|
|
@@ -189,20 +188,20 @@ var O = {
|
|
|
189
188
|
PageDown: "last",
|
|
190
189
|
End: "last"
|
|
191
190
|
};
|
|
192
|
-
function
|
|
191
|
+
function O(e, t) {
|
|
193
192
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
194
193
|
}
|
|
195
|
-
function
|
|
196
|
-
let r =
|
|
197
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
194
|
+
function k(e, t, n) {
|
|
195
|
+
let r = O(e.key, n);
|
|
196
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return D[r];
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function A(e, t = !1) {
|
|
200
199
|
let n = document.activeElement;
|
|
201
200
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
202
201
|
}
|
|
203
|
-
function
|
|
202
|
+
function j(e, t) {
|
|
204
203
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
205
204
|
}
|
|
206
|
-
var
|
|
205
|
+
var M = C, N = E;
|
|
207
206
|
//#endregion
|
|
208
|
-
export {
|
|
207
|
+
export { u as a, f as i, M as n, b as r, N as t };
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { _ as e, a as t, d as n, h as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p, y as m } from "./es2015-DWa0ZZ7A.js";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { Fragment as g, jsx as _ } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
5
|
+
var v = "Dialog", [y, b] = o(v), [x, S] = y(v), C = (e) => {
|
|
6
|
+
let { __scopeDialog: t, children: r, open: i, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = n({
|
|
7
|
+
prop: i,
|
|
8
|
+
defaultProp: o ?? !1,
|
|
9
|
+
onChange: s,
|
|
10
|
+
caller: v
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ _(x, {
|
|
13
|
+
scope: t,
|
|
14
|
+
triggerRef: l,
|
|
15
|
+
contentRef: u,
|
|
16
|
+
contentId: a(),
|
|
17
|
+
titleId: a(),
|
|
18
|
+
descriptionId: a(),
|
|
19
|
+
open: d,
|
|
20
|
+
onOpenChange: f,
|
|
21
|
+
onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
|
|
22
|
+
modal: c,
|
|
23
|
+
children: r
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
C.displayName = v;
|
|
27
|
+
var w = "DialogTrigger", T = h.forwardRef((e, t) => {
|
|
28
|
+
let { __scopeDialog: n, ...i } = e, a = S(w, n), o = m(t, a.triggerRef);
|
|
29
|
+
return /* @__PURE__ */ _(r.button, {
|
|
30
|
+
type: "button",
|
|
31
|
+
"aria-haspopup": "dialog",
|
|
32
|
+
"aria-expanded": a.open,
|
|
33
|
+
"aria-controls": a.open ? a.contentId : void 0,
|
|
34
|
+
"data-state": G(a.open),
|
|
35
|
+
...i,
|
|
36
|
+
ref: o,
|
|
37
|
+
onClick: l(e.onClick, a.onOpenToggle)
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
T.displayName = w;
|
|
41
|
+
var E = "DialogPortal", [D, O] = y(E, { forceMount: void 0 }), k = (e) => {
|
|
42
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = S(E, t);
|
|
43
|
+
return /* @__PURE__ */ _(D, {
|
|
44
|
+
scope: t,
|
|
45
|
+
forceMount: n,
|
|
46
|
+
children: h.Children.map(r, (e) => /* @__PURE__ */ _(p, {
|
|
47
|
+
present: n || o.open,
|
|
48
|
+
children: /* @__PURE__ */ _(i, {
|
|
49
|
+
asChild: !0,
|
|
50
|
+
container: a,
|
|
51
|
+
children: e
|
|
52
|
+
})
|
|
53
|
+
}))
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
k.displayName = E;
|
|
57
|
+
var A = "DialogOverlay", j = h.forwardRef((e, t) => {
|
|
58
|
+
let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
|
|
59
|
+
return a.modal ? /* @__PURE__ */ _(p, {
|
|
60
|
+
present: r || a.open,
|
|
61
|
+
children: /* @__PURE__ */ _(N, {
|
|
62
|
+
...i,
|
|
63
|
+
ref: t
|
|
64
|
+
})
|
|
65
|
+
}) : null;
|
|
66
|
+
});
|
|
67
|
+
j.displayName = A;
|
|
68
|
+
var M = e("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
|
|
69
|
+
let { __scopeDialog: n, ...i } = e, a = S(A, n), o = m(t, d());
|
|
70
|
+
return /* @__PURE__ */ _(s, {
|
|
71
|
+
as: M,
|
|
72
|
+
allowPinchZoom: !0,
|
|
73
|
+
shards: [a.contentRef],
|
|
74
|
+
children: /* @__PURE__ */ _(r.div, {
|
|
75
|
+
"data-state": G(a.open),
|
|
76
|
+
...i,
|
|
77
|
+
ref: o,
|
|
78
|
+
style: {
|
|
79
|
+
pointerEvents: "auto",
|
|
80
|
+
...i.style
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
}), P = "DialogContent", F = h.forwardRef((e, t) => {
|
|
85
|
+
let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
|
|
86
|
+
return /* @__PURE__ */ _(p, {
|
|
87
|
+
present: r || a.open,
|
|
88
|
+
children: a.modal ? /* @__PURE__ */ _(I, {
|
|
89
|
+
...i,
|
|
90
|
+
ref: t
|
|
91
|
+
}) : /* @__PURE__ */ _(L, {
|
|
92
|
+
...i,
|
|
93
|
+
ref: t
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
F.displayName = P;
|
|
98
|
+
var I = h.forwardRef((e, t) => {
|
|
99
|
+
let n = S(P, e.__scopeDialog), r = h.useRef(null), i = m(t, n.contentRef, r);
|
|
100
|
+
return h.useEffect(() => {
|
|
101
|
+
let e = r.current;
|
|
102
|
+
if (e) return f(e);
|
|
103
|
+
}, []), /* @__PURE__ */ _(R, {
|
|
104
|
+
...e,
|
|
105
|
+
ref: i,
|
|
106
|
+
trapFocus: n.open,
|
|
107
|
+
disableOutsidePointerEvents: n.open,
|
|
108
|
+
onCloseAutoFocus: l(e.onCloseAutoFocus, (e) => {
|
|
109
|
+
e.preventDefault(), n.triggerRef.current?.focus();
|
|
110
|
+
}),
|
|
111
|
+
onPointerDownOutside: l(e.onPointerDownOutside, (e) => {
|
|
112
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
113
|
+
(t.button === 2 || n) && e.preventDefault();
|
|
114
|
+
}),
|
|
115
|
+
onFocusOutside: l(e.onFocusOutside, (e) => e.preventDefault())
|
|
116
|
+
});
|
|
117
|
+
}), L = h.forwardRef((e, t) => {
|
|
118
|
+
let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
|
|
119
|
+
return /* @__PURE__ */ _(R, {
|
|
120
|
+
...e,
|
|
121
|
+
ref: t,
|
|
122
|
+
trapFocus: !1,
|
|
123
|
+
disableOutsidePointerEvents: !1,
|
|
124
|
+
onCloseAutoFocus: (t) => {
|
|
125
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
126
|
+
},
|
|
127
|
+
onInteractOutside: (t) => {
|
|
128
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
129
|
+
let a = t.target;
|
|
130
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}), R = h.forwardRef((e, n) => {
|
|
134
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, l = S(P, r);
|
|
135
|
+
return u(), /* @__PURE__ */ _(g, { children: /* @__PURE__ */ _(t, {
|
|
136
|
+
asChild: !0,
|
|
137
|
+
loop: !0,
|
|
138
|
+
trapped: i,
|
|
139
|
+
onMountAutoFocus: a,
|
|
140
|
+
onUnmountAutoFocus: o,
|
|
141
|
+
children: /* @__PURE__ */ _(c, {
|
|
142
|
+
role: "dialog",
|
|
143
|
+
id: l.contentId,
|
|
144
|
+
"aria-describedby": l.descriptionId,
|
|
145
|
+
"aria-labelledby": l.titleId,
|
|
146
|
+
"data-state": G(l.open),
|
|
147
|
+
...s,
|
|
148
|
+
ref: n,
|
|
149
|
+
deferPointerDownOutside: !0,
|
|
150
|
+
onDismiss: () => l.onOpenChange(!1)
|
|
151
|
+
})
|
|
152
|
+
}) });
|
|
153
|
+
}), z = "DialogTitle", B = h.forwardRef((e, t) => {
|
|
154
|
+
let { __scopeDialog: n, ...i } = e, a = S(z, n);
|
|
155
|
+
return /* @__PURE__ */ _(r.h2, {
|
|
156
|
+
id: a.titleId,
|
|
157
|
+
...i,
|
|
158
|
+
ref: t
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
B.displayName = z;
|
|
162
|
+
var V = "DialogDescription", H = h.forwardRef((e, t) => {
|
|
163
|
+
let { __scopeDialog: n, ...i } = e, a = S(V, n);
|
|
164
|
+
return /* @__PURE__ */ _(r.p, {
|
|
165
|
+
id: a.descriptionId,
|
|
166
|
+
...i,
|
|
167
|
+
ref: t
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
H.displayName = V;
|
|
171
|
+
var U = "DialogClose", W = h.forwardRef((e, t) => {
|
|
172
|
+
let { __scopeDialog: n, ...i } = e, a = S(U, n);
|
|
173
|
+
return /* @__PURE__ */ _(r.button, {
|
|
174
|
+
type: "button",
|
|
175
|
+
...i,
|
|
176
|
+
ref: t,
|
|
177
|
+
onClick: l(e.onClick, () => a.onOpenChange(!1))
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
W.displayName = U;
|
|
181
|
+
function G(e) {
|
|
182
|
+
return e ? "open" : "closed";
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
export { k as a, j as i, W as n, B as o, F as r, T as s, C as t };
|