@orfium/ictinus 5.17.0-rc.1 → 5.18.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/index.js CHANGED
@@ -22074,7 +22074,7 @@ const qz = ({
22074
22074
  } = v;
22075
22075
  return v.type === E8 ? v : /* @__PURE__ */ d(t2, { isCompact: p, rowSize: t, isDisabled: o.has(m), id: m, children: v }, m);
22076
22076
  }) }) }) });
22077
- }, Vz = (e) => /* @__PURE__ */ C("position:fixed;z-index:3000;width:100vw;height:100vh;top:0;left:0;background-color:", I5(0.3, e.tokens.colors.get("backgroundColor.invertedAlt")), ";display:flex;justify-content:center;align-items:center;", ""), Wz = /* @__PURE__ */ C("max-width:", I(500), ";max-height:", I(684), ";", ""), jz = ({
22077
+ }, Vz = (e) => /* @__PURE__ */ C("position:fixed;z-index:3000;width:100vw;height:100vh;top:0;left:0;background-color:", I5(0.3, e.tokens.colors.get("backgroundColor.invertedAlt")), ";display:flex;justify-content:center;align-items:center;", ""), Wz = (e, t) => /* @__PURE__ */ C("max-width:", e, ";max-height:", t, ";", ""), jz = ({
22078
22078
  isContentPadded: e
22079
22079
  }) => (t) => /* @__PURE__ */ C("display:flex;flex-direction:row;flex-wrap:wrap;padding:", e ? `${t.globals.spacing.get("8")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")}` : void 0, ";", ""), Uz = (e) => /* @__PURE__ */ C("width:100%;display:flex;justify-content:flex-end;padding:", e.globals.spacing.get("4"), " ", e.globals.spacing.get("4"), " 0 0;box-sizing:border-box;", ""), Kz = (e) => /* @__PURE__ */ C("width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:wrap;text-align:left;color:", e.tokens.colors.get("textColor.default.primary"), ";font-weight:", e.globals.typography.fontWeight.get("regular"), ";", ""), Zz = (e) => /* @__PURE__ */ C("font-size:", e.globals.typography.fontSize.get("3"), ";margin:0 0 ", e.globals.spacing.get("3"), " 0;", ""), Gz = (e) => /* @__PURE__ */ C("font-size:", e.globals.typography.fontSize.get("9"), ";color:", e.tokens.colors.get("textColor.default.primary"), ";font-weight:", e.globals.typography.fontWeight.get("medium"), ";margin:0 0 ", e.globals.spacing.get("9"), " 0;", ""), Yz = (e) => /* @__PURE__ */ C("font-size:", e.globals.typography.fontSize.get("4"), ";color:", e.tokens.colors.get("textColor.default.secondary"), ";max-height:", I(430), ";overflow-y:hidden;margin:0;", ""), Xz = (e) => /* @__PURE__ */ C("width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;margin:", e.globals.spacing.get("9"), " 0 0 0;button{margin-left:", e.globals.spacing.get("6"), ";}", ""), Qz = ({
22080
22080
  label: e,
@@ -22108,16 +22108,18 @@ const qz = ({
22108
22108
  dataTestId: r,
22109
22109
  children: n,
22110
22110
  contentProps: o,
22111
- isContentPadded: i = !0
22111
+ isContentPadded: i = !0,
22112
+ maxWidth: a = `${H(500)}`,
22113
+ maxHeight: l = `${H(684)}`
22112
22114
  }) => {
22113
22115
  n2(() => {
22114
22116
  t();
22115
22117
  });
22116
- const a = W();
22118
+ const s = W();
22117
22119
  return ne(() => (e && (document.body.style.overflow = "hidden"), () => {
22118
22120
  document.body.style.overflow = "unset";
22119
- }), [e]), e ? /* @__PURE__ */ d("div", { css: Vz, "data-testid": ie("modal-container", r), children: /* @__PURE__ */ d(Pr, { onClick: t, children: /* @__PURE__ */ d("div", { css: Wz, children: /* @__PURE__ */ L(tC, { elevated: "02", radius: "3", children: [
22120
- /* @__PURE__ */ d("div", { css: Uz, children: /* @__PURE__ */ d(he, { type: "tertiary", iconName: "close", onClick: t, color: a.tokens.colors.get("textColor.default.secondary"), dataTestId: "modal-close" }) }),
22121
+ }), [e]), e ? /* @__PURE__ */ d("div", { css: Vz, "data-testid": ie("modal-container", r), children: /* @__PURE__ */ d(Pr, { onClick: t, children: /* @__PURE__ */ d("div", { css: Wz(a, l), children: /* @__PURE__ */ L(tC, { elevated: "02", radius: "3", children: [
22122
+ /* @__PURE__ */ d("div", { css: Uz, children: /* @__PURE__ */ d(he, { type: "tertiary", iconName: "close", onClick: t, color: s.tokens.colors.get("textColor.default.secondary"), dataTestId: "modal-close" }) }),
22121
22123
  /* @__PURE__ */ d("div", { css: jz({
22122
22124
  isContentPadded: i
22123
22125
  }), children: o ? /* @__PURE__ */ d(Qz, { ...o }) : n })
@@ -22415,7 +22417,7 @@ const VV = ({
22415
22417
  size: r,
22416
22418
  isBackgroundActive: n
22417
22419
  }) => (o) => () => {
22418
- const i = () => (t === "left" || t === "right") && n ? /* @__PURE__ */ C("width:", r, "%;", "") : zV, a = () => (t === "top" || t === "bottom") && n ? /* @__PURE__ */ C("height:", r, "%;", "") : HV, l = () => n ? /* @__PURE__ */ C("top:", t === "bottom" ? void 0 : 0, ";bottom:", t === "top" ? void 0 : 0, ";right:", t === "left" ? void 0 : 0, ";left:", t === "right" ? void 0 : 0, ";", "") : qV;
22420
+ const i = () => (t === "left" || t === "right") && n ? /* @__PURE__ */ C("width:", r, ";", "") : zV, a = () => (t === "top" || t === "bottom") && n ? /* @__PURE__ */ C("height:", r, ";", "") : HV, l = () => n ? /* @__PURE__ */ C("top:", t === "bottom" ? void 0 : 0, ";bottom:", t === "top" ? void 0 : 0, ";right:", t === "left" ? void 0 : 0, ";left:", t === "right" ? void 0 : 0, ";", "") : qV;
22419
22421
  return /* @__PURE__ */ C(De, ";position:fixed;", i(), ";", a(), ";z-index:2500;", l(), ";background:", n ? void 0 : I5(0.3, o.tokens.colors.get("backgroundColor.invertedAlt")), ";visibility:", e ? "visible" : "hidden", ";opacity:", e ? 1 : 0, ";", Te(0.2), " ", FV(t), ";", "");
22420
22422
  }, WV = ({
22421
22423
  anchor: e,
@@ -22423,12 +22425,12 @@ const VV = ({
22423
22425
  isBackgroundActive: r
22424
22426
  }) => e === "top" || e === "bottom" ? {
22425
22427
  display: "flex",
22426
- height: r ? "100%" : `${t}%`,
22428
+ height: r ? "100%" : t,
22427
22429
  width: "100%"
22428
22430
  } : {
22429
22431
  display: "flex",
22430
22432
  height: "100%",
22431
- width: r ? "100%" : `${t}%`
22433
+ width: r ? "100%" : t
22432
22434
  }, jV = ({
22433
22435
  isOpen: e,
22434
22436
  anchor: t,
@@ -22494,7 +22496,7 @@ const VV = ({
22494
22496
  isOpen: e,
22495
22497
  onClose: t,
22496
22498
  anchor: r,
22497
- size: n,
22499
+ size: n = "auto",
22498
22500
  isBackgroundActive: o = !1,
22499
22501
  dataTestPrefixId: i = "ictinus_drawer",
22500
22502
  hasFixedLayout: a = !1,