@moontra/moonui-pro 2.26.1 → 2.26.2
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.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -74687,12 +74687,16 @@ function SidebarInternal({
|
|
|
74687
74687
|
const handleItemClick = useCallback((item) => {
|
|
74688
74688
|
if (item.action) {
|
|
74689
74689
|
item.action();
|
|
74690
|
-
} else if (item.href
|
|
74690
|
+
} else if (item.href) {
|
|
74691
74691
|
if (enableNProgress) {
|
|
74692
74692
|
NProgress.start();
|
|
74693
74693
|
setTimeout(() => NProgress.done(), 500);
|
|
74694
74694
|
}
|
|
74695
|
-
onNavigate
|
|
74695
|
+
if (onNavigate) {
|
|
74696
|
+
onNavigate(item.href);
|
|
74697
|
+
} else {
|
|
74698
|
+
window.location.href = item.href;
|
|
74699
|
+
}
|
|
74696
74700
|
if (isMobile) {
|
|
74697
74701
|
setIsOpen(false);
|
|
74698
74702
|
}
|
|
@@ -75234,12 +75238,16 @@ function NavbarInternal({
|
|
|
75234
75238
|
const handleItemClick = useCallback((item) => {
|
|
75235
75239
|
if (item.action) {
|
|
75236
75240
|
item.action();
|
|
75237
|
-
} else if (item.href
|
|
75241
|
+
} else if (item.href) {
|
|
75238
75242
|
if (enableNProgress) {
|
|
75239
75243
|
NProgress.start();
|
|
75240
75244
|
setTimeout(() => NProgress.done(), 500);
|
|
75241
75245
|
}
|
|
75242
|
-
onNavigate
|
|
75246
|
+
if (onNavigate) {
|
|
75247
|
+
onNavigate(item.href);
|
|
75248
|
+
} else {
|
|
75249
|
+
window.location.href = item.href;
|
|
75250
|
+
}
|
|
75243
75251
|
if (isMobile) {
|
|
75244
75252
|
setIsOpen(false);
|
|
75245
75253
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.2",
|
|
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",
|