@acrool/react-picker 0.0.10-alpha.1 → 0.0.10-alpha.3
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.
|
@@ -5538,13 +5538,12 @@ const Zs = ({
|
|
|
5538
5538
|
const v = p.bottom, T = p.top, P = p.left, y = p.right, x = window.pageYOffset || document.documentElement.scrollTop, w = window.pageXOffset || document.documentElement.scrollLeft, A = window.innerWidth || document.documentElement.clientWidth, L = window.innerHeight || document.documentElement.clientHeight, $ = 15, R = v + f < L, _ = T - (f + $) > 0;
|
|
5539
5539
|
o === st.bottom ? !R && _ && (o = st.top) : o === st.top && (R && !_ || !R && !_) && (o = st.bottom);
|
|
5540
5540
|
const U = P + d < A, M = y - (d + $) > 0;
|
|
5541
|
-
r === mt.left ? !U && M && (r = mt.right) : r === mt.right && (U && !M || !U && !M) && (r = mt.left), s.setVertical(o), i.current.style.top = o === st.bottom ? `${v + x}px` : `${v + x - (f + g)}px`, i.current.style.left = r === mt.left ? `${P + w}px` : `${y + w - d}px`, i.current.style.transformOrigin = o === st.bottom ? "top" : "bottom", requestAnimationFrame(a);
|
|
5541
|
+
r === mt.left ? !U && M && (r = mt.right) : r === mt.right && (U && !M || !U && !M) && (r = mt.left), s.setVertical(o), i.current.style.top = o === st.bottom ? `${v + x}px` : `${v + x - (f + g)}px`, i.current.style.left = r === mt.left ? `${P + w}px` : `${y + w - d}px`, i.current.style.transformOrigin = o === st.bottom ? "top" : "bottom", i.current.style.visibility = "visible", window.requestAnimationFrame(a);
|
|
5542
5542
|
}
|
|
5543
5543
|
};
|
|
5544
5544
|
if (e.current && i.current) {
|
|
5545
|
-
i.current.style.display = "block";
|
|
5546
5545
|
const l = new ResizeObserver(a);
|
|
5547
|
-
return l.observe(i.current), () => {
|
|
5546
|
+
return l.observe(i.current), i.current.style.display = "block", () => {
|
|
5548
5547
|
l.disconnect();
|
|
5549
5548
|
};
|
|
5550
5549
|
}
|
|
@@ -5553,7 +5552,7 @@ const Zs = ({
|
|
|
5553
5552
|
{
|
|
5554
5553
|
ref: Do(n, i),
|
|
5555
5554
|
transition: { type: "spring", duration: 0.2 },
|
|
5556
|
-
style: { display: "none" },
|
|
5555
|
+
style: { display: "none", visibility: "hidden" },
|
|
5557
5556
|
className: sh.motionAnimationWrapper,
|
|
5558
5557
|
variants: rh.variants,
|
|
5559
5558
|
initial: "initial",
|