@opensite/ui 1.0.5 → 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.
Files changed (37) hide show
  1. package/dist/navbar-animated-preview.cjs +32 -42
  2. package/dist/navbar-animated-preview.js +32 -42
  3. package/dist/navbar-centered-menu.cjs +4 -12
  4. package/dist/navbar-centered-menu.js +4 -12
  5. package/dist/navbar-dark-icons.cjs +2 -5
  6. package/dist/navbar-dark-icons.js +2 -5
  7. package/dist/navbar-dropdown-menu.cjs +1 -1
  8. package/dist/navbar-dropdown-menu.js +1 -1
  9. package/dist/navbar-enterprise-mega.cjs +11 -5
  10. package/dist/navbar-enterprise-mega.js +11 -5
  11. package/dist/navbar-feature-grid.cjs +18 -29
  12. package/dist/navbar-feature-grid.js +18 -29
  13. package/dist/navbar-floating-pill.cjs +3 -3
  14. package/dist/navbar-floating-pill.js +3 -3
  15. package/dist/navbar-icon-links.cjs +1 -1
  16. package/dist/navbar-icon-links.js +1 -1
  17. package/dist/navbar-image-preview.cjs +3 -5
  18. package/dist/navbar-image-preview.js +3 -5
  19. package/dist/navbar-mega-menu.cjs +162 -119
  20. package/dist/navbar-mega-menu.js +161 -119
  21. package/dist/navbar-multi-column-groups.cjs +32 -42
  22. package/dist/navbar-multi-column-groups.js +32 -42
  23. package/dist/navbar-platform-resources.cjs +26 -27
  24. package/dist/navbar-platform-resources.js +26 -27
  25. package/dist/navbar-search-focused.cjs +1 -1
  26. package/dist/navbar-search-focused.js +1 -1
  27. package/dist/navbar-sidebar-mobile.cjs +1 -1
  28. package/dist/navbar-sidebar-mobile.js +1 -1
  29. package/dist/navbar-split-cta.cjs +1 -1
  30. package/dist/navbar-split-cta.js +1 -1
  31. package/dist/navbar-sticky-compact.cjs +1 -1
  32. package/dist/navbar-sticky-compact.js +1 -1
  33. package/dist/navbar-tabbed-sections.cjs +1 -1
  34. package/dist/navbar-tabbed-sections.js +1 -1
  35. package/dist/registry.cjs +168 -282
  36. package/dist/registry.js +168 -282
  37. package/package.json +1 -1
@@ -1214,7 +1214,7 @@ var NavbarMobileMenu = ({
1214
1214
  "div",
1215
1215
  {
1216
1216
  className: cn(
1217
- "fixed inset-0 z-[998] flex flex-col bg-background",
1217
+ "fixed inset-0 z-998 flex flex-col bg-background",
1218
1218
  "animate-in slide-in-from-top duration-300",
1219
1219
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1220
1220
  className
@@ -1313,27 +1313,30 @@ var NavbarPlatformResources = ({
1313
1313
  const renderDropdownContent = (link) => {
1314
1314
  const layout = link.layout || "simple-list";
1315
1315
  if (layout === "simple-list") {
1316
- return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
1317
- NavigationMenuLink,
1316
+ return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "w-[400px] p-3", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx(
1317
+ "li",
1318
1318
  {
1319
- href: getLinkUrl(item),
1320
- className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
1321
- children: [
1322
- item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
1323
- img.Img,
1324
- {
1325
- src: item.image,
1326
- alt: typeof item.label === "string" ? item.label : "Menu item",
1327
- className: "h-full w-full object-cover object-center",
1328
- optixFlowConfig
1329
- }
1330
- ) }),
1331
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 18 }) : null }),
1332
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1333
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
1334
- item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
1335
- ] })
1336
- ]
1319
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
1320
+ NavigationMenuLink,
1321
+ {
1322
+ href: getLinkUrl(item),
1323
+ className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
1324
+ children: [
1325
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
1326
+ DynamicIcon,
1327
+ {
1328
+ name: item.iconName,
1329
+ size: 16,
1330
+ className: "m-auto group-hover/link:stroke-black"
1331
+ }
1332
+ ) : null }),
1333
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
1334
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
1335
+ item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
1336
+ ] })
1337
+ ]
1338
+ }
1339
+ )
1337
1340
  },
1338
1341
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
1339
1342
  )) }) });
@@ -1672,7 +1675,6 @@ var NavbarPlatformResources = ({
1672
1675
  open,
1673
1676
  onClose: () => setOpen(false),
1674
1677
  title: "Mobile Navigation",
1675
- contentClassName: "pt-10 pb-20",
1676
1678
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
1677
1679
  /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
1678
1680
  if (hasDropdownItems(link)) {
@@ -1683,7 +1685,7 @@ var NavbarPlatformResources = ({
1683
1685
  className: "border-b-0",
1684
1686
  children: [
1685
1687
  /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
1686
- /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
1688
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
1687
1689
  Pressable,
1688
1690
  {
1689
1691
  href: getLinkUrl(item),
@@ -1722,10 +1724,7 @@ var NavbarPlatformResources = ({
1722
1724
  /* @__PURE__ */ jsxRuntime.jsx(
1723
1725
  "div",
1724
1726
  {
1725
- className: cn(
1726
- "mt-6 flex flex-col gap-4",
1727
- actionsClassName
1728
- ),
1727
+ className: cn("mt-6 flex flex-col gap-4", actionsClassName),
1729
1728
  children: renderActions
1730
1729
  }
1731
1730
  )
@@ -1191,7 +1191,7 @@ var NavbarMobileMenu = ({
1191
1191
  "div",
1192
1192
  {
1193
1193
  className: cn(
1194
- "fixed inset-0 z-[998] flex flex-col bg-background",
1194
+ "fixed inset-0 z-998 flex flex-col bg-background",
1195
1195
  "animate-in slide-in-from-top duration-300",
1196
1196
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1197
1197
  className
@@ -1290,27 +1290,30 @@ var NavbarPlatformResources = ({
1290
1290
  const renderDropdownContent = (link) => {
1291
1291
  const layout = link.layout || "simple-list";
1292
1292
  if (layout === "simple-list") {
1293
- 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(
1294
- NavigationMenuLink,
1293
+ 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(
1294
+ "li",
1295
1295
  {
1296
- href: getLinkUrl(item),
1297
- className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
1298
- children: [
1299
- item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
1300
- Img,
1301
- {
1302
- src: item.image,
1303
- alt: typeof item.label === "string" ? item.label : "Menu item",
1304
- className: "h-full w-full object-cover object-center",
1305
- optixFlowConfig
1306
- }
1307
- ) }),
1308
- !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 }),
1309
- /* @__PURE__ */ jsxs("div", { children: [
1310
- /* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
1311
- item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
1312
- ] })
1313
- ]
1296
+ children: /* @__PURE__ */ jsxs(
1297
+ NavigationMenuLink,
1298
+ {
1299
+ href: getLinkUrl(item),
1300
+ className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
1301
+ children: [
1302
+ /* @__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(
1303
+ DynamicIcon,
1304
+ {
1305
+ name: item.iconName,
1306
+ size: 16,
1307
+ className: "m-auto group-hover/link:stroke-black"
1308
+ }
1309
+ ) : null }),
1310
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
1311
+ /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
1312
+ item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
1313
+ ] })
1314
+ ]
1315
+ }
1316
+ )
1314
1317
  },
1315
1318
  `${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
1316
1319
  )) }) });
@@ -1649,7 +1652,6 @@ var NavbarPlatformResources = ({
1649
1652
  open,
1650
1653
  onClose: () => setOpen(false),
1651
1654
  title: "Mobile Navigation",
1652
- contentClassName: "pt-10 pb-20",
1653
1655
  children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
1654
1656
  /* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
1655
1657
  if (hasDropdownItems(link)) {
@@ -1660,7 +1662,7 @@ var NavbarPlatformResources = ({
1660
1662
  className: "border-b-0",
1661
1663
  children: [
1662
1664
  /* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
1663
- /* @__PURE__ */ jsx(AccordionContent, { className: "max-h-[60dvh] overflow-y-auto space-y-2", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
1665
+ /* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
1664
1666
  Pressable,
1665
1667
  {
1666
1668
  href: getLinkUrl(item),
@@ -1699,10 +1701,7 @@ var NavbarPlatformResources = ({
1699
1701
  /* @__PURE__ */ jsx(
1700
1702
  "div",
1701
1703
  {
1702
- className: cn(
1703
- "mt-6 flex flex-col gap-4",
1704
- actionsClassName
1705
- ),
1704
+ className: cn("mt-6 flex flex-col gap-4", actionsClassName),
1706
1705
  children: renderActions
1707
1706
  }
1708
1707
  )
@@ -1109,7 +1109,7 @@ var NavbarMobileMenu = ({
1109
1109
  "div",
1110
1110
  {
1111
1111
  className: cn(
1112
- "fixed inset-0 z-[998] flex flex-col bg-background",
1112
+ "fixed inset-0 z-998 flex flex-col bg-background",
1113
1113
  "animate-in slide-in-from-top duration-300",
1114
1114
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1115
1115
  className
@@ -1087,7 +1087,7 @@ var NavbarMobileMenu = ({
1087
1087
  "div",
1088
1088
  {
1089
1089
  className: cn(
1090
- "fixed inset-0 z-[998] flex flex-col bg-background",
1090
+ "fixed inset-0 z-998 flex flex-col bg-background",
1091
1091
  "animate-in slide-in-from-top duration-300",
1092
1092
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1093
1093
  className
@@ -1214,7 +1214,7 @@ var NavbarMobileMenu = ({
1214
1214
  "div",
1215
1215
  {
1216
1216
  className: cn(
1217
- "fixed inset-0 z-[998] flex flex-col bg-background",
1217
+ "fixed inset-0 z-998 flex flex-col bg-background",
1218
1218
  "animate-in slide-in-from-top duration-300",
1219
1219
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1220
1220
  className
@@ -1191,7 +1191,7 @@ var NavbarMobileMenu = ({
1191
1191
  "div",
1192
1192
  {
1193
1193
  className: cn(
1194
- "fixed inset-0 z-[998] flex flex-col bg-background",
1194
+ "fixed inset-0 z-998 flex flex-col bg-background",
1195
1195
  "animate-in slide-in-from-top duration-300",
1196
1196
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1197
1197
  className
@@ -1152,7 +1152,7 @@ var NavbarMobileMenu = ({
1152
1152
  "div",
1153
1153
  {
1154
1154
  className: cn(
1155
- "fixed inset-0 z-[998] flex flex-col bg-background",
1155
+ "fixed inset-0 z-998 flex flex-col bg-background",
1156
1156
  "animate-in slide-in-from-top duration-300",
1157
1157
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1158
1158
  className
@@ -1130,7 +1130,7 @@ var NavbarMobileMenu = ({
1130
1130
  "div",
1131
1131
  {
1132
1132
  className: cn(
1133
- "fixed inset-0 z-[998] flex flex-col bg-background",
1133
+ "fixed inset-0 z-998 flex flex-col bg-background",
1134
1134
  "animate-in slide-in-from-top duration-300",
1135
1135
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1136
1136
  className
@@ -1152,7 +1152,7 @@ var NavbarMobileMenu = ({
1152
1152
  "div",
1153
1153
  {
1154
1154
  className: cn(
1155
- "fixed inset-0 z-[998] flex flex-col bg-background",
1155
+ "fixed inset-0 z-998 flex flex-col bg-background",
1156
1156
  "animate-in slide-in-from-top duration-300",
1157
1157
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1158
1158
  className
@@ -1130,7 +1130,7 @@ var NavbarMobileMenu = ({
1130
1130
  "div",
1131
1131
  {
1132
1132
  className: cn(
1133
- "fixed inset-0 z-[998] flex flex-col bg-background",
1133
+ "fixed inset-0 z-998 flex flex-col bg-background",
1134
1134
  "animate-in slide-in-from-top duration-300",
1135
1135
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1136
1136
  className
@@ -1154,7 +1154,7 @@ var NavbarMobileMenu = ({
1154
1154
  "div",
1155
1155
  {
1156
1156
  className: cn(
1157
- "fixed inset-0 z-[998] flex flex-col bg-background",
1157
+ "fixed inset-0 z-998 flex flex-col bg-background",
1158
1158
  "animate-in slide-in-from-top duration-300",
1159
1159
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1160
1160
  className
@@ -1131,7 +1131,7 @@ var NavbarMobileMenu = ({
1131
1131
  "div",
1132
1132
  {
1133
1133
  className: cn(
1134
- "fixed inset-0 z-[998] flex flex-col bg-background",
1134
+ "fixed inset-0 z-998 flex flex-col bg-background",
1135
1135
  "animate-in slide-in-from-top duration-300",
1136
1136
  "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
1137
1137
  className