1mpacto-react-ui 0.0.28 → 0.0.30
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +22 -22
- package/dist/index.mjs.map +1 -1
- package/dist/src/hooks/useAsyncDebounce.d.ts +1 -1
- package/dist/src/hooks/useCombinedResizeObserver.d.ts +1 -1
- package/dist/src/interfaces/components/FilterContainer/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -23689,11 +23689,11 @@ function N$(e, t = 0) {
|
|
23689
23689
|
[e, t]
|
23690
23690
|
);
|
23691
23691
|
}
|
23692
|
-
const O$ = () => {
|
23693
|
-
const [
|
23692
|
+
const O$ = (e) => {
|
23693
|
+
const [t, n] = te({
|
23694
23694
|
width: window.innerWidth,
|
23695
23695
|
height: window.innerHeight
|
23696
|
-
}), [
|
23696
|
+
}), [r, a] = te({
|
23697
23697
|
width: 0,
|
23698
23698
|
height: 0,
|
23699
23699
|
top: 0,
|
@@ -23702,32 +23702,32 @@ const O$ = () => {
|
|
23702
23702
|
right: 0,
|
23703
23703
|
x: 0,
|
23704
23704
|
y: 0
|
23705
|
-
}),
|
23705
|
+
}), o = be(null);
|
23706
23706
|
return qa(() => {
|
23707
|
-
const
|
23708
|
-
|
23707
|
+
const i = () => {
|
23708
|
+
n({
|
23709
23709
|
width: window.innerWidth,
|
23710
23710
|
height: window.innerHeight
|
23711
23711
|
});
|
23712
|
-
},
|
23713
|
-
for (const
|
23714
|
-
const { width:
|
23715
|
-
|
23716
|
-
width:
|
23717
|
-
height:
|
23718
|
-
top:
|
23719
|
-
left:
|
23720
|
-
bottom:
|
23721
|
-
right:
|
23722
|
-
x:
|
23723
|
-
y
|
23712
|
+
}, u = (c) => {
|
23713
|
+
for (const f of c) {
|
23714
|
+
const { width: g, height: d, top: m, left: h, bottom: v, right: p, x: b, y } = f.contentRect;
|
23715
|
+
a({
|
23716
|
+
width: g,
|
23717
|
+
height: d,
|
23718
|
+
top: m,
|
23719
|
+
left: h,
|
23720
|
+
bottom: v,
|
23721
|
+
right: p,
|
23722
|
+
x: b,
|
23723
|
+
y
|
23724
23724
|
});
|
23725
23725
|
}
|
23726
|
-
},
|
23727
|
-
return
|
23728
|
-
|
23726
|
+
}, s = o.current, l = new ResizeObserver(u);
|
23727
|
+
return s && l.observe(s), window.addEventListener("resize", i), () => {
|
23728
|
+
s && l.unobserve(s), window.removeEventListener("resize", i);
|
23729
23729
|
};
|
23730
|
-
}, []), { ref:
|
23730
|
+
}, [e]), { ref: o, windowSize: t, contentRect: r };
|
23731
23731
|
};
|
23732
23732
|
export {
|
23733
23733
|
cS as Badges,
|