@moontra/moonui-pro 2.34.5 → 2.34.7

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)
@@ -78572,8 +78579,9 @@ function NavbarInternal({
78572
78579
  navItemsPosition === "center" && "flex-1 justify-center mx-4",
78573
78580
  navItemsPosition === "right" && "ml-auto",
78574
78581
  navItemsPosition === "left" && "ml-4",
78575
- isMinimal && minimalConfig?.centerOnScroll && "flex-1 justify-center",
78576
- !isMinimal && navItemsPosition === "center" && "absolute left-1/2 transform -translate-x-1/2"
78582
+ // Keep position consistent in minimal mode unless centerOnScroll is enabled
78583
+ isMinimal && minimalConfig?.centerOnScroll && navItemsPosition !== "center" && "flex-1 justify-center",
78584
+ navItemsPosition === "center" && "absolute left-1/2 transform -translate-x-1/2"
78577
78585
  ),
78578
78586
  children: /* @__PURE__ */ jsx(NavigationMenuList2, { children: sections.map((section) => /* @__PURE__ */ jsx(React68__default.Fragment, { children: section.items.map((item) => {
78579
78587
  const hasChildren = item.items && item.items.length > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.34.5",
3
+ "version": "2.34.7",
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",