@moontra/moonui-pro 2.26.3 → 2.26.5
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 +9 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -75167,6 +75167,8 @@ function NavbarInternal({
|
|
|
75167
75167
|
activePath,
|
|
75168
75168
|
onNavigate
|
|
75169
75169
|
}) {
|
|
75170
|
+
console.log("Navbar sections:", sections);
|
|
75171
|
+
console.log("enableCommandAI:", enableCommandAI);
|
|
75170
75172
|
const [isMobile, setIsMobile] = useState(false);
|
|
75171
75173
|
const [isOpen, setIsOpen] = useState(false);
|
|
75172
75174
|
const [isSearchOpen, setIsSearchOpen] = useState(false);
|
|
@@ -75691,6 +75693,10 @@ function NavbarInternal({
|
|
|
75691
75693
|
}
|
|
75692
75694
|
),
|
|
75693
75695
|
/* @__PURE__ */ jsxs(MoonUICommandListPro, { children: [
|
|
75696
|
+
(() => {
|
|
75697
|
+
console.log("CommandList - searchValue:", searchValue, "sections:", sections);
|
|
75698
|
+
return null;
|
|
75699
|
+
})(),
|
|
75694
75700
|
/* @__PURE__ */ jsx(MoonUICommandEmptyPro, { children: enableCommandAI ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center py-6", children: [
|
|
75695
75701
|
/* @__PURE__ */ jsx(Sparkles, { className: "h-8 w-8 text-muted-foreground mb-2" }),
|
|
75696
75702
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No results found" }),
|
|
@@ -75732,9 +75738,9 @@ function NavbarInternal({
|
|
|
75732
75738
|
] })
|
|
75733
75739
|
] }),
|
|
75734
75740
|
sections.map((section) => {
|
|
75735
|
-
const filteredItems = section.items.filter(
|
|
75736
|
-
(item) =>
|
|
75737
|
-
);
|
|
75741
|
+
const filteredItems = searchValue ? section.items.filter(
|
|
75742
|
+
(item) => item.title.toLowerCase().includes(searchValue.toLowerCase()) || item.description?.toLowerCase().includes(searchValue.toLowerCase())
|
|
75743
|
+
) : section.items;
|
|
75738
75744
|
if (filteredItems.length === 0)
|
|
75739
75745
|
return null;
|
|
75740
75746
|
return /* @__PURE__ */ jsx(MoonUICommandGroupPro, { heading: enableCommandAI ? "Navigation" : section.id, children: filteredItems.map((item) => /* @__PURE__ */ jsxs(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.5",
|
|
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",
|