@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
|
@@ -769,15 +769,49 @@ var NavbarPlatformResources = ({
|
|
|
769
769
|
const hasDropdownItems = (link) => Boolean(link.links?.length || link.dropdownGroups?.length);
|
|
770
770
|
const renderDropdownContent = (link) => {
|
|
771
771
|
const layout = link.layout || "simple-list";
|
|
772
|
+
if (layout === "list-with-icons") {
|
|
773
|
+
return /* @__PURE__ */ 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__ */ jsx("div", { className: "grid w-full grid-cols-3 gap-4", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
774
|
+
NavigationMenuLink,
|
|
775
|
+
{
|
|
776
|
+
href: getLinkUrl(item),
|
|
777
|
+
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",
|
|
778
|
+
children: [
|
|
779
|
+
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
780
|
+
Img,
|
|
781
|
+
{
|
|
782
|
+
src: item.image,
|
|
783
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
784
|
+
className: "h-full w-full object-cover object-center",
|
|
785
|
+
optixFlowConfig
|
|
786
|
+
}
|
|
787
|
+
) }),
|
|
788
|
+
!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(
|
|
789
|
+
DynamicIcon,
|
|
790
|
+
{
|
|
791
|
+
name: item.icon || item.iconName,
|
|
792
|
+
size: 18,
|
|
793
|
+
className: "shrink-0"
|
|
794
|
+
}
|
|
795
|
+
) }),
|
|
796
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
797
|
+
/* @__PURE__ */ jsx("div", { className: "break-words text-sm font-medium text-foreground", children: item.label }),
|
|
798
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
799
|
+
] })
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
803
|
+
)) }) });
|
|
804
|
+
}
|
|
772
805
|
if (layout === "simple-list") {
|
|
773
|
-
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(
|
|
806
|
+
return /* @__PURE__ */ 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__ */ jsx("ul", { className: "w-full space-y-1", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsx(
|
|
774
807
|
"li",
|
|
775
808
|
{
|
|
809
|
+
className: "w-full",
|
|
776
810
|
children: /* @__PURE__ */ jsxs(
|
|
777
811
|
NavigationMenuLink,
|
|
778
812
|
{
|
|
779
813
|
href: getLinkUrl(item),
|
|
780
|
-
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
814
|
+
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",
|
|
781
815
|
children: [
|
|
782
816
|
/* @__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
817
|
DynamicIcon,
|
|
@@ -787,9 +821,9 @@ var NavbarPlatformResources = ({
|
|
|
787
821
|
className: "m-auto group-hover/link:stroke-black"
|
|
788
822
|
}
|
|
789
823
|
) }),
|
|
790
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
824
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
791
825
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
792
|
-
item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
826
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
793
827
|
] })
|
|
794
828
|
]
|
|
795
829
|
}
|
|
@@ -801,12 +835,12 @@ var NavbarPlatformResources = ({
|
|
|
801
835
|
if (layout === "featured-grid" && link.links && link.links.length > 0) {
|
|
802
836
|
const featuredItem = link.links[0];
|
|
803
837
|
const gridItems = link.links.slice(1);
|
|
804
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
838
|
+
return /* @__PURE__ */ 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__ */ jsxs("div", { className: "grid grid-cols-[minmax(260px,0.8fr)_minmax(0,1.2fr)] gap-8", children: [
|
|
805
839
|
/* @__PURE__ */ jsx(
|
|
806
840
|
NavigationMenuLink,
|
|
807
841
|
{
|
|
808
842
|
href: getLinkUrl(featuredItem),
|
|
809
|
-
className: "group w-
|
|
843
|
+
className: "group block h-full min-w-0 p-0 hover:bg-transparent",
|
|
810
844
|
children: /* @__PURE__ */ jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
811
845
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
812
846
|
Img,
|
|
@@ -824,13 +858,13 @@ var NavbarPlatformResources = ({
|
|
|
824
858
|
] })
|
|
825
859
|
}
|
|
826
860
|
),
|
|
827
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
861
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
828
862
|
link.dropdownGroups && link.dropdownGroups[0] && /* @__PURE__ */ jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
829
863
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
830
864
|
NavigationMenuLink,
|
|
831
865
|
{
|
|
832
866
|
href: getLinkUrl(item),
|
|
833
|
-
className: "group block p-4",
|
|
867
|
+
className: "group block h-full w-full min-w-0 rounded-md p-4",
|
|
834
868
|
children: [
|
|
835
869
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: /* @__PURE__ */ jsx(
|
|
836
870
|
DynamicIcon,
|
|
@@ -839,8 +873,8 @@ var NavbarPlatformResources = ({
|
|
|
839
873
|
size: 20
|
|
840
874
|
}
|
|
841
875
|
) }),
|
|
842
|
-
/* @__PURE__ */ jsx("div", { className: "mb-1 text-base", children: item.label }),
|
|
843
|
-
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
876
|
+
/* @__PURE__ */ jsx("div", { className: "mb-1 break-words text-base", children: item.label }),
|
|
877
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
844
878
|
]
|
|
845
879
|
},
|
|
846
880
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -850,14 +884,14 @@ var NavbarPlatformResources = ({
|
|
|
850
884
|
}
|
|
851
885
|
if (layout === "two-column-cta" && link.dropdownGroups && link.dropdownGroups.length > 0) {
|
|
852
886
|
const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
|
|
853
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
854
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
887
|
+
return /* @__PURE__ */ 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__ */ jsxs("div", { className: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-4", children: [
|
|
888
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0", children: link.dropdownGroups[0] && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
855
889
|
/* @__PURE__ */ jsx("div", { className: "mb-6 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
856
890
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
857
891
|
NavigationMenuLink,
|
|
858
892
|
{
|
|
859
893
|
href: getLinkUrl(item),
|
|
860
|
-
className: "group flex flex-row items-center gap-5",
|
|
894
|
+
className: "group !flex !w-full min-w-0 flex-row items-center gap-5 rounded-md p-2",
|
|
861
895
|
children: [
|
|
862
896
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: /* @__PURE__ */ jsx(
|
|
863
897
|
DynamicIcon,
|
|
@@ -866,7 +900,7 @@ var NavbarPlatformResources = ({
|
|
|
866
900
|
size: 16
|
|
867
901
|
}
|
|
868
902
|
) }),
|
|
869
|
-
/* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
|
|
903
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
|
|
870
904
|
]
|
|
871
905
|
},
|
|
872
906
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -876,7 +910,7 @@ var NavbarPlatformResources = ({
|
|
|
876
910
|
NavigationMenuLink,
|
|
877
911
|
{
|
|
878
912
|
href: getLinkUrl(ctaItem),
|
|
879
|
-
className: "group
|
|
913
|
+
className: "group min-w-0 p-0 hover:bg-transparent",
|
|
880
914
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
881
915
|
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(
|
|
882
916
|
Img,
|
|
@@ -887,11 +921,11 @@ var NavbarPlatformResources = ({
|
|
|
887
921
|
optixFlowConfig
|
|
888
922
|
}
|
|
889
923
|
) }),
|
|
890
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col p-5 xl:p-8", children: [
|
|
924
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col p-5 xl:p-8", children: [
|
|
891
925
|
ctaItem.background && /* @__PURE__ */ jsx("div", { className: "mb-8 text-xs tracking-widest text-muted-foreground uppercase", children: ctaItem.background }),
|
|
892
926
|
/* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
|
|
893
|
-
/* @__PURE__ */ jsx("div", { className: "mb-4 text-xl", children: ctaItem.label }),
|
|
894
|
-
ctaItem.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
927
|
+
/* @__PURE__ */ jsx("div", { className: "mb-4 break-words text-xl", children: ctaItem.label }),
|
|
928
|
+
ctaItem.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
895
929
|
] })
|
|
896
930
|
] })
|
|
897
931
|
] })
|
|
@@ -902,15 +936,15 @@ var NavbarPlatformResources = ({
|
|
|
902
936
|
if (layout === "list-showcase" && link.dropdownGroups && link.dropdownGroups.length > 0) {
|
|
903
937
|
const listItems = link.dropdownGroups[0].links;
|
|
904
938
|
const showcaseItems = link.links || [];
|
|
905
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
906
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
939
|
+
return /* @__PURE__ */ 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__ */ jsxs("div", { className: "grid grid-cols-[minmax(260px,0.7fr)_minmax(0,1.3fr)] gap-8", children: [
|
|
940
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
907
941
|
/* @__PURE__ */ jsx("div", { className: "mb-4 text-xs tracking-widest text-muted-foreground uppercase", children: link.dropdownGroups[0].label }),
|
|
908
942
|
link.dropdownGroups[0].description && /* @__PURE__ */ jsx("div", { className: "mb-6 text-sm font-normal text-muted-foreground", children: link.dropdownGroups[0].description }),
|
|
909
943
|
/* @__PURE__ */ jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
910
944
|
NavigationMenuLink,
|
|
911
945
|
{
|
|
912
946
|
href: getLinkUrl(item),
|
|
913
|
-
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
947
|
+
className: "group !flex !w-full min-w-0 flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
914
948
|
children: [
|
|
915
949
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx(
|
|
916
950
|
DynamicIcon,
|
|
@@ -919,21 +953,21 @@ var NavbarPlatformResources = ({
|
|
|
919
953
|
size: 16
|
|
920
954
|
}
|
|
921
955
|
),
|
|
922
|
-
/* @__PURE__ */ jsx("div", { className: "text-base", children: item.label })
|
|
956
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0 break-words text-base", children: item.label })
|
|
923
957
|
]
|
|
924
958
|
},
|
|
925
959
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
926
960
|
)) })
|
|
927
961
|
] }) }),
|
|
928
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
962
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
|
|
929
963
|
NavigationMenuLink,
|
|
930
964
|
{
|
|
931
965
|
href: getLinkUrl(showcase),
|
|
932
|
-
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
966
|
+
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",
|
|
933
967
|
children: [
|
|
934
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
935
|
-
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: showcase.label }),
|
|
936
|
-
showcase.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: showcase.description })
|
|
968
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
|
|
969
|
+
/* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: showcase.label }),
|
|
970
|
+
showcase.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: showcase.description })
|
|
937
971
|
] }),
|
|
938
972
|
/* @__PURE__ */ jsx("div", { className: "h-[154px] max-w-[264px] shrink-0", children: /* @__PURE__ */ jsx(
|
|
939
973
|
Img,
|
|
@@ -952,7 +986,7 @@ var NavbarPlatformResources = ({
|
|
|
952
986
|
}
|
|
953
987
|
if (layout === "multi-section" && link.dropdownGroups) {
|
|
954
988
|
const ctaItem = link.links && link.links.length > 0 ? link.links[link.links.length - 1] : null;
|
|
955
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
989
|
+
return /* @__PURE__ */ 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__ */ jsxs("div", { className: "grid grid-cols-2 gap-8", children: [
|
|
956
990
|
link.dropdownGroups.map((group, groupIndex) => /* @__PURE__ */ jsxs(
|
|
957
991
|
"div",
|
|
958
992
|
{
|
|
@@ -963,10 +997,10 @@ var NavbarPlatformResources = ({
|
|
|
963
997
|
NavigationMenuLink,
|
|
964
998
|
{
|
|
965
999
|
href: getLinkUrl(item),
|
|
966
|
-
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",
|
|
1000
|
+
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",
|
|
967
1001
|
children: /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
|
|
968
|
-
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
969
|
-
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1002
|
+
/* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: item.label }),
|
|
1003
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
970
1004
|
] })
|
|
971
1005
|
},
|
|
972
1006
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
@@ -980,11 +1014,11 @@ var NavbarPlatformResources = ({
|
|
|
980
1014
|
NavigationMenuLink,
|
|
981
1015
|
{
|
|
982
1016
|
href: getLinkUrl(ctaItem),
|
|
983
|
-
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
1017
|
+
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",
|
|
984
1018
|
children: [
|
|
985
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
986
|
-
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: ctaItem.label }),
|
|
987
|
-
ctaItem.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
1019
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 p-5 xl:p-8", children: [
|
|
1020
|
+
/* @__PURE__ */ jsx("div", { className: "mb-2 break-words text-base", children: ctaItem.label }),
|
|
1021
|
+
ctaItem.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: ctaItem.description })
|
|
988
1022
|
] }),
|
|
989
1023
|
ctaItem.image && /* @__PURE__ */ jsx("div", { className: "w-1/3 max-w-[130px] shrink-0", children: /* @__PURE__ */ jsx(
|
|
990
1024
|
Img,
|
|
@@ -1005,13 +1039,13 @@ var NavbarPlatformResources = ({
|
|
|
1005
1039
|
] })
|
|
1006
1040
|
] }) });
|
|
1007
1041
|
}
|
|
1008
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
1042
|
+
return /* @__PURE__ */ 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__ */ 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(
|
|
1009
1043
|
NavigationMenuLink,
|
|
1010
1044
|
{
|
|
1011
1045
|
href: getLinkUrl(item),
|
|
1012
|
-
className: "flex flex-row items-
|
|
1046
|
+
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",
|
|
1013
1047
|
children: [
|
|
1014
|
-
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
1048
|
+
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
1015
1049
|
Img,
|
|
1016
1050
|
{
|
|
1017
1051
|
src: item.image,
|
|
@@ -1020,10 +1054,10 @@ var NavbarPlatformResources = ({
|
|
|
1020
1054
|
optixFlowConfig
|
|
1021
1055
|
}
|
|
1022
1056
|
) }),
|
|
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 }) }),
|
|
1024
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
1025
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-foreground", children: item.label }),
|
|
1026
|
-
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1057
|
+
!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 }) }),
|
|
1058
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
1059
|
+
/* @__PURE__ */ jsx("div", { className: "break-words text-sm font-medium text-foreground", children: item.label }),
|
|
1060
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "break-words text-sm font-normal text-muted-foreground", children: item.description })
|
|
1027
1061
|
] })
|
|
1028
1062
|
]
|
|
1029
1063
|
},
|
|
@@ -1060,7 +1094,7 @@ var NavbarPlatformResources = ({
|
|
|
1060
1094
|
return /* @__PURE__ */ jsx(
|
|
1061
1095
|
Section,
|
|
1062
1096
|
{
|
|
1063
|
-
id:
|
|
1097
|
+
id: "navbar-platform-resources",
|
|
1064
1098
|
background,
|
|
1065
1099
|
spacing: spacingOverride ?? spacing,
|
|
1066
1100
|
className: sectionClasses,
|
|
@@ -19,6 +19,24 @@ interface NavItem {
|
|
|
19
19
|
* Props for the NavbarSearchFocused component
|
|
20
20
|
*/
|
|
21
21
|
interface NavbarSearchFocusedProps {
|
|
22
|
+
/**
|
|
23
|
+
* Logo configuration
|
|
24
|
+
*/
|
|
25
|
+
logo?: LogoConfig;
|
|
26
|
+
/**
|
|
27
|
+
* Search placeholder text
|
|
28
|
+
*/
|
|
29
|
+
searchPlaceholder?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Navigation items for the left side
|
|
32
|
+
*/
|
|
33
|
+
navItems?: NavItem[];
|
|
34
|
+
/**
|
|
35
|
+
* Authentication action configurations for desktop
|
|
36
|
+
*/
|
|
37
|
+
authActions?: ActionConfig[];
|
|
38
|
+
}
|
|
39
|
+
interface NavbarSearchFocusedRuntimeProps {
|
|
22
40
|
/**
|
|
23
41
|
* Additional CSS classes for the section
|
|
24
42
|
*/
|
|
@@ -121,6 +139,6 @@ interface NavbarSearchFocusedProps {
|
|
|
121
139
|
* below the logo and hamburger menu, with navigation in a slide-out sheet. Ideal for
|
|
122
140
|
* e-commerce sites, marketplaces, documentation sites, and content-heavy platforms.
|
|
123
141
|
*/
|
|
124
|
-
declare const NavbarSearchFocused: ({ className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, logo, logoSlot, logoClassName, navItems, navigationSlot, searchPlaceholder, onSearch, searchSlot, authActions, authActionsSlot, mobileMenuActions, mobileMenuActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
142
|
+
declare const NavbarSearchFocused: ({ className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, logo, logoSlot, logoClassName, navItems, navigationSlot, searchPlaceholder, onSearch, searchSlot, authActions, authActionsSlot, mobileMenuActions, mobileMenuActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSearchFocusedRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
125
143
|
|
|
126
144
|
export { NavbarSearchFocused, type NavbarSearchFocusedProps };
|
|
@@ -19,6 +19,24 @@ interface NavItem {
|
|
|
19
19
|
* Props for the NavbarSearchFocused component
|
|
20
20
|
*/
|
|
21
21
|
interface NavbarSearchFocusedProps {
|
|
22
|
+
/**
|
|
23
|
+
* Logo configuration
|
|
24
|
+
*/
|
|
25
|
+
logo?: LogoConfig;
|
|
26
|
+
/**
|
|
27
|
+
* Search placeholder text
|
|
28
|
+
*/
|
|
29
|
+
searchPlaceholder?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Navigation items for the left side
|
|
32
|
+
*/
|
|
33
|
+
navItems?: NavItem[];
|
|
34
|
+
/**
|
|
35
|
+
* Authentication action configurations for desktop
|
|
36
|
+
*/
|
|
37
|
+
authActions?: ActionConfig[];
|
|
38
|
+
}
|
|
39
|
+
interface NavbarSearchFocusedRuntimeProps {
|
|
22
40
|
/**
|
|
23
41
|
* Additional CSS classes for the section
|
|
24
42
|
*/
|
|
@@ -121,6 +139,6 @@ interface NavbarSearchFocusedProps {
|
|
|
121
139
|
* below the logo and hamburger menu, with navigation in a slide-out sheet. Ideal for
|
|
122
140
|
* e-commerce sites, marketplaces, documentation sites, and content-heavy platforms.
|
|
123
141
|
*/
|
|
124
|
-
declare const NavbarSearchFocused: ({ className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, logo, logoSlot, logoClassName, navItems, navigationSlot, searchPlaceholder, onSearch, searchSlot, authActions, authActionsSlot, mobileMenuActions, mobileMenuActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
142
|
+
declare const NavbarSearchFocused: ({ className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, logo, logoSlot, logoClassName, navItems, navigationSlot, searchPlaceholder, onSearch, searchSlot, authActions, authActionsSlot, mobileMenuActions, mobileMenuActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSearchFocusedRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
125
143
|
|
|
126
144
|
export { NavbarSearchFocused, type NavbarSearchFocusedProps };
|
|
@@ -24,6 +24,20 @@ interface MenuItem {
|
|
|
24
24
|
* Props for the NavbarSidebarMobile component
|
|
25
25
|
*/
|
|
26
26
|
interface NavbarSidebarMobileProps {
|
|
27
|
+
/**
|
|
28
|
+
* Logo configuration
|
|
29
|
+
*/
|
|
30
|
+
logo?: LogoConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Navigation menu items
|
|
33
|
+
*/
|
|
34
|
+
menu?: MenuItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Authentication action configurations
|
|
37
|
+
*/
|
|
38
|
+
authActions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSidebarMobileRuntimeProps {
|
|
27
41
|
/**
|
|
28
42
|
* Additional CSS classes for the section
|
|
29
43
|
*/
|
|
@@ -117,6 +131,6 @@ interface NavbarSidebarMobileProps {
|
|
|
117
131
|
* header with logo and close button. Ideal for applications that need a more app-like
|
|
118
132
|
* mobile navigation experience.
|
|
119
133
|
*/
|
|
120
|
-
declare const NavbarSidebarMobile: ({ logo, logoSlot, logoClassName, menu, menuSlot, mobileExtraLinks, mobileExtraLinksSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
134
|
+
declare const NavbarSidebarMobile: ({ logo, logoSlot, logoClassName, menu, menuSlot, mobileExtraLinks, mobileExtraLinksSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSidebarMobileRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
121
135
|
|
|
122
136
|
export { NavbarSidebarMobile, type NavbarSidebarMobileProps };
|
|
@@ -24,6 +24,20 @@ interface MenuItem {
|
|
|
24
24
|
* Props for the NavbarSidebarMobile component
|
|
25
25
|
*/
|
|
26
26
|
interface NavbarSidebarMobileProps {
|
|
27
|
+
/**
|
|
28
|
+
* Logo configuration
|
|
29
|
+
*/
|
|
30
|
+
logo?: LogoConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Navigation menu items
|
|
33
|
+
*/
|
|
34
|
+
menu?: MenuItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Authentication action configurations
|
|
37
|
+
*/
|
|
38
|
+
authActions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSidebarMobileRuntimeProps {
|
|
27
41
|
/**
|
|
28
42
|
* Additional CSS classes for the section
|
|
29
43
|
*/
|
|
@@ -117,6 +131,6 @@ interface NavbarSidebarMobileProps {
|
|
|
117
131
|
* header with logo and close button. Ideal for applications that need a more app-like
|
|
118
132
|
* mobile navigation experience.
|
|
119
133
|
*/
|
|
120
|
-
declare const NavbarSidebarMobile: ({ logo, logoSlot, logoClassName, menu, menuSlot, mobileExtraLinks, mobileExtraLinksSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
134
|
+
declare const NavbarSidebarMobile: ({ logo, logoSlot, logoClassName, menu, menuSlot, mobileExtraLinks, mobileExtraLinksSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSidebarMobileRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
121
135
|
|
|
122
136
|
export { NavbarSidebarMobile, type NavbarSidebarMobileProps };
|
|
@@ -20,6 +20,24 @@ interface NavItem {
|
|
|
20
20
|
* Props for the NavbarSimpleLinks component
|
|
21
21
|
*/
|
|
22
22
|
interface NavbarSimpleLinksProps {
|
|
23
|
+
/**
|
|
24
|
+
* Logo configuration
|
|
25
|
+
*/
|
|
26
|
+
logo?: LogoConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Navigation items array
|
|
29
|
+
*/
|
|
30
|
+
navItems?: NavItem[];
|
|
31
|
+
/**
|
|
32
|
+
* Initial active item name
|
|
33
|
+
*/
|
|
34
|
+
defaultActiveItem?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Authentication/CTA action configurations
|
|
37
|
+
*/
|
|
38
|
+
actions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSimpleLinksRuntimeProps {
|
|
23
41
|
/**
|
|
24
42
|
* Additional CSS classes for the section
|
|
25
43
|
*/
|
|
@@ -122,6 +140,6 @@ interface NavbarSimpleLinksProps {
|
|
|
122
140
|
* NavbarMobileMenu component with a fullscreen overlay. Perfect for simple marketing
|
|
123
141
|
* sites and portfolios.
|
|
124
142
|
*/
|
|
125
|
-
declare const NavbarSimpleLinks: ({ className, containerClassName, navClassName, navigationMenuClassName, menuListClassName, actionsClassName, mobileMenuClassName, logo, logoSlot, logoClassName, navItems, navItemsSlot, defaultActiveItem, actions, actionsSlot, mobileActions, mobileActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
143
|
+
declare const NavbarSimpleLinks: ({ className, containerClassName, navClassName, navigationMenuClassName, menuListClassName, actionsClassName, mobileMenuClassName, logo, logoSlot, logoClassName, navItems, navItemsSlot, defaultActiveItem, actions, actionsSlot, mobileActions, mobileActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSimpleLinksRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
126
144
|
|
|
127
145
|
export { NavbarSimpleLinks, type NavbarSimpleLinksProps };
|
|
@@ -20,6 +20,24 @@ interface NavItem {
|
|
|
20
20
|
* Props for the NavbarSimpleLinks component
|
|
21
21
|
*/
|
|
22
22
|
interface NavbarSimpleLinksProps {
|
|
23
|
+
/**
|
|
24
|
+
* Logo configuration
|
|
25
|
+
*/
|
|
26
|
+
logo?: LogoConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Navigation items array
|
|
29
|
+
*/
|
|
30
|
+
navItems?: NavItem[];
|
|
31
|
+
/**
|
|
32
|
+
* Initial active item name
|
|
33
|
+
*/
|
|
34
|
+
defaultActiveItem?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Authentication/CTA action configurations
|
|
37
|
+
*/
|
|
38
|
+
actions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSimpleLinksRuntimeProps {
|
|
23
41
|
/**
|
|
24
42
|
* Additional CSS classes for the section
|
|
25
43
|
*/
|
|
@@ -122,6 +140,6 @@ interface NavbarSimpleLinksProps {
|
|
|
122
140
|
* NavbarMobileMenu component with a fullscreen overlay. Perfect for simple marketing
|
|
123
141
|
* sites and portfolios.
|
|
124
142
|
*/
|
|
125
|
-
declare const NavbarSimpleLinks: ({ className, containerClassName, navClassName, navigationMenuClassName, menuListClassName, actionsClassName, mobileMenuClassName, logo, logoSlot, logoClassName, navItems, navItemsSlot, defaultActiveItem, actions, actionsSlot, mobileActions, mobileActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
143
|
+
declare const NavbarSimpleLinks: ({ className, containerClassName, navClassName, navigationMenuClassName, menuListClassName, actionsClassName, mobileMenuClassName, logo, logoSlot, logoClassName, navItems, navItemsSlot, defaultActiveItem, actions, actionsSlot, mobileActions, mobileActionsSlot, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSimpleLinksRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
126
144
|
|
|
127
145
|
export { NavbarSimpleLinks, type NavbarSimpleLinksProps };
|
|
@@ -768,7 +768,7 @@ var NavbarSplitCta = ({
|
|
|
768
768
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
769
769
|
Section,
|
|
770
770
|
{
|
|
771
|
-
id:
|
|
771
|
+
id: "navbar-split-cta",
|
|
772
772
|
background,
|
|
773
773
|
spacing: spacingOverride ?? spacing,
|
|
774
774
|
className: sectionClasses,
|
|
@@ -843,20 +843,19 @@ var NavbarSplitCta = ({
|
|
|
843
843
|
children: renderAuthActions
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
846
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
847
847
|
pressable.Pressable,
|
|
848
848
|
{
|
|
849
849
|
variant: "ghost",
|
|
850
850
|
size: "icon",
|
|
851
851
|
asButton: true,
|
|
852
|
-
className: "lg:hidden",
|
|
853
852
|
onClick: () => setIsOpen(!isOpen),
|
|
854
853
|
children: [
|
|
855
854
|
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
|
|
856
855
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle menu" })
|
|
857
856
|
]
|
|
858
857
|
}
|
|
859
|
-
),
|
|
858
|
+
) }),
|
|
860
859
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
861
860
|
NavbarMobileMenu,
|
|
862
861
|
{
|
|
@@ -24,6 +24,20 @@ interface MenuItem {
|
|
|
24
24
|
* Props for the NavbarSplitCta component
|
|
25
25
|
*/
|
|
26
26
|
interface NavbarSplitCtaProps {
|
|
27
|
+
/**
|
|
28
|
+
* Logo configuration
|
|
29
|
+
*/
|
|
30
|
+
logo?: LogoConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Navigation menu items
|
|
33
|
+
*/
|
|
34
|
+
menu?: MenuItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Authentication action configurations
|
|
37
|
+
*/
|
|
38
|
+
authActions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSplitCtaRuntimeProps {
|
|
27
41
|
/**
|
|
28
42
|
* Additional CSS classes for the section
|
|
29
43
|
*/
|
|
@@ -108,6 +122,6 @@ interface NavbarSplitCtaProps {
|
|
|
108
122
|
* slide-out sheet with the CTAs prominently displayed at the top. Ideal for SaaS products
|
|
109
123
|
* and services that want to emphasize both login/signup or demo/trial actions.
|
|
110
124
|
*/
|
|
111
|
-
declare const NavbarSplitCta: ({ sectionId, logo, logoSlot, logoClassName, menu, menuSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
125
|
+
declare const NavbarSplitCta: ({ sectionId, logo, logoSlot, logoClassName, menu, menuSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSplitCtaRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
112
126
|
|
|
113
127
|
export { NavbarSplitCta, type NavbarSplitCtaProps };
|
|
@@ -24,6 +24,20 @@ interface MenuItem {
|
|
|
24
24
|
* Props for the NavbarSplitCta component
|
|
25
25
|
*/
|
|
26
26
|
interface NavbarSplitCtaProps {
|
|
27
|
+
/**
|
|
28
|
+
* Logo configuration
|
|
29
|
+
*/
|
|
30
|
+
logo?: LogoConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Navigation menu items
|
|
33
|
+
*/
|
|
34
|
+
menu?: MenuItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Authentication action configurations
|
|
37
|
+
*/
|
|
38
|
+
authActions?: ActionConfig[];
|
|
39
|
+
}
|
|
40
|
+
interface NavbarSplitCtaRuntimeProps {
|
|
27
41
|
/**
|
|
28
42
|
* Additional CSS classes for the section
|
|
29
43
|
*/
|
|
@@ -108,6 +122,6 @@ interface NavbarSplitCtaProps {
|
|
|
108
122
|
* slide-out sheet with the CTAs prominently displayed at the top. Ideal for SaaS products
|
|
109
123
|
* and services that want to emphasize both login/signup or demo/trial actions.
|
|
110
124
|
*/
|
|
111
|
-
declare const NavbarSplitCta: ({ sectionId, logo, logoSlot, logoClassName, menu, menuSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }:
|
|
125
|
+
declare const NavbarSplitCta: ({ sectionId, logo, logoSlot, logoClassName, menu, menuSlot, authActions, authActionsSlot, className, containerClassName, navClassName, navigationMenuClassName, actionsClassName, layoutVariant, background, spacing, pattern, patternOpacity, optixFlowConfig, }: NavbarSplitCtaRuntimeProps) => react_jsx_runtime.JSX.Element;
|
|
112
126
|
|
|
113
127
|
export { NavbarSplitCta, type NavbarSplitCtaProps };
|