@acrool/react-picker 0.0.10-alpha.2 → 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,7 +5538,7 @@ 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) {
@@ -5552,7 +5552,7 @@ const Zs = ({
5552
5552
  {
5553
5553
  ref: Do(n, i),
5554
5554
  transition: { type: "spring", duration: 0.2 },
5555
- style: { display: "none" },
5555
+ style: { display: "none", visibility: "hidden" },
5556
5556
  className: sh.motionAnimationWrapper,
5557
5557
  variants: rh.variants,
5558
5558
  initial: "initial",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.0.10-alpha.2",
3
+ "version": "0.0.10-alpha.3",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",