highsoft-ui 1.0.133 → 1.0.135
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-CsMI-4FF.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-C8dPx-p1.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
package/dist/dist-9h8Pur86.js
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, t as f, u as p, y as m } from "./es2015-CJyFgdNb.js";
|
|
2
|
-
import * as h from "react";
|
|
3
|
-
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
4
|
-
//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
5
|
-
var y = "Dialog", [b, ee] = s(y), [x, S] = b(y), C = (e) => {
|
|
6
|
-
let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = h.useRef(null), l = h.useRef(null), [u, d] = p({
|
|
7
|
-
prop: i,
|
|
8
|
-
defaultProp: a ?? !1,
|
|
9
|
-
onChange: o,
|
|
10
|
-
caller: y
|
|
11
|
-
});
|
|
12
|
-
return /* @__PURE__ */ _(x, {
|
|
13
|
-
scope: t,
|
|
14
|
-
triggerRef: c,
|
|
15
|
-
contentRef: l,
|
|
16
|
-
contentId: n(),
|
|
17
|
-
titleId: n(),
|
|
18
|
-
descriptionId: n(),
|
|
19
|
-
open: u,
|
|
20
|
-
onOpenChange: d,
|
|
21
|
-
onOpenToggle: h.useCallback(() => d((e) => !e), [d]),
|
|
22
|
-
modal: s,
|
|
23
|
-
children: r
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
C.displayName = y;
|
|
27
|
-
var w = "DialogTrigger", T = h.forwardRef((e, t) => {
|
|
28
|
-
let { __scopeDialog: n, ...a } = e, o = S(w, n), s = m(t, o.triggerRef);
|
|
29
|
-
return /* @__PURE__ */ _(i.button, {
|
|
30
|
-
type: "button",
|
|
31
|
-
"aria-haspopup": "dialog",
|
|
32
|
-
"aria-expanded": o.open,
|
|
33
|
-
"aria-controls": o.contentId,
|
|
34
|
-
"data-state": G(o.open),
|
|
35
|
-
...a,
|
|
36
|
-
ref: s,
|
|
37
|
-
onClick: r(e.onClick, o.onOpenToggle)
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
T.displayName = w;
|
|
41
|
-
var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
|
|
42
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, s = S(E, t);
|
|
43
|
-
return /* @__PURE__ */ _(D, {
|
|
44
|
-
scope: t,
|
|
45
|
-
forceMount: n,
|
|
46
|
-
children: h.Children.map(r, (e) => /* @__PURE__ */ _(o, {
|
|
47
|
-
present: n || s.open,
|
|
48
|
-
children: /* @__PURE__ */ _(a, {
|
|
49
|
-
asChild: !0,
|
|
50
|
-
container: i,
|
|
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__ */ _(o, {
|
|
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, ...r } = e, a = S(A, n);
|
|
70
|
-
return /* @__PURE__ */ _(c, {
|
|
71
|
-
as: M,
|
|
72
|
-
allowPinchZoom: !0,
|
|
73
|
-
shards: [a.contentRef],
|
|
74
|
-
children: /* @__PURE__ */ _(i.div, {
|
|
75
|
-
"data-state": G(a.open),
|
|
76
|
-
...r,
|
|
77
|
-
ref: t,
|
|
78
|
-
style: {
|
|
79
|
-
pointerEvents: "auto",
|
|
80
|
-
...r.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__ */ _(o, {
|
|
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), i = h.useRef(null), a = m(t, n.contentRef, i);
|
|
100
|
-
return h.useEffect(() => {
|
|
101
|
-
let e = i.current;
|
|
102
|
-
if (e) return f(e);
|
|
103
|
-
}, []), /* @__PURE__ */ _(R, {
|
|
104
|
-
...e,
|
|
105
|
-
ref: a,
|
|
106
|
-
trapFocus: n.open,
|
|
107
|
-
disableOutsidePointerEvents: !0,
|
|
108
|
-
onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
|
|
109
|
-
e.preventDefault(), n.triggerRef.current?.focus();
|
|
110
|
-
}),
|
|
111
|
-
onPointerDownOutside: r(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: r(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, c = S(P, r), u = h.useRef(null), f = m(n, u);
|
|
135
|
-
return d(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(t, {
|
|
136
|
-
asChild: !0,
|
|
137
|
-
loop: !0,
|
|
138
|
-
trapped: i,
|
|
139
|
-
onMountAutoFocus: a,
|
|
140
|
-
onUnmountAutoFocus: o,
|
|
141
|
-
children: /* @__PURE__ */ _(l, {
|
|
142
|
-
role: "dialog",
|
|
143
|
-
id: c.contentId,
|
|
144
|
-
"aria-describedby": c.descriptionId,
|
|
145
|
-
"aria-labelledby": c.titleId,
|
|
146
|
-
"data-state": G(c.open),
|
|
147
|
-
...s,
|
|
148
|
-
ref: f,
|
|
149
|
-
onDismiss: () => c.onOpenChange(!1)
|
|
150
|
-
})
|
|
151
|
-
}), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(J, { titleId: c.titleId }), /* @__PURE__ */ _(X, {
|
|
152
|
-
contentRef: u,
|
|
153
|
-
descriptionId: c.descriptionId
|
|
154
|
-
})] })] });
|
|
155
|
-
}), z = "DialogTitle", B = h.forwardRef((e, t) => {
|
|
156
|
-
let { __scopeDialog: n, ...r } = e, a = S(z, n);
|
|
157
|
-
return /* @__PURE__ */ _(i.h2, {
|
|
158
|
-
id: a.titleId,
|
|
159
|
-
...r,
|
|
160
|
-
ref: t
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
B.displayName = z;
|
|
164
|
-
var V = "DialogDescription", H = h.forwardRef((e, t) => {
|
|
165
|
-
let { __scopeDialog: n, ...r } = e, a = S(V, n);
|
|
166
|
-
return /* @__PURE__ */ _(i.p, {
|
|
167
|
-
id: a.descriptionId,
|
|
168
|
-
...r,
|
|
169
|
-
ref: t
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
H.displayName = V;
|
|
173
|
-
var U = "DialogClose", W = h.forwardRef((e, t) => {
|
|
174
|
-
let { __scopeDialog: n, ...a } = e, o = S(U, n);
|
|
175
|
-
return /* @__PURE__ */ _(i.button, {
|
|
176
|
-
type: "button",
|
|
177
|
-
...a,
|
|
178
|
-
ref: t,
|
|
179
|
-
onClick: r(e.onClick, () => o.onOpenChange(!1))
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
W.displayName = U;
|
|
183
|
-
function G(e) {
|
|
184
|
-
return e ? "open" : "closed";
|
|
185
|
-
}
|
|
186
|
-
var K = "DialogTitleWarning", [te, q] = u(K, {
|
|
187
|
-
contentName: P,
|
|
188
|
-
titleName: z,
|
|
189
|
-
docsSlug: "dialog"
|
|
190
|
-
}), J = ({ titleId: e }) => {
|
|
191
|
-
let t = q(K), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
192
|
-
|
|
193
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
194
|
-
|
|
195
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
196
|
-
return h.useEffect(() => {
|
|
197
|
-
e && (document.getElementById(e) || console.error(n));
|
|
198
|
-
}, [n, e]), null;
|
|
199
|
-
}, Y = "DialogDescriptionWarning", X = ({ contentRef: e, descriptionId: t }) => {
|
|
200
|
-
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q(Y).contentName}}.`;
|
|
201
|
-
return h.useEffect(() => {
|
|
202
|
-
let r = e.current?.getAttribute("aria-describedby");
|
|
203
|
-
t && r && (document.getElementById(t) || console.warn(n));
|
|
204
|
-
}, [
|
|
205
|
-
n,
|
|
206
|
-
e,
|
|
207
|
-
t
|
|
208
|
-
]), null;
|
|
209
|
-
}, Z = C, Q = T, $ = k, ne = j, re = F, ie = B, ae = W;
|
|
210
|
-
//#endregion
|
|
211
|
-
export { Z as a, $ as i, re as n, ie as o, ne as r, Q as s, ae as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|