@stackone/malachite 2.18.0 → 2.18.2

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.
@@ -4878,7 +4878,7 @@ const Y4 = (e) => {
4878
4878
  ].join(" ");
4879
4879
  }, Za = $8(k5 + vo / 2), vn = `${Za} Z`, _t = "malachite-selectable-card-outline", G1 = "malachite-selectable-card", _8 = "malachite-selectable-card-style", ht = "--malachite-selectable-card-state-outline", ut = "--malachite-selectable-card-state-tint", pt = "--malachite-selectable-card-state-indicator-border", Kt = "--malachite-selectable-card-state-indicator-fill", Gt = "--malachite-selectable-card-state-indicator-dot", sa = {
4880
4880
  "background-color": q8,
4881
- "border-left": "none",
4881
+ "border-left-color": "transparent",
4882
4882
  [pt]: J8
4883
4883
  }, ca = {
4884
4884
  "background-color": Y8,
@@ -5377,7 +5377,7 @@ ${rs}`, ss = {
5377
5377
  }, _s = (e, t, r, a) => {
5378
5378
  if (!e)
5379
5379
  return;
5380
- const o = Js[a], l = e.getBoundingClientRect(), s = l.left, i = r && t.contains(r) ? t.getBoundingClientRect() : l, c = r == null ? void 0 : r.getBoundingClientRect(), d = r ? $s(r) : null, h = (d == null ? void 0 : d.left) ?? (c ? c.left - Ta : 0), p = (d == null ? void 0 : d.right) ?? (c ? c.right + Ta : 0), g = c ? Math.max(h, i.left) + Ln - s : 0, m = c ? Math.min(p, i.right) - Ln - s : 0;
5380
+ const o = Js[a], l = e.getBoundingClientRect(), s = l.left, i = r && (t != null && t.contains(r)) ? t.getBoundingClientRect() : l, c = r == null ? void 0 : r.getBoundingClientRect(), d = r ? $s(r) : null, h = (d == null ? void 0 : d.left) ?? (c ? c.left - Ta : 0), p = (d == null ? void 0 : d.right) ?? (c ? c.right + Ta : 0), g = c ? Math.max(h, i.left) + Ln - s : 0, m = c ? Math.min(p, i.right) - Ln - s : 0;
5381
5381
  e.style.backgroundImage = m > g ? `linear-gradient(to right, ${o} 0 ${g}px, transparent ${g}px ${m}px, ${o} ${m}px 100%)` : `linear-gradient(to right, ${o} 0 100%)`;
5382
5382
  }, ec = {
5383
5383
  marginInline: `calc(${dn} * -1)`,
@@ -5539,14 +5539,13 @@ ${rs}`, ss = {
5539
5539
  const ae = t ?? P, le = (m == null ? void 0 : m.background) !== void 0 || (m == null ? void 0 : m.backgroundImage) !== void 0, oe = pe(() => {
5540
5540
  var Le;
5541
5541
  const D = x.current;
5542
- if (!D)
5543
- return;
5544
- le || _s(
5542
+ if (le || _s(
5545
5543
  f.current,
5546
5544
  D,
5547
5545
  (Le = E().find((re) => R1(re) === e)) == null ? void 0 : Le.parentElement,
5548
5546
  ae
5549
- );
5547
+ ), !D)
5548
+ return;
5550
5549
  const { scrollWidth: U, clientWidth: q, scrollLeft: X } = D, W = U > q + ha, se = {
5551
5550
  canScrollLeft: W && X > ha,
5552
5551
  canScrollRight: W && X + q < U - ha
@@ -5556,10 +5555,10 @@ ${rs}`, ss = {
5556
5555
  );
5557
5556
  }, [le, E, ae, e]);
5558
5557
  He(() => {
5558
+ oe();
5559
5559
  const D = x.current;
5560
5560
  if (!D)
5561
5561
  return;
5562
- oe();
5563
5562
  const U = () => oe();
5564
5563
  D.addEventListener("scroll", U, { passive: !0 });
5565
5564
  const q = typeof ResizeObserver < "u" ? new ResizeObserver(() => oe()) : null;
@@ -9105,7 +9104,7 @@ const Ad = 1e6, kd = (e, t, r) => {
9105
9104
  ),
9106
9105
  s
9107
9106
  ] });
9108
- }, Un = Ne.lazy(() => import("./CodeBlockHighlighter-D5tk721L.js")), Rd = {
9107
+ }, Un = Ne.lazy(() => import("./CodeBlockHighlighter-BbNG5224.js")), Rd = {
9109
9108
  added: "var(--malachite-codeblock-diff-added-background)",
9110
9109
  removed: "var(--malachite-codeblock-diff-removed-background)",
9111
9110
  context: void 0
@@ -18915,17 +18914,17 @@ const Og = () => /* @__PURE__ */ n(
18915
18914
  "aria-labelledby": s,
18916
18915
  "aria-hidden": p ? void 0 : !0,
18917
18916
  className: p ? "pointer-events-auto" : void 0,
18918
- children: y ? /* @__PURE__ */ b(
18917
+ children: /* @__PURE__ */ b(
18919
18918
  "div",
18920
18919
  {
18921
- className: jg,
18922
- style: { boxShadow: Yg },
18920
+ className: y ? jg : void 0,
18921
+ style: y ? { boxShadow: Yg } : void 0,
18923
18922
  children: [
18924
- /* @__PURE__ */ n("p", { "aria-hidden": "true", className: Ug, children: o }),
18923
+ y && /* @__PURE__ */ n("p", { "aria-hidden": "true", className: Ug, children: o }),
18925
18924
  w
18926
18925
  ]
18927
18926
  }
18928
- ) : w
18927
+ )
18929
18928
  }
18930
18929
  )
18931
18930
  ]
@@ -19114,4 +19113,4 @@ export {
19114
19113
  um as y,
19115
19114
  Tm as z
19116
19115
  };
19117
- //# sourceMappingURL=index-DAhukADg.js.map
19116
+ //# sourceMappingURL=index-BC4pvMjL.js.map