@juwel-development/design-system 4.2.0 → 4.2.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.
@@ -804,7 +804,7 @@ var v = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = _, b = (e
804
804
  let e = t.current?.querySelector("thead")?.getBoundingClientRect().height ?? 0, n = Number.parseFloat(getComputedStyle(i).paddingTop) || 0;
805
805
  i.style.scrollPaddingTop = `${e + 2 * n}px`;
806
806
  }
807
- let e = getComputedStyle(i).getPropertyValue("--_scroll-released").trim() === "1", n = i === document.activeElement, o = i.scrollWidth > i.clientWidth || r && i.scrollHeight > i.clientHeight;
807
+ let e = r && getComputedStyle(i).getPropertyValue("--_scroll-released").trim() === "1", n = i === document.activeElement, o = i.scrollWidth > i.clientWidth || r && i.scrollHeight > i.clientHeight;
808
808
  a(e ? n ? -1 : void 0 : o || n ? 0 : void 0);
809
809
  };
810
810
  o();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juwel-development/design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "description": "Shared design system: tokens and components.",
6
6
  "license": "MIT",
@@ -341,7 +341,10 @@ const useOverflow = (
341
341
  Number.parseFloat(getComputedStyle(element).paddingTop) || 0;
342
342
  element.style.scrollPaddingTop = `${headerHeight + 2 * ringRoom}px`;
343
343
  }
344
+ // Only bounded tables participate in Dialog release. Reading an absent inherited custom
345
+ // property is depth-dependent in jsdom 29.1.1, even for ordinary content tables (#157).
344
346
  const isReleased =
347
+ bounded &&
345
348
  getComputedStyle(element)
346
349
  .getPropertyValue('--_scroll-released')
347
350
  .trim() === '1';