@moontra/moonui-pro 3.4.34 → 3.4.35
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/cdn/index.global.js +109 -109
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +18 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5277,8 +5277,10 @@ interface MeteorsProps {
|
|
|
5277
5277
|
containerClassName?: string;
|
|
5278
5278
|
/** Number of meteors */
|
|
5279
5279
|
number?: number;
|
|
5280
|
-
/** Meteor color */
|
|
5280
|
+
/** Meteor color for light mode */
|
|
5281
5281
|
color?: string;
|
|
5282
|
+
/** Meteor color for dark mode */
|
|
5283
|
+
darkColor?: string;
|
|
5282
5284
|
/** Animation duration range (seconds) */
|
|
5283
5285
|
duration?: {
|
|
5284
5286
|
min: number;
|
|
@@ -5327,12 +5329,18 @@ interface AuroraBackgroundProps {
|
|
|
5327
5329
|
className?: string;
|
|
5328
5330
|
/** Container CSS classes */
|
|
5329
5331
|
containerClassName?: string;
|
|
5330
|
-
/** Aurora gradient colors (hex or rgb) */
|
|
5332
|
+
/** Aurora gradient colors for light mode (hex or rgb) */
|
|
5331
5333
|
colors?: {
|
|
5332
5334
|
primary?: string;
|
|
5333
5335
|
secondary?: string;
|
|
5334
5336
|
tertiary?: string;
|
|
5335
5337
|
};
|
|
5338
|
+
/** Aurora gradient colors for dark mode (hex or rgb) */
|
|
5339
|
+
darkColors?: {
|
|
5340
|
+
primary?: string;
|
|
5341
|
+
secondary?: string;
|
|
5342
|
+
tertiary?: string;
|
|
5343
|
+
};
|
|
5336
5344
|
/** Animation speed */
|
|
5337
5345
|
speed?: 'slow' | 'normal' | 'fast';
|
|
5338
5346
|
/** Background opacity (0-1) */
|
package/dist/index.mjs
CHANGED
|
@@ -87502,6 +87502,7 @@ var MeteorsInternal = ({
|
|
|
87502
87502
|
containerClassName,
|
|
87503
87503
|
number = 20,
|
|
87504
87504
|
color,
|
|
87505
|
+
darkColor,
|
|
87505
87506
|
duration = { min: 3, max: 7 },
|
|
87506
87507
|
size: size4 = { min: 0.5, max: 1 },
|
|
87507
87508
|
speed = "medium",
|
|
@@ -87519,8 +87520,9 @@ var MeteorsInternal = ({
|
|
|
87519
87520
|
setMounted(true);
|
|
87520
87521
|
}, []);
|
|
87521
87522
|
const currentTheme = mounted ? resolvedTheme || theme || "dark" : "dark";
|
|
87522
|
-
const
|
|
87523
|
-
const
|
|
87523
|
+
const defaultDarkColor = "#ffffff";
|
|
87524
|
+
const defaultLightColor = "#000000";
|
|
87525
|
+
const finalColor = currentTheme === "dark" ? darkColor || color || defaultDarkColor : color || defaultLightColor;
|
|
87524
87526
|
if (!mounted) {
|
|
87525
87527
|
return null;
|
|
87526
87528
|
}
|
|
@@ -87616,6 +87618,7 @@ var AuroraBackgroundInternal = ({
|
|
|
87616
87618
|
className,
|
|
87617
87619
|
containerClassName,
|
|
87618
87620
|
colors,
|
|
87621
|
+
darkColors,
|
|
87619
87622
|
speed = "normal",
|
|
87620
87623
|
opacity = 0.5,
|
|
87621
87624
|
blur: blur2 = 80,
|
|
@@ -87639,12 +87642,12 @@ var AuroraBackgroundInternal = ({
|
|
|
87639
87642
|
const themeDefaultColors = useMemo(() => {
|
|
87640
87643
|
if (currentTheme === "dark") {
|
|
87641
87644
|
return {
|
|
87642
|
-
primary: "#
|
|
87643
|
-
//
|
|
87644
|
-
secondary: "#
|
|
87645
|
-
//
|
|
87646
|
-
tertiary: "#
|
|
87647
|
-
//
|
|
87645
|
+
primary: "#6B46C1",
|
|
87646
|
+
// Deep vibrant purple (darker, more saturated)
|
|
87647
|
+
secondary: "#4C7FE0",
|
|
87648
|
+
// Deep vibrant blue (darker, more saturated)
|
|
87649
|
+
tertiary: "#0891B2"
|
|
87650
|
+
// Deep vibrant cyan (darker, more saturated)
|
|
87648
87651
|
};
|
|
87649
87652
|
} else {
|
|
87650
87653
|
return {
|
|
@@ -87657,7 +87660,13 @@ var AuroraBackgroundInternal = ({
|
|
|
87657
87660
|
};
|
|
87658
87661
|
}
|
|
87659
87662
|
}, [currentTheme]);
|
|
87660
|
-
const finalColors =
|
|
87663
|
+
const finalColors = useMemo(() => {
|
|
87664
|
+
if (currentTheme === "dark") {
|
|
87665
|
+
return darkColors || colors || themeDefaultColors;
|
|
87666
|
+
} else {
|
|
87667
|
+
return colors || themeDefaultColors;
|
|
87668
|
+
}
|
|
87669
|
+
}, [currentTheme, colors, darkColors, themeDefaultColors]);
|
|
87661
87670
|
const duration = useMemo(() => {
|
|
87662
87671
|
switch (speed) {
|
|
87663
87672
|
case "slow":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.35",
|
|
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",
|