@moontra/moonui-pro 2.26.6 → 2.26.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
@@ -75129,7 +75129,7 @@ function Sidebar(props) {
75129
75129
  }
75130
75130
  var MoonUISidebarPro = Sidebar;
75131
75131
  function NavbarInternal({
75132
- sections,
75132
+ sections = [],
75133
75133
  branding,
75134
75134
  showSearch = true,
75135
75135
  enableCommandAI = false,
@@ -75694,10 +75694,6 @@ function NavbarInternal({
75694
75694
  }
75695
75695
  ),
75696
75696
  /* @__PURE__ */ jsxs(MoonUICommandListPro, { children: [
75697
- (() => {
75698
- console.log("CommandList - searchValue:", searchValue, "sections:", sections);
75699
- return null;
75700
- })(),
75701
75697
  /* @__PURE__ */ jsx(MoonUICommandEmptyPro, { children: enableCommandAI ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center py-6", children: [
75702
75698
  /* @__PURE__ */ jsx(Sparkles, { className: "h-8 w-8 text-muted-foreground mb-2" }),
75703
75699
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No results found" }),
@@ -75738,13 +75734,15 @@ function NavbarInternal({
75738
75734
  /* @__PURE__ */ jsx("kbd", { className: "ml-auto text-xs", children: "\u2318T" })
75739
75735
  ] })
75740
75736
  ] }),
75741
- sections.map((section) => {
75737
+ sections && sections.length > 0 && sections.map((section) => {
75738
+ if (!section.items || section.items.length === 0)
75739
+ return null;
75742
75740
  const filteredItems = searchValue ? section.items.filter(
75743
75741
  (item) => item.title.toLowerCase().includes(searchValue.toLowerCase()) || item.description?.toLowerCase().includes(searchValue.toLowerCase())
75744
75742
  ) : section.items;
75745
75743
  if (filteredItems.length === 0)
75746
75744
  return null;
75747
- return /* @__PURE__ */ jsx(MoonUICommandGroupPro, { heading: enableCommandAI ? "Navigation" : section.id, children: filteredItems.map((item) => /* @__PURE__ */ jsxs(
75745
+ return /* @__PURE__ */ jsx(MoonUICommandGroupPro, { heading: section.title || section.id, children: filteredItems.map((item) => /* @__PURE__ */ jsxs(
75748
75746
  MoonUICommandItemPro,
75749
75747
  {
75750
75748
  disabled: item.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.6",
3
+ "version": "2.26.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",