nexoreui 1.8.3 → 1.8.4

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.mjs CHANGED
@@ -154,7 +154,7 @@ var ThreeDButton = React.forwardRef(
154
154
  {
155
155
  ref,
156
156
  className: cn(
157
- "shadow-[0_5px_0_hsl(var(--primary-dark,240_5.9%_30%))] hover:shadow-[0_2px_0_hsl(var(--primary-dark,240_5.9%_30%))] active:translate-y-[3px] active:shadow-[0_0px_0_transparent] transition-all",
157
+ "shadow-[0_5px_0_hsl(var(--primary-dark,240_5.9%_30%))] hover:shadow-[0_2px_0_hsl(var(--primary-dark,240_5.9%_30%))] active:translate-y-0.75 active:shadow-[0_0px_0_transparent] transition-all",
158
158
  className
159
159
  ),
160
160
  ...props,
@@ -217,7 +217,7 @@ var BorderBeamButton = React.forwardRef(
217
217
  ...props,
218
218
  children: [
219
219
  /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-r from-primary to-transparent opacity-0 group-hover:opacity-20 transition-opacity" }),
220
- /* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-[2px] bg-primary scale-x-0 group-hover:scale-x-100 transition-transform origin-left" }),
220
+ /* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 w-full h-0.5 bg-primary scale-x-0 group-hover:scale-x-100 transition-transform origin-left" }),
221
221
  /* @__PURE__ */ jsx("span", { className: "relative z-10", children })
222
222
  ]
223
223
  }
@@ -1029,7 +1029,7 @@ var Avatar = React4.forwardRef(
1029
1029
  ref,
1030
1030
  className: cn(avatarVariants({ size, variant, className })),
1031
1031
  ...props,
1032
- children: variant === "gradient" ? /* @__PURE__ */ jsx5("div", { className: "flex h-full w-full items-center justify-center rounded-full bg-background p-[1px]", children }) : children
1032
+ children: variant === "gradient" ? /* @__PURE__ */ jsx5("div", { className: "flex h-full w-full items-center justify-center rounded-full bg-background p-px", children }) : children
1033
1033
  }
1034
1034
  ),
1035
1035
  status && /* @__PURE__ */ jsx5("span", { className: cn(
@@ -1093,7 +1093,7 @@ var StackAvatar = ({
1093
1093
  ] })
1094
1094
  ] });
1095
1095
  };
1096
- var DottedAvatar = ({ src, fallback, size, status, className }) => /* @__PURE__ */ jsx5(Avatar, { size, status, className: cn("border-2 border-dashed border-primary p-[1px]", className), children: src ? /* @__PURE__ */ jsx5(AvatarImage, { src }) : /* @__PURE__ */ jsx5(AvatarFallback, { children: fallback }) });
1096
+ var DottedAvatar = ({ src, fallback, size, status, className }) => /* @__PURE__ */ jsx5(Avatar, { size, status, className: cn("border-2 border-dashed border-primary p-px", className), children: src ? /* @__PURE__ */ jsx5(AvatarImage, { src }) : /* @__PURE__ */ jsx5(AvatarFallback, { children: fallback }) });
1097
1097
  var ShadowAvatar = ({ src, fallback, size, status, className }) => /* @__PURE__ */ jsx5(Avatar, { size, status, className: cn("shadow-2xl shadow-primary/40", className), children: src ? /* @__PURE__ */ jsx5(AvatarImage, { src }) : /* @__PURE__ */ jsx5(AvatarFallback, { children: fallback }) });
1098
1098
  var PolymorphAvatar = ({ src, fallback, size, status, className }) => /* @__PURE__ */ jsx5(Avatar, { size, status, className: cn("rounded-none hover:rounded-[40%] transition-all duration-500", className), children: src ? /* @__PURE__ */ jsx5(AvatarImage, { src, className: "rounded-none hover:rounded-[40%] transition-all duration-500" }) : /* @__PURE__ */ jsx5(AvatarFallback, { children: fallback }) });
1099
1099
  var TooltipAvatar = ({ src, fallback, size, status, tooltipText, className }) => /* @__PURE__ */ jsxs5("div", { className: "relative group/tooltip inline-block", children: [
@@ -2496,7 +2496,7 @@ function Steps({ items, className }) {
2496
2496
  }
2497
2497
  ),
2498
2498
  index !== items.length - 1 && /* @__PURE__ */ jsx19("div", { className: cn(
2499
- "h-full w-[2px] min-h-[30px] my-2 transition-colors duration-300",
2499
+ "h-full w-0.5 min-h-[30px] my-2 transition-colors duration-300",
2500
2500
  item.status === "complete" ? "bg-emerald-500" : "bg-border"
2501
2501
  ) })
2502
2502
  ] }),
@@ -2588,9 +2588,9 @@ var BreadcrumbTrail = () => /* @__PURE__ */ jsxs14("nav", { className: "flex ite
2588
2588
  ] });
2589
2589
  var StepIndicator = () => /* @__PURE__ */ jsxs14("div", { className: "flex items-center w-full max-w-sm", children: [
2590
2590
  /* @__PURE__ */ jsx19("div", { className: "flex items-center text-primary", children: /* @__PURE__ */ jsx19("div", { className: "w-8 h-8 rounded-full border-2 border-primary bg-primary text-primary-foreground flex items-center justify-center font-bold text-sm", children: "1" }) }),
2591
- /* @__PURE__ */ jsx19("div", { className: "flex-1 h-[2px] bg-primary mx-2" }),
2591
+ /* @__PURE__ */ jsx19("div", { className: "flex-1 h-0.5 bg-primary mx-2" }),
2592
2592
  /* @__PURE__ */ jsx19("div", { className: "flex items-center text-primary", children: /* @__PURE__ */ jsx19("div", { className: "w-8 h-8 rounded-full border-2 border-primary bg-background flex items-center justify-center font-bold text-sm", children: "2" }) }),
2593
- /* @__PURE__ */ jsx19("div", { className: "flex-1 h-[2px] bg-muted mx-2" }),
2593
+ /* @__PURE__ */ jsx19("div", { className: "flex-1 h-0.5 bg-muted mx-2" }),
2594
2594
  /* @__PURE__ */ jsx19("div", { className: "flex items-center text-muted-foreground", children: /* @__PURE__ */ jsx19("div", { className: "w-8 h-8 rounded-full border-2 border-muted bg-background flex items-center justify-center font-bold text-sm", children: "3" }) })
2595
2595
  ] });
2596
2596
  var TabMenu = () => /* @__PURE__ */ jsxs14("div", { className: "flex border-b w-full", children: [
@@ -2632,8 +2632,8 @@ var ScrollBar = React15.forwardRef(({ className, orientation = "vertical", ...pr
2632
2632
  orientation,
2633
2633
  className: cn(
2634
2634
  "flex touch-none select-none transition-colors duration-150 rounded-full",
2635
- orientation === "vertical" && "h-full w-2 border-l border-l-transparent p-[1px] hover:bg-black/5 dark:hover:bg-white/5",
2636
- orientation === "horizontal" && "h-2 flex-col border-t border-t-transparent p-[1px] hover:bg-black/5 dark:hover:bg-white/5",
2635
+ orientation === "vertical" && "h-full w-2 border-l border-l-transparent p-px hover:bg-black/5 dark:hover:bg-white/5",
2636
+ orientation === "horizontal" && "h-2 flex-col border-t border-t-transparent p-px hover:bg-black/5 dark:hover:bg-white/5",
2637
2637
  className
2638
2638
  ),
2639
2639
  ...props,
@@ -2786,7 +2786,7 @@ function TypingAnimation({
2786
2786
  {
2787
2787
  animate: { opacity: [1, 0, 1] },
2788
2788
  transition: { duration: 0.8, repeat: Infinity, ease: "linear" },
2789
- className: "ml-0.5 inline-block w-[2px] h-[1.1em] bg-current font-normal align-middle",
2789
+ className: "ml-0.5 inline-block w-0.5 h-[1.1em] bg-current font-normal align-middle",
2790
2790
  children: "|"
2791
2791
  }
2792
2792
  )
@@ -3905,7 +3905,7 @@ var Stepper = React23.forwardRef(
3905
3905
  ]
3906
3906
  }
3907
3907
  ),
3908
- !isLast && /* @__PURE__ */ jsx28("div", { className: "w-[2px] min-h-[36px] bg-muted/40 my-1 rounded-full relative overflow-hidden flex-1", children: /* @__PURE__ */ jsx28(
3908
+ !isLast && /* @__PURE__ */ jsx28("div", { className: "w-0.5 min-h-[36px] bg-muted/40 my-1 rounded-full relative overflow-hidden flex-1", children: /* @__PURE__ */ jsx28(
3909
3909
  motion17.div,
3910
3910
  {
3911
3911
  className: "absolute top-0 left-0 right-0 bg-primary",
@@ -4008,7 +4008,7 @@ var Stepper = React23.forwardRef(
4008
4008
  ]
4009
4009
  }
4010
4010
  ),
4011
- !isLast && /* @__PURE__ */ jsx28("div", { className: "flex-1 mx-2 sm:mx-3 flex items-center min-w-[14px]", children: variant === "arrows" ? /* @__PURE__ */ jsx28("div", { className: "flex items-center justify-center w-full text-muted-foreground/40", children: /* @__PURE__ */ jsx28(ChevronRight2, { className: cn("h-4 w-4 shrink-0 transition-colors", isCompleted && "text-primary") }) }) : /* @__PURE__ */ jsx28("div", { className: "h-[2px] w-full bg-muted/50 rounded-full overflow-hidden relative", children: /* @__PURE__ */ jsx28(
4011
+ !isLast && /* @__PURE__ */ jsx28("div", { className: "flex-1 mx-2 sm:mx-3 flex items-center min-w-[14px]", children: variant === "arrows" ? /* @__PURE__ */ jsx28("div", { className: "flex items-center justify-center w-full text-muted-foreground/40", children: /* @__PURE__ */ jsx28(ChevronRight2, { className: cn("h-4 w-4 shrink-0 transition-colors", isCompleted && "text-primary") }) }) : /* @__PURE__ */ jsx28("div", { className: "h-0.5 w-full bg-muted/50 rounded-full overflow-hidden relative", children: /* @__PURE__ */ jsx28(
4012
4012
  motion17.div,
4013
4013
  {
4014
4014
  className: "absolute inset-y-0 left-0 bg-primary",
@@ -4226,7 +4226,7 @@ function StatCard({ title, value, description, icon: Icon2, trend, className, ..
4226
4226
  }
4227
4227
  function Timeline({ items, className }) {
4228
4228
  return /* @__PURE__ */ jsx30("div", { className: cn("space-y-8", className), children: items.map((item, index) => /* @__PURE__ */ jsxs24("div", { className: "relative flex gap-6 pb-8 last:pb-0", children: [
4229
- index !== items.length - 1 && /* @__PURE__ */ jsx30("div", { className: "absolute left-[11px] top-4 h-full w-[2px] bg-border" }),
4229
+ index !== items.length - 1 && /* @__PURE__ */ jsx30("div", { className: "absolute left-[11px] top-4 h-full w-0.5 bg-border" }),
4230
4230
  /* @__PURE__ */ jsxs24(
4231
4231
  "div",
4232
4232
  {
@@ -4301,7 +4301,7 @@ function Divider({ orientation = "horizontal", className, ...props }) {
4301
4301
  {
4302
4302
  className: cn(
4303
4303
  "bg-border shrink-0",
4304
- orientation === "horizontal" ? "h-[1px] w-full" : "w-[1px] h-full",
4304
+ orientation === "horizontal" ? "h-px w-full" : "w-px h-full",
4305
4305
  className
4306
4306
  ),
4307
4307
  ...props
@@ -6560,7 +6560,7 @@ function TextButton({ children, className, ...props }) {
6560
6560
  ...props,
6561
6561
  children: [
6562
6562
  children,
6563
- /* @__PURE__ */ jsx43("span", { className: "absolute bottom-0 left-0 h-[2px] w-0 bg-primary transition-all duration-300 group-hover:w-full" })
6563
+ /* @__PURE__ */ jsx43("span", { className: "absolute bottom-0 left-0 h-0.5 w-0 bg-primary transition-all duration-300 group-hover:w-full" })
6564
6564
  ]
6565
6565
  }
6566
6566
  );
@@ -6834,7 +6834,7 @@ function AnimatedGradientBorder({
6834
6834
  gradientClassName,
6835
6835
  duration = 3
6836
6836
  }) {
6837
- return /* @__PURE__ */ jsxs41("div", { className: cn("relative rounded-xl p-[1px]", containerClassName), children: [
6837
+ return /* @__PURE__ */ jsxs41("div", { className: cn("relative rounded-xl p-px", containerClassName), children: [
6838
6838
  /* @__PURE__ */ jsx47(
6839
6839
  motion27.div,
6840
6840
  {
@@ -6938,7 +6938,7 @@ function Meteors({ number = 20, className }) {
6938
6938
  animationDelay: meteor.animationDelay,
6939
6939
  animationDuration: meteor.animationDuration
6940
6940
  },
6941
- children: /* @__PURE__ */ jsx47("div", { className: "absolute top-1/2 -translate-y-1/2 w-[1px] h-full bg-linear-to-b from-foreground/30 to-transparent" })
6941
+ children: /* @__PURE__ */ jsx47("div", { className: "absolute top-1/2 -translate-y-1/2 w-px h-full bg-linear-to-b from-foreground/30 to-transparent" })
6942
6942
  },
6943
6943
  meteor.id
6944
6944
  )) });
@@ -9727,8 +9727,8 @@ function CreditCardVisual({
9727
9727
  /* @__PURE__ */ jsxs47("div", { className: "flex items-center justify-between z-10", children: [
9728
9728
  /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-3", children: [
9729
9729
  /* @__PURE__ */ jsxs47("div", { className: "w-10 h-7 rounded-md bg-linear-to-br from-amber-300 via-amber-400 to-amber-600 border border-amber-200/50 shadow-xs relative overflow-hidden", children: [
9730
- /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-1/2 -translate-y-1/2 h-[1px] bg-amber-900/30" }),
9731
- /* @__PURE__ */ jsx53("div", { className: "absolute inset-y-0 left-1/2 -translate-x-1/2 w-[1px] bg-amber-900/30" })
9730
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-1/2 -translate-y-1/2 h-px bg-amber-900/30" }),
9731
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-y-0 left-1/2 -translate-x-1/2 w-px bg-amber-900/30" })
9732
9732
  ] }),
9733
9733
  /* @__PURE__ */ jsx53("svg", { className: "w-5 h-5 text-white/70 rotate-90", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx53("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.393 9.393c5.857-5.857 15.355-5.857 21.213 0" }) })
9734
9734
  ] }),
@@ -10953,7 +10953,7 @@ var AuroraSearchPill = React45.forwardRef(
10953
10953
  sizeStyle.height,
10954
10954
  active ? cn(sizeStyle.paddingSearch, sizeStyle.minWidthSearch) : sizeStyle.paddingDots,
10955
10955
  bodyThemeClass,
10956
- "transition-all duration-500 ease-[cubic-bezier()]"
10956
+ "transition-all duration-500 ease-out"
10957
10957
  ),
10958
10958
  children: [
10959
10959
  /* @__PURE__ */ jsx58(
@@ -10962,7 +10962,7 @@ var AuroraSearchPill = React45.forwardRef(
10962
10962
  className: cn(
10963
10963
  "flex items-center",
10964
10964
  sizeStyle.dotGap,
10965
- "transition-all duration-400 ease-[cubic-bezier()]",
10965
+ "transition-all duration-400 ease-out",
10966
10966
  active ? "opacity-0 scale-50 -translate-y-2 pointer-events-none absolute" : "opacity-100 scale-100 translate-y-0"
10967
10967
  ),
10968
10968
  children: [0, 1, 2].map((idx) => /* @__PURE__ */ jsx58(
@@ -10983,7 +10983,7 @@ var AuroraSearchPill = React45.forwardRef(
10983
10983
  {
10984
10984
  className: cn(
10985
10985
  "flex items-center gap-2.5 whitespace-nowrap",
10986
- "transition-all duration-400 ease-[cubic-bezier()]",
10986
+ "transition-all duration-400 ease-out",
10987
10987
  active ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-90 translate-y-2 pointer-events-none absolute"
10988
10988
  ),
10989
10989
  children: [