@moontra/moonui-pro 2.34.4 → 2.34.6

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
@@ -78282,7 +78282,14 @@ function NavbarInternal({
78282
78282
  return () => window.removeEventListener("resize", checkMobile);
78283
78283
  }, [mobileBreakpoint]);
78284
78284
  useEffect(() => {
78285
- setCurrentTheme(theme);
78285
+ if (typeof window !== "undefined") {
78286
+ const root = window.document.documentElement;
78287
+ const isDark = root.classList.contains("dark");
78288
+ const currentDomTheme = isDark ? "dark" : "light";
78289
+ setCurrentTheme(theme || currentDomTheme);
78290
+ } else {
78291
+ setCurrentTheme(theme);
78292
+ }
78286
78293
  }, [theme]);
78287
78294
  useEffect(() => {
78288
78295
  if (!keyboardShortcuts && !enableCommandAI)
@@ -85291,10 +85298,10 @@ var GridPatternInternal = ({
85291
85298
  size: size4,
85292
85299
  performance: performance2 = "balanced"
85293
85300
  }) => {
85294
- const patternId = `grid-pattern-${Math.random().toString(36).substr(2, 9)}`;
85295
- const gradientId = `grid-gradient-${Math.random().toString(36).substr(2, 9)}`;
85296
- const maskId = `grid-mask-${Math.random().toString(36).substr(2, 9)}`;
85297
- const noiseId = `grid-noise-${Math.random().toString(36).substr(2, 9)}`;
85301
+ const [patternId] = useState(() => `grid-pattern-${Math.random().toString(36).substr(2, 9)}`);
85302
+ const [gradientId] = useState(() => `grid-gradient-${Math.random().toString(36).substr(2, 9)}`);
85303
+ const [maskId] = useState(() => `grid-mask-${Math.random().toString(36).substr(2, 9)}`);
85304
+ const [noiseId] = useState(() => `grid-noise-${Math.random().toString(36).substr(2, 9)}`);
85298
85305
  const containerRef = useRef(null);
85299
85306
  useEffect(() => {
85300
85307
  if (!parallax || !containerRef.current)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.34.4",
3
+ "version": "2.34.6",
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",