@opensite/ui 1.0.6 → 1.0.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/registry.js CHANGED
@@ -57468,11 +57468,11 @@ var renderMobileMenuItem2 = (item) => {
57468
57468
  if (item.items) {
57469
57469
  return /* @__PURE__ */ jsxs(AccordionItem, { value: item.title, className: "border-b-0", children: [
57470
57470
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.title }),
57471
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: item.items.map((subItem) => /* @__PURE__ */ jsxs(
57471
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.items.map((subItem) => /* @__PURE__ */ jsxs(
57472
57472
  Pressable,
57473
57473
  {
57474
57474
  href: subItem.url,
57475
- className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
57475
+ className: "flex items-center gap-2 pl-2 text-sm text-muted-foreground hover:text-foreground",
57476
57476
  children: [
57477
57477
  subItem.icon && /* @__PURE__ */ jsx(DynamicIcon, { name: subItem.icon, size: 14 }),
57478
57478
  subItem.title
@@ -57849,51 +57849,6 @@ var DesktopMenuItem = ({
57849
57849
  }
57850
57850
  return null;
57851
57851
  };
57852
- var MobileSubmenu = ({
57853
- submenu,
57854
- mobileMenuClassName,
57855
- optixFlowConfig
57856
- }) => {
57857
- const items = submenu.links || [];
57858
- return /* @__PURE__ */ jsxs(
57859
- "div",
57860
- {
57861
- className: cn(
57862
- "fixed inset-0 top-[72px] flex h-[calc(100vh-72px)] w-full flex-col overflow-scroll border-t border-border bg-background lg:hidden",
57863
- mobileMenuClassName
57864
- ),
57865
- children: [
57866
- /* @__PURE__ */ jsx("div", { className: "px-8 py-3.5 text-xs tracking-widest text-muted-foreground uppercase", children: submenu.label }),
57867
- items.map((item, index) => {
57868
- return /* @__PURE__ */ jsxs(
57869
- Pressable,
57870
- {
57871
- href: getLinkUrl(item),
57872
- className: "flex items-start gap-4 border-b border-border px-8 py-5",
57873
- children: [
57874
- item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
57875
- Img,
57876
- {
57877
- src: item.image,
57878
- alt: typeof item.label === "string" ? item.label : "Menu item",
57879
- className: "h-full w-full object-cover object-center",
57880
- optixFlowConfig
57881
- }
57882
- ) }),
57883
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
57884
- /* @__PURE__ */ jsxs("div", { children: [
57885
- /* @__PURE__ */ jsx("div", { className: "text-base", children: item.label }),
57886
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: item.description })
57887
- ] })
57888
- ]
57889
- },
57890
- `mobile-item-${index}`
57891
- );
57892
- })
57893
- ]
57894
- }
57895
- );
57896
- };
57897
57852
  var NavbarMegaMenu = ({
57898
57853
  className,
57899
57854
  containerClassName,
@@ -57914,8 +57869,6 @@ var NavbarMegaMenu = ({
57914
57869
  optixFlowConfig
57915
57870
  }) => {
57916
57871
  const [open, setOpen] = useState(false);
57917
- const [submenuIndex, setSubmenuIndex] = useState(null);
57918
- const activeSubmenu = submenuIndex !== null ? menuLinks?.[submenuIndex] : null;
57919
57872
  const hasDropdownItems = (link) => Boolean(
57920
57873
  link.links && link.links.length > 0 || link.dropdownGroups && link.dropdownGroups.length > 0
57921
57874
  );
@@ -57969,36 +57922,15 @@ var NavbarMegaMenu = ({
57969
57922
  ),
57970
57923
  children: [
57971
57924
  /* @__PURE__ */ jsxs("div", { className: navWrapperClasses, children: [
57972
- /* @__PURE__ */ jsxs("div", { children: [
57973
- (!open || submenuIndex === null) && /* @__PURE__ */ jsx(
57974
- NavbarLogo,
57975
- {
57976
- logo,
57977
- logoSlot,
57978
- logoClassName,
57979
- optixFlowConfig
57980
- }
57981
- ),
57982
- open && submenuIndex !== null && /* @__PURE__ */ jsxs(
57983
- Pressable,
57984
- {
57985
- variant: "outline",
57986
- asButton: true,
57987
- onClick: () => setSubmenuIndex(null),
57988
- children: [
57989
- "Back",
57990
- /* @__PURE__ */ jsx(
57991
- DynamicIcon,
57992
- {
57993
- name: "lucide/chevron-left",
57994
- size: 16,
57995
- className: "ml-2"
57996
- }
57997
- )
57998
- ]
57999
- }
58000
- )
58001
- ] }),
57925
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
57926
+ NavbarLogo,
57927
+ {
57928
+ logo,
57929
+ logoSlot,
57930
+ logoClassName,
57931
+ optixFlowConfig
57932
+ }
57933
+ ) }),
58002
57934
  /* @__PURE__ */ jsx(
58003
57935
  NavigationMenuList,
58004
57936
  {
@@ -58039,14 +57971,7 @@ var NavbarMegaMenu = ({
58039
57971
  size: "icon",
58040
57972
  asButton: true,
58041
57973
  "aria-label": "Main Menu",
58042
- onClick: () => {
58043
- if (open) {
58044
- setOpen(false);
58045
- setSubmenuIndex(null);
58046
- } else {
58047
- setOpen(true);
58048
- }
58049
- },
57974
+ onClick: () => setOpen(!open),
58050
57975
  children: [
58051
57976
  !open && /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 16 }),
58052
57977
  open && /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", size: 16 })
@@ -58054,31 +57979,42 @@ var NavbarMegaMenu = ({
58054
57979
  }
58055
57980
  ) })
58056
57981
  ] }),
58057
- open && submenuIndex === null && /* @__PURE__ */ jsxs(
58058
- "div",
57982
+ /* @__PURE__ */ jsx(
57983
+ NavbarMobileMenu,
58059
57984
  {
58060
- className: cn(
58061
- "fixed inset-0 top-[72px] flex h-[calc(100vh-72px)] w-full flex-col overflow-scroll border-t border-border bg-background lg:hidden",
58062
- mobileMenuClassName
58063
- ),
58064
- children: [
58065
- /* @__PURE__ */ jsx("div", { children: menuLinks?.map((link, index) => {
57985
+ open,
57986
+ onClose: () => setOpen(false),
57987
+ title: "Mobile Navigation",
57988
+ contentClassName: "pt-10 pb-20",
57989
+ children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
57990
+ /* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
58066
57991
  if (hasDropdownItems(link)) {
57992
+ const items = link.links || [];
58067
57993
  return /* @__PURE__ */ jsxs(
58068
- "button",
57994
+ AccordionItem,
58069
57995
  {
58070
- type: "button",
58071
- className: "flex w-full items-center border-b border-border px-8 py-7 text-left",
58072
- onClick: () => setSubmenuIndex(index),
57996
+ value: `menu-${index}`,
57997
+ className: "border-b-0",
58073
57998
  children: [
58074
- /* @__PURE__ */ jsx("span", { className: "flex-1", children: link.label }),
58075
- /* @__PURE__ */ jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsx(
58076
- DynamicIcon,
57999
+ /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
58000
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: items.map((item, itemIndex) => /* @__PURE__ */ jsxs(
58001
+ Pressable,
58077
58002
  {
58078
- name: "lucide/chevron-right",
58079
- size: 16
58080
- }
58081
- ) })
58003
+ href: getLinkUrl(item),
58004
+ className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
58005
+ children: [
58006
+ (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
58007
+ DynamicIcon,
58008
+ {
58009
+ name: item.iconName,
58010
+ size: 14
58011
+ }
58012
+ ) : null),
58013
+ item.label
58014
+ ]
58015
+ },
58016
+ `mobile-link-${index}-${itemIndex}`
58017
+ )) })
58082
58018
  ]
58083
58019
  },
58084
58020
  `mobile-menu-link-${index}`
@@ -58091,8 +58027,8 @@ var NavbarMegaMenu = ({
58091
58027
  Pressable,
58092
58028
  {
58093
58029
  href: link.href,
58094
- className: "flex w-full items-center border-b border-border px-8 py-7 text-left",
58095
- children: /* @__PURE__ */ jsx("span", { className: "flex-1", children: link.label })
58030
+ className: "flex h-15 items-center text-base font-normal text-foreground",
58031
+ children: link.label
58096
58032
  },
58097
58033
  `mobile-menu-link-${index}`
58098
58034
  );
@@ -58100,22 +58036,11 @@ var NavbarMegaMenu = ({
58100
58036
  /* @__PURE__ */ jsx(
58101
58037
  "div",
58102
58038
  {
58103
- className: cn(
58104
- "mx-8 mt-auto flex flex-col gap-4 py-12",
58105
- actionsClassName
58106
- ),
58039
+ className: cn("mt-6 flex flex-col gap-4", actionsClassName),
58107
58040
  children: renderActions()
58108
58041
  }
58109
58042
  )
58110
- ]
58111
- }
58112
- ),
58113
- open && activeSubmenu && hasDropdownItems(activeSubmenu) && /* @__PURE__ */ jsx(
58114
- MobileSubmenu,
58115
- {
58116
- submenu: activeSubmenu,
58117
- mobileMenuClassName,
58118
- optixFlowConfig
58043
+ ] })
58119
58044
  }
58120
58045
  )
58121
58046
  ]
@@ -58768,7 +58693,7 @@ var renderDropdownContent = (item, optixFlowConfig) => {
58768
58693
  var renderMobileDropdownContent = (item) => {
58769
58694
  switch (item.layout) {
58770
58695
  case "solutions-with-platform":
58771
- return /* @__PURE__ */ jsx("div", { className: "space-y-4", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
58696
+ return /* @__PURE__ */ jsx("div", { className: "relative", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
58772
58697
  /* @__PURE__ */ jsx(
58773
58698
  Pressable,
58774
58699
  {
@@ -58880,7 +58805,7 @@ var MobileNavigationMenu = ({
58880
58805
  className: "border-b-0",
58881
58806
  children: [
58882
58807
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
58883
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto", children: renderMobileDropdownContent(item) })
58808
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: renderMobileDropdownContent(item) })
58884
58809
  ]
58885
58810
  },
58886
58811
  typeof item.label === "string" ? item.label : `nav-${index}`
@@ -59035,15 +58960,15 @@ var NavbarFeatureGrid = ({
59035
58960
  children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
59036
58961
  /* @__PURE__ */ jsxs(Accordion, { type: "multiple", className: "w-full", children: [
59037
58962
  features && features.length > 0 && /* @__PURE__ */ jsxs(AccordionItem, { value: "features", className: "border-b-0", children: [
59038
- /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: "Features" }),
59039
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: features.map((feature, index) => /* @__PURE__ */ jsx(
58963
+ /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal hover:no-underline", children: "Features" }),
58964
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: features.map((feature, index) => /* @__PURE__ */ jsx(
59040
58965
  Pressable,
59041
58966
  {
59042
58967
  href: feature.href,
59043
- className: "flex items-start gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
59044
- children: /* @__PURE__ */ jsxs("div", { children: [
59045
- /* @__PURE__ */ jsx("p", { className: "mb-1 font-semibold", children: feature.title }),
59046
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
58968
+ className: "flex items-start gap-2 pl-4 text-sm",
58969
+ children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
58970
+ /* @__PURE__ */ jsx("p", { className: "font-semibold", children: feature.title }),
58971
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: feature.description })
59047
58972
  ] })
59048
58973
  },
59049
58974
  index
@@ -59053,7 +58978,7 @@ var NavbarFeatureGrid = ({
59053
58978
  Pressable,
59054
58979
  {
59055
58980
  href: item.url,
59056
- className: "flex h-15 items-center text-base font-normal text-foreground",
58981
+ className: "flex h-15 items-center text-base font-normal",
59057
58982
  children: item.title
59058
58983
  },
59059
58984
  index
@@ -59359,27 +59284,30 @@ var NavbarPlatformResources = ({
59359
59284
  const renderDropdownContent3 = (link) => {
59360
59285
  const layout = link.layout || "simple-list";
59361
59286
  if (layout === "simple-list") {
59362
- return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
59363
- NavigationMenuLink,
59287
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[400px] p-3", children: /* @__PURE__ */ jsx("ul", { className: "space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsx(
59288
+ "li",
59364
59289
  {
59365
- href: getLinkUrl(item),
59366
- className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
59367
- children: [
59368
- item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
59369
- Img,
59370
- {
59371
- src: item.image,
59372
- alt: typeof item.label === "string" ? item.label : "Menu item",
59373
- className: "h-full w-full object-cover object-center",
59374
- optixFlowConfig
59375
- }
59376
- ) }),
59377
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 18 }) : null }),
59378
- /* @__PURE__ */ jsxs("div", { children: [
59379
- /* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
59380
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
59381
- ] })
59382
- ]
59290
+ children: /* @__PURE__ */ jsxs(
59291
+ NavigationMenuLink,
59292
+ {
59293
+ href: getLinkUrl(item),
59294
+ className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
59295
+ children: [
59296
+ /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
59297
+ DynamicIcon,
59298
+ {
59299
+ name: item.iconName,
59300
+ size: 16,
59301
+ className: "m-auto group-hover/link:stroke-black"
59302
+ }
59303
+ ) : null }),
59304
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
59305
+ /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
59306
+ item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
59307
+ ] })
59308
+ ]
59309
+ }
59310
+ )
59383
59311
  },
59384
59312
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
59385
59313
  )) }) });
@@ -59728,7 +59656,7 @@ var NavbarPlatformResources = ({
59728
59656
  className: "border-b-0",
59729
59657
  children: [
59730
59658
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
59731
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-4", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
59659
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
59732
59660
  Pressable,
59733
59661
  {
59734
59662
  href: getLinkUrl(item),
@@ -59941,7 +59869,7 @@ var NavbarImagePreview = ({
59941
59869
  {
59942
59870
  className: cn("flex items-center gap-3.5", actionsClassName),
59943
59871
  children: [
59944
- renderAuthActions,
59872
+ /* @__PURE__ */ jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
59945
59873
  /* @__PURE__ */ jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsx(
59946
59874
  Pressable,
59947
59875
  {
@@ -59965,7 +59893,7 @@ var NavbarImagePreview = ({
59965
59893
  {
59966
59894
  open,
59967
59895
  setOpen,
59968
- mobileNavigation: mobileNavigation ?? [],
59896
+ mobileNavigation: mobileNavigation ?? navigation ?? [],
59969
59897
  mobileNavigationSlot,
59970
59898
  socialLinks: socialLinks ?? [],
59971
59899
  socialLinksSlot,
@@ -60588,21 +60516,21 @@ var NavbarAnimatedPreview = ({
60588
60516
  "h-full max-w-full after:absolute after:inset-0 after:z-998 after:block after:size-full after:content-[''] [&>div:last-child>div]:mt-0 [&>div:last-child>div]:animate-none [&>div:last-child>div]:rounded-none [&>div:last-child>div]:border-0 [&>div:last-child>div]:shadow-[0px_-1px_0px_0px_rgba(0,0,0,0.05),0px_0px_0px_1px_rgba(17,26,37,0.05),0px_2px_5px_0px_rgba(16,25,36,0.1),0px_5px_20px_0px_rgba(16,25,36,0.1)]!",
60589
60517
  navigationMenuClassName
60590
60518
  );
60591
- return /* @__PURE__ */ jsx(
60592
- Section,
60593
- {
60594
- background,
60595
- spacing: spacingOverride ?? spacing,
60596
- className: cn(
60597
- "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
60598
- sectionClasses
60599
- ),
60600
- pattern,
60601
- patternOpacity,
60602
- containerClassName: sectionContainerClassName,
60603
- containerMaxWidth: sectionContainerMaxWidth,
60604
- children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsxs("div", { className: innerContainerClasses, children: [
60605
- /* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
60519
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
60520
+ /* @__PURE__ */ jsx(
60521
+ Section,
60522
+ {
60523
+ background,
60524
+ spacing: spacingOverride ?? spacing,
60525
+ className: cn(
60526
+ "pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
60527
+ sectionClasses
60528
+ ),
60529
+ pattern,
60530
+ patternOpacity,
60531
+ containerClassName: sectionContainerClassName,
60532
+ containerMaxWidth: sectionContainerMaxWidth,
60533
+ children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
60606
60534
  "div",
60607
60535
  {
60608
60536
  className: cn(
@@ -60629,14 +60557,7 @@ var NavbarAnimatedPreview = ({
60629
60557
  size: "icon",
60630
60558
  asButton: true,
60631
60559
  onClick: handleMobileMenu,
60632
- children: open ? /* @__PURE__ */ jsx(
60633
- DynamicIcon,
60634
- {
60635
- name: "lucide/x",
60636
- size: 22,
60637
- className: "stroke-foreground"
60638
- }
60639
- ) : /* @__PURE__ */ jsx(
60560
+ children: /* @__PURE__ */ jsx(
60640
60561
  DynamicIcon,
60641
60562
  {
60642
60563
  name: "lucide/menu",
@@ -60649,20 +60570,20 @@ var NavbarAnimatedPreview = ({
60649
60570
  ] })
60650
60571
  ]
60651
60572
  }
60652
- ) }),
60653
- /* @__PURE__ */ jsx(
60654
- MobileNavigationMenu4,
60655
- {
60656
- open,
60657
- setOpen,
60658
- menuLinks: menuLinks ?? [],
60659
- actions,
60660
- actionsSlot
60661
- }
60662
- )
60663
- ] }) }) })
60664
- }
60665
- );
60573
+ ) }) }) }) })
60574
+ }
60575
+ ),
60576
+ /* @__PURE__ */ jsx(
60577
+ MobileNavigationMenu4,
60578
+ {
60579
+ open,
60580
+ setOpen,
60581
+ menuLinks: menuLinks ?? [],
60582
+ actions,
60583
+ actionsSlot
60584
+ }
60585
+ )
60586
+ ] });
60666
60587
  };
60667
60588
  var DesktopMenuItem5 = ({
60668
60589
  item,
@@ -61120,18 +61041,18 @@ var NavbarMultiColumnGroups = ({
61120
61041
  sectionContainerMaxWidth,
61121
61042
  spacingOverride
61122
61043
  } = getNavbarLayoutClasses(layoutVariant, { className, containerClassName });
61123
- return /* @__PURE__ */ jsxs(
61124
- Section,
61125
- {
61126
- background,
61127
- spacing: spacingOverride ?? spacing,
61128
- className: sectionClasses,
61129
- pattern,
61130
- patternOpacity,
61131
- containerClassName: sectionContainerClassName,
61132
- containerMaxWidth: sectionContainerMaxWidth,
61133
- children: [
61134
- /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
61044
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
61045
+ /* @__PURE__ */ jsx(
61046
+ Section,
61047
+ {
61048
+ background,
61049
+ spacing: spacingOverride ?? spacing,
61050
+ className: sectionClasses,
61051
+ pattern,
61052
+ patternOpacity,
61053
+ containerClassName: sectionContainerClassName,
61054
+ containerMaxWidth: sectionContainerMaxWidth,
61055
+ children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
61135
61056
  "div",
61136
61057
  {
61137
61058
  className: cn(
@@ -61173,16 +61094,10 @@ var NavbarMultiColumnGroups = ({
61173
61094
  {
61174
61095
  className: "size-11",
61175
61096
  variant: "ghost",
61097
+ size: "icon",
61176
61098
  asButton: true,
61177
61099
  onClick: handleMobileMenu,
61178
- children: open ? /* @__PURE__ */ jsx(
61179
- DynamicIcon,
61180
- {
61181
- name: "lucide/x",
61182
- size: 22,
61183
- className: "stroke-foreground"
61184
- }
61185
- ) : /* @__PURE__ */ jsx(
61100
+ children: /* @__PURE__ */ jsx(
61186
61101
  DynamicIcon,
61187
61102
  {
61188
61103
  name: "lucide/menu",
@@ -61194,20 +61109,20 @@ var NavbarMultiColumnGroups = ({
61194
61109
  ) })
61195
61110
  ]
61196
61111
  }
61197
- ) }) }) }),
61198
- /* @__PURE__ */ jsx(
61199
- MobileNavigationMenu5,
61200
- {
61201
- open,
61202
- setOpen,
61203
- navigation: navigation ?? [],
61204
- authActions: mobileAuthActions,
61205
- authActionsSlot: mobileAuthActionsSlot
61206
- }
61207
- )
61208
- ]
61209
- }
61210
- );
61112
+ ) }) }) })
61113
+ }
61114
+ ),
61115
+ /* @__PURE__ */ jsx(
61116
+ MobileNavigationMenu5,
61117
+ {
61118
+ open,
61119
+ setOpen,
61120
+ navigation: navigation ?? [],
61121
+ authActions: mobileAuthActions,
61122
+ authActionsSlot: mobileAuthActionsSlot
61123
+ }
61124
+ )
61125
+ ] });
61211
61126
  };
61212
61127
  var DesktopMenuItem6 = ({ item, index }) => {
61213
61128
  if (item.groups) {
@@ -61289,7 +61204,6 @@ var MobileNavigationMenu5 = ({
61289
61204
  open,
61290
61205
  onClose: () => setOpen(false),
61291
61206
  title: "Mobile Navigation",
61292
- className: "dark",
61293
61207
  children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
61294
61208
  /* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => renderMobileMenuItem5(item, index)) }),
61295
61209
  renderMobileAuthActions
@@ -61306,12 +61220,12 @@ var renderMobileMenuItem5 = (item, index) => {
61306
61220
  className: "border-b-0",
61307
61221
  children: [
61308
61222
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center p-0 px-4! text-base leading-[3.75] font-normal text-muted-foreground hover:bg-muted hover:no-underline", children: item.title }),
61309
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-x-auto", children: item.groups.flatMap(
61223
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.flatMap(
61310
61224
  (group, groupIndex) => group.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
61311
61225
  Pressable,
61312
61226
  {
61313
61227
  href: link.url,
61314
- className: "flex h-12 items-center gap-2 rounded-lg px-4 text-muted-foreground transition-colors duration-300 hover:bg-muted hover:text-foreground",
61228
+ className: "flex min-h-12 items-center gap-2 rounded-lg px-4 text-muted-foreground transition-colors duration-300 hover:bg-muted hover:text-foreground",
61315
61229
  children: [
61316
61230
  link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
61317
61231
  DynamicIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",