@purpurds/modal 8.5.0 → 8.5.1

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.es.js CHANGED
@@ -262,7 +262,7 @@ var gr = "DismissableLayer", Ee = "dismissableLayer.update", _r = "dismissableLa
262
262
  } = e, c = s.useContext(lt), [p, v] = s.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = s.useState({}), b = k(t, (y) => v(y)), l = Array.from(c.layers), [m] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), _ = l.indexOf(m), w = p ? l.indexOf(p) : -1, E = c.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= _, C = Er((y) => {
263
263
  const x = y.target, R = [...c.branches].some((G) => G.contains(x));
264
264
  !S || R || (a == null || a(y), u == null || u(y), y.defaultPrevented || i == null || i());
265
- }, h), P = Sr((y) => {
265
+ }, h), O = Sr((y) => {
266
266
  const x = y.target;
267
267
  [...c.branches].some((G) => G.contains(x)) || (n == null || n(y), u == null || u(y), y.defaultPrevented || i == null || i());
268
268
  }, h);
@@ -287,8 +287,8 @@ var gr = "DismissableLayer", Ee = "dismissableLayer.update", _r = "dismissableLa
287
287
  pointerEvents: E ? S ? "auto" : "none" : void 0,
288
288
  ...e.style
289
289
  },
290
- onFocusCapture: F(e.onFocusCapture, P.onFocusCapture),
291
- onBlurCapture: F(e.onBlurCapture, P.onBlurCapture),
290
+ onFocusCapture: F(e.onFocusCapture, O.onFocusCapture),
291
+ onBlurCapture: F(e.onBlurCapture, O.onBlurCapture),
292
292
  onPointerDownCapture: F(
293
293
  e.onPointerDownCapture,
294
294
  C.onPointerDownCapture
@@ -419,7 +419,7 @@ var de = "focusScope.autoFocusOnMount", pe = "focusScope.autoFocusOnUnmount", Te
419
419
  if (!r && !o || g.paused) return;
420
420
  const m = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, _ = document.activeElement;
421
421
  if (m && _) {
422
- const w = l.currentTarget, [E, S] = Pr(w);
422
+ const w = l.currentTarget, [E, S] = Or(w);
423
423
  E && S ? !l.shiftKey && _ === S ? (l.preventDefault(), r && L(E, { select: !0 })) : l.shiftKey && _ === E && (l.preventDefault(), r && L(S, { select: !0 })) : _ === w && l.preventDefault();
424
424
  }
425
425
  },
@@ -433,7 +433,7 @@ function Nr(e, { select: t = !1 } = {}) {
433
433
  for (const o of e)
434
434
  if (L(o, { select: t }), document.activeElement !== r) return;
435
435
  }
436
- function Pr(e) {
436
+ function Or(e) {
437
437
  const t = vt(e), r = Me(t, e), o = Me(t.reverse(), e);
438
438
  return [r, o];
439
439
  }
@@ -449,9 +449,9 @@ function vt(e) {
449
449
  }
450
450
  function Me(e, t) {
451
451
  for (const r of e)
452
- if (!Or(r, { upTo: t })) return r;
452
+ if (!Pr(r, { upTo: t })) return r;
453
453
  }
454
- function Or(e, { upTo: t }) {
454
+ function Pr(e, { upTo: t }) {
455
455
  if (getComputedStyle(e).visibility === "hidden") return !0;
456
456
  for (; e; ) {
457
457
  if (t !== void 0 && e === t) return !1;
@@ -725,12 +725,12 @@ var _t = Hr(), he = function() {
725
725
  onScrollCapture: he,
726
726
  onWheelCapture: he,
727
727
  onTouchMoveCapture: he
728
- }), a = o[0], n = o[1], u = e.forwardProps, i = e.children, d = e.className, c = e.removeScrollBar, p = e.enabled, v = e.shards, h = e.sideCar, g = e.noRelative, b = e.noIsolation, l = e.inert, m = e.allowPinchZoom, _ = e.as, w = _ === void 0 ? "div" : _, E = e.gapMode, S = mt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, P = Br([r, t]), y = T(T({}, S), a);
728
+ }), a = o[0], n = o[1], u = e.forwardProps, i = e.children, d = e.className, c = e.removeScrollBar, p = e.enabled, v = e.shards, h = e.sideCar, g = e.noRelative, b = e.noIsolation, l = e.inert, m = e.allowPinchZoom, _ = e.as, w = _ === void 0 ? "div" : _, E = e.gapMode, S = mt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, O = Br([r, t]), y = T(T({}, S), a);
729
729
  return s.createElement(
730
730
  s.Fragment,
731
731
  null,
732
732
  p && s.createElement(C, { sideCar: _t, removeScrollBar: c, shards: v, noRelative: g, noIsolation: b, inert: l, setCallbacks: n, allowPinchZoom: !!m, lockRef: r, gapMode: E }),
733
- u ? s.cloneElement(s.Children.only(i), T(T({}, y), { ref: P })) : s.createElement(w, T({}, y, { className: d, ref: P }), i)
733
+ u ? s.cloneElement(s.Children.only(i), T(T({}, y), { ref: O })) : s.createElement(w, T({}, y, { className: d, ref: O }), i)
734
734
  );
735
735
  });
736
736
  se.defaultProps = {
@@ -976,13 +976,13 @@ function mn(e) {
976
976
  var i = s.useCallback(function(l, m) {
977
977
  if ("touches" in l && l.touches.length === 2 || l.type === "wheel" && l.ctrlKey)
978
978
  return !u.current.allowPinchZoom;
979
- var _ = J(l), w = r.current, E = "deltaX" in l ? l.deltaX : w[0] - _[0], S = "deltaY" in l ? l.deltaY : w[1] - _[1], C, P = l.target, y = Math.abs(E) > Math.abs(S) ? "h" : "v";
980
- if ("touches" in l && y === "h" && P.type === "range")
979
+ var _ = J(l), w = r.current, E = "deltaX" in l ? l.deltaX : w[0] - _[0], S = "deltaY" in l ? l.deltaY : w[1] - _[1], C, O = l.target, y = Math.abs(E) > Math.abs(S) ? "h" : "v";
980
+ if ("touches" in l && y === "h" && O.type === "range")
981
981
  return !1;
982
- var x = We(y, P);
982
+ var x = We(y, O);
983
983
  if (!x)
984
984
  return !0;
985
- if (x ? C = y : (C = y === "v" ? "h" : "v", x = We(y, P)), !x)
985
+ if (x ? C = y : (C = y === "v" ? "h" : "v", x = We(y, O)), !x)
986
986
  return !1;
987
987
  if (!o.current && "changedTouches" in l && (E || S) && (o.current = C), !C)
988
988
  return !0;
@@ -1096,7 +1096,7 @@ var yn = function(e) {
1096
1096
  return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), wn(o, a, r, "aria-hidden")) : function() {
1097
1097
  return null;
1098
1098
  };
1099
- }, ce = "Dialog", [Nt] = tr(ce), [Sn, A] = Nt(ce), Pt = (e) => {
1099
+ }, ce = "Dialog", [Nt] = tr(ce), [Sn, A] = Nt(ce), Ot = (e) => {
1100
1100
  const {
1101
1101
  __scopeDialog: t,
1102
1102
  children: r,
@@ -1127,10 +1127,10 @@ var yn = function(e) {
1127
1127
  }
1128
1128
  );
1129
1129
  };
1130
- Pt.displayName = ce;
1131
- var Ot = "DialogTrigger", Rt = s.forwardRef(
1130
+ Ot.displayName = ce;
1131
+ var Pt = "DialogTrigger", Rt = s.forwardRef(
1132
1132
  (e, t) => {
1133
- const { __scopeDialog: r, ...o } = e, a = A(Ot, r), n = k(t, a.triggerRef);
1133
+ const { __scopeDialog: r, ...o } = e, a = A(Pt, r), n = k(t, a.triggerRef);
1134
1134
  return /* @__PURE__ */ f(
1135
1135
  M.button,
1136
1136
  {
@@ -1138,7 +1138,7 @@ var Ot = "DialogTrigger", Rt = s.forwardRef(
1138
1138
  "aria-haspopup": "dialog",
1139
1139
  "aria-expanded": a.open,
1140
1140
  "aria-controls": a.contentId,
1141
- "data-state": Oe(a.open),
1141
+ "data-state": Pe(a.open),
1142
1142
  ...o,
1143
1143
  ref: n,
1144
1144
  onClick: F(e.onClick, a.onOpenToggle)
@@ -1146,7 +1146,7 @@ var Ot = "DialogTrigger", Rt = s.forwardRef(
1146
1146
  );
1147
1147
  }
1148
1148
  );
1149
- Rt.displayName = Ot;
1149
+ Rt.displayName = Pt;
1150
1150
  var Ne = "DialogPortal", [Cn, xt] = Nt(Ne, {
1151
1151
  forceMount: void 0
1152
1152
  }), At = (e) => {
@@ -1157,11 +1157,11 @@ At.displayName = Ne;
1157
1157
  var ie = "DialogOverlay", Dt = s.forwardRef(
1158
1158
  (e, t) => {
1159
1159
  const r = xt(ie, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = A(ie, e.__scopeDialog);
1160
- return n.modal ? /* @__PURE__ */ f(ue, { present: o || n.open, children: /* @__PURE__ */ f(Pn, { ...a, ref: t }) }) : null;
1160
+ return n.modal ? /* @__PURE__ */ f(ue, { present: o || n.open, children: /* @__PURE__ */ f(On, { ...a, ref: t }) }) : null;
1161
1161
  }
1162
1162
  );
1163
1163
  Dt.displayName = ie;
1164
- var Nn = /* @__PURE__ */ ct("DialogOverlay.RemoveScroll"), Pn = s.forwardRef(
1164
+ var Nn = /* @__PURE__ */ ct("DialogOverlay.RemoveScroll"), On = s.forwardRef(
1165
1165
  (e, t) => {
1166
1166
  const { __scopeDialog: r, ...o } = e, a = A(ie, r);
1167
1167
  return (
@@ -1170,7 +1170,7 @@ var Nn = /* @__PURE__ */ ct("DialogOverlay.RemoveScroll"), Pn = s.forwardRef(
1170
1170
  /* @__PURE__ */ f(St, { as: Nn, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
1171
1171
  M.div,
1172
1172
  {
1173
- "data-state": Oe(a.open),
1173
+ "data-state": Pe(a.open),
1174
1174
  ...o,
1175
1175
  ref: t,
1176
1176
  style: { pointerEvents: "auto", ...o.style }
@@ -1181,11 +1181,11 @@ var Nn = /* @__PURE__ */ ct("DialogOverlay.RemoveScroll"), Pn = s.forwardRef(
1181
1181
  ), j = "DialogContent", $t = s.forwardRef(
1182
1182
  (e, t) => {
1183
1183
  const r = xt(j, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = A(j, e.__scopeDialog);
1184
- return /* @__PURE__ */ f(ue, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(On, { ...a, ref: t }) : /* @__PURE__ */ f(Rn, { ...a, ref: t }) });
1184
+ return /* @__PURE__ */ f(ue, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(Pn, { ...a, ref: t }) : /* @__PURE__ */ f(Rn, { ...a, ref: t }) });
1185
1185
  }
1186
1186
  );
1187
1187
  $t.displayName = j;
1188
- var On = s.forwardRef(
1188
+ var Pn = s.forwardRef(
1189
1189
  (e, t) => {
1190
1190
  const r = A(j, e.__scopeDialog), o = s.useRef(null), a = k(t, r.contentRef, o);
1191
1191
  return s.useEffect(() => {
@@ -1255,7 +1255,7 @@ var On = s.forwardRef(
1255
1255
  id: i.contentId,
1256
1256
  "aria-describedby": i.descriptionId,
1257
1257
  "aria-labelledby": i.titleId,
1258
- "data-state": Oe(i.open),
1258
+ "data-state": Pe(i.open),
1259
1259
  ...u,
1260
1260
  ref: c,
1261
1261
  onDismiss: () => i.onOpenChange(!1)
@@ -1269,13 +1269,13 @@ var On = s.forwardRef(
1269
1269
  ] })
1270
1270
  ] });
1271
1271
  }
1272
- ), Pe = "DialogTitle", Mt = s.forwardRef(
1272
+ ), Oe = "DialogTitle", Mt = s.forwardRef(
1273
1273
  (e, t) => {
1274
- const { __scopeDialog: r, ...o } = e, a = A(Pe, r);
1274
+ const { __scopeDialog: r, ...o } = e, a = A(Oe, r);
1275
1275
  return /* @__PURE__ */ f(M.h2, { id: a.titleId, ...o, ref: t });
1276
1276
  }
1277
1277
  );
1278
- Mt.displayName = Pe;
1278
+ Mt.displayName = Oe;
1279
1279
  var It = "DialogDescription", Lt = s.forwardRef(
1280
1280
  (e, t) => {
1281
1281
  const { __scopeDialog: r, ...o } = e, a = A(It, r);
@@ -1298,12 +1298,12 @@ var Ft = "DialogClose", jt = s.forwardRef(
1298
1298
  }
1299
1299
  );
1300
1300
  jt.displayName = Ft;
1301
- function Oe(e) {
1301
+ function Pe(e) {
1302
1302
  return e ? "open" : "closed";
1303
1303
  }
1304
- var kt = "DialogTitleWarning", [zo, Wt] = er(kt, {
1304
+ var kt = "DialogTitleWarning", [Yo, Wt] = er(kt, {
1305
1305
  contentName: j,
1306
- titleName: Pe,
1306
+ titleName: Oe,
1307
1307
  docsSlug: "dialog"
1308
1308
  }), xn = ({ titleId: e }) => {
1309
1309
  const t = Wt(kt), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
@@ -1321,7 +1321,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1321
1321
  const a = (n = e.current) == null ? void 0 : n.getAttribute("aria-describedby");
1322
1322
  t && a && (document.getElementById(t) || console.warn(o));
1323
1323
  }, [o, e, t]), null;
1324
- }, $n = Pt, Tn = Rt, Mn = At, In = Dt, Ln = $t, Fn = Mt, Ve = Lt, jn = jt;
1324
+ }, $n = Ot, Tn = Rt, Mn = At, In = Dt, Ln = $t, Fn = Mt, Ve = Lt, jn = jt;
1325
1325
  const kn = {
1326
1326
  LG: "lg"
1327
1327
  };
@@ -1676,7 +1676,7 @@ const uo = /* @__PURE__ */ oo(io), so = {
1676
1676
  const n = fo({
1677
1677
  content: vo(e.svg),
1678
1678
  title: t
1679
- }), u = co(r, et, `${et}--${o}`);
1679
+ }), u = co(et, `${et}--${o}`, r);
1680
1680
  return /* @__PURE__ */ f("span", { className: u, dangerouslySetInnerHTML: { __html: n }, ...a });
1681
1681
  };
1682
1682
  Ht.displayName = "Icon";
@@ -1788,7 +1788,7 @@ function So(...e) {
1788
1788
  // @__NO_SIDE_EFFECTS__
1789
1789
  function Co(e) {
1790
1790
  const t = /* @__PURE__ */ No(e), r = s.forwardRef((o, a) => {
1791
- const { children: n, ...u } = o, i = s.Children.toArray(n), d = i.find(Oo);
1791
+ const { children: n, ...u } = o, i = s.Children.toArray(n), d = i.find(Po);
1792
1792
  if (d) {
1793
1793
  const c = d.props.children, p = i.map((v) => v === d ? s.Children.count(c) > 1 ? s.Children.only(null) : s.isValidElement(c) ? c.props.children : null : v);
1794
1794
  return /* @__PURE__ */ f(t, { ...u, ref: a, children: s.isValidElement(c) ? s.cloneElement(c, void 0, p) : null });
@@ -1809,9 +1809,9 @@ function No(e) {
1809
1809
  });
1810
1810
  return t.displayName = `${e}.SlotClone`, t;
1811
1811
  }
1812
- var Po = Symbol("radix.slottable");
1813
- function Oo(e) {
1814
- return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Po;
1812
+ var Oo = Symbol("radix.slottable");
1813
+ function Po(e) {
1814
+ return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Oo;
1815
1815
  }
1816
1816
  function Ro(e, t) {
1817
1817
  const r = { ...t };
@@ -1920,27 +1920,30 @@ function Lo() {
1920
1920
  })(_e)), _e.exports;
1921
1921
  }
1922
1922
  var Fo = Lo();
1923
- const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
1924
- "purpur-modal-content": "_purpur-modal-content_4aird_1",
1923
+ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_slvdi_1", Wo = "_fadeOut_slvdi_1", Bo = "_slideUp_slvdi_1", Uo = "_slideDown_slvdi_1", Vo = {
1924
+ "purpur-modal-content": "_purpur-modal-content_slvdi_1",
1925
1925
  fadeIn: ko,
1926
- "purpur-modal-content__overlay": "_purpur-modal-content__overlay_4aird_30",
1927
- "purpur-modal-content__close-button": "_purpur-modal-content__close-button_4aird_37",
1928
- "purpur-modal-content__wrapper": "_purpur-modal-content__wrapper_4aird_47",
1929
- "purpur-modal-content__wrapper-inner": "_purpur-modal-content__wrapper-inner_4aird_57",
1930
- "purpur-modal-content__image-wrapper": "_purpur-modal-content__image-wrapper_4aird_61",
1931
- "purpur-modal-content__header": "_purpur-modal-content__header_4aird_84",
1932
- "purpur-modal-content__title": "_purpur-modal-content__title_4aird_97",
1933
- "purpur-modal-content__description": "_purpur-modal-content__description_4aird_100",
1934
- "purpur-modal-content__body": "_purpur-modal-content__body_4aird_103",
1935
- "purpur-modal-content__body-inner": "_purpur-modal-content__body-inner_4aird_111",
1936
- "purpur-modal-content__actions-buttons": "_purpur-modal-content__actions-buttons_4aird_123",
1937
- "purpur-modal-content__notification": "_purpur-modal-content__notification_4aird_141",
1938
- "purpur-modal-content--with-image": "_purpur-modal-content--with-image_4aird_144",
1939
- "purpur-modal-content--overflow": "_purpur-modal-content--overflow_4aird_144",
1940
- "purpur-modal-content__actions": "_purpur-modal-content__actions_4aird_123",
1941
- "purpur-modal-content__actions-separator": "_purpur-modal-content__actions-separator_4aird_175",
1942
- "purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_4aird_185"
1943
- }, at = (e) => e.showCloseButton === !0, O = jo.bind(Wo), N = "purpur-modal-content", Bo = Ce(
1926
+ fadeOut: Wo,
1927
+ slideUp: Bo,
1928
+ slideDown: Uo,
1929
+ "purpur-modal-content__overlay": "_purpur-modal-content__overlay_slvdi_49",
1930
+ "purpur-modal-content__close-button": "_purpur-modal-content__close-button_slvdi_65",
1931
+ "purpur-modal-content__wrapper": "_purpur-modal-content__wrapper_slvdi_75",
1932
+ "purpur-modal-content__wrapper-inner": "_purpur-modal-content__wrapper-inner_slvdi_85",
1933
+ "purpur-modal-content__image-wrapper": "_purpur-modal-content__image-wrapper_slvdi_89",
1934
+ "purpur-modal-content__header": "_purpur-modal-content__header_slvdi_112",
1935
+ "purpur-modal-content__title": "_purpur-modal-content__title_slvdi_125",
1936
+ "purpur-modal-content__description": "_purpur-modal-content__description_slvdi_128",
1937
+ "purpur-modal-content__body": "_purpur-modal-content__body_slvdi_131",
1938
+ "purpur-modal-content__body-inner": "_purpur-modal-content__body-inner_slvdi_139",
1939
+ "purpur-modal-content__actions-buttons": "_purpur-modal-content__actions-buttons_slvdi_151",
1940
+ "purpur-modal-content__notification": "_purpur-modal-content__notification_slvdi_169",
1941
+ "purpur-modal-content--with-image": "_purpur-modal-content--with-image_slvdi_172",
1942
+ "purpur-modal-content--overflow": "_purpur-modal-content--overflow_slvdi_172",
1943
+ "purpur-modal-content__actions": "_purpur-modal-content__actions_slvdi_151",
1944
+ "purpur-modal-content__actions-separator": "_purpur-modal-content__actions-separator_slvdi_203",
1945
+ "purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_slvdi_213"
1946
+ }, at = (e) => e.showCloseButton === !0, P = jo.bind(Vo), N = "purpur-modal-content", Ho = Ce(
1944
1947
  ({
1945
1948
  ["data-testid"]: e,
1946
1949
  actions: t,
@@ -1957,7 +1960,7 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
1957
1960
  onCloseAutoFocus: h,
1958
1961
  ...g
1959
1962
  }, b) => {
1960
- const { closeButtonAriaLabel: l, showCloseButton: m, ..._ } = g, [w, E] = ye(!1), [S, C] = ye(0), P = be(null), y = be(null), x = O(
1963
+ const { closeButtonAriaLabel: l, showCloseButton: m, ..._ } = g, [w, E] = ye(!1), [S, C] = ye(0), O = be(null), y = be(null), x = P(
1961
1964
  N,
1962
1965
  { [`${N}--with-image`]: !!i },
1963
1966
  { [`${N}--overflow`]: w },
@@ -1966,11 +1969,11 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
1966
1969
  ), R = (D) => e ? `${e} ${D}` : void 0, G = (D) => {
1967
1970
  n && D.preventDefault();
1968
1971
  }, W = Zt(() => {
1969
- if (!P.current || !y.current)
1972
+ if (!O.current || !y.current)
1970
1973
  return;
1971
- const D = window.getComputedStyle(P.current, null), X = parseFloat(D.getPropertyValue("height")), Xt = y.current.offsetHeight;
1974
+ const D = window.getComputedStyle(O.current, null), X = parseFloat(D.getPropertyValue("height")), Xt = y.current.offsetHeight;
1972
1975
  E(X < Xt), C(
1973
- (P.current.offsetWidth ?? 0) - (P.current.clientWidth ?? 0)
1976
+ (O.current.offsetWidth ?? 0) - (O.current.clientWidth ?? 0)
1974
1977
  );
1975
1978
  }, []), qt = () => {
1976
1979
  const D = y.current;
@@ -1988,7 +1991,7 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
1988
1991
  }), [W]), we(() => {
1989
1992
  W();
1990
1993
  }, [p, r, W]), /* @__PURE__ */ $(Mn, { children: [
1991
- /* @__PURE__ */ f(In, { className: O(`${N}__overlay`), style: { zIndex: v } }),
1994
+ /* @__PURE__ */ f(In, { className: P(`${N}__overlay`), style: { zIndex: v } }),
1992
1995
  /* @__PURE__ */ $(
1993
1996
  Ln,
1994
1997
  {
@@ -2005,7 +2008,7 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2005
2008
  onCloseAutoFocus: h,
2006
2009
  style: { zIndex: `calc(${v} + 1)` },
2007
2010
  children: [
2008
- /* @__PURE__ */ $("div", { ref: P, className: O(`${N}__wrapper`), children: [
2011
+ /* @__PURE__ */ $("div", { ref: O, className: P(`${N}__wrapper`), children: [
2009
2012
  at(g) && l && i && /* @__PURE__ */ f(
2010
2013
  it,
2011
2014
  {
@@ -2015,8 +2018,8 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2015
2018
  "data-testid": R("close-button")
2016
2019
  }
2017
2020
  ),
2018
- /* @__PURE__ */ $("div", { ref: y, className: O(`${N}__wrapper-inner`), children: [
2019
- /* @__PURE__ */ $("div", { className: O(`${N}__header`), children: [
2021
+ /* @__PURE__ */ $("div", { ref: y, className: P(`${N}__wrapper-inner`), children: [
2022
+ /* @__PURE__ */ $("div", { className: P(`${N}__header`), children: [
2020
2023
  at(g) && l && !i && /* @__PURE__ */ f(
2021
2024
  it,
2022
2025
  {
@@ -2028,7 +2031,7 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2028
2031
  Fn,
2029
2032
  {
2030
2033
  asChild: !0,
2031
- className: O(`${N}__title`),
2034
+ className: P(`${N}__title`),
2032
2035
  "data-testid": R("title"),
2033
2036
  children: /* @__PURE__ */ f(Vt, { tag: "h2", variant: "title-200", tabIndex: -1, children: c })
2034
2037
  }
@@ -2037,18 +2040,18 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2037
2040
  i && /* @__PURE__ */ f(
2038
2041
  "div",
2039
2042
  {
2040
- className: O(`${N}__image-wrapper`),
2043
+ className: P(`${N}__image-wrapper`),
2041
2044
  "data-testid": R("image"),
2042
2045
  children: i
2043
2046
  }
2044
2047
  ),
2045
- /* @__PURE__ */ f("div", { className: O(`${N}__body`), children: /* @__PURE__ */ $("div", { className: O(`${N}__body-inner`), children: [
2048
+ /* @__PURE__ */ f("div", { className: P(`${N}__body`), children: /* @__PURE__ */ $("div", { className: P(`${N}__body-inner`), children: [
2046
2049
  a && u && /* @__PURE__ */ f(Mo, { asChild: !0, children: /* @__PURE__ */ f(Ve, { "data-testid": R("description"), children: a }) }),
2047
2050
  a && !u && /* @__PURE__ */ f(
2048
2051
  Ve,
2049
2052
  {
2050
2053
  asChild: !0,
2051
- className: O(`${N}__description`),
2054
+ className: P(`${N}__description`),
2052
2055
  "data-testid": R("description"),
2053
2056
  children: /* @__PURE__ */ f(zt, { variant: "paragraph-100", children: a })
2054
2057
  }
@@ -2077,7 +2080,7 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2077
2080
  size: "sm",
2078
2081
  iconOnly: !0,
2079
2082
  "aria-label": e,
2080
- className: O(`${N}__close-button`),
2083
+ className: P(`${N}__close-button`),
2081
2084
  style: { right: `calc(var(--purpur-spacing-100) + ${r || 0}px)` },
2082
2085
  "data-testid": o,
2083
2086
  children: /* @__PURE__ */ f(Gt, {})
@@ -2090,12 +2093,12 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2090
2093
  return we(() => {
2091
2094
  var o, a;
2092
2095
  t && ((a = (o = r == null ? void 0 : r.current) == null ? void 0 : o.scrollIntoView) == null || a.call(o, !1));
2093
- }, [t]), e ? /* @__PURE__ */ $("div", { className: O(`${N}__actions`), children: [
2094
- /* @__PURE__ */ f("div", { className: O(`${N}__actions-buttons`), "data-testid": "modal actions", children: e }),
2095
- t && /* @__PURE__ */ f("div", { className: O(`${N}__notification`), ref: r, children: t }),
2096
- /* @__PURE__ */ f("span", { className: O(`${N}__actions-separator`) })
2096
+ }, [t]), e ? /* @__PURE__ */ $("div", { className: P(`${N}__actions`), children: [
2097
+ /* @__PURE__ */ f("div", { className: P(`${N}__actions-buttons`), "data-testid": "modal actions", children: e }),
2098
+ t && /* @__PURE__ */ f("div", { className: P(`${N}__notification`), ref: r, children: t }),
2099
+ /* @__PURE__ */ f("span", { className: P(`${N}__actions-separator`) })
2097
2100
  ] }) : null;
2098
- }, Uo = Ce(
2101
+ }, Go = Ce(
2099
2102
  ({ children: e, ...t }, r) => /* @__PURE__ */ f(Tn, { asChild: !0, ref: r, ...t, children: e })
2100
2103
  ), Re = ({
2101
2104
  ["data-testid"]: e,
@@ -2103,8 +2106,8 @@ const jo = /* @__PURE__ */ Io(Fo), ko = "_fadeIn_4aird_1", Wo = {
2103
2106
  open: r,
2104
2107
  onOpenChange: o
2105
2108
  }) => /* @__PURE__ */ f($n, { open: r, onOpenChange: o, "data-testid": e, children: t });
2106
- Re.Trigger = Uo;
2107
- Re.Content = Bo;
2109
+ Re.Trigger = Go;
2110
+ Re.Content = Ho;
2108
2111
  Re.displayName = "Modal";
2109
2112
  export {
2110
2113
  Re as Modal