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