@moontra/moonui-pro 2.28.12 → 2.30.0

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
@@ -85695,6 +85695,7 @@ function WidgetBase({
85695
85695
  subtitle,
85696
85696
  children,
85697
85697
  variant = "default",
85698
+ backgroundVariant,
85698
85699
  colorScheme = "blue",
85699
85700
  className,
85700
85701
  headerAction,
@@ -85706,6 +85707,7 @@ function WidgetBase({
85706
85707
  gradientDirection = "to-br",
85707
85708
  overlay
85708
85709
  }) {
85710
+ const activeVariant = backgroundVariant || variant;
85709
85711
  const colorSchemeClasses = {
85710
85712
  blue: "from-blue-500/10 via-blue-500/5 to-transparent border-blue-500/20 dark:from-blue-400/10 dark:via-blue-400/5 dark:border-blue-400/20",
85711
85713
  green: "from-green-500/10 via-green-500/5 to-transparent border-green-500/20 dark:from-green-400/10 dark:via-green-400/5 dark:border-green-400/20",
@@ -85790,15 +85792,15 @@ function WidgetBase({
85790
85792
  MoonUICardPro,
85791
85793
  {
85792
85794
  className: cn(
85793
- variantClasses[variant],
85795
+ variantClasses[activeVariant],
85794
85796
  roundedClasses[rounded],
85795
85797
  shadowClasses[shadow],
85796
85798
  "transition-all duration-200 relative",
85797
85799
  className
85798
85800
  ),
85799
- style: variant === "gradient" || variant === "colored" ? gradientDirectionStyles[gradientDirection] : void 0,
85801
+ style: activeVariant === "gradient" || activeVariant === "colored" ? gradientDirectionStyles[gradientDirection] : void 0,
85800
85802
  children: [
85801
- (variant === "overlay" || overlay) && overlay?.pattern && overlay.pattern !== "none" && /* @__PURE__ */ jsx(
85803
+ (activeVariant === "overlay" || overlay) && overlay?.pattern && overlay.pattern !== "none" && /* @__PURE__ */ jsx(
85802
85804
  "div",
85803
85805
  {
85804
85806
  className: "absolute inset-0 pointer-events-none",
@@ -86099,12 +86101,36 @@ function ChartWidget2({
86099
86101
  animate: { opacity: 1, y: 0 },
86100
86102
  transition: { delay: index2 * 0.05 },
86101
86103
  children: [
86102
- showDataLabels && isHovered && /* @__PURE__ */ jsx(
86104
+ isHovered && /* @__PURE__ */ jsxs(
86105
+ motion.div,
86106
+ {
86107
+ className: "absolute bg-background border rounded-lg px-3 py-2 text-xs pointer-events-none z-20 shadow-lg",
86108
+ style: {
86109
+ bottom: `calc(${percentage}% + 8px)`,
86110
+ left: "50%",
86111
+ transform: "translateX(-50%)"
86112
+ },
86113
+ initial: { opacity: 0, y: 10 },
86114
+ animate: { opacity: 1, y: 0 },
86115
+ transition: { duration: 0.2 },
86116
+ children: [
86117
+ /* @__PURE__ */ jsx("div", { className: "font-medium", children: labels[index2] || `Item ${index2 + 1}` }),
86118
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: formatNumber2(value) })
86119
+ ]
86120
+ }
86121
+ ),
86122
+ showDataLabels && /* @__PURE__ */ jsx(
86103
86123
  motion.span,
86104
86124
  {
86105
- className: "absolute text-xs font-medium -top-5",
86125
+ className: "absolute text-xs font-medium text-white mix-blend-difference",
86126
+ style: {
86127
+ bottom: `calc(${percentage}% / 2)`,
86128
+ left: "50%",
86129
+ transform: "translateX(-50%)"
86130
+ },
86106
86131
  initial: { opacity: 0 },
86107
86132
  animate: { opacity: 1 },
86133
+ transition: { delay: index2 * 0.1 + 0.6 },
86108
86134
  children: formatNumber2(value)
86109
86135
  }
86110
86136
  ),
@@ -86112,8 +86138,8 @@ function ChartWidget2({
86112
86138
  motion.div,
86113
86139
  {
86114
86140
  className: cn(
86115
- "w-full rounded-t cursor-pointer",
86116
- isHovered && "opacity-80"
86141
+ "w-full rounded-t cursor-pointer transition-all duration-200",
86142
+ isHovered && "brightness-110 scale-y-105"
86117
86143
  ),
86118
86144
  style: {
86119
86145
  backgroundColor: chartColors[index2 % chartColors.length],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.28.12",
3
+ "version": "2.30.0",
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",
@@ -81,7 +81,7 @@
81
81
  "react-dom": ">=18.0.0 || ^19.0.0"
82
82
  },
83
83
  "dependencies": {
84
- "@moontra/moonui-pro": "^2.28.5",
84
+ "@moontra/moonui-pro": "^2.28.12",
85
85
  "@radix-ui/react-accordion": "^1.2.11",
86
86
  "@radix-ui/react-avatar": "^1.1.10",
87
87
  "@radix-ui/react-checkbox": "^1.3.2",