@moontra/moonui-pro 2.26.5 → 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,
@@ -75150,6 +75150,7 @@ function NavbarInternal({
75150
75150
  glassmorphism = false,
75151
75151
  animatedBackground = false,
75152
75152
  keyboardShortcuts = true,
75153
+ hideNavItems = false,
75153
75154
  mobileBreakpoint = 768,
75154
75155
  customStyles,
75155
75156
  variant = "default",
@@ -75323,7 +75324,7 @@ function NavbarInternal({
75323
75324
  }
75324
75325
  )
75325
75326
  ] }),
75326
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-4", children: sections.map((section) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
75327
+ /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto p-4", children: !hideNavItems && sections.map((section) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
75327
75328
  section.items.map((item) => /* @__PURE__ */ jsx("div", { children: item.items && item.items.length > 0 ? /* @__PURE__ */ jsxs(MoonUIDropdownMenuPro, { children: [
75328
75329
  /* @__PURE__ */ jsx(MoonUIDropdownMenuTriggerPro, { asChild: true, children: /* @__PURE__ */ jsxs(
75329
75330
  MoonUIButtonPro,
@@ -75429,7 +75430,7 @@ function NavbarInternal({
75429
75430
  }
75430
75431
  )
75431
75432
  ] }),
75432
- !isMobile && /* @__PURE__ */ jsx(NavigationMenu2, { className: "hidden md:flex", children: /* @__PURE__ */ jsx(NavigationMenuList2, { children: sections.map((section) => /* @__PURE__ */ jsx(t__default.Fragment, { children: section.items.map((item) => {
75433
+ !isMobile && !hideNavItems && /* @__PURE__ */ jsx(NavigationMenu2, { className: "hidden md:flex", children: /* @__PURE__ */ jsx(NavigationMenuList2, { children: sections.map((section) => /* @__PURE__ */ jsx(t__default.Fragment, { children: section.items.map((item) => {
75433
75434
  const hasChildren = item.items && item.items.length > 0;
75434
75435
  const isActive2 = item.href === activePath;
75435
75436
  if (hasChildren) {
@@ -75693,10 +75694,6 @@ function NavbarInternal({
75693
75694
  }
75694
75695
  ),
75695
75696
  /* @__PURE__ */ jsxs(MoonUICommandListPro, { children: [
75696
- (() => {
75697
- console.log("CommandList - searchValue:", searchValue, "sections:", sections);
75698
- return null;
75699
- })(),
75700
75697
  /* @__PURE__ */ jsx(MoonUICommandEmptyPro, { children: enableCommandAI ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center py-6", children: [
75701
75698
  /* @__PURE__ */ jsx(Sparkles, { className: "h-8 w-8 text-muted-foreground mb-2" }),
75702
75699
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No results found" }),
@@ -75737,13 +75734,15 @@ function NavbarInternal({
75737
75734
  /* @__PURE__ */ jsx("kbd", { className: "ml-auto text-xs", children: "\u2318T" })
75738
75735
  ] })
75739
75736
  ] }),
75740
- sections.map((section) => {
75737
+ sections && sections.length > 0 && sections.map((section) => {
75738
+ if (!section.items || section.items.length === 0)
75739
+ return null;
75741
75740
  const filteredItems = searchValue ? section.items.filter(
75742
75741
  (item) => item.title.toLowerCase().includes(searchValue.toLowerCase()) || item.description?.toLowerCase().includes(searchValue.toLowerCase())
75743
75742
  ) : section.items;
75744
75743
  if (filteredItems.length === 0)
75745
75744
  return null;
75746
- 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(
75747
75746
  MoonUICommandItemPro,
75748
75747
  {
75749
75748
  disabled: item.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.26.5",
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",