@opensite/ui 3.4.8 → 3.4.9

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
@@ -63049,10 +63049,10 @@ var SubMenuLink = ({
63049
63049
  return /* @__PURE__ */ jsxs(
63050
63050
  Pressable,
63051
63051
  {
63052
- className: "flex min-w-80 flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted",
63052
+ className: "flex min-w-80 flex-row items-center gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted",
63053
63053
  href: item.url,
63054
63054
  children: [
63055
- item.icon && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
63055
+ item.icon && /* @__PURE__ */ jsx("div", { className: "flex size-5 shrink-0 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
63056
63056
  /* @__PURE__ */ jsxs("div", { children: [
63057
63057
  /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold", children: item.title }),
63058
63058
  item.description && /* @__PURE__ */ jsx("p", { className: "text-sm leading-snug text-muted-foreground", children: item.description })
@@ -63273,10 +63273,10 @@ var SubMenuLink2 = ({ item }) => {
63273
63273
  return /* @__PURE__ */ jsxs(
63274
63274
  Pressable,
63275
63275
  {
63276
- className: "flex flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
63276
+ className: "flex flex-row items-center gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
63277
63277
  href: item.url,
63278
63278
  children: [
63279
- item.icon && /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
63279
+ item.icon && /* @__PURE__ */ jsx("div", { className: "flex size-5 shrink-0 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
63280
63280
  /* @__PURE__ */ jsxs("div", { children: [
63281
63281
  /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold", children: item.title }),
63282
63282
  item.description && /* @__PURE__ */ jsx("p", { className: "text-sm leading-snug text-muted-foreground", children: item.description })
@@ -63963,17 +63963,17 @@ var SolutionsMenu = ({
63963
63963
  platformItems,
63964
63964
  featuredHeroCard,
63965
63965
  optixFlowConfig
63966
- }) => /* @__PURE__ */ jsxs("div", { className: "grid w-[1200px] grid-cols-2 gap-4", children: [
63967
- featuredHeroCard && /* @__PURE__ */ jsx("div", { className: "col-span-1", children: /* @__PURE__ */ jsxs(
63966
+ }) => {
63967
+ const featuredCard = featuredHeroCard ? /* @__PURE__ */ jsxs(
63968
63968
  Pressable,
63969
63969
  {
63970
63970
  href: featuredHeroCard.href,
63971
63971
  className: cn(
63972
- "group flex h-full flex-col overflow-hidden rounded-lg text-primary-foreground",
63972
+ "group flex h-full min-h-[420px] flex-col overflow-hidden rounded-lg text-primary-foreground",
63973
63973
  featuredHeroCard.variant === "accent" ? "bg-accent text-accent-foreground" : "bg-primary"
63974
63974
  ),
63975
63975
  children: [
63976
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col justify-between p-5", children: [
63976
+ /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-col justify-between p-5", children: [
63977
63977
  featuredHeroCard.subtitle && /* @__PURE__ */ jsx("span", { className: "mb-2 text-xs font-medium tracking-wider uppercase", children: featuredHeroCard.subtitle }),
63978
63978
  /* @__PURE__ */ jsxs("div", { children: [
63979
63979
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-base font-semibold", children: [
@@ -63990,7 +63990,7 @@ var SolutionsMenu = ({
63990
63990
  /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm leading-relaxed text-primary-foreground/85", children: featuredHeroCard.description })
63991
63991
  ] })
63992
63992
  ] }),
63993
- /* @__PURE__ */ jsx("div", { className: "relative aspect-video w-full overflow-hidden", children: /* @__PURE__ */ jsx(
63993
+ /* @__PURE__ */ jsx("div", { className: "relative min-h-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsx(
63994
63994
  Img,
63995
63995
  {
63996
63996
  src: featuredHeroCard.image,
@@ -64001,35 +64001,42 @@ var SolutionsMenu = ({
64001
64001
  ) })
64002
64002
  ]
64003
64003
  }
64004
- ) }),
64005
- platformItems.length > 0 && /* @__PURE__ */ jsxs("div", { className: "col-span-1", children: [
64004
+ ) : null;
64005
+ const platformSection = platformItems.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
64006
64006
  /* @__PURE__ */ jsx("div", { className: "mb-3 text-left", children: /* @__PURE__ */ jsx("strong", { className: "text-xs font-medium tracking-wider text-muted-foreground uppercase", children: "Developer Platform" }) }),
64007
64007
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: platformItems.map((technology) => /* @__PURE__ */ jsxs(
64008
64008
  NavigationMenuLink,
64009
64009
  {
64010
64010
  href: technology.href,
64011
- className: "group !flex !w-full items-center gap-2 rounded-lg p-2 hover:bg-muted",
64011
+ className: "group !flex !w-full min-w-0 items-center gap-2 rounded-lg p-2 hover:bg-muted",
64012
64012
  children: [
64013
- /* @__PURE__ */ jsx(DynamicIcon, { name: technology.icon, size: 16, className: "shrink-0" }),
64013
+ /* @__PURE__ */ jsx(
64014
+ DynamicIcon,
64015
+ {
64016
+ name: technology.icon,
64017
+ size: 16,
64018
+ className: "shrink-0"
64019
+ }
64020
+ ),
64014
64021
  /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 text-sm font-medium", children: technology.title })
64015
64022
  ]
64016
64023
  },
64017
64024
  technology.id
64018
64025
  )) })
64019
- ] }),
64020
- solutionCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "col-span-2 mt-2 grid grid-cols-4 gap-3", children: solutionCards.map((solution) => /* @__PURE__ */ jsxs(
64026
+ ] }) : null;
64027
+ const solutionSection = solutionCards.length > 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-3", children: solutionCards.map((solution) => /* @__PURE__ */ jsxs(
64021
64028
  "div",
64022
64029
  {
64023
- className: "col-span-1 flex w-full flex-col rounded-lg border border-border p-4",
64030
+ className: "flex min-w-0 flex-col rounded-lg border border-border p-4",
64024
64031
  children: [
64025
64032
  /* @__PURE__ */ jsx("div", { className: "border-b border-border pb-3", children: /* @__PURE__ */ jsxs(
64026
64033
  Pressable,
64027
64034
  {
64028
64035
  href: solution.href,
64029
- className: "group flex flex-col text-left",
64036
+ className: "group flex min-w-0 flex-col text-left",
64030
64037
  children: [
64031
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
64032
- /* @__PURE__ */ jsx("strong", { className: "text-sm font-medium", children: solution.title }),
64038
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1", children: [
64039
+ /* @__PURE__ */ jsx("strong", { className: "min-w-0 break-words text-sm font-medium", children: solution.title }),
64033
64040
  /* @__PURE__ */ jsx(
64034
64041
  DynamicIcon,
64035
64042
  {
@@ -64039,7 +64046,7 @@ var SolutionsMenu = ({
64039
64046
  }
64040
64047
  )
64041
64048
  ] }),
64042
- /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: solution.description })
64049
+ /* @__PURE__ */ jsx("p", { className: "mt-1 break-words text-xs text-muted-foreground", children: solution.description })
64043
64050
  ]
64044
64051
  }
64045
64052
  ) }),
@@ -64047,10 +64054,17 @@ var SolutionsMenu = ({
64047
64054
  NavigationMenuLink,
64048
64055
  {
64049
64056
  href: subpage.href,
64050
- className: "group !flex !w-full items-center gap-2 rounded-lg p-2 text-left hover:bg-muted",
64057
+ className: "group !flex !w-full min-w-0 items-center gap-2 rounded-lg p-2 text-left hover:bg-muted",
64051
64058
  children: [
64052
- /* @__PURE__ */ jsx(DynamicIcon, { name: subpage.icon, size: 14, className: "shrink-0" }),
64053
- /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 text-sm font-medium", children: subpage.title })
64059
+ /* @__PURE__ */ jsx(
64060
+ DynamicIcon,
64061
+ {
64062
+ name: subpage.icon,
64063
+ size: 14,
64064
+ className: "shrink-0"
64065
+ }
64066
+ ),
64067
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 break-words text-sm font-medium", children: subpage.title })
64054
64068
  ]
64055
64069
  },
64056
64070
  subpage.id
@@ -64058,8 +64072,69 @@ var SolutionsMenu = ({
64058
64072
  ]
64059
64073
  },
64060
64074
  solution.id
64061
- )) })
64062
- ] });
64075
+ )) }) : null;
64076
+ if (featuredCard) {
64077
+ return /* @__PURE__ */ jsxs("div", { className: "grid w-[1200px] max-w-[calc(100vw-4rem)] grid-cols-[minmax(380px,1fr)_minmax(360px,0.95fr)] gap-4", children: [
64078
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children: featuredCard }),
64079
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-4", children: [
64080
+ platformSection,
64081
+ solutionSection
64082
+ ] })
64083
+ ] });
64084
+ }
64085
+ return /* @__PURE__ */ jsxs("div", { className: "grid w-[1200px] max-w-[calc(100vw-4rem)] grid-cols-2 gap-4", children: [
64086
+ platformSection,
64087
+ solutionCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "col-span-2 grid grid-cols-4 gap-3", children: solutionCards.map((solution) => /* @__PURE__ */ jsxs(
64088
+ "div",
64089
+ {
64090
+ className: "flex min-w-0 flex-col rounded-lg border border-border p-4",
64091
+ children: [
64092
+ /* @__PURE__ */ jsx("div", { className: "border-b border-border pb-3", children: /* @__PURE__ */ jsxs(
64093
+ Pressable,
64094
+ {
64095
+ href: solution.href,
64096
+ className: "group flex min-w-0 flex-col text-left",
64097
+ children: [
64098
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1", children: [
64099
+ /* @__PURE__ */ jsx("strong", { className: "min-w-0 break-words text-sm font-medium", children: solution.title }),
64100
+ /* @__PURE__ */ jsx(
64101
+ DynamicIcon,
64102
+ {
64103
+ name: "lucide/arrow-right",
64104
+ size: 14,
64105
+ className: "shrink-0 transition-transform group-hover:translate-x-1"
64106
+ }
64107
+ )
64108
+ ] }),
64109
+ /* @__PURE__ */ jsx("p", { className: "mt-1 break-words text-xs text-muted-foreground", children: solution.description })
64110
+ ]
64111
+ }
64112
+ ) }),
64113
+ /* @__PURE__ */ jsx("menu", { className: "mt-3 grid gap-2", children: solution.subpages.map((subpage) => /* @__PURE__ */ jsxs(
64114
+ NavigationMenuLink,
64115
+ {
64116
+ href: subpage.href,
64117
+ className: "group !flex !w-full min-w-0 items-center gap-2 rounded-lg p-2 text-left hover:bg-muted",
64118
+ children: [
64119
+ /* @__PURE__ */ jsx(
64120
+ DynamicIcon,
64121
+ {
64122
+ name: subpage.icon,
64123
+ size: 14,
64124
+ className: "shrink-0"
64125
+ }
64126
+ ),
64127
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 break-words text-sm font-medium", children: subpage.title })
64128
+ ]
64129
+ },
64130
+ subpage.id
64131
+ )) })
64132
+ ]
64133
+ },
64134
+ solution.id
64135
+ )) })
64136
+ ] });
64137
+ };
64063
64138
  var ProductsMenu = ({
64064
64139
  productCategories,
64065
64140
  featuredHeroCard,
@@ -64538,7 +64613,7 @@ var DesktopMenuItem2 = ({
64538
64613
  if (hasDropdown) {
64539
64614
  return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
64540
64615
  /* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal hover:bg-muted focus:bg-muted data-[state=open]:bg-muted/50", children: item.label }),
64541
- /* @__PURE__ */ jsx(NavigationMenuContent, { className: "rounded-xl! border-0! p-4!", children: renderDropdownContent(
64616
+ /* @__PURE__ */ jsx(NavigationMenuContent, { className: "max-h-[calc(100vh-6rem)] overflow-y-auto rounded-xl! border-0! p-4!", children: renderDropdownContent(
64542
64617
  { ...item, layout: effectiveLayout },
64543
64618
  optixFlowConfig
64544
64619
  ) })
@@ -65205,14 +65280,15 @@ var NavbarPlatformResources = ({
65205
65280
  const renderDropdownContent3 = (link) => {
65206
65281
  const layout = link.layout || "simple-list";
65207
65282
  if (layout === "simple-list") {
65208
- 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(
65283
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[400px] max-w-[calc(100vw-2rem)] p-3", children: /* @__PURE__ */ jsx("ul", { className: "w-full space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsx(
65209
65284
  "li",
65210
65285
  {
65286
+ className: "w-full",
65211
65287
  children: /* @__PURE__ */ jsxs(
65212
65288
  NavigationMenuLink,
65213
65289
  {
65214
65290
  href: getLinkUrl(item),
65215
- className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
65291
+ className: "group/link !flex !w-full min-w-0 flex-row items-center gap-2 rounded-md px-3 py-2 transition-colors duration-200",
65216
65292
  children: [
65217
65293
  /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: /* @__PURE__ */ jsx(
65218
65294
  DynamicIcon,
@@ -65222,9 +65298,9 @@ var NavbarPlatformResources = ({
65222
65298
  className: "m-auto group-hover/link:stroke-black"
65223
65299
  }
65224
65300
  ) }),
65225
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
65301
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
65226
65302
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
65227
- item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
65303
+ item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
65228
65304
  ] })
65229
65305
  ]
65230
65306
  }
@@ -65236,12 +65312,12 @@ var NavbarPlatformResources = ({
65236
65312
  if (layout === "featured-grid" && link.links && link.links.length > 0) {
65237
65313
  const featuredItem = link.links[0];
65238
65314
  const gridItems = link.links.slice(1);
65239
- return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[900px] p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-8", children: [
65315
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[900px] max-w-[calc(100vw-2rem)] p-6", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(260px,0.8fr)_minmax(0,1.2fr)] gap-8", children: [
65240
65316
  /* @__PURE__ */ jsx(
65241
65317
  NavigationMenuLink,
65242
65318
  {
65243
65319
  href: getLinkUrl(featuredItem),
65244
- className: "group w-1/3 p-0 hover:bg-transparent",
65320
+ className: "group block h-full min-w-0 p-0 hover:bg-transparent",
65245
65321
  children: /* @__PURE__ */ jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
65246
65322
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
65247
65323
  Img,
@@ -65259,13 +65335,13 @@ var NavbarPlatformResources = ({
65259
65335
  ] })
65260
65336
  }
65261
65337
  ),
65262
- /* @__PURE__ */ jsxs("div", { className: "max-w-[760px] flex-1", children: [
65338
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
65263
65339
  link.dropdownGroups && link.dropdownGroups[0] && /* @__PURE__ */ jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
65264
65340
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
65265
65341
  NavigationMenuLink,
65266
65342
  {
65267
65343
  href: getLinkUrl(item),
65268
- className: "group block p-4",
65344
+ className: "group block h-full w-full min-w-0 rounded-md p-4",
65269
65345
  children: [
65270
65346
  (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: /* @__PURE__ */ jsx(
65271
65347
  DynamicIcon,
@@ -65274,8 +65350,8 @@ var NavbarPlatformResources = ({
65274
65350
  size: 20
65275
65351
  }
65276
65352
  ) }),
65277
- /* @__PURE__ */ jsx("div", { className: "mb-1 text-base", children: item.label }),
65278
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
65353
+ /* @__PURE__ */ jsx("div", { className: "mb-1 break-words text-base", children: item.label }),
65354
+ item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
65279
65355
  ]
65280
65356
  },
65281
65357
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
@@ -65285,14 +65361,14 @@ var NavbarPlatformResources = ({
65285
65361
  }
65286
65362
  if (layout === "two-column-cta" && link.dropdownGroups && link.dropdownGroups.length > 0) {
65287
65363
  const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
65288
- return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[900px] p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-4", children: [
65289
- /* @__PURE__ */ jsx("div", { className: "w-1/2 max-w-[510px]", children: link.dropdownGroups[0] && /* @__PURE__ */ jsxs(Fragment, { children: [
65364
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[900px] max-w-[calc(100vw-2rem)] p-6", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-4", children: [
65365
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children: link.dropdownGroups[0] && /* @__PURE__ */ jsxs(Fragment, { children: [
65290
65366
  /* @__PURE__ */ jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
65291
65367
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
65292
65368
  NavigationMenuLink,
65293
65369
  {
65294
65370
  href: getLinkUrl(item),
65295
- className: "group flex flex-row items-center gap-5",
65371
+ className: "group !flex !w-full min-w-0 flex-row items-center gap-5 rounded-md p-2",
65296
65372
  children: [
65297
65373
  (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: /* @__PURE__ */ jsx(
65298
65374
  DynamicIcon,
@@ -65301,7 +65377,7 @@ var NavbarPlatformResources = ({
65301
65377
  size: 16
65302
65378
  }
65303
65379
  ) }),
65304
- /* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
65380
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
65305
65381
  ]
65306
65382
  },
65307
65383
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
@@ -65311,7 +65387,7 @@ var NavbarPlatformResources = ({
65311
65387
  NavigationMenuLink,
65312
65388
  {
65313
65389
  href: getLinkUrl(ctaItem),
65314
- className: "group flex-1 p-0 hover:bg-transparent",
65390
+ className: "group min-w-0 p-0 hover:bg-transparent",
65315
65391
  children: /* @__PURE__ */ jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
65316
65392
  ctaItem.image && /* @__PURE__ */ jsx("div", { className: "w-2/5 max-w-[310px] shrink-0 overflow-clip rounded-tl-lg rounded-bl-lg", children: /* @__PURE__ */ jsx(
65317
65393
  Img,
@@ -65322,11 +65398,11 @@ var NavbarPlatformResources = ({
65322
65398
  optixFlowConfig
65323
65399
  }
65324
65400
  ) }),
65325
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col p-5 xl:p-8", children: [
65401
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col p-5 xl:p-8", children: [
65326
65402
  ctaItem.background && /* @__PURE__ */ jsx("div", { className: "mb-8 text-xs tracking-widest text-muted-foreground uppercase", children: ctaItem.background }),
65327
65403
  /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
65328
- /* @__PURE__ */ jsx("div", { className: "mb-4 text-xl", children: ctaItem.label }),
65329
- ctaItem.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
65404
+ /* @__PURE__ */ jsx("div", { className: "mb-4 break-words text-xl", children: ctaItem.label }),
65405
+ ctaItem.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
65330
65406
  ] })
65331
65407
  ] })
65332
65408
  ] })
@@ -65337,15 +65413,15 @@ var NavbarPlatformResources = ({
65337
65413
  if (layout === "list-showcase" && link.dropdownGroups && link.dropdownGroups.length > 0) {
65338
65414
  const listItems = link.dropdownGroups[0].links;
65339
65415
  const showcaseItems = link.links || [];
65340
- return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[900px] p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-8", children: [
65341
- /* @__PURE__ */ jsx("div", { className: "w-1/3 max-w-[404px]", children: /* @__PURE__ */ jsxs(Fragment, { children: [
65416
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[900px] max-w-[calc(100vw-2rem)] p-6", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(260px,0.7fr)_minmax(0,1.3fr)] gap-8", children: [
65417
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsxs(Fragment, { children: [
65342
65418
  /* @__PURE__ */ jsx("div", { className: "mb-4 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
65343
65419
  link.dropdownGroups[0].description && /* @__PURE__ */ jsx("div", { className: "mb-6 text-sm font-normal text-muted-foreground", children: link.dropdownGroups[0].description }),
65344
65420
  /* @__PURE__ */ jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
65345
65421
  NavigationMenuLink,
65346
65422
  {
65347
65423
  href: getLinkUrl(item),
65348
- className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
65424
+ className: "group !flex !w-full min-w-0 flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
65349
65425
  children: [
65350
65426
  (item.icon || item.iconName) && /* @__PURE__ */ jsx(
65351
65427
  DynamicIcon,
@@ -65354,21 +65430,21 @@ var NavbarPlatformResources = ({
65354
65430
  size: 16
65355
65431
  }
65356
65432
  ),
65357
- /* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
65433
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
65358
65434
  ]
65359
65435
  },
65360
65436
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
65361
65437
  )) })
65362
65438
  ] }) }),
65363
- /* @__PURE__ */ jsx("div", { className: "max-w-[716px] flex-1 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
65439
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
65364
65440
  NavigationMenuLink,
65365
65441
  {
65366
65442
  href: getLinkUrl(showcase),
65367
- className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
65443
+ className: "!flex !w-full min-w-0 flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
65368
65444
  children: [
65369
- /* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
65370
- /* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: showcase.label }),
65371
- showcase.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: showcase.description })
65445
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
65446
+ /* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: showcase.label }),
65447
+ showcase.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: showcase.description })
65372
65448
  ] }),
65373
65449
  /* @__PURE__ */ jsx("div", { className: "h-[154px] max-w-[264px] shrink-0", children: /* @__PURE__ */ jsx(
65374
65450
  Img,
@@ -65387,7 +65463,7 @@ var NavbarPlatformResources = ({
65387
65463
  }
65388
65464
  if (layout === "multi-section" && link.dropdownGroups) {
65389
65465
  const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
65390
- return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[900px] p-8", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-8", children: [
65466
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[900px] max-w-[calc(100vw-2rem)] p-8", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-8", children: [
65391
65467
  link.dropdownGroups.map((group, groupIndex) => /* @__PURE__ */ jsxs(
65392
65468
  "div",
65393
65469
  {
@@ -65398,10 +65474,10 @@ var NavbarPlatformResources = ({
65398
65474
  NavigationMenuLink,
65399
65475
  {
65400
65476
  href: getLinkUrl(item),
65401
- className: "flex h-full flex-col overflow-clip rounded-lg border border-input bg-background p-5 hover:bg-accent hover:text-accent-foreground xl:p-8",
65477
+ className: "!flex h-full w-full min-w-0 flex-col overflow-clip rounded-lg border border-input bg-background p-5 hover:bg-accent hover:text-accent-foreground xl:p-8",
65402
65478
  children: /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
65403
- /* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: item.label }),
65404
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
65479
+ /* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: item.label }),
65480
+ item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
65405
65481
  ] })
65406
65482
  },
65407
65483
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
@@ -65415,11 +65491,11 @@ var NavbarPlatformResources = ({
65415
65491
  NavigationMenuLink,
65416
65492
  {
65417
65493
  href: getLinkUrl(ctaItem),
65418
- className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
65494
+ className: "mb-6 !flex !w-full min-w-0 flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
65419
65495
  children: [
65420
- /* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
65421
- /* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: ctaItem.label }),
65422
- ctaItem.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
65496
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
65497
+ /* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: ctaItem.label }),
65498
+ ctaItem.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
65423
65499
  ] }),
65424
65500
  ctaItem.image && /* @__PURE__ */ jsx("div", { className: "w-1/3 max-w-[130px] shrink-0", children: /* @__PURE__ */ jsx(
65425
65501
  Img,
@@ -65440,13 +65516,13 @@ var NavbarPlatformResources = ({
65440
65516
  ] })
65441
65517
  ] }) });
65442
65518
  }
65443
- 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(
65519
+ return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "w-[900px] max-w-[calc(100vw-2rem)] 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(
65444
65520
  NavigationMenuLink,
65445
65521
  {
65446
65522
  href: getLinkUrl(item),
65447
- className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
65523
+ className: "!flex !w-full min-w-0 flex-row items-center gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
65448
65524
  children: [
65449
- item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
65525
+ item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
65450
65526
  Img,
65451
65527
  {
65452
65528
  src: item.image,
@@ -65455,10 +65531,10 @@ var NavbarPlatformResources = ({
65455
65531
  optixFlowConfig
65456
65532
  }
65457
65533
  ) }),
65458
- !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: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon || item.iconName, size: 18 }) }),
65459
- /* @__PURE__ */ jsxs("div", { children: [
65460
- /* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
65461
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
65534
+ !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon || item.iconName, size: 18 }) }),
65535
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
65536
+ /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-medium text-foreground", children: item.label }),
65537
+ item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
65462
65538
  ] })
65463
65539
  ]
65464
65540
  },
@@ -66248,13 +66324,14 @@ var MenuSubLink = ({ link }) => {
66248
66324
  href: link.url,
66249
66325
  className: "flex items-center gap-4 rounded-lg p-2 hover:bg-muted",
66250
66326
  children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between", children: [
66251
- /* @__PURE__ */ jsxs("div", { className: "flex gap-2.5", children: [
66327
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
66252
66328
  /* @__PURE__ */ jsx(
66253
66329
  DynamicIcon,
66254
66330
  {
66255
66331
  name: link.icon || link.iconName,
66256
66332
  size: 20,
66257
- color: link.iconColor
66333
+ color: link.iconColor,
66334
+ className: "shrink-0"
66258
66335
  }
66259
66336
  ),
66260
66337
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
@@ -68321,20 +68398,26 @@ var NavbarStickyCompact = ({
68321
68398
  children: renderAuthActions
68322
68399
  }
68323
68400
  ),
68324
- /* @__PURE__ */ jsxs(
68401
+ /* @__PURE__ */ jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ jsxs(
68325
68402
  Pressable,
68326
68403
  {
68327
68404
  variant: "ghost",
68328
68405
  size: isScrolled ? "sm" : "icon",
68329
68406
  asButton: true,
68330
- className: "lg:hidden transition-all duration-300",
68407
+ className: "transition-all duration-300",
68331
68408
  onClick: () => setIsOpen(!isOpen),
68332
68409
  children: [
68333
- /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: isScrolled ? 18 : 20 }),
68410
+ /* @__PURE__ */ jsx(
68411
+ DynamicIcon,
68412
+ {
68413
+ name: "lucide/menu",
68414
+ size: isScrolled ? 18 : 20
68415
+ }
68416
+ ),
68334
68417
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle menu" })
68335
68418
  ]
68336
68419
  }
68337
- )
68420
+ ) })
68338
68421
  ]
68339
68422
  }
68340
68423
  ) }) }) })
@@ -69109,20 +69192,19 @@ var NavbarSplitCta = ({
69109
69192
  children: renderAuthActions
69110
69193
  }
69111
69194
  ),
69112
- /* @__PURE__ */ jsxs(
69195
+ /* @__PURE__ */ jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ jsxs(
69113
69196
  Pressable,
69114
69197
  {
69115
69198
  variant: "ghost",
69116
69199
  size: "icon",
69117
69200
  asButton: true,
69118
- className: "lg:hidden",
69119
69201
  onClick: () => setIsOpen(!isOpen),
69120
69202
  children: [
69121
69203
  /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
69122
69204
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle menu" })
69123
69205
  ]
69124
69206
  }
69125
- ),
69207
+ ) }),
69126
69208
  /* @__PURE__ */ jsx(
69127
69209
  NavbarMobileMenu,
69128
69210
  {
@@ -69615,20 +69697,19 @@ var NavbarTabbedSections = ({
69615
69697
  children: renderAuthActions
69616
69698
  }
69617
69699
  ),
69618
- /* @__PURE__ */ jsxs(
69700
+ /* @__PURE__ */ jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ jsxs(
69619
69701
  Pressable,
69620
69702
  {
69621
69703
  variant: "ghost",
69622
69704
  size: "icon",
69623
69705
  asButton: true,
69624
- className: "lg:hidden",
69625
69706
  onClick: () => setIsOpen(!isOpen),
69626
69707
  children: [
69627
69708
  /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
69628
69709
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle menu" })
69629
69710
  ]
69630
69711
  }
69631
- ),
69712
+ ) }),
69632
69713
  /* @__PURE__ */ jsx(
69633
69714
  NavbarMobileMenu,
69634
69715
  {
@@ -77,6 +77,6 @@ interface SocialLinkIconProps extends Omit<PressableProps, "children">, SocialLi
77
77
  * />
78
78
  * ```
79
79
  */
80
- declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
80
+ declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
81
81
 
82
82
  export { SocialLinkIcon, type SocialLinkIconDynamicIconProps, type SocialLinkIconProps };
@@ -77,6 +77,6 @@ interface SocialLinkIconProps extends Omit<PressableProps, "children">, SocialLi
77
77
  * />
78
78
  * ```
79
79
  */
80
- declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
80
+ declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
81
81
 
82
82
  export { SocialLinkIcon, type SocialLinkIconDynamicIconProps, type SocialLinkIconProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "3.4.8",
3
+ "version": "3.4.9",
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",