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.
Files changed (61) hide show
  1. package/dist/{Button-CJp__tle.js → Button-FtTHXgq3.js} +1 -1
  2. package/dist/{ButtonGroup-CfNp_xXf.js → ButtonGroup-eZng2GQy.js} +1 -1
  3. package/dist/Checkbox-CMWwWnbI.js +153 -0
  4. package/dist/{CookiePolicyModal-BN_AXefZ.js → CookiePolicyModal-_zwtaOvm.js} +3 -3
  5. package/dist/{CopyCode-BLXf0o74.js → CopyCode-C7iHMVIg.js} +2 -2
  6. package/dist/Dropdown-B6J7ph3w.js +817 -0
  7. package/dist/{Footer-BsddrH6J.js → Footer-Q3Z-Synu.js} +8 -8
  8. package/dist/{FooterBottom-ybvI6wyw.js → FooterBottom-Dbr8oMdf.js} +1 -1
  9. package/dist/{FooterHelp-D88w95D4.js → FooterHelp-BsApOrYf.js} +1 -1
  10. package/dist/{FooterLinks-B8QP6uKP.js → FooterLinks-Dx7GBu-X.js} +2 -2
  11. package/dist/{Header-B8todalU.js → Header-DxauB1pI.js} +41 -41
  12. package/dist/{InputGrouped-jbMns5qa.js → InputGrouped-B9jyncxb.js} +13 -13
  13. package/dist/{Label-bbLlUYRM.js → Label-BHGkcLu9.js} +1 -1
  14. package/dist/{NewsletterSignup-DEgL93rH.js → NewsletterSignup-jPKQLKvl.js} +4 -4
  15. package/dist/{Notification-CuVjbJzV.js → Notification-CO-mX_7b.js} +3 -3
  16. package/dist/PrefPanel-D-xcKbcr.js +253 -0
  17. package/dist/{Search-BcX6xtAY.js → Search-DokUD0o9.js} +972 -1171
  18. package/dist/{YoutubeModal-C58qsc27.js → YoutubeModal-T25hkIhQ.js} +3 -3
  19. package/dist/components/Button/index.js +1 -1
  20. package/dist/components/ButtonGroup/index.js +1 -1
  21. package/dist/components/Checkbox/index.js +2 -0
  22. package/dist/components/CopyCode/index.js +1 -1
  23. package/dist/components/Dropdown/index.js +2 -0
  24. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  25. package/dist/components/Footer/FooterBottom.js +1 -1
  26. package/dist/components/Footer/FooterHelp.js +1 -1
  27. package/dist/components/Footer/FooterLinks.js +1 -1
  28. package/dist/components/Footer/YoutubeModal.js +1 -1
  29. package/dist/components/Footer/index.js +1 -1
  30. package/dist/components/GPTInput/index.js +1 -1
  31. package/dist/components/Header/index.js +1 -1
  32. package/dist/components/InputGrouped/index.js +1 -1
  33. package/dist/components/Label/index.js +1 -1
  34. package/dist/components/Modal/ModalContactFooter.js +37 -0
  35. package/dist/components/Modal/index.js +94 -0
  36. package/dist/components/NewsletterSignup/index.js +1 -1
  37. package/dist/components/Notification/index.js +1 -1
  38. package/dist/components/PrefPanel/index.js +1 -1
  39. package/dist/components/RadioBox/index.js +1 -1
  40. package/dist/components/Search/index.js +1 -1
  41. package/dist/components/Tabs/index.js +1 -1
  42. package/dist/{dist-O77K9Ele.js → dist-9h8Pur86.js} +62 -62
  43. package/dist/dist-BMBUb7XY.js +208 -0
  44. package/dist/dist-MBZ50zVE.js +1303 -0
  45. package/dist/{dist-D4rcQ6qo.js → dist-SfVqm611.js} +1 -1
  46. package/dist/{es2015-BE1Gei7w.js → es2015-CJyFgdNb.js} +1 -1
  47. package/dist/{esm-T3Xn_ZHF.js → esm-vjQoQCu2.js} +46 -18
  48. package/dist/highsoft-ui.css +1 -1
  49. package/dist/lib/components/Checkbox/index.d.ts +54 -0
  50. package/dist/lib/components/Dropdown/index.d.ts +67 -0
  51. package/dist/lib/components/Modal/ModalContactFooter.d.ts +21 -0
  52. package/dist/lib/components/Modal/index.d.ts +41 -0
  53. package/dist/lib/main.d.ts +8 -0
  54. package/dist/main.js +19 -15
  55. package/dist/scss/variables.scss +84 -0
  56. package/dist/styles.module-BZplfYRW.js +17 -0
  57. package/package.json +1 -1
  58. package/dist/PrefPanel-CPWoS-hm.js +0 -1548
  59. /package/dist/{GPTInput-CZF0-SfI.js → GPTInput-Cgu6_F53.js} +0 -0
  60. /package/dist/{RadioBox-C_KZn7fw.js → RadioBox-B9rLrNTK.js} +0 -0
  61. /package/dist/{Tabs-CNkFaolf.js → Tabs-DanjfIHP.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { n as e } from "./esm-T3Xn_ZHF.js";
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-D4rcQ6qo.js";
4
- import { a as r, i, n as a, o, r as s, s as c, t as l } from "./dist-O77K9Ele.js";
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-CJp__tle.js";
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-CfNp_xXf.js";
1
+ import { t as e } from "../../ButtonGroup-eZng2GQy.js";
2
2
  export { e as ButtonGroup };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../../Checkbox-CMWwWnbI.js";
2
+ export { t as Checkbox, e as CheckboxGroup };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../CopyCode-BLXf0o74.js";
1
+ import { t as e } from "../../CopyCode-C7iHMVIg.js";
2
2
  export { e as CopyCode };
@@ -0,0 +1,2 @@
1
+ import { n as e, r as t, t as n } from "../../Dropdown-B6J7ph3w.js";
2
+ export { n as Dropdown, e as DropdownItem, t as DropdownSeparator };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../CookiePolicyModal-BN_AXefZ.js";
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-ybvI6wyw.js";
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-D88w95D4.js";
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-B8QP6uKP.js";
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-C58qsc27.js";
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-BsddrH6J.js";
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-CZF0-SfI.js";
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-B8todalU.js";
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-jbMns5qa.js";
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-bbLlUYRM.js";
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-DEgL93rH.js";
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-CuVjbJzV.js";
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-CPWoS-hm.js";
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-C_KZn7fw.js";
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-BcX6xtAY.js";
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-CNkFaolf.js";
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, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, t as p, u as m } from "./es2015-BE1Gei7w.js";
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] = c(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] = m({
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((t, n) => {
28
- let { __scopeDialog: i, ...o } = t, s = S(w, i), c = e(n, s.triggerRef);
29
- return /* @__PURE__ */ _(a.button, {
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": s.open,
33
- "aria-controls": s.contentId,
34
- "data-state": G(s.open),
35
- ...o,
36
- ref: c,
37
- onClick: r(t.onClick, s.onOpenToggle)
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, a = S(E, t);
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__ */ _(s, {
47
- present: n || a.open,
48
- children: /* @__PURE__ */ _(o, {
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__ */ _(s, {
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 = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
69
- let { __scopeDialog: n, ...r } = e, i = S(A, n);
70
- return /* @__PURE__ */ _(l, {
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: [i.contentRef],
74
- children: /* @__PURE__ */ _(a.div, {
75
- "data-state": G(i.open),
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__ */ _(s, {
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((t, n) => {
99
- let i = S(P, t.__scopeDialog), a = h.useRef(null), o = e(n, i.contentRef, a);
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 = a.current;
102
- if (e) return p(e);
101
+ let e = i.current;
102
+ if (e) return f(e);
103
103
  }, []), /* @__PURE__ */ _(R, {
104
- ...t,
105
- ref: o,
106
- trapFocus: i.open,
104
+ ...e,
105
+ ref: a,
106
+ trapFocus: n.open,
107
107
  disableOutsidePointerEvents: !0,
108
- onCloseAutoFocus: r(t.onCloseAutoFocus, (e) => {
109
- e.preventDefault(), i.triggerRef.current?.focus();
108
+ onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
109
+ e.preventDefault(), n.triggerRef.current?.focus();
110
110
  }),
111
- onPointerDownOutside: r(t.onPointerDownOutside, (e) => {
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(t.onFocusOutside, (e) => e.preventDefault())
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((n, r) => {
134
- let { __scopeDialog: i, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = n, l = S(P, i), d = h.useRef(null), p = e(r, d);
135
- return f(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(t, {
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: a,
139
- onMountAutoFocus: o,
140
- onUnmountAutoFocus: s,
141
- children: /* @__PURE__ */ _(u, {
138
+ trapped: i,
139
+ onMountAutoFocus: a,
140
+ onUnmountAutoFocus: o,
141
+ children: /* @__PURE__ */ _(l, {
142
142
  role: "dialog",
143
- id: l.contentId,
144
- "aria-describedby": l.descriptionId,
145
- "aria-labelledby": l.titleId,
146
- "data-state": G(l.open),
147
- ...c,
148
- ref: p,
149
- onDismiss: () => l.onOpenChange(!1)
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: l.titleId }), /* @__PURE__ */ _(X, {
152
- contentRef: d,
153
- descriptionId: l.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, i = S(z, n);
157
- return /* @__PURE__ */ _(a.h2, {
158
- id: i.titleId,
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, i = S(V, n);
166
- return /* @__PURE__ */ _(a.p, {
167
- id: i.descriptionId,
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, ...i } = e, o = S(U, n);
175
- return /* @__PURE__ */ _(a.button, {
174
+ let { __scopeDialog: n, ...a } = e, o = S(U, n);
175
+ return /* @__PURE__ */ _(i.button, {
176
176
  type: "button",
177
- ...i,
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] = d(K, {
186
+ var K = "DialogTitleWarning", [te, q] = u(K, {
187
187
  contentName: P,
188
188
  titleName: z,
189
189
  docsSlug: "dialog"