@moontra/moonui-pro 2.28.12 → 2.29.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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.28.12",
3
+ "version": "2.29.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",