@orangecheck/app-design 0.3.0 → 0.3.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.
- package/dist/components.js +2 -1
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +2 -1
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/primitives.js +1 -0
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +1 -0
- package/dist/primitives.mjs.map +1 -1
- package/dist/styles/tokens.css +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -708,6 +708,7 @@ function ScrollFade({ fade = "var(--card)", className, innerClassName, children,
|
|
|
708
708
|
const el = ref.current;
|
|
709
709
|
if (!el) return;
|
|
710
710
|
measure();
|
|
711
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
711
712
|
const ro = new ResizeObserver(measure);
|
|
712
713
|
ro.observe(el);
|
|
713
714
|
if (el.firstElementChild) ro.observe(el.firstElementChild);
|
|
@@ -1064,7 +1065,7 @@ function useActiveHeading(ids) {
|
|
|
1064
1065
|
const key = ids.join("|");
|
|
1065
1066
|
react.useEffect(() => {
|
|
1066
1067
|
const els = key.split("|").map((id) => document.getElementById(id)).filter((el) => el !== null);
|
|
1067
|
-
if (els.length === 0) return;
|
|
1068
|
+
if (els.length === 0 || typeof IntersectionObserver === "undefined") return;
|
|
1068
1069
|
const io = new IntersectionObserver(
|
|
1069
1070
|
(entries) => {
|
|
1070
1071
|
const hit = entries.filter((e) => e.isIntersecting).sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top)[0];
|