@opensite/ui 3.4.8 → 3.5.0
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/components.cjs +13 -7
- package/dist/components.js +13 -7
- package/dist/footer-accordion-social.cjs +1 -1
- package/dist/footer-accordion-social.js +1 -1
- package/dist/footer-animated-social.cjs +1 -1
- package/dist/footer-animated-social.js +1 -1
- package/dist/footer-background-card.cjs +1 -1
- package/dist/footer-background-card.js +1 -1
- package/dist/footer-brand-description.cjs +1 -0
- package/dist/footer-brand-description.js +1 -0
- package/dist/footer-brand-links-contact.cjs +1 -1
- package/dist/footer-brand-links-contact.js +1 -1
- package/dist/footer-comprehensive-links.cjs +1 -1
- package/dist/footer-comprehensive-links.js +1 -1
- package/dist/footer-contact-card.cjs +1 -1
- package/dist/footer-contact-card.js +1 -1
- package/dist/footer-cta-banner.cjs +1 -1
- package/dist/footer-cta-banner.js +1 -1
- package/dist/footer-cta-social.cjs +1 -1
- package/dist/footer-cta-social.js +1 -1
- package/dist/footer-info-cards-accordion.cjs +1 -1
- package/dist/footer-info-cards-accordion.js +1 -1
- package/dist/footer-links-grid.cjs +1 -0
- package/dist/footer-links-grid.js +1 -0
- package/dist/footer-nav-social.cjs +1 -0
- package/dist/footer-nav-social.js +1 -0
- package/dist/footer-newsletter-contact.cjs +1 -1
- package/dist/footer-newsletter-contact.js +1 -1
- package/dist/footer-newsletter-grid.cjs +1 -0
- package/dist/footer-newsletter-grid.js +1 -0
- package/dist/footer-newsletter-minimal.cjs +1 -1
- package/dist/footer-newsletter-minimal.js +1 -1
- package/dist/footer-simple-centered.cjs +1 -1
- package/dist/footer-simple-centered.js +1 -1
- package/dist/footer-social-apps.cjs +1 -0
- package/dist/footer-social-apps.js +1 -0
- package/dist/footer-social-newsletter.cjs +1 -0
- package/dist/footer-social-newsletter.js +1 -0
- package/dist/footer-split-image-accordion.cjs +1 -1
- package/dist/footer-split-image-accordion.js +1 -1
- package/dist/hero-stats-social-proof.cjs +35 -5
- package/dist/hero-stats-social-proof.d.cts +1 -1
- package/dist/hero-stats-social-proof.d.ts +1 -1
- package/dist/hero-stats-social-proof.js +19 -4
- package/dist/index.cjs +13 -7
- package/dist/index.js +13 -7
- package/dist/navbar-animated-preview.cjs +1 -0
- package/dist/navbar-animated-preview.d.cts +15 -1
- package/dist/navbar-animated-preview.d.ts +15 -1
- package/dist/navbar-animated-preview.js +1 -0
- package/dist/navbar-centered-menu.cjs +3 -3
- package/dist/navbar-centered-menu.d.cts +15 -1
- package/dist/navbar-centered-menu.d.ts +15 -1
- package/dist/navbar-centered-menu.js +3 -3
- package/dist/navbar-dark-icons.cjs +4 -3
- package/dist/navbar-dark-icons.d.cts +15 -1
- package/dist/navbar-dark-icons.d.ts +15 -1
- package/dist/navbar-dark-icons.js +4 -3
- package/dist/navbar-dropdown-menu.cjs +3 -3
- package/dist/navbar-dropdown-menu.d.cts +15 -1
- package/dist/navbar-dropdown-menu.d.ts +15 -1
- package/dist/navbar-dropdown-menu.js +3 -3
- package/dist/navbar-education-platform.cjs +1 -0
- package/dist/navbar-education-platform.d.cts +15 -1
- package/dist/navbar-education-platform.d.ts +15 -1
- package/dist/navbar-education-platform.js +1 -0
- package/dist/navbar-enterprise-mega.cjs +99 -23
- package/dist/navbar-enterprise-mega.d.cts +15 -1
- package/dist/navbar-enterprise-mega.d.ts +15 -1
- package/dist/navbar-enterprise-mega.js +99 -23
- package/dist/navbar-feature-grid.cjs +1 -1
- package/dist/navbar-feature-grid.d.cts +19 -1
- package/dist/navbar-feature-grid.d.ts +19 -1
- package/dist/navbar-feature-grid.js +1 -1
- package/dist/navbar-floating-pill.cjs +1 -1
- package/dist/navbar-floating-pill.d.cts +15 -1
- package/dist/navbar-floating-pill.d.ts +15 -1
- package/dist/navbar-floating-pill.js +1 -1
- package/dist/navbar-fullscreen-menu.cjs +1 -0
- package/dist/navbar-fullscreen-menu.d.cts +15 -1
- package/dist/navbar-fullscreen-menu.d.ts +15 -1
- package/dist/navbar-fullscreen-menu.js +1 -0
- package/dist/navbar-icon-links.cjs +1 -1
- package/dist/navbar-icon-links.d.cts +15 -1
- package/dist/navbar-icon-links.d.ts +15 -1
- package/dist/navbar-icon-links.js +1 -1
- package/dist/navbar-image-preview.cjs +1 -1
- package/dist/navbar-image-preview.d.cts +15 -1
- package/dist/navbar-image-preview.d.ts +15 -1
- package/dist/navbar-image-preview.js +1 -1
- package/dist/navbar-mega-menu.cjs +1 -1
- package/dist/navbar-mega-menu.d.cts +15 -1
- package/dist/navbar-mega-menu.d.ts +15 -1
- package/dist/navbar-mega-menu.js +1 -1
- package/dist/navbar-multi-column-groups.cjs +1 -0
- package/dist/navbar-multi-column-groups.d.cts +15 -1
- package/dist/navbar-multi-column-groups.d.ts +15 -1
- package/dist/navbar-multi-column-groups.js +1 -0
- package/dist/navbar-platform-resources.cjs +77 -43
- package/dist/navbar-platform-resources.d.cts +16 -2
- package/dist/navbar-platform-resources.d.ts +16 -2
- package/dist/navbar-platform-resources.js +77 -43
- package/dist/navbar-search-focused.cjs +1 -0
- package/dist/navbar-search-focused.d.cts +19 -1
- package/dist/navbar-search-focused.d.ts +19 -1
- package/dist/navbar-search-focused.js +1 -0
- package/dist/navbar-sidebar-mobile.cjs +1 -0
- package/dist/navbar-sidebar-mobile.d.cts +15 -1
- package/dist/navbar-sidebar-mobile.d.ts +15 -1
- package/dist/navbar-sidebar-mobile.js +1 -0
- package/dist/navbar-simple-links.cjs +1 -0
- package/dist/navbar-simple-links.d.cts +19 -1
- package/dist/navbar-simple-links.d.ts +19 -1
- package/dist/navbar-simple-links.js +1 -0
- package/dist/navbar-split-cta.cjs +3 -4
- package/dist/navbar-split-cta.d.cts +15 -1
- package/dist/navbar-split-cta.d.ts +15 -1
- package/dist/navbar-split-cta.js +3 -4
- package/dist/navbar-sticky-compact.cjs +11 -4
- package/dist/navbar-sticky-compact.d.cts +15 -1
- package/dist/navbar-sticky-compact.d.ts +15 -1
- package/dist/navbar-sticky-compact.js +11 -4
- package/dist/navbar-tabbed-sections.cjs +3 -4
- package/dist/navbar-tabbed-sections.d.cts +15 -1
- package/dist/navbar-tabbed-sections.d.ts +15 -1
- package/dist/navbar-tabbed-sections.js +3 -4
- package/dist/navbar-transparent-overlay.cjs +1 -0
- package/dist/navbar-transparent-overlay.d.cts +15 -1
- package/dist/navbar-transparent-overlay.d.ts +15 -1
- package/dist/navbar-transparent-overlay.js +1 -0
- package/dist/registry.cjs +236 -106
- package/dist/registry.js +236 -106
- package/dist/social-link-icon.d.cts +1 -1
- package/dist/social-link-icon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -792,15 +792,49 @@ var NavbarPlatformResources = ({
|
|
|
792
792
|
const hasDropdownItems = (link) => Boolean(link.links?.length || link.dropdownGroups?.length);
|
|
793
793
|
const renderDropdownContent = (link) => {
|
|
794
794
|
const layout = link.layout || "simple-list";
|
|
795
|
+
if (layout === "list-with-icons") {
|
|
796
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] overflow-y-auto p-4 md:!w-[900px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid w-full grid-cols-3 gap-4", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
797
|
+
NavigationMenuLink,
|
|
798
|
+
{
|
|
799
|
+
href: getLinkUrl(item),
|
|
800
|
+
className: "!flex h-full min-h-20 !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",
|
|
801
|
+
children: [
|
|
802
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
803
|
+
img.Img,
|
|
804
|
+
{
|
|
805
|
+
src: item.image,
|
|
806
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
807
|
+
className: "h-full w-full object-cover object-center",
|
|
808
|
+
optixFlowConfig
|
|
809
|
+
}
|
|
810
|
+
) }),
|
|
811
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
|
|
812
|
+
DynamicIcon,
|
|
813
|
+
{
|
|
814
|
+
name: item.icon || item.iconName,
|
|
815
|
+
size: 18,
|
|
816
|
+
className: "shrink-0"
|
|
817
|
+
}
|
|
818
|
+
) }),
|
|
819
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
820
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-medium text-foreground", children: item.label }),
|
|
821
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
822
|
+
] })
|
|
823
|
+
]
|
|
824
|
+
},
|
|
825
|
+
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
826
|
+
)) }) });
|
|
827
|
+
}
|
|
795
828
|
if (layout === "simple-list") {
|
|
796
|
-
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(
|
|
829
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[400px] max-w-[calc(100vw-2rem)] p-3 md:!w-[400px]", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "w-full space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
797
830
|
"li",
|
|
798
831
|
{
|
|
832
|
+
className: "w-full",
|
|
799
833
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
800
834
|
NavigationMenuLink,
|
|
801
835
|
{
|
|
802
836
|
href: getLinkUrl(item),
|
|
803
|
-
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
837
|
+
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",
|
|
804
838
|
children: [
|
|
805
839
|
/* @__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
840
|
DynamicIcon,
|
|
@@ -810,9 +844,9 @@ var NavbarPlatformResources = ({
|
|
|
810
844
|
className: "m-auto group-hover/link:stroke-black"
|
|
811
845
|
}
|
|
812
846
|
) }),
|
|
813
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
847
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
814
848
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
815
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
849
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
816
850
|
] })
|
|
817
851
|
]
|
|
818
852
|
}
|
|
@@ -824,12 +858,12 @@ var NavbarPlatformResources = ({
|
|
|
824
858
|
if (layout === "featured-grid" && link.links && link.links.length > 0) {
|
|
825
859
|
const featuredItem = link.links[0];
|
|
826
860
|
const gridItems = link.links.slice(1);
|
|
827
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
861
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] p-6 md:!w-[900px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[minmax(260px,0.8fr)_minmax(0,1.2fr)] gap-8", children: [
|
|
828
862
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
829
863
|
NavigationMenuLink,
|
|
830
864
|
{
|
|
831
865
|
href: getLinkUrl(featuredItem),
|
|
832
|
-
className: "group w-
|
|
866
|
+
className: "group block h-full min-w-0 p-0 hover:bg-transparent",
|
|
833
867
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
834
868
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
835
869
|
img.Img,
|
|
@@ -847,13 +881,13 @@ var NavbarPlatformResources = ({
|
|
|
847
881
|
] })
|
|
848
882
|
}
|
|
849
883
|
),
|
|
850
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
884
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
851
885
|
link.dropdownGroups && link.dropdownGroups[0] && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
852
886
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
853
887
|
NavigationMenuLink,
|
|
854
888
|
{
|
|
855
889
|
href: getLinkUrl(item),
|
|
856
|
-
className: "group block p-4",
|
|
890
|
+
className: "group block h-full w-full min-w-0 rounded-md p-4",
|
|
857
891
|
children: [
|
|
858
892
|
(item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-5 group-hover:opacity-60", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
859
893
|
DynamicIcon,
|
|
@@ -862,8 +896,8 @@ var NavbarPlatformResources = ({
|
|
|
862
896
|
size: 20
|
|
863
897
|
}
|
|
864
898
|
) }),
|
|
865
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1 text-base", children: item.label }),
|
|
866
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
899
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1 break-words text-base", children: item.label }),
|
|
900
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
867
901
|
]
|
|
868
902
|
},
|
|
869
903
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -873,14 +907,14 @@ var NavbarPlatformResources = ({
|
|
|
873
907
|
}
|
|
874
908
|
if (layout === "two-column-cta" && link.dropdownGroups && link.dropdownGroups.length > 0) {
|
|
875
909
|
const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
|
|
876
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
877
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
910
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] p-6 md:!w-[900px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-4", children: [
|
|
911
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: link.dropdownGroups[0] && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
878
912
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
879
913
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
880
914
|
NavigationMenuLink,
|
|
881
915
|
{
|
|
882
916
|
href: getLinkUrl(item),
|
|
883
|
-
className: "group flex flex-row items-center gap-5",
|
|
917
|
+
className: "group !flex !w-full min-w-0 flex-row items-center gap-5 rounded-md p-2",
|
|
884
918
|
children: [
|
|
885
919
|
(item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "group-hover:opacity-60", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
886
920
|
DynamicIcon,
|
|
@@ -889,7 +923,7 @@ var NavbarPlatformResources = ({
|
|
|
889
923
|
size: 16
|
|
890
924
|
}
|
|
891
925
|
) }),
|
|
892
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base", children: item.label })
|
|
926
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
|
|
893
927
|
]
|
|
894
928
|
},
|
|
895
929
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -899,7 +933,7 @@ var NavbarPlatformResources = ({
|
|
|
899
933
|
NavigationMenuLink,
|
|
900
934
|
{
|
|
901
935
|
href: getLinkUrl(ctaItem),
|
|
902
|
-
className: "group
|
|
936
|
+
className: "group min-w-0 p-0 hover:bg-transparent",
|
|
903
937
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
904
938
|
ctaItem.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2/5 max-w-[310px] shrink-0 overflow-clip rounded-tl-lg rounded-bl-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
905
939
|
img.Img,
|
|
@@ -910,11 +944,11 @@ var NavbarPlatformResources = ({
|
|
|
910
944
|
optixFlowConfig
|
|
911
945
|
}
|
|
912
946
|
) }),
|
|
913
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col p-5 xl:p-8", children: [
|
|
947
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col p-5 xl:p-8", children: [
|
|
914
948
|
ctaItem.background && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-8 text-xs tracking-widest text-muted-foreground uppercase", children: ctaItem.background }),
|
|
915
949
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-auto", children: [
|
|
916
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 text-xl", children: ctaItem.label }),
|
|
917
|
-
ctaItem.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
950
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 break-words text-xl", children: ctaItem.label }),
|
|
951
|
+
ctaItem.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
918
952
|
] })
|
|
919
953
|
] })
|
|
920
954
|
] })
|
|
@@ -925,15 +959,15 @@ var NavbarPlatformResources = ({
|
|
|
925
959
|
if (layout === "list-showcase" && link.dropdownGroups && link.dropdownGroups.length > 0) {
|
|
926
960
|
const listItems = link.dropdownGroups[0].links;
|
|
927
961
|
const showcaseItems = link.links || [];
|
|
928
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
929
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
962
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] p-6 md:!w-[900px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[minmax(260px,0.7fr)_minmax(0,1.3fr)] gap-8", children: [
|
|
963
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
930
964
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
931
965
|
link.dropdownGroups[0].description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6 text-sm font-normal text-muted-foreground", children: link.dropdownGroups[0].description }),
|
|
932
966
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
933
967
|
NavigationMenuLink,
|
|
934
968
|
{
|
|
935
969
|
href: getLinkUrl(item),
|
|
936
|
-
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
970
|
+
className: "group !flex !w-full min-w-0 flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
937
971
|
children: [
|
|
938
972
|
(item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
939
973
|
DynamicIcon,
|
|
@@ -942,21 +976,21 @@ var NavbarPlatformResources = ({
|
|
|
942
976
|
size: 16
|
|
943
977
|
}
|
|
944
978
|
),
|
|
945
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base", children: item.label })
|
|
979
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
|
|
946
980
|
]
|
|
947
981
|
},
|
|
948
982
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
949
983
|
)) })
|
|
950
984
|
] }) }),
|
|
951
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
985
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
952
986
|
NavigationMenuLink,
|
|
953
987
|
{
|
|
954
988
|
href: getLinkUrl(showcase),
|
|
955
|
-
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
989
|
+
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",
|
|
956
990
|
children: [
|
|
957
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
958
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-base", children: showcase.label }),
|
|
959
|
-
showcase.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: showcase.description })
|
|
991
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
|
|
992
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 break-words text-base", children: showcase.label }),
|
|
993
|
+
showcase.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: showcase.description })
|
|
960
994
|
] }),
|
|
961
995
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-[154px] max-w-[264px] shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
962
996
|
img.Img,
|
|
@@ -975,7 +1009,7 @@ var NavbarPlatformResources = ({
|
|
|
975
1009
|
}
|
|
976
1010
|
if (layout === "multi-section" && link.dropdownGroups) {
|
|
977
1011
|
const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
|
|
978
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
1012
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] p-8 md:!w-[900px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-8", children: [
|
|
979
1013
|
link.dropdownGroups.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
980
1014
|
"div",
|
|
981
1015
|
{
|
|
@@ -986,10 +1020,10 @@ var NavbarPlatformResources = ({
|
|
|
986
1020
|
NavigationMenuLink,
|
|
987
1021
|
{
|
|
988
1022
|
href: getLinkUrl(item),
|
|
989
|
-
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",
|
|
1023
|
+
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",
|
|
990
1024
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-auto", children: [
|
|
991
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
992
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1025
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 break-words text-base", children: item.label }),
|
|
1026
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
993
1027
|
] })
|
|
994
1028
|
},
|
|
995
1029
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -1003,11 +1037,11 @@ var NavbarPlatformResources = ({
|
|
|
1003
1037
|
NavigationMenuLink,
|
|
1004
1038
|
{
|
|
1005
1039
|
href: getLinkUrl(ctaItem),
|
|
1006
|
-
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1040
|
+
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",
|
|
1007
1041
|
children: [
|
|
1008
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
1009
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-base", children: ctaItem.label }),
|
|
1010
|
-
ctaItem.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
1042
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
|
|
1043
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 break-words text-base", children: ctaItem.label }),
|
|
1044
|
+
ctaItem.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
1011
1045
|
] }),
|
|
1012
1046
|
ctaItem.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-1/3 max-w-[130px] shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1013
1047
|
img.Img,
|
|
@@ -1028,13 +1062,13 @@ var NavbarPlatformResources = ({
|
|
|
1028
1062
|
] })
|
|
1029
1063
|
] }) });
|
|
1030
1064
|
}
|
|
1031
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
1065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "md:left-1/2 md:-translate-x-1/2 !w-[900px] max-w-[calc(100vw-2rem)] p-4 md:!w-[900px]", 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(
|
|
1032
1066
|
NavigationMenuLink,
|
|
1033
1067
|
{
|
|
1034
1068
|
href: getLinkUrl(item),
|
|
1035
|
-
className: "flex flex-row items-
|
|
1069
|
+
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",
|
|
1036
1070
|
children: [
|
|
1037
|
-
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1038
1072
|
img.Img,
|
|
1039
1073
|
{
|
|
1040
1074
|
src: item.image,
|
|
@@ -1043,10 +1077,10 @@ var NavbarPlatformResources = ({
|
|
|
1043
1077
|
optixFlowConfig
|
|
1044
1078
|
}
|
|
1045
1079
|
) }),
|
|
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 }) }),
|
|
1047
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1048
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
|
|
1049
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1080
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon || item.iconName, size: 18 }) }),
|
|
1081
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
1082
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-medium text-foreground", children: item.label }),
|
|
1083
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
1050
1084
|
] })
|
|
1051
1085
|
]
|
|
1052
1086
|
},
|
|
@@ -1083,7 +1117,7 @@ var NavbarPlatformResources = ({
|
|
|
1083
1117
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1084
1118
|
Section,
|
|
1085
1119
|
{
|
|
1086
|
-
id:
|
|
1120
|
+
id: "navbar-platform-resources",
|
|
1087
1121
|
background,
|
|
1088
1122
|
spacing: spacingOverride ?? spacing,
|
|
1089
1123
|
className: sectionClasses,
|
|
@@ -53,7 +53,7 @@ import '@opensite/hooks/usePlatformFromUrl';
|
|
|
53
53
|
* ctaCard (optional) for promotional content
|
|
54
54
|
* - Example use case: "Resources" menu with sections for Blog, News, Case Studies, Customers
|
|
55
55
|
*/
|
|
56
|
-
type DropdownLayout = "simple-list" | "featured-grid" | "two-column-cta" | "list-showcase" | "multi-section";
|
|
56
|
+
type DropdownLayout = "simple-list" | "list-with-icons" | "featured-grid" | "two-column-cta" | "list-showcase" | "multi-section";
|
|
57
57
|
/**
|
|
58
58
|
* Menu link configuration with layout-based dropdown options
|
|
59
59
|
*/
|
|
@@ -68,6 +68,20 @@ interface IMenuLink {
|
|
|
68
68
|
* Props for the NavbarPlatformResources component
|
|
69
69
|
*/
|
|
70
70
|
interface NavbarPlatformResourcesProps {
|
|
71
|
+
/**
|
|
72
|
+
* Logo configuration
|
|
73
|
+
*/
|
|
74
|
+
logo?: LogoConfig;
|
|
75
|
+
/**
|
|
76
|
+
* Navigation menu links with optional dropdown groups
|
|
77
|
+
*/
|
|
78
|
+
menuLinks?: IMenuLink[];
|
|
79
|
+
/**
|
|
80
|
+
* Actions rendered on the right side (desktop) and bottom (mobile)
|
|
81
|
+
*/
|
|
82
|
+
actions?: ActionConfig[];
|
|
83
|
+
}
|
|
84
|
+
interface NavbarPlatformResourcesRuntimeProps {
|
|
71
85
|
/**
|
|
72
86
|
* Additional CSS classes for the section
|
|
73
87
|
*/
|
|
@@ -146,6 +160,6 @@ interface NavbarPlatformResourcesProps {
|
|
|
146
160
|
* display icons or images. Mobile view uses a full-screen overlay with accordion navigation.
|
|
147
161
|
* Ideal for platforms that need configurable navigation and supporting resources.
|
|
148
162
|
*/
|
|
149
|
-
declare const NavbarPlatformResources: ({ sectionId, className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
163
|
+
declare const NavbarPlatformResources: ({ sectionId, className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarPlatformResourcesRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
150
164
|
|
|
151
165
|
export { type DropdownLayout, ILinkItem, type IMenuLink, IMenuLinkGroup, LogoConfig, NavbarPlatformResources, type NavbarPlatformResourcesProps };
|
|
@@ -53,7 +53,7 @@ import '@opensite/hooks/usePlatformFromUrl';
|
|
|
53
53
|
* ctaCard (optional) for promotional content
|
|
54
54
|
* - Example use case: "Resources" menu with sections for Blog, News, Case Studies, Customers
|
|
55
55
|
*/
|
|
56
|
-
type DropdownLayout = "simple-list" | "featured-grid" | "two-column-cta" | "list-showcase" | "multi-section";
|
|
56
|
+
type DropdownLayout = "simple-list" | "list-with-icons" | "featured-grid" | "two-column-cta" | "list-showcase" | "multi-section";
|
|
57
57
|
/**
|
|
58
58
|
* Menu link configuration with layout-based dropdown options
|
|
59
59
|
*/
|
|
@@ -68,6 +68,20 @@ interface IMenuLink {
|
|
|
68
68
|
* Props for the NavbarPlatformResources component
|
|
69
69
|
*/
|
|
70
70
|
interface NavbarPlatformResourcesProps {
|
|
71
|
+
/**
|
|
72
|
+
* Logo configuration
|
|
73
|
+
*/
|
|
74
|
+
logo?: LogoConfig;
|
|
75
|
+
/**
|
|
76
|
+
* Navigation menu links with optional dropdown groups
|
|
77
|
+
*/
|
|
78
|
+
menuLinks?: IMenuLink[];
|
|
79
|
+
/**
|
|
80
|
+
* Actions rendered on the right side (desktop) and bottom (mobile)
|
|
81
|
+
*/
|
|
82
|
+
actions?: ActionConfig[];
|
|
83
|
+
}
|
|
84
|
+
interface NavbarPlatformResourcesRuntimeProps {
|
|
71
85
|
/**
|
|
72
86
|
* Additional CSS classes for the section
|
|
73
87
|
*/
|
|
@@ -146,6 +160,6 @@ interface NavbarPlatformResourcesProps {
|
|
|
146
160
|
* display icons or images. Mobile view uses a full-screen overlay with accordion navigation.
|
|
147
161
|
* Ideal for platforms that need configurable navigation and supporting resources.
|
|
148
162
|
*/
|
|
149
|
-
declare const NavbarPlatformResources: ({ sectionId, className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
163
|
+
declare const NavbarPlatformResources: ({ sectionId, className, containerClassName, navigationMenuClassName, navigationMenuListClassName, actionsClassName, logoClassName, mobileMenuClassName, logo, logoSlot, menuLinks, actions, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarPlatformResourcesRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
150
164
|
|
|
151
165
|
export { type DropdownLayout, ILinkItem, type IMenuLink, IMenuLinkGroup, LogoConfig, NavbarPlatformResources, type NavbarPlatformResourcesProps };
|