@opensite/ui 3.4.6 → 3.4.8

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 (89) hide show
  1. package/dist/navbar-animated-preview.cjs +16 -9
  2. package/dist/navbar-animated-preview.d.cts +3 -1
  3. package/dist/navbar-animated-preview.d.ts +3 -1
  4. package/dist/navbar-animated-preview.js +16 -9
  5. package/dist/navbar-centered-menu.cjs +2 -2
  6. package/dist/navbar-centered-menu.d.cts +4 -2
  7. package/dist/navbar-centered-menu.d.ts +4 -2
  8. package/dist/navbar-centered-menu.js +2 -2
  9. package/dist/navbar-dark-icons.cjs +7 -7
  10. package/dist/navbar-dark-icons.d.cts +5 -3
  11. package/dist/navbar-dark-icons.d.ts +5 -3
  12. package/dist/navbar-dark-icons.js +7 -7
  13. package/dist/navbar-dropdown-menu.cjs +2 -2
  14. package/dist/navbar-dropdown-menu.d.cts +4 -2
  15. package/dist/navbar-dropdown-menu.d.ts +4 -2
  16. package/dist/navbar-dropdown-menu.js +2 -2
  17. package/dist/navbar-education-platform.cjs +4 -4
  18. package/dist/navbar-education-platform.d.cts +5 -3
  19. package/dist/navbar-education-platform.d.ts +5 -3
  20. package/dist/navbar-education-platform.js +4 -4
  21. package/dist/navbar-enterprise-mega.cjs +12 -5
  22. package/dist/navbar-enterprise-mega.d.cts +10 -8
  23. package/dist/navbar-enterprise-mega.d.ts +10 -8
  24. package/dist/navbar-enterprise-mega.js +12 -5
  25. package/dist/navbar-feature-grid.cjs +2 -2
  26. package/dist/navbar-feature-grid.d.cts +3 -1
  27. package/dist/navbar-feature-grid.d.ts +3 -1
  28. package/dist/navbar-feature-grid.js +2 -2
  29. package/dist/navbar-floating-pill.cjs +2 -2
  30. package/dist/navbar-floating-pill.d.cts +3 -1
  31. package/dist/navbar-floating-pill.d.ts +3 -1
  32. package/dist/navbar-floating-pill.js +2 -2
  33. package/dist/navbar-fullscreen-menu.d.cts +3 -1
  34. package/dist/navbar-fullscreen-menu.d.ts +3 -1
  35. package/dist/navbar-icon-links.cjs +17 -3
  36. package/dist/navbar-icon-links.d.cts +4 -2
  37. package/dist/navbar-icon-links.d.ts +4 -2
  38. package/dist/navbar-icon-links.js +17 -3
  39. package/dist/navbar-image-preview.cjs +8 -8
  40. package/dist/navbar-image-preview.d.cts +5 -3
  41. package/dist/navbar-image-preview.d.ts +5 -3
  42. package/dist/navbar-image-preview.js +8 -8
  43. package/dist/navbar-mega-menu.cjs +36 -12
  44. package/dist/navbar-mega-menu.d.cts +4 -2
  45. package/dist/navbar-mega-menu.d.ts +4 -2
  46. package/dist/navbar-mega-menu.js +36 -12
  47. package/dist/navbar-multi-column-groups.cjs +10 -10
  48. package/dist/navbar-multi-column-groups.d.cts +5 -3
  49. package/dist/navbar-multi-column-groups.d.ts +5 -3
  50. package/dist/navbar-multi-column-groups.js +10 -10
  51. package/dist/navbar-platform-resources.cjs +30 -12
  52. package/dist/navbar-platform-resources.d.cts +3 -1
  53. package/dist/navbar-platform-resources.d.ts +3 -1
  54. package/dist/navbar-platform-resources.js +30 -12
  55. package/dist/navbar-search-focused.cjs +7 -7
  56. package/dist/navbar-search-focused.d.cts +5 -3
  57. package/dist/navbar-search-focused.d.ts +5 -3
  58. package/dist/navbar-search-focused.js +7 -7
  59. package/dist/navbar-sidebar-mobile.cjs +4 -4
  60. package/dist/navbar-sidebar-mobile.d.cts +4 -2
  61. package/dist/navbar-sidebar-mobile.d.ts +4 -2
  62. package/dist/navbar-sidebar-mobile.js +4 -4
  63. package/dist/navbar-simple-links.cjs +4 -4
  64. package/dist/navbar-simple-links.d.cts +3 -1
  65. package/dist/navbar-simple-links.d.ts +3 -1
  66. package/dist/navbar-simple-links.js +4 -4
  67. package/dist/navbar-split-cta.cjs +2 -2
  68. package/dist/navbar-split-cta.d.cts +4 -2
  69. package/dist/navbar-split-cta.d.ts +4 -2
  70. package/dist/navbar-split-cta.js +2 -2
  71. package/dist/navbar-sticky-compact.cjs +4 -4
  72. package/dist/navbar-sticky-compact.d.cts +4 -2
  73. package/dist/navbar-sticky-compact.d.ts +4 -2
  74. package/dist/navbar-sticky-compact.js +4 -4
  75. package/dist/navbar-tabbed-sections.cjs +2 -2
  76. package/dist/navbar-tabbed-sections.d.cts +5 -3
  77. package/dist/navbar-tabbed-sections.d.ts +5 -3
  78. package/dist/navbar-tabbed-sections.js +2 -2
  79. package/dist/navbar-transparent-overlay.cjs +6 -6
  80. package/dist/navbar-transparent-overlay.d.cts +5 -3
  81. package/dist/navbar-transparent-overlay.d.ts +5 -3
  82. package/dist/navbar-transparent-overlay.js +6 -6
  83. package/dist/registry.cjs +177 -107
  84. package/dist/registry.js +177 -107
  85. package/dist/social-link-icon.d.cts +1 -1
  86. package/dist/social-link-icon.d.ts +1 -1
  87. package/dist/{types-ldjwVMcl.d.cts → types-hJ2R0GoH.d.ts} +5 -4
  88. package/dist/{types-ldjwVMcl.d.ts → types-mWZcgKth.d.cts} +5 -4
  89. package/package.json +1 -1
@@ -1,9 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
4
- import { L as LogoConfig, I as IMenuLink, N as NavbarLayoutVariant } from './types-ldjwVMcl.js';
5
- export { a as ILinkItem, b as IMenuLinkGroup, M as MegaMenuLayout } from './types-ldjwVMcl.js';
4
+ import { L as LogoConfig, I as IMenuLink, N as NavbarLayoutVariant } from './types-hJ2R0GoH.js';
5
+ export { a as ILinkItem, b as IMenuLinkGroup, M as MegaMenuLayout } from './types-hJ2R0GoH.js';
6
6
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.js';
7
+ import './dynamic-icon.js';
8
+ import '@page-speed/icon';
7
9
  import 'class-variance-authority';
8
10
  import '@page-speed/pressable';
9
11
  import '@opensite/hooks/usePlatformFromUrl';
@@ -835,7 +835,13 @@ var DesktopMenuItem = ({
835
835
  optixFlowConfig
836
836
  }
837
837
  ) }),
838
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 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: 20 }) : null }),
838
+ !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ jsx(
839
+ DynamicIcon,
840
+ {
841
+ name: item.icon || item.iconName,
842
+ size: 20
843
+ }
844
+ ) }),
839
845
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
840
846
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
841
847
  item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
@@ -862,7 +868,13 @@ var DesktopMenuItem = ({
862
868
  optixFlowConfig
863
869
  }
864
870
  ) }),
865
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 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: 20 }) : null }),
871
+ !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ jsx(
872
+ DynamicIcon,
873
+ {
874
+ name: item.icon || item.iconName,
875
+ size: 20
876
+ }
877
+ ) }),
866
878
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
867
879
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
868
880
  item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
@@ -901,7 +913,13 @@ var DesktopMenuItem = ({
901
913
  optixFlowConfig
902
914
  }
903
915
  ) }),
904
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
916
+ !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ jsx(
917
+ DynamicIcon,
918
+ {
919
+ name: item.icon || item.iconName,
920
+ size: 16
921
+ }
922
+ ) }),
905
923
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
906
924
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
907
925
  item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: item.description })
@@ -930,7 +948,13 @@ var DesktopMenuItem = ({
930
948
  optixFlowConfig
931
949
  }
932
950
  ) }),
933
- !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
951
+ !item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ jsx(
952
+ DynamicIcon,
953
+ {
954
+ name: item.icon || item.iconName,
955
+ size: 16
956
+ }
957
+ ) }),
934
958
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
935
959
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
936
960
  item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: item.description })
@@ -988,9 +1012,9 @@ var NavbarMegaMenu = ({
988
1012
  className: actionClassName,
989
1013
  ...pressableProps,
990
1014
  children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
991
- icon,
1015
+ /* @__PURE__ */ jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
992
1016
  label,
993
- iconAfter
1017
+ /* @__PURE__ */ jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
994
1018
  ] })
995
1019
  },
996
1020
  index
@@ -1124,13 +1148,13 @@ var NavbarMegaMenu = ({
1124
1148
  onClick: () => setOpen(false),
1125
1149
  className: "flex items-center gap-2 rounded-md px-4 py-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground",
1126
1150
  children: [
1127
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
1151
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx(
1128
1152
  DynamicIcon,
1129
1153
  {
1130
- name: item.iconName,
1154
+ name: item.icon || item.iconName,
1131
1155
  size: 14
1132
1156
  }
1133
- ) : null),
1157
+ ),
1134
1158
  item.label
1135
1159
  ]
1136
1160
  },
@@ -1151,13 +1175,13 @@ var NavbarMegaMenu = ({
1151
1175
  onClick: () => setOpen(false),
1152
1176
  className: "flex items-center gap-2 rounded-md px-4 py-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground",
1153
1177
  children: [
1154
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
1178
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx(
1155
1179
  DynamicIcon,
1156
1180
  {
1157
- name: item.iconName,
1181
+ name: item.icon || item.iconName,
1158
1182
  size: 14
1159
1183
  }
1160
- ) : null),
1184
+ ),
1161
1185
  item.label
1162
1186
  ]
1163
1187
  },
@@ -839,9 +839,9 @@ var NavbarMultiColumnGroups = ({
839
839
  className: actionClassName,
840
840
  ...pressableProps,
841
841
  children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
842
- icon,
842
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
843
843
  label,
844
- iconAfter
844
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
845
845
  ] })
846
846
  },
847
847
  index
@@ -952,14 +952,14 @@ var DesktopMenuItem = ({ item, index }) => {
952
952
  asChild: true,
953
953
  className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
954
954
  children: /* @__PURE__ */ jsxRuntime.jsxs(pressable.Pressable, { href: link.url, children: [
955
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
955
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
956
956
  DynamicIcon,
957
957
  {
958
- name: link.iconName,
958
+ name: link.icon || link.iconName,
959
959
  size: 16,
960
960
  className: "m-auto group-hover/link:stroke-black"
961
961
  }
962
- ) : null }),
962
+ ) }),
963
963
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
964
964
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: link.label }),
965
965
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: link.description })
@@ -1007,9 +1007,9 @@ var MobileNavigationMenu = ({
1007
1007
  onClick: handleClose,
1008
1008
  ...pressableProps,
1009
1009
  children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1010
- icon,
1010
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
1011
1011
  label,
1012
- iconAfter
1012
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
1013
1013
  ] })
1014
1014
  },
1015
1015
  index
@@ -1045,14 +1045,14 @@ var MobileNavigationMenu = ({
1045
1045
  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",
1046
1046
  onClick: handleClose,
1047
1047
  children: [
1048
- link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
1048
+ /* @__PURE__ */ jsxRuntime.jsx(
1049
1049
  DynamicIcon,
1050
1050
  {
1051
- name: link.iconName,
1051
+ name: link.icon || link.iconName,
1052
1052
  size: 16,
1053
1053
  className: "stroke-muted-foreground"
1054
1054
  }
1055
- ) : null,
1055
+ ),
1056
1056
  link.label
1057
1057
  ]
1058
1058
  },
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { DynamicIconName } from './dynamic-icon.cjs';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
4
- import { L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.cjs';
5
+ import { L as LogoConfig, N as NavbarLayoutVariant } from './types-mWZcgKth.cjs';
5
6
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.cjs';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -11,8 +13,8 @@ interface MenuLink {
11
13
  label: React.ReactNode;
12
14
  description?: React.ReactNode;
13
15
  url: string;
14
- icon?: React.ReactNode;
15
- iconName?: string;
16
+ icon?: DynamicIconName;
17
+ iconName?: DynamicIconName;
16
18
  }
17
19
  interface MenuGroup {
18
20
  title: React.ReactNode;
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { DynamicIconName } from './dynamic-icon.js';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
4
- import { L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.js';
5
+ import { L as LogoConfig, N as NavbarLayoutVariant } from './types-hJ2R0GoH.js';
5
6
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.js';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -11,8 +13,8 @@ interface MenuLink {
11
13
  label: React.ReactNode;
12
14
  description?: React.ReactNode;
13
15
  url: string;
14
- icon?: React.ReactNode;
15
- iconName?: string;
16
+ icon?: DynamicIconName;
17
+ iconName?: DynamicIconName;
16
18
  }
17
19
  interface MenuGroup {
18
20
  title: React.ReactNode;
@@ -816,9 +816,9 @@ var NavbarMultiColumnGroups = ({
816
816
  className: actionClassName,
817
817
  ...pressableProps,
818
818
  children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
819
- icon,
819
+ /* @__PURE__ */ jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
820
820
  label,
821
- iconAfter
821
+ /* @__PURE__ */ jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
822
822
  ] })
823
823
  },
824
824
  index
@@ -929,14 +929,14 @@ var DesktopMenuItem = ({ item, index }) => {
929
929
  asChild: true,
930
930
  className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
931
931
  children: /* @__PURE__ */ jsxs(Pressable, { href: link.url, children: [
932
- /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
932
+ /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: /* @__PURE__ */ jsx(
933
933
  DynamicIcon,
934
934
  {
935
- name: link.iconName,
935
+ name: link.icon || link.iconName,
936
936
  size: 16,
937
937
  className: "m-auto group-hover/link:stroke-black"
938
938
  }
939
- ) : null }),
939
+ ) }),
940
940
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
941
941
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: link.label }),
942
942
  /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: link.description })
@@ -984,9 +984,9 @@ var MobileNavigationMenu = ({
984
984
  onClick: handleClose,
985
985
  ...pressableProps,
986
986
  children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
987
- icon,
987
+ /* @__PURE__ */ jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
988
988
  label,
989
- iconAfter
989
+ /* @__PURE__ */ jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
990
990
  ] })
991
991
  },
992
992
  index
@@ -1022,14 +1022,14 @@ var MobileNavigationMenu = ({
1022
1022
  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",
1023
1023
  onClick: handleClose,
1024
1024
  children: [
1025
- link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
1025
+ /* @__PURE__ */ jsx(
1026
1026
  DynamicIcon,
1027
1027
  {
1028
- name: link.iconName,
1028
+ name: link.icon || link.iconName,
1029
1029
  size: 16,
1030
1030
  className: "stroke-muted-foreground"
1031
1031
  }
1032
- ) : null,
1032
+ ),
1033
1033
  link.label
1034
1034
  ]
1035
1035
  },
@@ -802,14 +802,14 @@ var NavbarPlatformResources = ({
802
802
  href: getLinkUrl(item),
803
803
  className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
804
804
  children: [
805
- /* @__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(
805
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
806
806
  DynamicIcon,
807
807
  {
808
- name: item.iconName,
808
+ name: item.icon || item.iconName,
809
809
  size: 16,
810
810
  className: "m-auto group-hover/link:stroke-black"
811
811
  }
812
- ) : null }),
812
+ ) }),
813
813
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
814
814
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
815
815
  item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
@@ -855,7 +855,13 @@ var NavbarPlatformResources = ({
855
855
  href: getLinkUrl(item),
856
856
  className: "group block p-4",
857
857
  children: [
858
- (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-5 group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
858
+ (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-5 group-hover:opacity-60", children: /* @__PURE__ */ jsxRuntime.jsx(
859
+ DynamicIcon,
860
+ {
861
+ name: item.icon || item.iconName,
862
+ size: 20
863
+ }
864
+ ) }),
859
865
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1 text-base", children: item.label }),
860
866
  item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
861
867
  ]
@@ -876,7 +882,13 @@ var NavbarPlatformResources = ({
876
882
  href: getLinkUrl(item),
877
883
  className: "group flex flex-row items-center gap-5",
878
884
  children: [
879
- (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
885
+ (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "group-hover:opacity-60", children: /* @__PURE__ */ jsxRuntime.jsx(
886
+ DynamicIcon,
887
+ {
888
+ name: item.icon || item.iconName,
889
+ size: 16
890
+ }
891
+ ) }),
880
892
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base", children: item.label })
881
893
  ]
882
894
  },
@@ -923,7 +935,13 @@ var NavbarPlatformResources = ({
923
935
  href: getLinkUrl(item),
924
936
  className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
925
937
  children: [
926
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
938
+ (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx(
939
+ DynamicIcon,
940
+ {
941
+ name: item.icon || item.iconName,
942
+ size: 16
943
+ }
944
+ ),
927
945
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base", children: item.label })
928
946
  ]
929
947
  },
@@ -1025,7 +1043,7 @@ var NavbarPlatformResources = ({
1025
1043
  optixFlowConfig
1026
1044
  }
1027
1045
  ) }),
1028
- !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 }),
1046
+ !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: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon || item.iconName, size: 18 }) }),
1029
1047
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1030
1048
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
1031
1049
  item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
@@ -1047,9 +1065,9 @@ var NavbarPlatformResources = ({
1047
1065
  ...pressableProps
1048
1066
  } = action;
1049
1067
  return /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1050
- icon,
1068
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
1051
1069
  label,
1052
- iconAfter
1070
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
1053
1071
  ] }) }, index);
1054
1072
  });
1055
1073
  }, [actions]);
@@ -1173,13 +1191,13 @@ var NavbarPlatformResources = ({
1173
1191
  href: getLinkUrl(item),
1174
1192
  className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1175
1193
  children: [
1176
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
1194
+ (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx(
1177
1195
  DynamicIcon,
1178
1196
  {
1179
- name: item.iconName,
1197
+ name: item.icon || item.iconName,
1180
1198
  size: 14
1181
1199
  }
1182
- ) : null),
1200
+ ),
1183
1201
  item.label
1184
1202
  ]
1185
1203
  },
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
4
- import { a as ILinkItem, b as IMenuLinkGroup, L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.cjs';
4
+ import { a as ILinkItem, b as IMenuLinkGroup, L as LogoConfig, N as NavbarLayoutVariant } from './types-mWZcgKth.cjs';
5
5
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.cjs';
6
+ import './dynamic-icon.cjs';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
4
- import { a as ILinkItem, b as IMenuLinkGroup, L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.js';
4
+ import { a as ILinkItem, b as IMenuLinkGroup, L as LogoConfig, N as NavbarLayoutVariant } from './types-hJ2R0GoH.js';
5
5
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.js';
6
+ import './dynamic-icon.js';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -779,14 +779,14 @@ var NavbarPlatformResources = ({
779
779
  href: getLinkUrl(item),
780
780
  className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
781
781
  children: [
782
- /* @__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(
782
+ /* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: /* @__PURE__ */ jsx(
783
783
  DynamicIcon,
784
784
  {
785
- name: item.iconName,
785
+ name: item.icon || item.iconName,
786
786
  size: 16,
787
787
  className: "m-auto group-hover/link:stroke-black"
788
788
  }
789
- ) : null }),
789
+ ) }),
790
790
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
791
791
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
792
792
  item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
@@ -832,7 +832,13 @@ var NavbarPlatformResources = ({
832
832
  href: getLinkUrl(item),
833
833
  className: "group block p-4",
834
834
  children: [
835
- (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
835
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: /* @__PURE__ */ jsx(
836
+ DynamicIcon,
837
+ {
838
+ name: item.icon || item.iconName,
839
+ size: 20
840
+ }
841
+ ) }),
836
842
  /* @__PURE__ */ jsx("div", { className: "mb-1 text-base", children: item.label }),
837
843
  item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
838
844
  ]
@@ -853,7 +859,13 @@ var NavbarPlatformResources = ({
853
859
  href: getLinkUrl(item),
854
860
  className: "group flex flex-row items-center gap-5",
855
861
  children: [
856
- (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
862
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: /* @__PURE__ */ jsx(
863
+ DynamicIcon,
864
+ {
865
+ name: item.icon || item.iconName,
866
+ size: 16
867
+ }
868
+ ) }),
857
869
  /* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
858
870
  ]
859
871
  },
@@ -900,7 +912,13 @@ var NavbarPlatformResources = ({
900
912
  href: getLinkUrl(item),
901
913
  className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
902
914
  children: [
903
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
915
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx(
916
+ DynamicIcon,
917
+ {
918
+ name: item.icon || item.iconName,
919
+ size: 16
920
+ }
921
+ ),
904
922
  /* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
905
923
  ]
906
924
  },
@@ -1002,7 +1020,7 @@ var NavbarPlatformResources = ({
1002
1020
  optixFlowConfig
1003
1021
  }
1004
1022
  ) }),
1005
- !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 }),
1023
+ !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 }) }),
1006
1024
  /* @__PURE__ */ jsxs("div", { children: [
1007
1025
  /* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
1008
1026
  item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
@@ -1024,9 +1042,9 @@ var NavbarPlatformResources = ({
1024
1042
  ...pressableProps
1025
1043
  } = action;
1026
1044
  return /* @__PURE__ */ jsx(Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
1027
- icon,
1045
+ /* @__PURE__ */ jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
1028
1046
  label,
1029
- iconAfter
1047
+ /* @__PURE__ */ jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
1030
1048
  ] }) }, index);
1031
1049
  });
1032
1050
  }, [actions]);
@@ -1150,13 +1168,13 @@ var NavbarPlatformResources = ({
1150
1168
  href: getLinkUrl(item),
1151
1169
  className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
1152
1170
  children: [
1153
- (item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
1171
+ (item.icon || item.iconName) && /* @__PURE__ */ jsx(
1154
1172
  DynamicIcon,
1155
1173
  {
1156
- name: item.iconName,
1174
+ name: item.icon || item.iconName,
1157
1175
  size: 14
1158
1176
  }
1159
- ) : null),
1177
+ ),
1160
1178
  item.label
1161
1179
  ]
1162
1180
  },
@@ -714,7 +714,7 @@ var NavbarSearchFocused = ({
714
714
  asChild: true,
715
715
  className: navigationMenuTriggerStyle(),
716
716
  children: /* @__PURE__ */ jsxRuntime.jsxs(pressable.Pressable, { href: item.url, children: [
717
- item.icon ?? (item.iconName && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 })),
717
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon || item.iconName, size: 16 }),
718
718
  item.title
719
719
  ] })
720
720
  }
@@ -741,9 +741,9 @@ var NavbarSearchFocused = ({
741
741
  "aria-label": ariaLabel,
742
742
  ...pressableProps,
743
743
  children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
744
- icon,
744
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
745
745
  label,
746
- iconAfter
746
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
747
747
  ] })
748
748
  },
749
749
  index
@@ -762,7 +762,7 @@ var NavbarSearchFocused = ({
762
762
  className: "flex items-center gap-2 rounded-md py-2 text-sm",
763
763
  onClick: () => setIsOpen(false),
764
764
  children: [
765
- icon,
765
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
766
766
  label
767
767
  ]
768
768
  },
@@ -905,9 +905,9 @@ var MobileNavigationMenu = ({
905
905
  onClick: handleClose,
906
906
  ...pressableProps,
907
907
  children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
908
- icon,
908
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: icon, size: 16, className: "shrink-0" }),
909
909
  label,
910
- iconAfter
910
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: iconAfter, size: 16, className: "shrink-0" })
911
911
  ] })
912
912
  },
913
913
  index
@@ -922,7 +922,7 @@ var MobileNavigationMenu = ({
922
922
  className: "flex h-15 items-center gap-2 rounded-md px-4 text-left text-base leading-[3.75] font-normal text-muted-foreground ring-ring/10 outline-ring/50 transition-all hover:bg-muted focus-visible:ring-4 focus-visible:outline-1",
923
923
  onClick: handleClose,
924
924
  children: [
925
- item.icon ?? (item.iconName && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 })),
925
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon || item.iconName, size: 16 }),
926
926
  item.title
927
927
  ]
928
928
  },
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { DynamicIconName } from './dynamic-icon.cjs';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
4
- import { L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.cjs';
5
+ import { L as LogoConfig, N as NavbarLayoutVariant } from './types-mWZcgKth.cjs';
5
6
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.cjs';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -10,8 +12,8 @@ import '@opensite/hooks/usePlatformFromUrl';
10
12
  interface NavItem {
11
13
  title: React.ReactNode;
12
14
  url: string;
13
- icon?: React.ReactNode;
14
- iconName?: string;
15
+ icon?: DynamicIconName;
16
+ iconName?: DynamicIconName;
15
17
  }
16
18
  /**
17
19
  * Props for the NavbarSearchFocused component
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { DynamicIconName } from './dynamic-icon.js';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
4
- import { L as LogoConfig, N as NavbarLayoutVariant } from './types-ldjwVMcl.js';
5
+ import { L as LogoConfig, N as NavbarLayoutVariant } from './types-hJ2R0GoH.js';
5
6
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DyouPohq.js';
7
+ import '@page-speed/icon';
6
8
  import 'class-variance-authority';
7
9
  import '@page-speed/pressable';
8
10
  import '@opensite/hooks/usePlatformFromUrl';
@@ -10,8 +12,8 @@ import '@opensite/hooks/usePlatformFromUrl';
10
12
  interface NavItem {
11
13
  title: React.ReactNode;
12
14
  url: string;
13
- icon?: React.ReactNode;
14
- iconName?: string;
15
+ icon?: DynamicIconName;
16
+ iconName?: DynamicIconName;
15
17
  }
16
18
  /**
17
19
  * Props for the NavbarSearchFocused component