1mpacto-react-ui 0.0.27 → 0.0.29
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/assets/style.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/index.mjs.map +1 -1
- package/dist/src/hooks/useCombinedResizeObserver.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -5189,18 +5189,18 @@ const Vy = "_container_hlqmp_1", ky = "_input_hlqmp_7", _y = "_label_hlqmp_33",
|
|
5189
5189
|
] });
|
5190
5190
|
});
|
5191
5191
|
Ny.displayName = "InputFloatingInner";
|
5192
|
-
const Oy = "
|
5193
|
-
"container-large": "_container-
|
5192
|
+
const Oy = "_label_1qiju_4", Ly = "_disabled_1qiju_9", Gy = "_input_1qiju_15", Hy = "_error_1qiju_40", Gt = {
|
5193
|
+
"container-large": "_container-large_1qiju_1",
|
5194
5194
|
label: Oy,
|
5195
5195
|
disabled: Ly,
|
5196
|
-
"container-input": "_container-
|
5196
|
+
"container-input": "_container-input_1qiju_12",
|
5197
5197
|
input: Gy,
|
5198
5198
|
error: Hy,
|
5199
|
-
"isset-icon": "_isset-
|
5200
|
-
"end-icon": "_end-
|
5201
|
-
"label-error": "_label-
|
5202
|
-
"container-medium": "_container-
|
5203
|
-
"container-small": "_container-
|
5199
|
+
"isset-icon": "_isset-icon_1qiju_49",
|
5200
|
+
"end-icon": "_end-icon_1qiju_52",
|
5201
|
+
"label-error": "_label-error_1qiju_55",
|
5202
|
+
"container-medium": "_container-medium_1qiju_64",
|
5203
|
+
"container-small": "_container-small_1qiju_127"
|
5204
5204
|
}, Wy = Ft((e, t) => {
|
5205
5205
|
const {
|
5206
5206
|
isRequired: n,
|
@@ -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,
|