@moontra/moonui-pro 2.34.2 → 2.34.3
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 +1 -1
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -78331,7 +78331,7 @@ function NavbarInternal({
|
|
|
78331
78331
|
NavigationMenuLink2,
|
|
78332
78332
|
{
|
|
78333
78333
|
className: cn(
|
|
78334
|
-
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
78334
|
+
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground cursor-pointer",
|
|
78335
78335
|
item.disabled && "opacity-50 cursor-not-allowed"
|
|
78336
78336
|
),
|
|
78337
78337
|
onClick: () => !item.disabled && handleItemClick(item),
|
|
@@ -78569,10 +78569,11 @@ function NavbarInternal({
|
|
|
78569
78569
|
{
|
|
78570
78570
|
className: cn(
|
|
78571
78571
|
"hidden md:flex",
|
|
78572
|
-
navItemsPosition === "center" && "flex-1 justify-center",
|
|
78572
|
+
navItemsPosition === "center" && "flex-1 justify-center mx-4",
|
|
78573
78573
|
navItemsPosition === "right" && "ml-auto",
|
|
78574
|
-
|
|
78575
|
-
isMinimal && minimalConfig?.
|
|
78574
|
+
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"
|
|
78576
78577
|
),
|
|
78577
78578
|
children: /* @__PURE__ */ jsx(NavigationMenuList2, { children: sections.map((section) => /* @__PURE__ */ jsx(React68__default.Fragment, { children: section.items.map((item) => {
|
|
78578
78579
|
const hasChildren = item.items && item.items.length > 0;
|
|
@@ -78612,6 +78613,7 @@ function NavbarInternal({
|
|
|
78612
78613
|
{
|
|
78613
78614
|
className: cn(
|
|
78614
78615
|
navigationMenuTriggerStyle(),
|
|
78616
|
+
"cursor-pointer",
|
|
78615
78617
|
isActive2 && "bg-accent text-accent-foreground",
|
|
78616
78618
|
item.disabled && "opacity-50 cursor-not-allowed"
|
|
78617
78619
|
),
|
|
@@ -78687,6 +78689,11 @@ function NavbarInternal({
|
|
|
78687
78689
|
const newTheme = currentTheme === "dark" ? "light" : "dark";
|
|
78688
78690
|
setCurrentTheme(newTheme);
|
|
78689
78691
|
onThemeChange?.(newTheme);
|
|
78692
|
+
if (typeof window !== "undefined") {
|
|
78693
|
+
const root = window.document.documentElement;
|
|
78694
|
+
root.classList.remove("light", "dark");
|
|
78695
|
+
root.classList.add(newTheme);
|
|
78696
|
+
}
|
|
78690
78697
|
},
|
|
78691
78698
|
className: "relative overflow-hidden",
|
|
78692
78699
|
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: currentTheme === "dark" ? /* @__PURE__ */ jsx(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.3",
|
|
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",
|