@purpurds/modal 8.10.2 → 8.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/modal.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
2
  export type ModalProps = {
4
3
  ["data-testid"]?: string;
5
4
  children: ReactNode;
package/dist/modal.es.js CHANGED
@@ -252,11 +252,11 @@ var gr = "DismissableLayer", we = "dismissableLayer.update", _r = "dismissableLa
252
252
  onDismiss: i,
253
253
  ...d
254
254
  } = e, c = s.useContext(lt), [f, v] = s.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = s.useState({}), b = j(t, (y) => v(y)), l = Array.from(c.layers), [m] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), _ = l.indexOf(m), E = f ? l.indexOf(f) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= _, C = wr((y) => {
255
- const x = y.target, P = [...c.branches].some((K) => K.contains(x));
255
+ const x = y.target, P = [...c.branches].some((V) => V.contains(x));
256
256
  !S || P || (a?.(y), u?.(y), y.defaultPrevented || i?.());
257
257
  }, h), O = Sr((y) => {
258
258
  const x = y.target;
259
- [...c.branches].some((K) => K.contains(x)) || (n?.(y), u?.(y), y.defaultPrevented || i?.());
259
+ [...c.branches].some((V) => V.contains(x)) || (n?.(y), u?.(y), y.defaultPrevented || i?.());
260
260
  }, h);
261
261
  return mr((y) => {
262
262
  E === c.layers.size - 1 && (o?.(y), !y.defaultPrevented && i && (y.preventDefault(), i()));
@@ -635,7 +635,7 @@ function Br(e, t) {
635
635
  function Ur(e) {
636
636
  return e;
637
637
  }
638
- function Hr(e, t) {
638
+ function zr(e, t) {
639
639
  t === void 0 && (t = Ur);
640
640
  var r = [], o = !1, a = {
641
641
  read: function() {
@@ -690,9 +690,9 @@ function Hr(e, t) {
690
690
  };
691
691
  return a;
692
692
  }
693
- function Vr(e) {
693
+ function Hr(e) {
694
694
  e === void 0 && (e = {});
695
- var t = Hr(null);
695
+ var t = zr(null);
696
696
  return t.options = T({ async: !0, ssr: !1 }, e), t;
697
697
  }
698
698
  var gt = function(e) {
@@ -705,10 +705,10 @@ var gt = function(e) {
705
705
  return s.createElement(o, T({}, r));
706
706
  };
707
707
  gt.isSideCarExport = !0;
708
- function Kr(e, t) {
708
+ function Vr(e, t) {
709
709
  return e.useMedium(t), gt;
710
710
  }
711
- var _t = Vr(), he = function() {
711
+ var _t = Hr(), he = function() {
712
712
  }, se = s.forwardRef(function(e, t) {
713
713
  var r = s.useRef(null), o = s.useState({
714
714
  onScrollCapture: he,
@@ -731,16 +731,16 @@ se.classNames = {
731
731
  fullWidth: ae,
732
732
  zeroRight: oe
733
733
  };
734
- var Gr = function() {
734
+ var Kr = function() {
735
735
  if (typeof __webpack_nonce__ < "u")
736
736
  return __webpack_nonce__;
737
737
  };
738
- function zr() {
738
+ function Gr() {
739
739
  if (!document)
740
740
  return null;
741
741
  var e = document.createElement("style");
742
742
  e.type = "text/css";
743
- var t = Gr();
743
+ var t = Kr();
744
744
  return t && e.setAttribute("nonce", t), e;
745
745
  }
746
746
  function qr(e, t) {
@@ -754,7 +754,7 @@ var Xr = function() {
754
754
  var e = 0, t = null;
755
755
  return {
756
756
  add: function(r) {
757
- e == 0 && (t = zr()) && (qr(t, r), Yr(t)), e++;
757
+ e == 0 && (t = Gr()) && (qr(t, r), Yr(t)), e++;
758
758
  },
759
759
  remove: function() {
760
760
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
@@ -795,14 +795,14 @@ var Xr = function() {
795
795
  right: t[2],
796
796
  gap: Math.max(0, o - r + t[2] - t[0])
797
797
  };
798
- }, tn = yt(), V = "data-scroll-locked", rn = function(e, t, r, o) {
798
+ }, tn = yt(), H = "data-scroll-locked", rn = function(e, t, r, o) {
799
799
  var a = e.left, n = e.top, u = e.right, i = e.gap;
800
800
  return r === void 0 && (r = "margin"), `
801
801
  .`.concat(Fr, ` {
802
802
  overflow: hidden `).concat(o, `;
803
803
  padding-right: `).concat(i, "px ").concat(o, `;
804
804
  }
805
- body[`).concat(V, `] {
805
+ body[`).concat(H, `] {
806
806
  overflow: hidden `).concat(o, `;
807
807
  overscroll-behavior: contain;
808
808
  `).concat([
@@ -835,18 +835,18 @@ var Xr = function() {
835
835
  margin-right: 0 `).concat(o, `;
836
836
  }
837
837
 
838
- body[`).concat(V, `] {
838
+ body[`).concat(H, `] {
839
839
  `).concat(kr, ": ").concat(i, `px;
840
840
  }
841
841
  `);
842
842
  }, je = function() {
843
- var e = parseInt(document.body.getAttribute(V) || "0", 10);
843
+ var e = parseInt(document.body.getAttribute(H) || "0", 10);
844
844
  return isFinite(e) ? e : 0;
845
845
  }, nn = function() {
846
846
  s.useEffect(function() {
847
- return document.body.setAttribute(V, (je() + 1).toString()), function() {
847
+ return document.body.setAttribute(H, (je() + 1).toString()), function() {
848
848
  var e = je() - 1;
849
- e <= 0 ? document.body.removeAttribute(V) : document.body.setAttribute(V, e.toString());
849
+ e <= 0 ? document.body.removeAttribute(H) : document.body.setAttribute(H, e.toString());
850
850
  };
851
851
  }, []);
852
852
  }, on = function(e) {
@@ -1032,7 +1032,7 @@ function gn(e) {
1032
1032
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1033
1033
  return t;
1034
1034
  }
1035
- const _n = Kr(_t, mn);
1035
+ const _n = Vr(_t, mn);
1036
1036
  var St = s.forwardRef(function(e, t) {
1037
1037
  return s.createElement(se, T({}, e, { ref: t, sideCar: _n }));
1038
1038
  });
@@ -1042,7 +1042,7 @@ var yn = function(e) {
1042
1042
  return null;
1043
1043
  var t = Array.isArray(e) ? e[0] : e;
1044
1044
  return t.ownerDocument.body;
1045
- }, H = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), te = {}, ge = 0, Ct = function(e) {
1045
+ }, z = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), te = {}, ge = 0, Ct = function(e) {
1046
1046
  return e && (e.host || Ct(e.parentNode));
1047
1047
  }, bn = function(e, t) {
1048
1048
  return t.map(function(r) {
@@ -1066,8 +1066,8 @@ var yn = function(e) {
1066
1066
  f(h);
1067
1067
  else
1068
1068
  try {
1069
- var g = h.getAttribute(o), b = g !== null && g !== "false", l = (H.get(h) || 0) + 1, m = (n.get(h) || 0) + 1;
1070
- H.set(h, l), n.set(h, m), u.push(h), l === 1 && b && ee.set(h, !0), m === 1 && h.setAttribute(r, "true"), b || h.setAttribute(o, "true");
1069
+ var g = h.getAttribute(o), b = g !== null && g !== "false", l = (z.get(h) || 0) + 1, m = (n.get(h) || 0) + 1;
1070
+ z.set(h, l), n.set(h, m), u.push(h), l === 1 && b && ee.set(h, !0), m === 1 && h.setAttribute(r, "true"), b || h.setAttribute(o, "true");
1071
1071
  } catch (_) {
1072
1072
  console.error("aria-hidden: cannot operate on ", h, _);
1073
1073
  }
@@ -1075,9 +1075,9 @@ var yn = function(e) {
1075
1075
  };
1076
1076
  return f(t), i.clear(), ge++, function() {
1077
1077
  u.forEach(function(v) {
1078
- var h = H.get(v) - 1, g = n.get(v) - 1;
1079
- H.set(v, h), n.set(v, g), h || (ee.has(v) || v.removeAttribute(o), ee.delete(v)), g || v.removeAttribute(r);
1080
- }), ge--, ge || (H = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), te = {});
1078
+ var h = z.get(v) - 1, g = n.get(v) - 1;
1079
+ z.set(v, h), n.set(v, g), h || (ee.has(v) || v.removeAttribute(o), ee.delete(v)), g || v.removeAttribute(r);
1080
+ }), ge--, ge || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), te = {});
1081
1081
  };
1082
1082
  }, wn = function(e, t, r) {
1083
1083
  r === void 0 && (r = "data-aria-hidden");
@@ -1306,16 +1306,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1306
1306
  const a = e.current?.getAttribute("aria-describedby");
1307
1307
  t && a && (document.getElementById(t) || console.warn(o));
1308
1308
  }, [o, e, t]), null;
1309
- }, $n = Ot, Tn = Pt, Mn = Dt, In = At, Ln = $t, Fn = Mt, He = Lt, kn = kt;
1309
+ }, $n = Ot, Tn = Pt, Mn = Dt, In = At, Ln = $t, Fn = Mt, ze = Lt, kn = kt;
1310
1310
  const jn = {
1311
1311
  LG: "lg"
1312
1312
  };
1313
1313
  function Wn(e) {
1314
1314
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1315
1315
  }
1316
- var Ve = { exports: {} }, Ke;
1316
+ var He = { exports: {} }, Ve;
1317
1317
  function Bn() {
1318
- return Ke || (Ke = 1, (function(e) {
1318
+ return Ve || (Ve = 1, (function(e) {
1319
1319
  (function() {
1320
1320
  var t = {}.hasOwnProperty;
1321
1321
  function r() {
@@ -1344,35 +1344,35 @@ function Bn() {
1344
1344
  }
1345
1345
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1346
1346
  })();
1347
- })(Ve)), Ve.exports;
1347
+ })(He)), He.exports;
1348
1348
  }
1349
1349
  var Un = Bn();
1350
- const Hn = /* @__PURE__ */ Wn(Un), Vn = "_rotate_12t9p_1", Kn = "_dash_12t9p_1", Gn = {
1350
+ const zn = /* @__PURE__ */ Wn(Un), Hn = "_rotate_12t9p_1", Vn = "_dash_12t9p_1", Kn = {
1351
1351
  "purpur-spinner": "_purpur-spinner_12t9p_2",
1352
- rotate: Vn,
1352
+ rotate: Hn,
1353
1353
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
1354
1354
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
1355
1355
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
1356
1356
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
1357
1357
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
1358
1358
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
1359
- dash: Kn,
1359
+ dash: Vn,
1360
1360
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
1361
1361
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
1362
- }, Ge = Hn.bind(Gn), G = "purpur-spinner", zn = {
1362
+ }, Ke = zn.bind(Kn), K = "purpur-spinner", Gn = {
1363
1363
  SM: "sm"
1364
1364
  }, Bt = ({
1365
1365
  disabled: e = !1,
1366
1366
  negative: t = !1,
1367
- size: r = zn.SM,
1367
+ size: r = Gn.SM,
1368
1368
  className: o,
1369
1369
  ...a
1370
- }) => /* @__PURE__ */ p("div", { className: Ge(G, `${G}--${r}`, o), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
1370
+ }) => /* @__PURE__ */ p("div", { className: Ke(K, `${K}--${r}`, o), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
1371
1371
  "circle",
1372
1372
  {
1373
- className: Ge(`${G}__circle`, {
1374
- [`${G}__circle--disabled`]: e,
1375
- [`${G}__circle--negative`]: t
1373
+ className: Ke(`${K}__circle`, {
1374
+ [`${K}__circle--disabled`]: e,
1375
+ [`${K}__circle--negative`]: t
1376
1376
  }),
1377
1377
  cx: "25",
1378
1378
  cy: "25",
@@ -1383,7 +1383,7 @@ Bt.displayName = "Spinner";
1383
1383
  function qn(e) {
1384
1384
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1385
1385
  }
1386
- var ze = { exports: {} }, qe;
1386
+ var Ge = { exports: {} }, qe;
1387
1387
  function Yn() {
1388
1388
  return qe || (qe = 1, (function(e) {
1389
1389
  (function() {
@@ -1414,7 +1414,7 @@ function Yn() {
1414
1414
  }
1415
1415
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1416
1416
  })();
1417
- })(ze)), ze.exports;
1417
+ })(Ge)), Ge.exports;
1418
1418
  }
1419
1419
  var Xn = Yn();
1420
1420
  const Zn = /* @__PURE__ */ qn(Xn), Qn = {
@@ -1559,7 +1559,7 @@ const ro = /* @__PURE__ */ Jn(to), re = {
1559
1559
  "purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
1560
1560
  }, no = {
1561
1561
  TITLE100: "title-100"
1562
- }, ne = "purpur-heading", Ht = ({
1562
+ }, ne = "purpur-heading", zt = ({
1563
1563
  children: e,
1564
1564
  className: t = "",
1565
1565
  enableHyphenation: r = !1,
@@ -1579,7 +1579,7 @@ const ro = /* @__PURE__ */ Jn(to), re = {
1579
1579
  ]);
1580
1580
  return /* @__PURE__ */ p(i, { className: d, ...u, children: e });
1581
1581
  };
1582
- Ht.displayName = "Heading";
1582
+ zt.displayName = "Heading";
1583
1583
  function oo(e) {
1584
1584
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1585
1585
  }
@@ -1633,21 +1633,21 @@ const uo = /* @__PURE__ */ oo(io), so = {
1633
1633
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1634
1634
  ], o = t ? `<title>${t}</title>` : "";
1635
1635
  return `<svg ${po(r)}>${o}${e}</svg>`;
1636
- }, vo = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Vt = ({ svg: e, allyTitle: t, className: r, size: o = lo, ...a }) => {
1636
+ }, vo = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Ht = ({ svg: e, allyTitle: t, className: r, size: o = lo, ...a }) => {
1637
1637
  const n = fo({
1638
1638
  content: vo(e.svg),
1639
1639
  title: t
1640
1640
  }), u = co(et, `${et}--${o}`, r);
1641
1641
  return /* @__PURE__ */ p("span", { className: u, dangerouslySetInnerHTML: { __html: n }, ...a });
1642
1642
  };
1643
- Vt.displayName = "Icon";
1643
+ Ht.displayName = "Icon";
1644
1644
  const ho = {
1645
1645
  name: "close",
1646
1646
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
1647
1647
  keywords: ["close"],
1648
1648
  category: "utility"
1649
- }, Kt = (e) => /* @__PURE__ */ p(Vt, { ...e, svg: ho });
1650
- Kt.displayName = "IconClose";
1649
+ }, Vt = (e) => /* @__PURE__ */ p(Ht, { ...e, svg: ho });
1650
+ Vt.displayName = "IconClose";
1651
1651
  function mo(e) {
1652
1652
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1653
1653
  }
@@ -1686,23 +1686,24 @@ function go() {
1686
1686
  }
1687
1687
  var _o = go();
1688
1688
  const yo = /* @__PURE__ */ mo(_o), bo = {
1689
- "purpur-paragraph": "_purpur-paragraph_1rh57_1",
1690
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
1691
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
1692
- "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
1693
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
1694
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
1695
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
1696
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
1697
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
1698
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
1699
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
1700
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
1701
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
1702
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
1689
+ "purpur-paragraph": "_purpur-paragraph_1vz75_1",
1690
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
1691
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
1692
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1vz75_13",
1693
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1vz75_16",
1694
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1vz75_22",
1695
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1vz75_29",
1696
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1vz75_36",
1697
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1vz75_42",
1698
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1vz75_48",
1699
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1vz75_54",
1700
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1vz75_60",
1701
+ "purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
1702
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
1703
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
1703
1704
  }, Eo = yo.bind(bo), wo = {
1704
1705
  PARAGRAPH100: "paragraph-100"
1705
- }, z = "purpur-paragraph", Gt = ({
1706
+ }, G = "purpur-paragraph", Kt = ({
1706
1707
  children: e,
1707
1708
  className: t,
1708
1709
  disabled: r,
@@ -1711,14 +1712,14 @@ const yo = /* @__PURE__ */ mo(_o), bo = {
1711
1712
  variant: n = wo.PARAGRAPH100,
1712
1713
  ...u
1713
1714
  }) => {
1714
- const i = Eo(t, z, `${z}--${n}`, {
1715
- [`${z}--hyphens`]: o,
1716
- [`${z}--disabled`]: r,
1717
- [`${z}--negative`]: a
1715
+ const i = Eo(t, G, `${G}--${n}`, {
1716
+ [`${G}--hyphens`]: o,
1717
+ [`${G}--disabled`]: r,
1718
+ [`${G}--negative`]: a
1718
1719
  });
1719
1720
  return /* @__PURE__ */ p("p", { ...u, className: i, children: e });
1720
1721
  };
1721
- Gt.displayName = "Paragraph";
1722
+ Kt.displayName = "Paragraph";
1722
1723
  function nt(e, t) {
1723
1724
  if (typeof e == "function")
1724
1725
  return e(t);
@@ -1805,7 +1806,7 @@ var Do = [
1805
1806
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(d, { ...i, ref: n });
1806
1807
  });
1807
1808
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1808
- }, {}), $o = "VisuallyHidden", zt = s.forwardRef(
1809
+ }, {}), $o = "VisuallyHidden", Gt = s.forwardRef(
1809
1810
  (e, t) => /* @__PURE__ */ p(
1810
1811
  Ao.span,
1811
1812
  {
@@ -1828,8 +1829,8 @@ var Do = [
1828
1829
  }
1829
1830
  )
1830
1831
  );
1831
- zt.displayName = $o;
1832
- var To = zt;
1832
+ Gt.displayName = $o;
1833
+ var To = Gt;
1833
1834
  const Mo = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ p(To, { asChild: e, ...r, children: t });
1834
1835
  function Io(e) {
1835
1836
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1869,7 +1870,7 @@ function Lo() {
1869
1870
  })(_e)), _e.exports;
1870
1871
  }
1871
1872
  var Fo = Lo();
1872
- const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_1", Bo = "_slideUp_slvdi_1", Uo = "_slideDown_slvdi_1", Ho = {
1873
+ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_1", Bo = "_slideUp_slvdi_1", Uo = "_slideDown_slvdi_1", zo = {
1873
1874
  "purpur-modal-content": "_purpur-modal-content_slvdi_1",
1874
1875
  fadeIn: jo,
1875
1876
  fadeOut: Wo,
@@ -1892,7 +1893,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
1892
1893
  "purpur-modal-content__actions": "_purpur-modal-content__actions_slvdi_151",
1893
1894
  "purpur-modal-content__actions-separator": "_purpur-modal-content__actions-separator_slvdi_203",
1894
1895
  "purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_slvdi_213"
1895
- }, at = (e) => e.showCloseButton === !0, R = ko.bind(Ho), N = "purpur-modal-content", Vo = Ce(
1896
+ }, at = (e) => e.showCloseButton === !0, R = ko.bind(zo), N = "purpur-modal-content", Ho = Ce(
1896
1897
  ({
1897
1898
  ["data-testid"]: e,
1898
1899
  actions: t,
@@ -1915,7 +1916,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
1915
1916
  { [`${N}--overflow`]: E },
1916
1917
  { [`${N}--sticky-footer`]: d },
1917
1918
  o
1918
- ), P = (A) => e ? `${e} ${A}` : void 0, K = (A) => {
1919
+ ), P = (A) => e ? `${e} ${A}` : void 0, V = (A) => {
1919
1920
  n && A.preventDefault();
1920
1921
  }, W = Zt(() => {
1921
1922
  if (!O.current || !y.current)
@@ -1949,7 +1950,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
1949
1950
  "data-testid": e,
1950
1951
  ref: b,
1951
1952
  ...!a && { "aria-describedby": void 0 },
1952
- onPointerDownOutside: K,
1953
+ onPointerDownOutside: V,
1953
1954
  onOpenAutoFocus: () => {
1954
1955
  W(), qt();
1955
1956
  },
@@ -1982,7 +1983,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
1982
1983
  asChild: !0,
1983
1984
  className: R(`${N}__title`),
1984
1985
  "data-testid": P("title"),
1985
- children: /* @__PURE__ */ p(Ht, { tag: "h2", variant: "title-200", tabIndex: -1, children: c })
1986
+ children: /* @__PURE__ */ p(zt, { tag: "h2", variant: "title-200", tabIndex: -1, children: c })
1986
1987
  }
1987
1988
  )
1988
1989
  ] }),
@@ -1995,14 +1996,14 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
1995
1996
  }
1996
1997
  ),
1997
1998
  /* @__PURE__ */ p("div", { className: R(`${N}__body`), children: /* @__PURE__ */ $("div", { className: R(`${N}__body-inner`), children: [
1998
- a && u && /* @__PURE__ */ p(Mo, { asChild: !0, children: /* @__PURE__ */ p(He, { "data-testid": P("description"), children: a }) }),
1999
+ a && u && /* @__PURE__ */ p(Mo, { asChild: !0, children: /* @__PURE__ */ p(ze, { "data-testid": P("description"), children: a }) }),
1999
2000
  a && !u && /* @__PURE__ */ p(
2000
- He,
2001
+ ze,
2001
2002
  {
2002
2003
  asChild: !0,
2003
2004
  className: R(`${N}__description`),
2004
2005
  "data-testid": P("description"),
2005
- children: /* @__PURE__ */ p(Gt, { variant: "paragraph-100", children: a })
2006
+ children: /* @__PURE__ */ p(Kt, { variant: "paragraph-100", children: a })
2006
2007
  }
2007
2008
  ),
2008
2009
  /* @__PURE__ */ p("div", { children: r }),
@@ -2032,7 +2033,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
2032
2033
  className: R(`${N}__close-button`),
2033
2034
  style: { right: `calc(var(--purpur-spacing-100) + ${r || 0}px)` },
2034
2035
  "data-testid": o,
2035
- children: /* @__PURE__ */ p(Kt, {})
2036
+ children: /* @__PURE__ */ p(Vt, {})
2036
2037
  }
2037
2038
  ) }), ut = ({
2038
2039
  actions: e,
@@ -2046,7 +2047,7 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
2046
2047
  t && /* @__PURE__ */ p("div", { className: R(`${N}__notification`), ref: r, children: t }),
2047
2048
  /* @__PURE__ */ p("span", { className: R(`${N}__actions-separator`) })
2048
2049
  ] }) : null;
2049
- }, Ko = Ce(
2050
+ }, Vo = Ce(
2050
2051
  ({ children: e, ...t }, r) => /* @__PURE__ */ p(Tn, { asChild: !0, ref: r, ...t, children: e })
2051
2052
  ), Pe = ({
2052
2053
  ["data-testid"]: e,
@@ -2054,8 +2055,8 @@ const ko = /* @__PURE__ */ Io(Fo), jo = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_
2054
2055
  open: r,
2055
2056
  onOpenChange: o
2056
2057
  }) => /* @__PURE__ */ p($n, { open: r, onOpenChange: o, "data-testid": e, children: t });
2057
- Pe.Trigger = Ko;
2058
- Pe.Content = Vo;
2058
+ Pe.Trigger = Vo;
2059
+ Pe.Content = Ho;
2059
2060
  Pe.displayName = "Modal";
2060
2061
  export {
2061
2062
  Pe as Modal