@moontra/moonui-pro 2.34.17 → 2.34.19
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 +91 -91
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +55 -19
- package/dist/index.mjs +64 -37
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5981,68 +5981,84 @@ declare const GeometricPatterns: React__default.FC<GeometricPatternsProps>;
|
|
|
5981
5981
|
|
|
5982
5982
|
declare const languages: {
|
|
5983
5983
|
readonly javascript: {
|
|
5984
|
-
readonly color: "#
|
|
5984
|
+
readonly color: "#ffd700";
|
|
5985
5985
|
readonly icon: "JS";
|
|
5986
|
+
readonly glow: "rgba(255, 215, 0, 0.5)";
|
|
5986
5987
|
};
|
|
5987
5988
|
readonly typescript: {
|
|
5988
|
-
readonly color: "#
|
|
5989
|
+
readonly color: "#3178c6";
|
|
5989
5990
|
readonly icon: "TS";
|
|
5991
|
+
readonly glow: "rgba(49, 120, 198, 0.5)";
|
|
5990
5992
|
};
|
|
5991
5993
|
readonly python: {
|
|
5992
|
-
readonly color: "#
|
|
5994
|
+
readonly color: "#4b8bbe";
|
|
5993
5995
|
readonly icon: "PY";
|
|
5996
|
+
readonly glow: "rgba(75, 139, 190, 0.5)";
|
|
5994
5997
|
};
|
|
5995
5998
|
readonly react: {
|
|
5996
5999
|
readonly color: "#61dafb";
|
|
5997
6000
|
readonly icon: "⚛️";
|
|
6001
|
+
readonly glow: "rgba(97, 218, 251, 0.5)";
|
|
5998
6002
|
};
|
|
5999
6003
|
readonly rust: {
|
|
6000
|
-
readonly color: "#
|
|
6004
|
+
readonly color: "#ff6b6b";
|
|
6001
6005
|
readonly icon: "🦀";
|
|
6006
|
+
readonly glow: "rgba(255, 107, 107, 0.5)";
|
|
6002
6007
|
};
|
|
6003
6008
|
readonly go: {
|
|
6004
|
-
readonly color: "#
|
|
6009
|
+
readonly color: "#00d4ff";
|
|
6005
6010
|
readonly icon: "GO";
|
|
6011
|
+
readonly glow: "rgba(0, 212, 255, 0.5)";
|
|
6006
6012
|
};
|
|
6007
6013
|
readonly sql: {
|
|
6008
|
-
readonly color: "#
|
|
6014
|
+
readonly color: "#6366f1";
|
|
6009
6015
|
readonly icon: "SQL";
|
|
6016
|
+
readonly glow: "rgba(99, 102, 241, 0.5)";
|
|
6010
6017
|
};
|
|
6011
6018
|
readonly docker: {
|
|
6012
6019
|
readonly color: "#2496ed";
|
|
6013
6020
|
readonly icon: "🐳";
|
|
6021
|
+
readonly glow: "rgba(36, 150, 237, 0.5)";
|
|
6014
6022
|
};
|
|
6015
6023
|
readonly nodejs: {
|
|
6016
|
-
readonly color: "#
|
|
6024
|
+
readonly color: "#68a063";
|
|
6017
6025
|
readonly icon: "Node";
|
|
6026
|
+
readonly glow: "rgba(104, 160, 99, 0.5)";
|
|
6018
6027
|
};
|
|
6019
6028
|
readonly vue: {
|
|
6020
|
-
readonly color: "#
|
|
6029
|
+
readonly color: "#42d392";
|
|
6021
6030
|
readonly icon: "Vue";
|
|
6031
|
+
readonly glow: "rgba(66, 211, 146, 0.5)";
|
|
6022
6032
|
};
|
|
6023
6033
|
readonly angular: {
|
|
6024
|
-
readonly color: "#
|
|
6034
|
+
readonly color: "#ff4785";
|
|
6025
6035
|
readonly icon: "NG";
|
|
6036
|
+
readonly glow: "rgba(255, 71, 133, 0.5)";
|
|
6026
6037
|
};
|
|
6027
6038
|
readonly java: {
|
|
6028
|
-
readonly color: "#
|
|
6039
|
+
readonly color: "#ff9800";
|
|
6029
6040
|
readonly icon: "☕";
|
|
6041
|
+
readonly glow: "rgba(255, 152, 0, 0.5)";
|
|
6030
6042
|
};
|
|
6031
6043
|
readonly csharp: {
|
|
6032
|
-
readonly color: "#
|
|
6044
|
+
readonly color: "#a179dc";
|
|
6033
6045
|
readonly icon: "C#";
|
|
6046
|
+
readonly glow: "rgba(161, 121, 220, 0.5)";
|
|
6034
6047
|
};
|
|
6035
6048
|
readonly php: {
|
|
6036
|
-
readonly color: "#
|
|
6049
|
+
readonly color: "#8993be";
|
|
6037
6050
|
readonly icon: "PHP";
|
|
6051
|
+
readonly glow: "rgba(137, 147, 190, 0.5)";
|
|
6038
6052
|
};
|
|
6039
6053
|
readonly swift: {
|
|
6040
|
-
readonly color: "#
|
|
6054
|
+
readonly color: "#ff6b6b";
|
|
6041
6055
|
readonly icon: "🍎";
|
|
6056
|
+
readonly glow: "rgba(255, 107, 107, 0.5)";
|
|
6042
6057
|
};
|
|
6043
6058
|
readonly kotlin: {
|
|
6044
|
-
readonly color: "#
|
|
6059
|
+
readonly color: "#b125ea";
|
|
6045
6060
|
readonly icon: "KT";
|
|
6061
|
+
readonly glow: "rgba(177, 37, 234, 0.5)";
|
|
6046
6062
|
};
|
|
6047
6063
|
};
|
|
6048
6064
|
type Language = keyof typeof languages;
|
|
@@ -6081,9 +6097,9 @@ declare const codeSnippetsPresets: {
|
|
|
6081
6097
|
readonly variant: "float";
|
|
6082
6098
|
readonly speed: 1;
|
|
6083
6099
|
readonly density: 1;
|
|
6084
|
-
readonly opacity: 0.
|
|
6100
|
+
readonly opacity: 0.7;
|
|
6085
6101
|
readonly showIcons: true;
|
|
6086
|
-
readonly glowEffect:
|
|
6102
|
+
readonly glowEffect: true;
|
|
6087
6103
|
readonly multiplier: 2;
|
|
6088
6104
|
};
|
|
6089
6105
|
readonly rain: {
|
|
@@ -6091,7 +6107,7 @@ declare const codeSnippetsPresets: {
|
|
|
6091
6107
|
readonly variant: "rain";
|
|
6092
6108
|
readonly speed: 1.5;
|
|
6093
6109
|
readonly density: 1.5;
|
|
6094
|
-
readonly opacity: 0.
|
|
6110
|
+
readonly opacity: 0.6;
|
|
6095
6111
|
readonly showIcons: false;
|
|
6096
6112
|
readonly glowEffect: true;
|
|
6097
6113
|
readonly multiplier: 3;
|
|
@@ -6101,7 +6117,7 @@ declare const codeSnippetsPresets: {
|
|
|
6101
6117
|
readonly variant: "orbit";
|
|
6102
6118
|
readonly speed: 0.5;
|
|
6103
6119
|
readonly density: 1;
|
|
6104
|
-
readonly opacity: 0.
|
|
6120
|
+
readonly opacity: 0.8;
|
|
6105
6121
|
readonly showIcons: true;
|
|
6106
6122
|
readonly glowEffect: false;
|
|
6107
6123
|
readonly multiplier: 1;
|
|
@@ -6111,11 +6127,31 @@ declare const codeSnippetsPresets: {
|
|
|
6111
6127
|
readonly variant: "wave";
|
|
6112
6128
|
readonly speed: 0.8;
|
|
6113
6129
|
readonly density: 1.2;
|
|
6114
|
-
readonly opacity: 0.
|
|
6130
|
+
readonly opacity: 0.7;
|
|
6115
6131
|
readonly showIcons: true;
|
|
6116
6132
|
readonly glowEffect: true;
|
|
6117
6133
|
readonly multiplier: 2;
|
|
6118
6134
|
};
|
|
6135
|
+
readonly subtle: {
|
|
6136
|
+
readonly snippets: CodeSnippet[];
|
|
6137
|
+
readonly variant: "float";
|
|
6138
|
+
readonly speed: 0.5;
|
|
6139
|
+
readonly density: 0.8;
|
|
6140
|
+
readonly opacity: 0.3;
|
|
6141
|
+
readonly showIcons: false;
|
|
6142
|
+
readonly glowEffect: false;
|
|
6143
|
+
readonly multiplier: 1;
|
|
6144
|
+
};
|
|
6145
|
+
readonly intense: {
|
|
6146
|
+
readonly snippets: CodeSnippet[];
|
|
6147
|
+
readonly variant: "wave";
|
|
6148
|
+
readonly speed: 2;
|
|
6149
|
+
readonly density: 2;
|
|
6150
|
+
readonly opacity: 0.9;
|
|
6151
|
+
readonly showIcons: true;
|
|
6152
|
+
readonly glowEffect: true;
|
|
6153
|
+
readonly multiplier: 3;
|
|
6154
|
+
};
|
|
6119
6155
|
};
|
|
6120
6156
|
|
|
6121
6157
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -77300,7 +77300,7 @@ function useNavbarScroll({
|
|
|
77300
77300
|
}
|
|
77301
77301
|
lastScrollY.current = currentScrollY;
|
|
77302
77302
|
ticking.current = false;
|
|
77303
|
-
}, [hideOnScroll, scrollBehavior, showScrollProgress, scrollThreshold
|
|
77303
|
+
}, [hideOnScroll, scrollBehavior, showScrollProgress, scrollThreshold]);
|
|
77304
77304
|
const requestTick = useCallback(() => {
|
|
77305
77305
|
if (!ticking.current) {
|
|
77306
77306
|
requestAnimationFrame(updateScrollState);
|
|
@@ -89736,22 +89736,22 @@ var GeometricPatterns = (props) => {
|
|
|
89736
89736
|
};
|
|
89737
89737
|
GeometricPatterns.displayName = "GeometricPatterns";
|
|
89738
89738
|
var languages = {
|
|
89739
|
-
javascript: { color: "#
|
|
89740
|
-
typescript: { color: "#
|
|
89741
|
-
python: { color: "#
|
|
89742
|
-
react: { color: "#61dafb", icon: "\u269B\uFE0F" },
|
|
89743
|
-
rust: { color: "#
|
|
89744
|
-
go: { color: "#
|
|
89745
|
-
sql: { color: "#
|
|
89746
|
-
docker: { color: "#2496ed", icon: "\u{1F433}" },
|
|
89747
|
-
nodejs: { color: "#
|
|
89748
|
-
vue: { color: "#
|
|
89749
|
-
angular: { color: "#
|
|
89750
|
-
java: { color: "#
|
|
89751
|
-
csharp: { color: "#
|
|
89752
|
-
php: { color: "#
|
|
89753
|
-
swift: { color: "#
|
|
89754
|
-
kotlin: { color: "#
|
|
89739
|
+
javascript: { color: "#ffd700", icon: "JS", glow: "rgba(255, 215, 0, 0.5)" },
|
|
89740
|
+
typescript: { color: "#3178c6", icon: "TS", glow: "rgba(49, 120, 198, 0.5)" },
|
|
89741
|
+
python: { color: "#4b8bbe", icon: "PY", glow: "rgba(75, 139, 190, 0.5)" },
|
|
89742
|
+
react: { color: "#61dafb", icon: "\u269B\uFE0F", glow: "rgba(97, 218, 251, 0.5)" },
|
|
89743
|
+
rust: { color: "#ff6b6b", icon: "\u{1F980}", glow: "rgba(255, 107, 107, 0.5)" },
|
|
89744
|
+
go: { color: "#00d4ff", icon: "GO", glow: "rgba(0, 212, 255, 0.5)" },
|
|
89745
|
+
sql: { color: "#6366f1", icon: "SQL", glow: "rgba(99, 102, 241, 0.5)" },
|
|
89746
|
+
docker: { color: "#2496ed", icon: "\u{1F433}", glow: "rgba(36, 150, 237, 0.5)" },
|
|
89747
|
+
nodejs: { color: "#68a063", icon: "Node", glow: "rgba(104, 160, 99, 0.5)" },
|
|
89748
|
+
vue: { color: "#42d392", icon: "Vue", glow: "rgba(66, 211, 146, 0.5)" },
|
|
89749
|
+
angular: { color: "#ff4785", icon: "NG", glow: "rgba(255, 71, 133, 0.5)" },
|
|
89750
|
+
java: { color: "#ff9800", icon: "\u2615", glow: "rgba(255, 152, 0, 0.5)" },
|
|
89751
|
+
csharp: { color: "#a179dc", icon: "C#", glow: "rgba(161, 121, 220, 0.5)" },
|
|
89752
|
+
php: { color: "#8993be", icon: "PHP", glow: "rgba(137, 147, 190, 0.5)" },
|
|
89753
|
+
swift: { color: "#ff6b6b", icon: "\u{1F34E}", glow: "rgba(255, 107, 107, 0.5)" },
|
|
89754
|
+
kotlin: { color: "#b125ea", icon: "KT", glow: "rgba(177, 37, 234, 0.5)" }
|
|
89755
89755
|
};
|
|
89756
89756
|
var defaultSnippets = [
|
|
89757
89757
|
{
|
|
@@ -89816,24 +89816,26 @@ function FloatingCodeItem({
|
|
|
89816
89816
|
case "float":
|
|
89817
89817
|
return {
|
|
89818
89818
|
animate: {
|
|
89819
|
-
opacity: [0.
|
|
89819
|
+
opacity: [0.3, 0.7, 0.3],
|
|
89820
89820
|
y: [0, -30, -60],
|
|
89821
89821
|
x: [0, Math.random() * 20 - 10, Math.random() * 40 - 20],
|
|
89822
|
-
rotate: [0, Math.random() * 10 - 5, Math.random() * 20 - 10]
|
|
89822
|
+
rotate: [0, Math.random() * 10 - 5, Math.random() * 20 - 10],
|
|
89823
|
+
scale: [1, 1.1, 1]
|
|
89823
89824
|
},
|
|
89824
89825
|
transition: {
|
|
89825
89826
|
duration: (15 + Math.random() * 10) / speed,
|
|
89826
89827
|
repeat: Infinity,
|
|
89827
89828
|
delay: index2 * (0.5 / density),
|
|
89828
|
-
ease: "
|
|
89829
|
+
ease: "easeInOut"
|
|
89829
89830
|
}
|
|
89830
89831
|
};
|
|
89831
89832
|
case "rain":
|
|
89832
89833
|
return {
|
|
89833
89834
|
animate: {
|
|
89834
|
-
opacity: [0, 0.
|
|
89835
|
+
opacity: [0, 0.6, 0.6, 0],
|
|
89835
89836
|
y: ["-100vh", "100vh"],
|
|
89836
|
-
x: [0, Math.random() * 20 - 10]
|
|
89837
|
+
x: [0, Math.random() * 20 - 10],
|
|
89838
|
+
scale: [0.8, 1, 0.8]
|
|
89837
89839
|
},
|
|
89838
89840
|
transition: {
|
|
89839
89841
|
duration: (10 + Math.random() * 5) / speed,
|
|
@@ -89847,7 +89849,7 @@ function FloatingCodeItem({
|
|
|
89847
89849
|
const angle = index2 * 360 / 8 * Math.PI / 180;
|
|
89848
89850
|
return {
|
|
89849
89851
|
animate: {
|
|
89850
|
-
opacity: [0.
|
|
89852
|
+
opacity: [0.4, 0.8, 0.4],
|
|
89851
89853
|
x: [
|
|
89852
89854
|
Math.cos(angle) * radius,
|
|
89853
89855
|
Math.cos(angle + Math.PI) * radius,
|
|
@@ -89857,7 +89859,8 @@ function FloatingCodeItem({
|
|
|
89857
89859
|
Math.sin(angle) * radius,
|
|
89858
89860
|
Math.sin(angle + Math.PI) * radius,
|
|
89859
89861
|
Math.sin(angle) * radius
|
|
89860
|
-
]
|
|
89862
|
+
],
|
|
89863
|
+
scale: [1, 1.2, 1]
|
|
89861
89864
|
},
|
|
89862
89865
|
transition: {
|
|
89863
89866
|
duration: (20 + index2 * 2) / speed,
|
|
@@ -89868,7 +89871,7 @@ function FloatingCodeItem({
|
|
|
89868
89871
|
case "wave":
|
|
89869
89872
|
return {
|
|
89870
89873
|
animate: {
|
|
89871
|
-
opacity: [0.
|
|
89874
|
+
opacity: [0.3, 0.7, 0.3],
|
|
89872
89875
|
x: [0, 100, 0, -100, 0],
|
|
89873
89876
|
y: [
|
|
89874
89877
|
0,
|
|
@@ -89876,7 +89879,8 @@ function FloatingCodeItem({
|
|
|
89876
89879
|
0,
|
|
89877
89880
|
Math.sin(index2 + Math.PI) * 30,
|
|
89878
89881
|
0
|
|
89879
|
-
]
|
|
89882
|
+
],
|
|
89883
|
+
scale: [1, 1.15, 1]
|
|
89880
89884
|
},
|
|
89881
89885
|
transition: {
|
|
89882
89886
|
duration: (15 + Math.random() * 5) / speed,
|
|
@@ -89906,14 +89910,17 @@ function FloatingCodeItem({
|
|
|
89906
89910
|
top: `${position.y}%`,
|
|
89907
89911
|
color: lang.color
|
|
89908
89912
|
},
|
|
89909
|
-
initial: { opacity: 0, scale: 0 },
|
|
89910
|
-
|
|
89911
|
-
|
|
89913
|
+
initial: { opacity: 0, scale: 0.5 },
|
|
89914
|
+
animate: animationConfig.animate,
|
|
89915
|
+
transition: animationConfig.transition,
|
|
89916
|
+
children: /* @__PURE__ */ jsxs("div", { className: "backdrop-blur-sm bg-gradient-to-br from-black/20 to-black/10 rounded-lg p-3 border border-white/10 shadow-2xl", style: {
|
|
89917
|
+
boxShadow: glowEffect ? `0 0 30px ${lang.glow}` : void 0
|
|
89918
|
+
}, children: [
|
|
89912
89919
|
snippet.title && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-1 opacity-60 text-[10px]", children: [
|
|
89913
89920
|
showIcons && /* @__PURE__ */ jsx("span", { children: lang.icon }),
|
|
89914
89921
|
/* @__PURE__ */ jsx("span", { children: snippet.title })
|
|
89915
89922
|
] }),
|
|
89916
|
-
/* @__PURE__ */ jsx("pre", { className: "text-[
|
|
89923
|
+
/* @__PURE__ */ jsx("pre", { className: "text-[11px] md:text-sm leading-relaxed font-semibold", children: snippet.code })
|
|
89917
89924
|
] })
|
|
89918
89925
|
}
|
|
89919
89926
|
);
|
|
@@ -89923,9 +89930,9 @@ function CodeSnippets({
|
|
|
89923
89930
|
variant = "float",
|
|
89924
89931
|
speed = 1,
|
|
89925
89932
|
density = 1,
|
|
89926
|
-
opacity = 0.
|
|
89933
|
+
opacity = 0.6,
|
|
89927
89934
|
showIcons = true,
|
|
89928
|
-
glowEffect =
|
|
89935
|
+
glowEffect = true,
|
|
89929
89936
|
className,
|
|
89930
89937
|
multiplier = 2,
|
|
89931
89938
|
position = "absolute"
|
|
@@ -89973,9 +89980,9 @@ var codeSnippetsPresets = {
|
|
|
89973
89980
|
variant: "float",
|
|
89974
89981
|
speed: 1,
|
|
89975
89982
|
density: 1,
|
|
89976
|
-
opacity: 0.
|
|
89983
|
+
opacity: 0.7,
|
|
89977
89984
|
showIcons: true,
|
|
89978
|
-
glowEffect:
|
|
89985
|
+
glowEffect: true,
|
|
89979
89986
|
multiplier: 2
|
|
89980
89987
|
},
|
|
89981
89988
|
rain: {
|
|
@@ -89983,7 +89990,7 @@ var codeSnippetsPresets = {
|
|
|
89983
89990
|
variant: "rain",
|
|
89984
89991
|
speed: 1.5,
|
|
89985
89992
|
density: 1.5,
|
|
89986
|
-
opacity: 0.
|
|
89993
|
+
opacity: 0.6,
|
|
89987
89994
|
showIcons: false,
|
|
89988
89995
|
glowEffect: true,
|
|
89989
89996
|
multiplier: 3
|
|
@@ -89993,7 +90000,7 @@ var codeSnippetsPresets = {
|
|
|
89993
90000
|
variant: "orbit",
|
|
89994
90001
|
speed: 0.5,
|
|
89995
90002
|
density: 1,
|
|
89996
|
-
opacity: 0.
|
|
90003
|
+
opacity: 0.8,
|
|
89997
90004
|
showIcons: true,
|
|
89998
90005
|
glowEffect: false,
|
|
89999
90006
|
multiplier: 1
|
|
@@ -90003,10 +90010,30 @@ var codeSnippetsPresets = {
|
|
|
90003
90010
|
variant: "wave",
|
|
90004
90011
|
speed: 0.8,
|
|
90005
90012
|
density: 1.2,
|
|
90006
|
-
opacity: 0.
|
|
90013
|
+
opacity: 0.7,
|
|
90007
90014
|
showIcons: true,
|
|
90008
90015
|
glowEffect: true,
|
|
90009
90016
|
multiplier: 2
|
|
90017
|
+
},
|
|
90018
|
+
subtle: {
|
|
90019
|
+
snippets: defaultSnippets,
|
|
90020
|
+
variant: "float",
|
|
90021
|
+
speed: 0.5,
|
|
90022
|
+
density: 0.8,
|
|
90023
|
+
opacity: 0.3,
|
|
90024
|
+
showIcons: false,
|
|
90025
|
+
glowEffect: false,
|
|
90026
|
+
multiplier: 1
|
|
90027
|
+
},
|
|
90028
|
+
intense: {
|
|
90029
|
+
snippets: defaultSnippets,
|
|
90030
|
+
variant: "wave",
|
|
90031
|
+
speed: 2,
|
|
90032
|
+
density: 2,
|
|
90033
|
+
opacity: 0.9,
|
|
90034
|
+
showIcons: true,
|
|
90035
|
+
glowEffect: true,
|
|
90036
|
+
multiplier: 3
|
|
90010
90037
|
}
|
|
90011
90038
|
};
|
|
90012
90039
|
init_use_subscription();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.19",
|
|
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",
|