@moontra/moonui-pro 3.4.16 → 3.4.18

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.d.ts CHANGED
@@ -4018,7 +4018,7 @@ interface NavbarConfig {
4018
4018
  hover?: string;
4019
4019
  };
4020
4020
  variant?: "default" | "floating" | "floating-centered" | "floating-auto-hide" | "floating-sticky" | "minimal" | "transparent";
4021
- size?: "sm" | "md" | "lg";
4021
+ size?: "sm" | "md" | "lg" | "xl" | "2xl";
4022
4022
  blur?: boolean;
4023
4023
  shadow?: boolean;
4024
4024
  rounded?: boolean;
package/dist/index.mjs CHANGED
@@ -79392,6 +79392,10 @@ function NavbarInternal({
79392
79392
  return "h-14";
79393
79393
  case "lg":
79394
79394
  return "h-20";
79395
+ case "xl":
79396
+ return "h-24";
79397
+ case "2xl":
79398
+ return "h-28";
79395
79399
  default:
79396
79400
  return "h-16";
79397
79401
  }
@@ -95545,6 +95549,7 @@ var NumberTickerInternal = ({
95545
95549
  const [isInViewport, setIsInViewport] = useState(false);
95546
95550
  const elementRef = useRef(null);
95547
95551
  const animationRef = useRef(null);
95552
+ const hasAnimatedRef = useRef(false);
95548
95553
  const getEasingFunction = (t2) => {
95549
95554
  switch (easing) {
95550
95555
  case "linear":
@@ -95582,7 +95587,7 @@ var NumberTickerInternal = ({
95582
95587
  return `${prefix}${formatted}${suffix}`;
95583
95588
  };
95584
95589
  const startAnimation = () => {
95585
- if (isAnimating || hasAnimated && !repeat)
95590
+ if (isAnimating || hasAnimatedRef.current && !repeat)
95586
95591
  return;
95587
95592
  setIsAnimating(true);
95588
95593
  const startTime = performance.now();
@@ -95600,6 +95605,7 @@ var NumberTickerInternal = ({
95600
95605
  } else {
95601
95606
  setIsAnimating(false);
95602
95607
  setHasAnimated(true);
95608
+ hasAnimatedRef.current = true;
95603
95609
  setCurrentValue(endVal);
95604
95610
  onComplete?.();
95605
95611
  }
@@ -95617,7 +95623,7 @@ var NumberTickerInternal = ({
95617
95623
  const observer = new IntersectionObserver(
95618
95624
  ([entry]) => {
95619
95625
  setIsInViewport(entry.isIntersecting);
95620
- if (entry.isIntersecting && (!hasAnimated || repeat)) {
95626
+ if (entry.isIntersecting && (!hasAnimatedRef.current || repeat)) {
95621
95627
  startAnimation();
95622
95628
  } else if (!entry.isIntersecting && isAnimating && animationRef.current) {
95623
95629
  cancelAnimationFrame(animationRef.current);
@@ -95633,12 +95639,12 @@ var NumberTickerInternal = ({
95633
95639
  cancelAnimationFrame(animationRef.current);
95634
95640
  }
95635
95641
  };
95636
- }, [useIntersectionObserver, threshold, value, repeat]);
95642
+ }, [useIntersectionObserver, threshold]);
95637
95643
  useEffect(() => {
95638
- if (!useIntersectionObserver && (repeat || !hasAnimated)) {
95644
+ if (!useIntersectionObserver && (repeat || !hasAnimatedRef.current)) {
95639
95645
  startAnimation();
95640
95646
  }
95641
- }, [value, repeat]);
95647
+ }, [value, repeat, useIntersectionObserver]);
95642
95648
  return /* @__PURE__ */ jsxs(
95643
95649
  "span",
95644
95650
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "3.4.16",
3
+ "version": "3.4.18",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",