@cntrl-site/components 1.0.100 → 1.0.101

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.mjs CHANGED
@@ -16065,7 +16065,7 @@ function Cv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
16065
16065
  },
16066
16066
  children: it.map(($t, ft) => {
16067
16067
  var Ct;
16068
- const lt = Dc($t.title), zt = Dc($t.subtitle), Mt = (((Ct = $t.link) == null ? void 0 : Ct.length) ?? 0) > 0 && x === "off" ? $t.link : void 0, rn = Math.floor(ft / at) === Math.ceil(it.length / at) - 1, Jt = Be && ft >= Qe ? `${mt + (ft - Qe)}` : void 0, jt = kt ? /* @__PURE__ */ J("div", { className: `${d}-item-text-block`, children: [
16068
+ const lt = Dc($t.title), zt = Dc($t.subtitle), Mt = (((Ct = $t.link) == null ? void 0 : Ct.length) ?? 0) > 0 && x === "off" ? $t.link : void 0, rn = Math.floor(ft / at) === Math.ceil(it.length / at) - 1, Jt = Be && ft >= Qe ? `${mt + (ft - Qe)}` : void 0, Ut = kt ? /* @__PURE__ */ J("div", { className: `${d}-item-text-block`, children: [
16069
16069
  lt && /* @__PURE__ */ l("p", { className: ee, style: { width: It, ...ne, ...Ce }, children: $t.title }),
16070
16070
  lt && /* @__PURE__ */ l(
16071
16071
  "div",
@@ -16114,7 +16114,7 @@ function Cv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
16114
16114
  }
16115
16115
  }
16116
16116
  )
16117
- ] }) : null, Ut = st ? /* @__PURE__ */ J("div", { className: `${d}-item-subtitle-row`, children: [
16117
+ ] }) : null, jt = st ? /* @__PURE__ */ J("div", { className: `${d}-item-subtitle-row`, children: [
16118
16118
  !kt && /* @__PURE__ */ l(
16119
16119
  "div",
16120
16120
  {
@@ -16140,10 +16140,10 @@ function Cv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
16140
16140
  )
16141
16141
  ] }) : null, qt = Mt ? /* @__PURE__ */ J("a", { href: Mt, target: "_blank", className: `${d}-item-text-link`, children: [
16142
16142
  Kt,
16143
- Ut
16143
+ jt
16144
16144
  ] }) : /* @__PURE__ */ J(wt, { children: [
16145
16145
  Kt,
16146
- Ut
16146
+ jt
16147
16147
  ] }), W = fp($t.gallery), Re = W.filter((Rt) => Rt.lightboxMedia).map((Rt) => Rt.lightboxMedia), Ue = /* @__PURE__ */ l("div", { className: yt, style: Tt, children: W.length === 0 ? null : I === "off" ? (() => {
16148
16148
  const { displayMedia: Rt, lightboxMedia: ut } = W[0], Et = ut ? Re.findIndex((Qt) => Qt.assetId === ut.assetId) : -1;
16149
16149
  return /* @__PURE__ */ l(
@@ -16256,12 +16256,12 @@ function Cv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
16256
16256
  qt
16257
16257
  ] }) }) : Mt ? /* @__PURE__ */ J(wt, { children: [
16258
16258
  /* @__PURE__ */ J("a", { href: Mt, target: "_blank", className: `${d}-item-image-link`, children: [
16259
- jt,
16259
+ Ut,
16260
16260
  Ue
16261
16261
  ] }),
16262
16262
  !kt && /* @__PURE__ */ l("a", { href: Mt, target: "_blank", className: `${d}-item-text-link`, children: He })
16263
16263
  ] }) : /* @__PURE__ */ J(wt, { children: [
16264
- jt,
16264
+ Ut,
16265
16265
  Ue,
16266
16266
  He
16267
16267
  ] })
@@ -21291,7 +21291,7 @@ function g0({
21291
21291
  }
21292
21292
  Re.stopPropagation(), st(W);
21293
21293
  }
21294
- }, jt = Ze ? rn(Ze, "left") : null, Kt = xe ? rn(xe, "right") : null, Ut = jt ? Zr(jt, R) : null, qt = Kt ? Zr(Kt, R) : null;
21294
+ }, Ut = Ze ? rn(Ze, "left") : null, Kt = xe ? rn(xe, "right") : null, jt = Ut ? Zr(Ut, R) : null, qt = Kt ? Zr(Kt, R) : null;
21295
21295
  return /* @__PURE__ */ J(
21296
21296
  "div",
21297
21297
  {
@@ -21397,15 +21397,15 @@ function g0({
21397
21397
  },
21398
21398
  `prev-${Ze.assetId}`
21399
21399
  ),
21400
- Ut && /* @__PURE__ */ l(
21400
+ jt && /* @__PURE__ */ l(
21401
21401
  "div",
21402
21402
  {
21403
21403
  style: {
21404
21404
  position: "absolute",
21405
- top: Ut.top,
21406
- left: Ut.left,
21407
- width: Ut.width,
21408
- height: Ut.height,
21405
+ top: jt.top,
21406
+ left: jt.left,
21407
+ width: jt.width,
21408
+ height: jt.height,
21409
21409
  cursor: a || oe ? "default" : "pointer",
21410
21410
  pointerEvents: a || oe ? "none" : "auto",
21411
21411
  zIndex: 3
@@ -25931,19 +25931,19 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25931
25931
  }
25932
25932
  const vt = () => {
25933
25933
  const Mt = Array.from(We.querySelectorAll("[data-list-row]")), rn = `${d}-list-col`, Jt = `${d}-baseline-probe`;
25934
- Mt.forEach((jt) => {
25935
- jt.querySelectorAll("[data-list-col]").forEach((Kt) => {
25934
+ Mt.forEach((Ut) => {
25935
+ Ut.querySelectorAll("[data-list-col]").forEach((Kt) => {
25936
25936
  Kt.style.transform = "";
25937
- const Ut = Kt.querySelector(`.${rn}`);
25938
- Ut && (Ut.style.minHeight = "", Ut.style.height = "");
25937
+ const jt = Kt.querySelector(`.${rn}`);
25938
+ jt && (jt.style.minHeight = "", jt.style.height = "");
25939
25939
  const qt = Kt.querySelector(`.${d}-list-col-title`);
25940
25940
  qt && (qt.style.transform = "");
25941
25941
  });
25942
- }), Mt.forEach((jt) => {
25943
- const Kt = Array.from(jt.querySelectorAll("[data-list-col]"));
25944
- V0(jt, Kt, rn);
25945
- }), We.offsetHeight, Mt.forEach((jt) => {
25946
- const Kt = Array.from(jt.querySelectorAll("[data-list-col]")), Ut = jt.getBoundingClientRect().top, qt = /* @__PURE__ */ new Map(), W = Kt.map((He) => {
25942
+ }), Mt.forEach((Ut) => {
25943
+ const Kt = Array.from(Ut.querySelectorAll("[data-list-col]"));
25944
+ V0(Ut, Kt, rn);
25945
+ }), We.offsetHeight, Mt.forEach((Ut) => {
25946
+ const Kt = Array.from(Ut.querySelectorAll("[data-list-col]")), jt = Ut.getBoundingClientRect().top, qt = /* @__PURE__ */ new Map(), W = Kt.map((He) => {
25947
25947
  const Ct = He.querySelector(`.${d}-list-col-title`), Rt = {
25948
25948
  el: He,
25949
25949
  titleEl: Ct,
@@ -25959,7 +25959,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25959
25959
  if (He.kind !== "baseline" || !ut || Ct.has(He.letter)) {
25960
25960
  const un = ws(
25961
25961
  He,
25962
- Ut,
25962
+ jt,
25963
25963
  rn,
25964
25964
  Jt
25965
25965
  );
@@ -25970,14 +25970,14 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25970
25970
  Ct.delete(He.letter);
25971
25971
  const Qt = ws(
25972
25972
  He,
25973
- Ut,
25973
+ jt,
25974
25974
  rn,
25975
25975
  Jt
25976
25976
  ), Ft = Et - Qt;
25977
25977
  G0(He.titleEl, Ft);
25978
25978
  const an = ws(
25979
25979
  He,
25980
- Ut,
25980
+ jt,
25981
25981
  rn,
25982
25982
  Jt
25983
25983
  );
@@ -26067,7 +26067,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
26067
26067
  style: fe ? void 0 : { minHeight: $e(mt) },
26068
26068
  children: [
26069
26069
  Ze.map((lt, zt) => {
26070
- const Mt = zt === Ze.length - 1, rn = rt[zt], Jt = lt.paddingBottom, jt = P0(We.cells[lt.key]), Kt = fe && jt && Jt > 0, Ut = fe ? { minHeight: $e(mt) } : { width: $e(ot[zt]) }, qt = fe ? {
26070
+ const Mt = zt === Ze.length - 1, rn = rt[zt], Jt = lt.paddingBottom, Ut = P0(We.cells[lt.key]), Kt = fe && Jt > 0, jt = fe ? { minHeight: $e(mt) } : { width: $e(ot[zt]) }, qt = fe ? {
26071
26071
  paddingLeft: $e(ae),
26072
26072
  paddingRight: $e(ae)
26073
26073
  } : {
@@ -26079,8 +26079,8 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
26079
26079
  e[`${lt.textPrefix}VerticalAlign`],
26080
26080
  e,
26081
26081
  W
26082
- ), Ue = fe && jt && u && St === 0;
26083
- return fe && !jt ? null : /* @__PURE__ */ J(
26082
+ ), Ue = fe && u && St === 0;
26083
+ return /* @__PURE__ */ J(
26084
26084
  "div",
26085
26085
  {
26086
26086
  className: fe ? `${d}-list-col-wrap` : void 0,
@@ -26097,7 +26097,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
26097
26097
  className: `${d}-list-col${Mt ? ` ${d}-list-col-last` : ""}`,
26098
26098
  style: {
26099
26099
  ...qt,
26100
- ...Ut,
26100
+ ...jt,
26101
26101
  ...fe ? { justifyContent: nd(Re.kind) } : {}
26102
26102
  },
26103
26103
  "data-test": lt.width,
@@ -26115,7 +26115,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
26115
26115
  ...rd(e, lt.textPrefix, d, n),
26116
26116
  ...fe ? {} : O0(Re.kind)
26117
26117
  },
26118
- children: We.cells[lt.key] ?? null
26118
+ children: Ut ? We.cells[lt.key] ?? null : fe ? " " : null
26119
26119
  }
26120
26120
  )
26121
26121
  }
@@ -29141,7 +29141,6 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
29141
29141
  const columnPaddingBottom = col.paddingBottom;
29142
29142
  const hasColumnText = hasListColumnText(row.cells[col.key]);
29143
29143
  const showColumnPaddingBottom = isVerticalLayout
29144
- && hasColumnText
29145
29144
  && columnPaddingBottom > 0;
29146
29145
  const columnSizeStyle = isVerticalLayout
29147
29146
  ? { minHeight: scaled(resolvedCellMinHeight) }
@@ -29167,14 +29166,9 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
29167
29166
  );
29168
29167
 
29169
29168
  const columnPaddingBottomOverlay = isVerticalLayout
29170
- && hasColumnText
29171
29169
  && showControls
29172
29170
  && rowIdx === 0;
29173
29171
 
29174
- if (isVerticalLayout && !hasColumnText) {
29175
- return null;
29176
- }
29177
-
29178
29172
  return (
29179
29173
  <div
29180
29174
  key={col.key}
@@ -29214,7 +29208,9 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
29214
29208
  ...(!isVerticalLayout ? vAlignToTitleStyle(vAlign.kind) : {}),
29215
29209
  }}
29216
29210
  >
29217
- {row.cells[col.key] ?? null}
29211
+ {hasColumnText
29212
+ ? (row.cells[col.key] ?? null)
29213
+ : (isVerticalLayout ? '\\u00a0' : null)}
29218
29214
  </span>
29219
29215
  </div>
29220
29216
  {showColumnPaddingBottom && (
@@ -32931,7 +32927,7 @@ const hd = {
32931
32927
  onClose: Ot,
32932
32928
  animMs: xr,
32933
32929
  isBlockedTarget: $t
32934
- }), jt = () => {
32930
+ }), Ut = () => {
32935
32931
  if (!dt || t.length === 0)
32936
32932
  return tt.current = 0, 0;
32937
32933
  const E = gt.current[0], le = gt.current[t.length];
@@ -32940,9 +32936,9 @@ const hd = {
32940
32936
  return ye > 0 && (tt.current = ye), tt.current;
32941
32937
  }, Kt = (E = !1) => {
32942
32938
  if (!dt) return;
32943
- const le = Ye.current, ye = jt();
32939
+ const le = Ye.current, ye = Ut();
32944
32940
  !le || ye <= 0 || ye < le.clientWidth * 0.25 || (le.scrollLeft <= 0 ? (le.scrollLeft += ye, E && (at.current.scrollLeft += ye), mt.current && (Be.current += ye)) : le.scrollLeft >= ye * 2 && (le.scrollLeft -= ye, E && (at.current.scrollLeft -= ye), mt.current && (Be.current -= ye)));
32945
- }, Ut = (E, le = ((ye) => (ye = Ye.current) == null ? void 0 : ye.scrollLeft)() ?? 0) => {
32941
+ }, jt = (E, le = ((ye) => (ye = Ye.current) == null ? void 0 : ye.scrollLeft)() ?? 0) => {
32946
32942
  if (!dt) return E;
32947
32943
  let ke = t.length + E, qe = 1 / 0;
32948
32944
  for (let xt = 0; xt < Tt; xt++) {
@@ -33061,7 +33057,7 @@ const hd = {
33061
33057
  }, bi = (E = "smooth") => {
33062
33058
  const le = Ye.current;
33063
33059
  if (!le || t.length === 0) return;
33064
- const ye = Re() % t.length, ke = Ut(ye, le.scrollLeft), qe = gt.current[ke];
33060
+ const ye = Re() % t.length, ke = jt(ye, le.scrollLeft), qe = gt.current[ke];
33065
33061
  qe && vn(qe.offsetLeft, { behavior: E, activeIndex: ye });
33066
33062
  }, ii = (E, le = "smooth", ye, ke) => {
33067
33063
  const qe = Ye.current;
@@ -33090,7 +33086,7 @@ const hd = {
33090
33086
  }, Pn = (E, le = "smooth") => {
33091
33087
  const ye = Ye.current;
33092
33088
  if (!ye || t.length === 0) return;
33093
- const ke = Ut(E, ye.scrollLeft), qe = gt.current[ke];
33089
+ const ke = jt(E, ye.scrollLeft), qe = gt.current[ke];
33094
33090
  qe && (le === "smooth" ? Ae.current = E : Ae.current = null, T.current = E, ue(E), Rt(!0), vn(qe.offsetLeft, {
33095
33091
  behavior: le,
33096
33092
  activeIndex: E,
@@ -33192,7 +33188,7 @@ const hd = {
33192
33188
  };
33193
33189
  return window.addEventListener("keydown", E), () => window.removeEventListener("keydown", E);
33194
33190
  }, [Ot]), Xt(() => {
33195
- jt();
33191
+ Ut();
33196
33192
  }, [h, t.length, dt]), Xt(() => {
33197
33193
  o || Pn(T.current, "auto");
33198
33194
  }, [h, o]), Xt(() => {
@@ -33230,7 +33226,7 @@ const hd = {
33230
33226
  };
33231
33227
  E.addEventListener("scroll", le, { passive: !0 });
33232
33228
  const ye = new ResizeObserver(() => {
33233
- jt(), Kt(at.current.isActive), Ue($e.current), Et();
33229
+ Ut(), Kt(at.current.isActive), Ue($e.current), Et();
33234
33230
  });
33235
33231
  return ye.observe(E), () => {
33236
33232
  an(), E.removeEventListener("scroll", le), ye.disconnect();
@@ -35343,7 +35339,7 @@ const vb = sb(), xb = {
35343
35339
  ), Jt = Se(
35344
35340
  () => te ? 0 : q ?? 0,
35345
35341
  [te, q]
35346
- ), jt = Se(
35342
+ ), Ut = Se(
35347
35343
  (Te) => ft.slice(0, Te).reduce(
35348
35344
  (Je, E, le) => Je + (E.marginLeftKey ? Ot[E.marginLeftKey] ?? 0 : 0) + (zt.resolved[le] ?? 0),
35349
35345
  0
@@ -35352,10 +35348,10 @@ const vb = sb(), xb = {
35352
35348
  ), Kt = Se(
35353
35349
  (Te) => {
35354
35350
  const Je = ft[Te];
35355
- return jt(Te) + (Je.marginLeftKey ? Ot[Je.marginLeftKey] ?? 0 : 0) + (zt.resolved[Te] ?? 0);
35351
+ return Ut(Te) + (Je.marginLeftKey ? Ot[Je.marginLeftKey] ?? 0 : 0) + (zt.resolved[Te] ?? 0);
35356
35352
  },
35357
- [ft, zt.resolved, jt, Ot]
35358
- ), Ut = Se((Te, Je, E) => {
35353
+ [ft, zt.resolved, Ut, Ot]
35354
+ ), jt = Se((Te, Je, E) => {
35359
35355
  if (!te || E === "single-row") {
35360
35356
  const xt = Te.findIndex((ln) => ln.prefix === Je.prefix), Vt = Te.map((ln) => Gt[ln.widthKey]), tn = Oo(Te.length, Vt);
35361
35357
  return {
@@ -35654,7 +35650,7 @@ const vb = sb(), xb = {
35654
35650
  return /* @__PURE__ */ l(wt, { children: Je.map((E) => qt(
35655
35651
  E,
35656
35652
  "single-row",
35657
- Ut(Je, E, "single-row")
35653
+ jt(Je, E, "single-row")
35658
35654
  )) });
35659
35655
  }, an = (Te) => {
35660
35656
  if (!Te) return null;
@@ -35662,7 +35658,7 @@ const vb = sb(), xb = {
35662
35658
  return E ? qt(
35663
35659
  E,
35664
35660
  "two-row-top",
35665
- Ut(Je, E, "two-row-top")
35661
+ jt(Je, E, "two-row-top")
35666
35662
  ) : null;
35667
35663
  }, un = (Te, Je = !1) => {
35668
35664
  const E = Te ? Fi(e, Te, R, ue, T) : [], le = E.filter((qe) => qe.prefix === "title2" || qe.prefix === "title3"), ye = o && Je;
@@ -35671,7 +35667,7 @@ const vb = sb(), xb = {
35671
35667
  le.map((qe) => qt(
35672
35668
  qe,
35673
35669
  "two-row-bottom",
35674
- Ut(E, qe, "two-row-bottom")
35670
+ jt(E, qe, "two-row-bottom")
35675
35671
  )),
35676
35672
  Je && o ? /* @__PURE__ */ J(wt, { children: [
35677
35673
  bi(),
@@ -35768,7 +35764,7 @@ const vb = sb(), xb = {
35768
35764
  ) }, `${Te.widthKey}-junction`);
35769
35765
  }), bi = () => ft.flatMap((Te, Je) => {
35770
35766
  if (!Te.marginLeftKey) return [];
35771
- const E = Ot[Te.marginLeftKey] ?? 0, le = jt(Je), ye = Math.max(E, di), { resolvedWidth: ke } = Mt(Te, "two-row-bottom");
35767
+ const E = Ot[Te.marginLeftKey] ?? 0, le = Ut(Je), ye = Math.max(E, di), { resolvedWidth: ke } = Mt(Te, "two-row-bottom");
35772
35768
  return /* @__PURE__ */ l(
35773
35769
  "div",
35774
35770
  {
@@ -42735,7 +42731,7 @@ function MS({
42735
42731
  }
42736
42732
  Re.stopPropagation(), st(W);
42737
42733
  }
42738
- }, jt = Ze ? rn(Ze, "left") : null, Kt = xe ? rn(xe, "right") : null, Ut = jt ? ra(jt, R) : null, qt = Kt ? ra(Kt, R) : null;
42734
+ }, Ut = Ze ? rn(Ze, "left") : null, Kt = xe ? rn(xe, "right") : null, jt = Ut ? ra(Ut, R) : null, qt = Kt ? ra(Kt, R) : null;
42739
42735
  return /* @__PURE__ */ J(
42740
42736
  "div",
42741
42737
  {
@@ -42841,15 +42837,15 @@ function MS({
42841
42837
  },
42842
42838
  `prev-${Ze.assetId}`
42843
42839
  ),
42844
- Ut && /* @__PURE__ */ l(
42840
+ jt && /* @__PURE__ */ l(
42845
42841
  "div",
42846
42842
  {
42847
42843
  style: {
42848
42844
  position: "absolute",
42849
- top: Ut.top,
42850
- left: Ut.left,
42851
- width: Ut.width,
42852
- height: Ut.height,
42845
+ top: jt.top,
42846
+ left: jt.left,
42847
+ width: jt.width,
42848
+ height: jt.height,
42853
42849
  cursor: a || oe ? "default" : "pointer",
42854
42850
  pointerEvents: a || oe ? "none" : "auto",
42855
42851
  zIndex: 3
@@ -48456,7 +48452,7 @@ function Vw({
48456
48452
  }
48457
48453
  ) }),
48458
48454
  c.map((ft, lt) => {
48459
- const zt = Tw(ft.gallery), Mt = lt < c.length - 1, rn = zt.filter((jt) => jt.lightboxMedia).map((jt) => jt.lightboxMedia), Jt = {
48455
+ const zt = Tw(ft.gallery), Mt = lt < c.length - 1, rn = zt.filter((Ut) => Ut.lightboxMedia).map((Ut) => Ut.lightboxMedia), Jt = {
48460
48456
  P: a,
48461
48457
  position: x,
48462
48458
  titleRef: w(lt),
@@ -48532,23 +48528,23 @@ function Vw({
48532
48528
  }
48533
48529
  ),
48534
48530
  H ? /* @__PURE__ */ J("div", { className: `${a}-gallery`, children: [
48535
- /* @__PURE__ */ l("div", { className: `${a}-gallery-media`, children: zt.map(({ displayMedia: jt, lightboxMedia: Kt }, Ut) => {
48531
+ /* @__PURE__ */ l("div", { className: `${a}-gallery-media`, children: zt.map(({ displayMedia: Ut, lightboxMedia: Kt }, jt) => {
48536
48532
  const qt = Kt ? rn.findIndex((W) => W.assetId === Kt.assetId) : -1;
48537
48533
  return /* @__PURE__ */ l(
48538
48534
  Rd,
48539
48535
  {
48540
48536
  P: a,
48541
- media: jt,
48537
+ media: Ut,
48542
48538
  imgWidth: f || void 0,
48543
48539
  cornerRadius: m || void 0,
48544
48540
  imageDisplay: p,
48545
48541
  isEditor: n,
48546
48542
  galleryPaddingBetween: ue,
48547
- showPaddingAfter: Ut < zt.length - 1,
48543
+ showPaddingAfter: jt < zt.length - 1,
48548
48544
  showControls: V,
48549
48545
  onMediaClick: K && qt >= 0 ? () => We(rn, qt) : void 0
48550
48546
  },
48551
- `${jt.assetId}-${Ut}`
48547
+ `${Ut.assetId}-${jt}`
48552
48548
  );
48553
48549
  }) }),
48554
48550
  /* @__PURE__ */ l("div", { className: `${a}-title-layer`, children: /* @__PURE__ */ l(
@@ -48581,23 +48577,23 @@ function Vw({
48581
48577
  galleryPaddingMaxFraction: Ne,
48582
48578
  showControls: V,
48583
48579
  scaled: T,
48584
- children: zt.map(({ displayMedia: jt, lightboxMedia: Kt }, Ut) => {
48580
+ children: zt.map(({ displayMedia: Ut, lightboxMedia: Kt }, jt) => {
48585
48581
  const qt = Kt ? rn.findIndex((W) => W.assetId === Kt.assetId) : -1;
48586
48582
  return /* @__PURE__ */ l(
48587
48583
  Rd,
48588
48584
  {
48589
48585
  P: a,
48590
- media: jt,
48586
+ media: Ut,
48591
48587
  cornerRadius: m || void 0,
48592
48588
  fillGalleryWidth: !0,
48593
48589
  imageDisplay: p,
48594
48590
  isEditor: n,
48595
48591
  galleryPaddingBetween: ue,
48596
- showPaddingAfter: Ut < zt.length - 1,
48592
+ showPaddingAfter: jt < zt.length - 1,
48597
48593
  showControls: V,
48598
48594
  onMediaClick: K && qt >= 0 ? () => We(rn, qt) : void 0
48599
48595
  },
48600
- `${jt.assetId}-${Ut}`
48596
+ `${Ut.assetId}-${jt}`
48601
48597
  );
48602
48598
  })
48603
48599
  }
@@ -54460,7 +54456,7 @@ function xC({
54460
54456
  position: be,
54461
54457
  horizontalAlign: _e,
54462
54458
  verticalAlign: Ne
54463
- }), Mt = R === "compact", rn = Mt ? oe : pe, Jt = H$(Mt ? se : Z), jt = Mt ? ee : me, Kt = Mt ? Ce : g, Ut = Mt ? de : De, qt = W$(Mt ? z : $e), W = (Mt ? Me : Be) ?? 0, Re = Mt ? Oe : mt, Ue = Mt ? et : dt, He = Mt ? Xe : Tt, Ct = Ut ?? Ve, Rt = j || (Mt ? _ : Ie) !== "off", ut = Bi(p, {
54459
+ }), Mt = R === "compact", rn = Mt ? oe : pe, Jt = H$(Mt ? se : Z), Ut = Mt ? ee : me, Kt = Mt ? Ce : g, jt = Mt ? de : De, qt = W$(Mt ? z : $e), W = (Mt ? Me : Be) ?? 0, Re = Mt ? Oe : mt, Ue = Mt ? et : dt, He = Mt ? Xe : Tt, Ct = jt ?? Ve, Rt = j || (Mt ? _ : Ie) !== "off", ut = Bi(p, {
54464
54460
  iconColor: Pe,
54465
54461
  closeButtonColor: bt,
54466
54462
  linkColor: Y,
@@ -54571,7 +54567,7 @@ function xC({
54571
54567
  ...Ft.css,
54572
54568
  textDecoration: "none",
54573
54569
  transform: zd(un)
54574
- }, tn = Ft.className, mn = (ce == null ? void 0 : ce.mode) !== "Off", ln = (ce == null ? void 0 : ce.icon) ?? "", wi = uC(ln), Dn = pC(ln, wi), ri = !!Dn, Br = vn(Math.min(rn, jt)), nr = !!(mn && ln && Jt === "right") ? "left" : "right", cc = Array.isArray(ft) ? ft : [], ns = [
54570
+ }, tn = Ft.className, mn = (ce == null ? void 0 : ce.mode) !== "Off", ln = (ce == null ? void 0 : ce.icon) ?? "", wi = uC(ln), Dn = pC(ln, wi), ri = !!Dn, Br = vn(Math.min(rn, Ut)), nr = !!(mn && ln && Jt === "right") ? "left" : "right", cc = Array.isArray(ft) ? ft : [], ns = [
54575
54571
  R !== "default" ? `${p}-state-${R}` : "",
54576
54572
  j || C === "open" ? `${p}-state-open` : "",
54577
54573
  he && he !== R && he !== C ? `${p}-state-${he}` : ""
@@ -54794,9 +54790,9 @@ function xC({
54794
54790
  ] }, nn);
54795
54791
  }, Cg = {
54796
54792
  ...ut,
54797
- height: X(jt, t),
54798
- minHeight: X(jt, t),
54799
- [`--${p}-panel-height`]: X(jt, t)
54793
+ height: X(Ut, t),
54794
+ minHeight: X(Ut, t),
54795
+ [`--${p}-panel-height`]: X(Ut, t)
54800
54796
  }, Tg = a && R === "default" && C !== "open" && !i ? vn(me + A$) : "0px";
54801
54797
  return /* @__PURE__ */ J(
54802
54798
  "div",
@@ -60405,20 +60401,20 @@ function YT({
60405
60401
  const ft = ht.getBoundingClientRect().top, lt = $t.getBoundingClientRect().top, zt = Math.max(1, lt - ft);
60406
60402
  ht.remove();
60407
60403
  let Mt = zt * 0.8;
60408
- const Jt = document.createElement("canvas").getContext("2d"), jt = (Ft) => `${Gt.fontStyle} ${Gt.fontWeight} ${Ft}px ${Gt.fontFamily}`;
60404
+ const Jt = document.createElement("canvas").getContext("2d"), Ut = (Ft) => `${Gt.fontStyle} ${Gt.fontWeight} ${Ft}px ${Gt.fontFamily}`;
60409
60405
  if (Jt) {
60410
- Jt.font = jt(Ot);
60406
+ Jt.font = Ut(Ot);
60411
60407
  const Ft = Jt.measureText(Wt).actualBoundingBoxAscent;
60412
60408
  Ft > 0 && (Mt = Ft);
60413
60409
  }
60414
60410
  const Kt = y > 1 ? (y - 1) * vt + Mt : Mt;
60415
- let Ut = Ot * (Kt / Mt);
60411
+ let jt = Ot * (Kt / Mt);
60416
60412
  if (Jt) {
60417
- Jt.font = jt(Ut);
60413
+ Jt.font = Ut(jt);
60418
60414
  const Ft = Jt.measureText(Wt).actualBoundingBoxAscent;
60419
- Ft > 0 && (Ut = Ut * (Kt / Ft));
60415
+ Ft > 0 && (jt = jt * (Kt / Ft));
60420
60416
  }
60421
- Yt.style.fontSize = `${Ut}px`, Yt.style.lineHeight = `${Ut}px`;
60417
+ Yt.style.fontSize = `${jt}px`, Yt.style.lineHeight = `${jt}px`;
60422
60418
  const qt = document.createElement("span");
60423
60419
  qt.style.cssText = "display:inline-block;width:0;height:0;vertical-align:baseline", Yt.appendChild(qt);
60424
60420
  const W = Math.max(1, qt.getBoundingClientRect().top - Yt.getBoundingClientRect().top);
@@ -60439,7 +60435,7 @@ function YT({
60439
60435
  charWidths: Qt,
60440
60436
  lineHeight: vt,
60441
60437
  capWidth: ut,
60442
- dropCapFontSize: Ut,
60438
+ dropCapFontSize: jt,
60443
60439
  dropCapTopAdjust: Ue
60444
60440
  });
60445
60441
  }, [re, L, Ie, F, y, te, h.width, x, Pe, p, R]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",