@moontra/moonui-pro 3.4.34 → 3.4.36
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 +142 -142
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +25 -10
- 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
|
@@ -70687,7 +70687,7 @@ function formatPhoneNumber(number) {
|
|
|
70687
70687
|
return cleaned;
|
|
70688
70688
|
} else if (cleaned.length <= 6) {
|
|
70689
70689
|
return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3)}`;
|
|
70690
|
-
} else if (cleaned.length <=
|
|
70690
|
+
} else if (cleaned.length <= 8) {
|
|
70691
70691
|
return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6)}`;
|
|
70692
70692
|
} else {
|
|
70693
70693
|
return `(${cleaned.slice(0, 3)}) ${cleaned.slice(3, 6)} ${cleaned.slice(6, 8)} ${cleaned.slice(8, 10)}`;
|
|
@@ -70713,6 +70713,12 @@ var MoonUIPhoneNumberInputSimple = React71__default.forwardRef(({
|
|
|
70713
70713
|
const [isFocused, setIsFocused] = useState(false);
|
|
70714
70714
|
const [localValue, setLocalValue] = useState(value);
|
|
70715
70715
|
const isValid = validatePhoneNumber(localValue);
|
|
70716
|
+
useEffect(() => {
|
|
70717
|
+
if (value !== void 0 && value !== localValue) {
|
|
70718
|
+
const formatted = formatPhoneNumber(value);
|
|
70719
|
+
setLocalValue(formatted);
|
|
70720
|
+
}
|
|
70721
|
+
}, [value]);
|
|
70716
70722
|
const handleChange = (e) => {
|
|
70717
70723
|
const newValue = e.target.value;
|
|
70718
70724
|
const formattedValue = formatPhoneNumber(newValue);
|
|
@@ -87502,6 +87508,7 @@ var MeteorsInternal = ({
|
|
|
87502
87508
|
containerClassName,
|
|
87503
87509
|
number = 20,
|
|
87504
87510
|
color,
|
|
87511
|
+
darkColor,
|
|
87505
87512
|
duration = { min: 3, max: 7 },
|
|
87506
87513
|
size: size4 = { min: 0.5, max: 1 },
|
|
87507
87514
|
speed = "medium",
|
|
@@ -87519,8 +87526,9 @@ var MeteorsInternal = ({
|
|
|
87519
87526
|
setMounted(true);
|
|
87520
87527
|
}, []);
|
|
87521
87528
|
const currentTheme = mounted ? resolvedTheme || theme || "dark" : "dark";
|
|
87522
|
-
const
|
|
87523
|
-
const
|
|
87529
|
+
const defaultDarkColor = "#ffffff";
|
|
87530
|
+
const defaultLightColor = "#000000";
|
|
87531
|
+
const finalColor = currentTheme === "dark" ? darkColor || color || defaultDarkColor : color || defaultLightColor;
|
|
87524
87532
|
if (!mounted) {
|
|
87525
87533
|
return null;
|
|
87526
87534
|
}
|
|
@@ -87616,6 +87624,7 @@ var AuroraBackgroundInternal = ({
|
|
|
87616
87624
|
className,
|
|
87617
87625
|
containerClassName,
|
|
87618
87626
|
colors,
|
|
87627
|
+
darkColors,
|
|
87619
87628
|
speed = "normal",
|
|
87620
87629
|
opacity = 0.5,
|
|
87621
87630
|
blur: blur2 = 80,
|
|
@@ -87639,12 +87648,12 @@ var AuroraBackgroundInternal = ({
|
|
|
87639
87648
|
const themeDefaultColors = useMemo(() => {
|
|
87640
87649
|
if (currentTheme === "dark") {
|
|
87641
87650
|
return {
|
|
87642
|
-
primary: "#
|
|
87643
|
-
//
|
|
87644
|
-
secondary: "#
|
|
87645
|
-
//
|
|
87646
|
-
tertiary: "#
|
|
87647
|
-
//
|
|
87651
|
+
primary: "#6B46C1",
|
|
87652
|
+
// Deep vibrant purple (darker, more saturated)
|
|
87653
|
+
secondary: "#4C7FE0",
|
|
87654
|
+
// Deep vibrant blue (darker, more saturated)
|
|
87655
|
+
tertiary: "#0891B2"
|
|
87656
|
+
// Deep vibrant cyan (darker, more saturated)
|
|
87648
87657
|
};
|
|
87649
87658
|
} else {
|
|
87650
87659
|
return {
|
|
@@ -87657,7 +87666,13 @@ var AuroraBackgroundInternal = ({
|
|
|
87657
87666
|
};
|
|
87658
87667
|
}
|
|
87659
87668
|
}, [currentTheme]);
|
|
87660
|
-
const finalColors =
|
|
87669
|
+
const finalColors = useMemo(() => {
|
|
87670
|
+
if (currentTheme === "dark") {
|
|
87671
|
+
return darkColors || colors || themeDefaultColors;
|
|
87672
|
+
} else {
|
|
87673
|
+
return colors || themeDefaultColors;
|
|
87674
|
+
}
|
|
87675
|
+
}, [currentTheme, colors, darkColors, themeDefaultColors]);
|
|
87661
87676
|
const duration = useMemo(() => {
|
|
87662
87677
|
switch (speed) {
|
|
87663
87678
|
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.36",
|
|
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",
|