highsoft-ui 1.0.126 → 1.0.128
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-CJp__tle.js → Button-FtTHXgq3.js} +1 -1
- package/dist/{ButtonGroup-CfNp_xXf.js → ButtonGroup-eZng2GQy.js} +1 -1
- package/dist/Checkbox-CMWwWnbI.js +153 -0
- package/dist/{CookiePolicyModal-BN_AXefZ.js → CookiePolicyModal-_zwtaOvm.js} +3 -3
- package/dist/{CopyCode-BLXf0o74.js → CopyCode-C7iHMVIg.js} +2 -2
- package/dist/Dropdown-B6J7ph3w.js +817 -0
- package/dist/{Footer-BsddrH6J.js → Footer-Q3Z-Synu.js} +8 -8
- package/dist/{FooterBottom-ybvI6wyw.js → FooterBottom-Dbr8oMdf.js} +1 -1
- package/dist/{FooterHelp-D88w95D4.js → FooterHelp-BsApOrYf.js} +1 -1
- package/dist/{FooterLinks-B8QP6uKP.js → FooterLinks-Dx7GBu-X.js} +2 -2
- package/dist/{Header-B8todalU.js → Header-DxauB1pI.js} +41 -41
- package/dist/{InputGrouped-jbMns5qa.js → InputGrouped-B9jyncxb.js} +13 -13
- package/dist/{Label-bbLlUYRM.js → Label-BHGkcLu9.js} +1 -1
- package/dist/{NewsletterSignup-DEgL93rH.js → NewsletterSignup-jPKQLKvl.js} +4 -4
- package/dist/{Notification-CuVjbJzV.js → Notification-CO-mX_7b.js} +3 -3
- package/dist/PrefPanel-D-xcKbcr.js +253 -0
- package/dist/{Search-BcX6xtAY.js → Search-DokUD0o9.js} +972 -1171
- package/dist/{YoutubeModal-C58qsc27.js → YoutubeModal-T25hkIhQ.js} +3 -3
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +2 -0
- 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/InputGrouped/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +37 -0
- package/dist/components/Modal/index.js +94 -0
- 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/RadioBox/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/{dist-O77K9Ele.js → dist-9h8Pur86.js} +62 -62
- package/dist/dist-BMBUb7XY.js +208 -0
- package/dist/dist-MBZ50zVE.js +1303 -0
- package/dist/{dist-D4rcQ6qo.js → dist-SfVqm611.js} +1 -1
- package/dist/{es2015-BE1Gei7w.js → es2015-CJyFgdNb.js} +1 -1
- package/dist/{esm-T3Xn_ZHF.js → esm-vjQoQCu2.js} +46 -18
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/Checkbox/index.d.ts +54 -0
- package/dist/lib/components/Dropdown/index.d.ts +67 -0
- package/dist/lib/components/Modal/ModalContactFooter.d.ts +21 -0
- package/dist/lib/components/Modal/index.d.ts +41 -0
- package/dist/lib/main.d.ts +8 -0
- package/dist/main.js +19 -15
- package/dist/scss/variables.scss +84 -0
- package/dist/styles.module-BZplfYRW.js +17 -0
- package/package.json +1 -1
- package/dist/PrefPanel-CPWoS-hm.js +0 -1548
- /package/dist/{GPTInput-CZF0-SfI.js → GPTInput-Cgu6_F53.js} +0 -0
- /package/dist/{RadioBox-C_KZn7fw.js → RadioBox-B9rLrNTK.js} +0 -0
- /package/dist/{Tabs-CNkFaolf.js → Tabs-DanjfIHP.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./esm-
|
|
1
|
+
import { n as e } from "./esm-vjQoQCu2.js";
|
|
2
2
|
import { s as t } from "./fa-Ci5IATkb.js";
|
|
3
|
-
import { t as n } from "./dist-
|
|
4
|
-
import { a as r, i, n as a, o, r as s, s as c, t as l } from "./dist-
|
|
3
|
+
import { t as n } from "./dist-SfVqm611.js";
|
|
4
|
+
import { a as r, i, n as a, o, r as s, s as c, t as l } from "./dist-9h8Pur86.js";
|
|
5
5
|
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
6
6
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
7
|
var h = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Button-
|
|
1
|
+
import { t as e } from "../../Button-FtTHXgq3.js";
|
|
2
2
|
export { e as Button };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../ButtonGroup-
|
|
1
|
+
import { t as e } from "../../ButtonGroup-eZng2GQy.js";
|
|
2
2
|
export { e as ButtonGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CopyCode-
|
|
1
|
+
import { t as e } from "../../CopyCode-C7iHMVIg.js";
|
|
2
2
|
export { e as CopyCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CookiePolicyModal-
|
|
1
|
+
import { t as e } from "../../CookiePolicyModal-_zwtaOvm.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterBottom-
|
|
1
|
+
import { t as e } from "../../FooterBottom-Dbr8oMdf.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterHelp-
|
|
1
|
+
import { t as e } from "../../FooterHelp-BsApOrYf.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterLinks-
|
|
1
|
+
import { t as e } from "../../FooterLinks-Dx7GBu-X.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../YoutubeModal-
|
|
1
|
+
import { t as e } from "../../YoutubeModal-T25hkIhQ.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Footer-
|
|
1
|
+
import { t as e } from "../../Footer-Q3Z-Synu.js";
|
|
2
2
|
export { e as Footer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../GPTInput-
|
|
1
|
+
import { n as e, t } from "../../GPTInput-Cgu6_F53.js";
|
|
2
2
|
export { e as GPTInput, t as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Header-
|
|
1
|
+
import { n as e, t } from "../../Header-DxauB1pI.js";
|
|
2
2
|
export { t as Header, e as SubHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../../InputGrouped-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../InputGrouped-B9jyncxb.js";
|
|
2
2
|
export { r as FormGroup, t as FormRow, n as InputGrouped, e as SelectGrouped };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Label-
|
|
1
|
+
import { n as e, t } from "../../Label-BHGkcLu9.js";
|
|
2
2
|
export { t as Label, e as NewTag };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { b as e } from "../../esm-vjQoQCu2.js";
|
|
2
|
+
import { t } from "../../Button-FtTHXgq3.js";
|
|
3
|
+
import { t as n } from "../../Typography-Dw2_XzMu.js";
|
|
4
|
+
import { t as r } from "../../styles.module-BZplfYRW.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/Modal/ModalContactFooter.tsx
|
|
7
|
+
function o({ avatars: o, text: s = "Have more questions?", buttonLabel: c = "Connect with the sales team", buttonIcon: l = /* @__PURE__ */ i(e, {}), buttonHref: u, onButtonClick: d, buttonVariant: f = "transparent", buttonSize: p = 200 }) {
|
|
8
|
+
return /* @__PURE__ */ a("div", {
|
|
9
|
+
className: r.contactFooter,
|
|
10
|
+
children: [
|
|
11
|
+
o && o.length > 0 && /* @__PURE__ */ i("div", {
|
|
12
|
+
className: r.avatarStack,
|
|
13
|
+
children: o.map((e, t) => /* @__PURE__ */ i("div", {
|
|
14
|
+
className: r.avatar,
|
|
15
|
+
style: { backgroundImage: `url(${e})` },
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}, `${e}-${t}`))
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i(n, {
|
|
20
|
+
size: 100,
|
|
21
|
+
weight: "semi",
|
|
22
|
+
className: r.contactText,
|
|
23
|
+
children: s
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ i(t, {
|
|
26
|
+
variant: f,
|
|
27
|
+
size: p,
|
|
28
|
+
iconRight: l,
|
|
29
|
+
href: u,
|
|
30
|
+
onClick: d,
|
|
31
|
+
children: c
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { o as ModalContactFooter };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { t as e } from "../../clsx-D7D_XZ_-.js";
|
|
2
|
+
import { t } from "../../esm-vjQoQCu2.js";
|
|
3
|
+
import { t as n } from "../../Button-FtTHXgq3.js";
|
|
4
|
+
import { t as r } from "../../Typography-Dw2_XzMu.js";
|
|
5
|
+
import { t as i } from "../../styles.module-BZplfYRW.js";
|
|
6
|
+
import { useEffect as a, useRef as o } from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
//#region lib/components/Modal/index.tsx
|
|
9
|
+
function l({ open: l, onClose: u, title: d, children: f, footer: p = "default", submitVariant: m = "brand", submitLabel: h = "Submit", cancelLabel: g = "Cancel", closeLabel: _ = "Close", onSubmit: v, onCancel: y, closeOnBackdropClick: b = !0, closeButtonLabel: x = "Close dialog", className: S }) {
|
|
10
|
+
let C = o(null);
|
|
11
|
+
a(() => {
|
|
12
|
+
let e = C.current;
|
|
13
|
+
e && (l && !e.open ? e.showModal() : !l && e.open && e.close());
|
|
14
|
+
}, [l]), a(() => {
|
|
15
|
+
let e = C.current;
|
|
16
|
+
if (!e) return;
|
|
17
|
+
let t = () => u();
|
|
18
|
+
return e.addEventListener("close", t), () => e.removeEventListener("close", t);
|
|
19
|
+
}, [u]);
|
|
20
|
+
let w = (e) => {
|
|
21
|
+
b && e.target === C.current && u();
|
|
22
|
+
}, T = y ?? u;
|
|
23
|
+
return /* @__PURE__ */ c("dialog", {
|
|
24
|
+
ref: C,
|
|
25
|
+
className: e(i.modal, S),
|
|
26
|
+
onClick: w,
|
|
27
|
+
"aria-labelledby": "hsui-modal-title",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ c("header", {
|
|
30
|
+
className: i.header,
|
|
31
|
+
children: [/* @__PURE__ */ s(r, {
|
|
32
|
+
as: "h2",
|
|
33
|
+
size: 300,
|
|
34
|
+
weight: "medium",
|
|
35
|
+
id: "hsui-modal-title",
|
|
36
|
+
className: i.title,
|
|
37
|
+
children: d
|
|
38
|
+
}), /* @__PURE__ */ s(n, {
|
|
39
|
+
variant: "soft",
|
|
40
|
+
size: 200,
|
|
41
|
+
"aria-label": x,
|
|
42
|
+
onClick: u,
|
|
43
|
+
className: i.closeButton,
|
|
44
|
+
children: /* @__PURE__ */ s(t, {})
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ s("div", {
|
|
48
|
+
className: i.body,
|
|
49
|
+
children: f
|
|
50
|
+
}),
|
|
51
|
+
p === !1 || p === null ? null : p === "default" ? /* @__PURE__ */ s("div", {
|
|
52
|
+
className: e(i.footer, i.footerDefault),
|
|
53
|
+
children: /* @__PURE__ */ s(n, {
|
|
54
|
+
variant: "soft",
|
|
55
|
+
size: 300,
|
|
56
|
+
onClick: u,
|
|
57
|
+
children: _
|
|
58
|
+
})
|
|
59
|
+
}) : p === "submit" ? /* @__PURE__ */ c("div", {
|
|
60
|
+
className: e(i.footer, i.footerSubmit),
|
|
61
|
+
children: [/* @__PURE__ */ s(n, {
|
|
62
|
+
variant: "soft",
|
|
63
|
+
size: 300,
|
|
64
|
+
onClick: T,
|
|
65
|
+
children: g
|
|
66
|
+
}), /* @__PURE__ */ s(n, {
|
|
67
|
+
variant: m,
|
|
68
|
+
size: 300,
|
|
69
|
+
onClick: v,
|
|
70
|
+
children: h
|
|
71
|
+
})]
|
|
72
|
+
}) : p === "submit-wide" ? /* @__PURE__ */ c("div", {
|
|
73
|
+
className: e(i.footer, i.footerSubmitWide),
|
|
74
|
+
children: [/* @__PURE__ */ s(n, {
|
|
75
|
+
variant: "soft",
|
|
76
|
+
size: 300,
|
|
77
|
+
onClick: T,
|
|
78
|
+
children: g
|
|
79
|
+
}), /* @__PURE__ */ s(n, {
|
|
80
|
+
variant: m,
|
|
81
|
+
size: 300,
|
|
82
|
+
onClick: v,
|
|
83
|
+
fullWidth: !0,
|
|
84
|
+
children: h
|
|
85
|
+
})]
|
|
86
|
+
}) : /* @__PURE__ */ s("div", {
|
|
87
|
+
className: i.footer,
|
|
88
|
+
children: p
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { l as Modal };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../NewsletterSignup-
|
|
1
|
+
import { t as e } from "../../NewsletterSignup-jPKQLKvl.js";
|
|
2
2
|
export { e as NewsletterSignup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Notification-
|
|
1
|
+
import { t as e } from "../../Notification-CO-mX_7b.js";
|
|
2
2
|
export { e as Notification };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../PrefPanel-
|
|
1
|
+
import { n as e, t } from "../../PrefPanel-D-xcKbcr.js";
|
|
2
2
|
export { t as PrefPanel, e as PrefRadio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../RadioBox-
|
|
1
|
+
import { n as e, t } from "../../RadioBox-B9rLrNTK.js";
|
|
2
2
|
export { t as RadioBox, e as RadioBoxGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Search-
|
|
1
|
+
import { t as e } from "../../Search-DokUD0o9.js";
|
|
2
2
|
export { e as Search };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Tabs-
|
|
1
|
+
import { t as e } from "../../Tabs-DanjfIHP.js";
|
|
2
2
|
export { e as Tabs };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, f as r,
|
|
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
2
|
import * as h from "react";
|
|
3
3
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
4
4
|
//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
5
|
-
var y = "Dialog", [b, ee] =
|
|
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] =
|
|
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
7
|
prop: i,
|
|
8
8
|
defaultProp: a ?? !1,
|
|
9
9
|
onChange: o,
|
|
@@ -24,28 +24,28 @@ var y = "Dialog", [b, ee] = c(y), [x, S] = b(y), C = (e) => {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
C.displayName = y;
|
|
27
|
-
var w = "DialogTrigger", T = h.forwardRef((
|
|
28
|
-
let { __scopeDialog:
|
|
29
|
-
return /* @__PURE__ */ _(
|
|
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
30
|
type: "button",
|
|
31
31
|
"aria-haspopup": "dialog",
|
|
32
|
-
"aria-expanded":
|
|
33
|
-
"aria-controls":
|
|
34
|
-
"data-state": G(
|
|
35
|
-
...
|
|
36
|
-
ref:
|
|
37
|
-
onClick: r(
|
|
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
38
|
});
|
|
39
39
|
});
|
|
40
40
|
T.displayName = w;
|
|
41
41
|
var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
|
|
42
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e,
|
|
42
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, s = S(E, t);
|
|
43
43
|
return /* @__PURE__ */ _(D, {
|
|
44
44
|
scope: t,
|
|
45
45
|
forceMount: n,
|
|
46
|
-
children: h.Children.map(r, (e) => /* @__PURE__ */ _(
|
|
47
|
-
present: n ||
|
|
48
|
-
children: /* @__PURE__ */ _(
|
|
46
|
+
children: h.Children.map(r, (e) => /* @__PURE__ */ _(o, {
|
|
47
|
+
present: n || s.open,
|
|
48
|
+
children: /* @__PURE__ */ _(a, {
|
|
49
49
|
asChild: !0,
|
|
50
50
|
container: i,
|
|
51
51
|
children: e
|
|
@@ -56,7 +56,7 @@ var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
|
|
|
56
56
|
k.displayName = E;
|
|
57
57
|
var A = "DialogOverlay", j = h.forwardRef((e, t) => {
|
|
58
58
|
let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
|
|
59
|
-
return a.modal ? /* @__PURE__ */ _(
|
|
59
|
+
return a.modal ? /* @__PURE__ */ _(o, {
|
|
60
60
|
present: r || a.open,
|
|
61
61
|
children: /* @__PURE__ */ _(N, {
|
|
62
62
|
...i,
|
|
@@ -65,14 +65,14 @@ var A = "DialogOverlay", j = h.forwardRef((e, t) => {
|
|
|
65
65
|
}) : null;
|
|
66
66
|
});
|
|
67
67
|
j.displayName = A;
|
|
68
|
-
var M =
|
|
69
|
-
let { __scopeDialog: n, ...r } = e,
|
|
70
|
-
return /* @__PURE__ */ _(
|
|
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
71
|
as: M,
|
|
72
72
|
allowPinchZoom: !0,
|
|
73
|
-
shards: [
|
|
74
|
-
children: /* @__PURE__ */ _(
|
|
75
|
-
"data-state": G(
|
|
73
|
+
shards: [a.contentRef],
|
|
74
|
+
children: /* @__PURE__ */ _(i.div, {
|
|
75
|
+
"data-state": G(a.open),
|
|
76
76
|
...r,
|
|
77
77
|
ref: t,
|
|
78
78
|
style: {
|
|
@@ -83,7 +83,7 @@ var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
|
|
|
83
83
|
});
|
|
84
84
|
}), P = "DialogContent", F = h.forwardRef((e, t) => {
|
|
85
85
|
let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
|
|
86
|
-
return /* @__PURE__ */ _(
|
|
86
|
+
return /* @__PURE__ */ _(o, {
|
|
87
87
|
present: r || a.open,
|
|
88
88
|
children: a.modal ? /* @__PURE__ */ _(I, {
|
|
89
89
|
...i,
|
|
@@ -95,24 +95,24 @@ var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
F.displayName = P;
|
|
98
|
-
var I = h.forwardRef((
|
|
99
|
-
let
|
|
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
100
|
return h.useEffect(() => {
|
|
101
|
-
let e =
|
|
102
|
-
if (e) return
|
|
101
|
+
let e = i.current;
|
|
102
|
+
if (e) return f(e);
|
|
103
103
|
}, []), /* @__PURE__ */ _(R, {
|
|
104
|
-
...
|
|
105
|
-
ref:
|
|
106
|
-
trapFocus:
|
|
104
|
+
...e,
|
|
105
|
+
ref: a,
|
|
106
|
+
trapFocus: n.open,
|
|
107
107
|
disableOutsidePointerEvents: !0,
|
|
108
|
-
onCloseAutoFocus: r(
|
|
109
|
-
e.preventDefault(),
|
|
108
|
+
onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
|
|
109
|
+
e.preventDefault(), n.triggerRef.current?.focus();
|
|
110
110
|
}),
|
|
111
|
-
onPointerDownOutside: r(
|
|
111
|
+
onPointerDownOutside: r(e.onPointerDownOutside, (e) => {
|
|
112
112
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
113
113
|
(t.button === 2 || n) && e.preventDefault();
|
|
114
114
|
}),
|
|
115
|
-
onFocusOutside: r(
|
|
115
|
+
onFocusOutside: r(e.onFocusOutside, (e) => e.preventDefault())
|
|
116
116
|
});
|
|
117
117
|
}), L = h.forwardRef((e, t) => {
|
|
118
118
|
let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
|
|
@@ -130,51 +130,51 @@ var I = h.forwardRef((t, n) => {
|
|
|
130
130
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
}), R = h.forwardRef((
|
|
134
|
-
let { __scopeDialog:
|
|
135
|
-
return
|
|
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
136
|
asChild: !0,
|
|
137
137
|
loop: !0,
|
|
138
|
-
trapped:
|
|
139
|
-
onMountAutoFocus:
|
|
140
|
-
onUnmountAutoFocus:
|
|
141
|
-
children: /* @__PURE__ */ _(
|
|
138
|
+
trapped: i,
|
|
139
|
+
onMountAutoFocus: a,
|
|
140
|
+
onUnmountAutoFocus: o,
|
|
141
|
+
children: /* @__PURE__ */ _(l, {
|
|
142
142
|
role: "dialog",
|
|
143
|
-
id:
|
|
144
|
-
"aria-describedby":
|
|
145
|
-
"aria-labelledby":
|
|
146
|
-
"data-state": G(
|
|
147
|
-
...
|
|
148
|
-
ref:
|
|
149
|
-
onDismiss: () =>
|
|
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
150
|
})
|
|
151
|
-
}), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(J, { titleId:
|
|
152
|
-
contentRef:
|
|
153
|
-
descriptionId:
|
|
151
|
+
}), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(J, { titleId: c.titleId }), /* @__PURE__ */ _(X, {
|
|
152
|
+
contentRef: u,
|
|
153
|
+
descriptionId: c.descriptionId
|
|
154
154
|
})] })] });
|
|
155
155
|
}), z = "DialogTitle", B = h.forwardRef((e, t) => {
|
|
156
|
-
let { __scopeDialog: n, ...r } = e,
|
|
157
|
-
return /* @__PURE__ */ _(
|
|
158
|
-
id:
|
|
156
|
+
let { __scopeDialog: n, ...r } = e, a = S(z, n);
|
|
157
|
+
return /* @__PURE__ */ _(i.h2, {
|
|
158
|
+
id: a.titleId,
|
|
159
159
|
...r,
|
|
160
160
|
ref: t
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
163
|
B.displayName = z;
|
|
164
164
|
var V = "DialogDescription", H = h.forwardRef((e, t) => {
|
|
165
|
-
let { __scopeDialog: n, ...r } = e,
|
|
166
|
-
return /* @__PURE__ */ _(
|
|
167
|
-
id:
|
|
165
|
+
let { __scopeDialog: n, ...r } = e, a = S(V, n);
|
|
166
|
+
return /* @__PURE__ */ _(i.p, {
|
|
167
|
+
id: a.descriptionId,
|
|
168
168
|
...r,
|
|
169
169
|
ref: t
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
172
|
H.displayName = V;
|
|
173
173
|
var U = "DialogClose", W = h.forwardRef((e, t) => {
|
|
174
|
-
let { __scopeDialog: n, ...
|
|
175
|
-
return /* @__PURE__ */ _(
|
|
174
|
+
let { __scopeDialog: n, ...a } = e, o = S(U, n);
|
|
175
|
+
return /* @__PURE__ */ _(i.button, {
|
|
176
176
|
type: "button",
|
|
177
|
-
...
|
|
177
|
+
...a,
|
|
178
178
|
ref: t,
|
|
179
179
|
onClick: r(e.onClick, () => o.onOpenChange(!1))
|
|
180
180
|
});
|
|
@@ -183,7 +183,7 @@ W.displayName = U;
|
|
|
183
183
|
function G(e) {
|
|
184
184
|
return e ? "open" : "closed";
|
|
185
185
|
}
|
|
186
|
-
var K = "DialogTitleWarning", [te, q] =
|
|
186
|
+
var K = "DialogTitleWarning", [te, q] = u(K, {
|
|
187
187
|
contentName: P,
|
|
188
188
|
titleName: z,
|
|
189
189
|
docsSlug: "dialog"
|