@moontra/moonui-pro 2.34.2 → 2.34.4
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 +13 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -77747,7 +77747,7 @@ function SidebarInternal({
|
|
|
77747
77747
|
disabled: childItem.disabled,
|
|
77748
77748
|
className: cn(
|
|
77749
77749
|
"w-full flex items-center justify-between gap-2 rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
77750
|
-
"hover:bg-accent hover:text-accent-foreground",
|
|
77750
|
+
"hover:bg-accent hover:text-accent-foreground cursor-pointer",
|
|
77751
77751
|
isChildActive && "bg-primary/10 text-primary font-medium",
|
|
77752
77752
|
childItem.disabled && "opacity-50 cursor-not-allowed"
|
|
77753
77753
|
),
|
|
@@ -77781,7 +77781,7 @@ function SidebarInternal({
|
|
|
77781
77781
|
disabled: grandChild.disabled,
|
|
77782
77782
|
className: cn(
|
|
77783
77783
|
"w-full flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
77784
|
-
"hover:bg-accent hover:text-accent-foreground",
|
|
77784
|
+
"hover:bg-accent hover:text-accent-foreground cursor-pointer",
|
|
77785
77785
|
isGrandChildActive && "bg-primary/10 text-primary font-medium",
|
|
77786
77786
|
grandChild.disabled && "opacity-50 cursor-not-allowed"
|
|
77787
77787
|
),
|
|
@@ -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.4",
|
|
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",
|