@acrool/react-picker 0.0.3-alpha.0 → 0.0.3-alpha.1

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.
@@ -5504,10 +5504,11 @@ const Xs = ({
5504
5504
  return {
5505
5505
  display: "none"
5506
5506
  };
5507
- const n = t.getBoundingClientRect(), i = n.height, s = n.bottom, o = n.left, r = window.pageYOffset || document.documentElement.scrollTop, a = window.pageXOffset || document.documentElement.scrollLeft, l = window.innerHeight || document.documentElement.clientHeight;
5507
+ const n = t.getBoundingClientRect(), i = n.height, s = n.bottom, o = n.left, r = window.pageYOffset || document.documentElement.scrollTop, a = window.pageXOffset || document.documentElement.scrollLeft, l = window.innerHeight || document.documentElement.clientHeight, u = s >= l / 2 ? "top" : "bottom";
5508
5508
  return {
5509
- top: (s >= l / 2 ? "top" : "bottom") === "bottom" ? `${s + r}px` : `${s + r - (e + i)}px`,
5510
- left: `${o + a}px`
5509
+ top: u === "bottom" ? `${s + r}px` : `${s + r - (e + i)}px`,
5510
+ left: `${o + a}px`,
5511
+ transformOrigin: u === "bottom" ? "top" : "bottom"
5511
5512
  };
5512
5513
  }, Qf = (t, e) => (n) => {
5513
5514
  e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
@@ -5516,12 +5517,15 @@ const Xs = ({
5516
5517
  motionAnimationWrapper: th
5517
5518
  }, nh = {
5518
5519
  variants: {
5519
- initial: { position: "absolute", zIndex: 999, opacity: 0, transform: "scale(.8)", transition: { type: "spring" } },
5520
- show: { opacity: 1, transform: "scale(1)", transition: { type: "just" } },
5521
- exit: { opacity: 0, transform: "scale(.8)" }
5520
+ initial: { position: "absolute", zIndex: 999, opacity: 0, scale: 0.9, transition: { type: "spring" } },
5521
+ show: { opacity: 1, scale: 1, transition: { type: "just" } },
5522
+ exit: { opacity: 0, scale: 0.9 }
5522
5523
  },
5523
5524
  transition: {
5524
- duration: 0.1
5525
+ duration: 0.1,
5526
+ scale: {
5527
+ duration: 0.05
5528
+ }
5525
5529
  }
5526
5530
  }, ih = ({
5527
5531
  children: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.0.3-alpha.0",
3
+ "version": "0.0.3-alpha.1",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",