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.mjs CHANGED
@@ -23689,11 +23689,11 @@ function N$(e, t = 0) {
23689
23689
  [e, t]
23690
23690
  );
23691
23691
  }
23692
- const O$ = () => {
23693
- const [e, t] = te({
23692
+ const O$ = (e) => {
23693
+ const [t, n] = te({
23694
23694
  width: window.innerWidth,
23695
23695
  height: window.innerHeight
23696
- }), [n, r] = te({
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
- }), a = be(null);
23705
+ }), o = be(null);
23706
23706
  return qa(() => {
23707
- const o = () => {
23708
- t({
23707
+ const i = () => {
23708
+ n({
23709
23709
  width: window.innerWidth,
23710
23710
  height: window.innerHeight
23711
23711
  });
23712
- }, i = (l) => {
23713
- for (const c of l) {
23714
- const { width: f, height: g, top: d, left: m, bottom: h, right: v, x: p, y: b } = c.contentRect;
23715
- r({
23716
- width: f,
23717
- height: g,
23718
- top: d,
23719
- left: m,
23720
- bottom: h,
23721
- right: v,
23722
- x: p,
23723
- y: b
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
- }, u = a.current, s = new ResizeObserver(i);
23727
- return u && s.observe(u), window.addEventListener("resize", o), () => {
23728
- u && s.unobserve(u), window.removeEventListener("resize", o);
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: a, windowSize: e, contentRect: n };
23730
+ }, [e]), { ref: o, windowSize: t, contentRect: r };
23731
23731
  };
23732
23732
  export {
23733
23733
  cS as Badges,