@opensite/ui 1.1.0 → 1.1.1
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/navbar-animated-preview.cjs +11 -10
- package/dist/navbar-animated-preview.js +11 -10
- package/dist/navbar-centered-menu.cjs +5 -4
- package/dist/navbar-centered-menu.js +5 -4
- package/dist/navbar-dark-icons.cjs +5 -4
- package/dist/navbar-dark-icons.js +5 -4
- package/dist/navbar-dropdown-menu.cjs +5 -4
- package/dist/navbar-dropdown-menu.js +5 -4
- package/dist/navbar-education-platform.cjs +5 -4
- package/dist/navbar-education-platform.js +5 -4
- package/dist/navbar-enterprise-mega.cjs +5 -4
- package/dist/navbar-enterprise-mega.js +5 -4
- package/dist/navbar-feature-grid.cjs +5 -4
- package/dist/navbar-feature-grid.js +5 -4
- package/dist/navbar-icon-links.cjs +5 -4
- package/dist/navbar-icon-links.js +5 -4
- package/dist/navbar-image-preview.cjs +5 -4
- package/dist/navbar-image-preview.js +5 -4
- package/dist/navbar-mega-menu.cjs +5 -4
- package/dist/navbar-mega-menu.js +5 -4
- package/dist/navbar-multi-column-groups.cjs +5 -4
- package/dist/navbar-multi-column-groups.js +5 -4
- package/dist/navbar-platform-resources.cjs +5 -4
- package/dist/navbar-platform-resources.js +5 -4
- package/dist/navbar-search-focused.cjs +176 -97
- package/dist/navbar-search-focused.js +176 -97
- package/dist/navbar-sidebar-mobile.cjs +5 -4
- package/dist/navbar-sidebar-mobile.js +5 -4
- package/dist/navbar-simple-links.cjs +5 -4
- package/dist/navbar-simple-links.js +5 -4
- package/dist/navbar-split-cta.cjs +5 -4
- package/dist/navbar-split-cta.js +5 -4
- package/dist/navbar-sticky-compact.cjs +7 -16
- package/dist/navbar-sticky-compact.js +7 -16
- package/dist/navbar-tabbed-sections.cjs +5 -4
- package/dist/navbar-tabbed-sections.js +5 -4
- package/dist/navbar-transparent-overlay.cjs +6 -4
- package/dist/navbar-transparent-overlay.js +6 -4
- package/dist/registry.cjs +171 -117
- package/dist/registry.js +171 -117
- package/package.json +1 -1
|
@@ -1115,7 +1115,8 @@ var NavbarMobileMenu = ({
|
|
|
1115
1115
|
children,
|
|
1116
1116
|
className,
|
|
1117
1117
|
contentClassName,
|
|
1118
|
-
closeContainerClassName
|
|
1118
|
+
closeContainerClassName,
|
|
1119
|
+
closeIconClassName,
|
|
1119
1120
|
title = "Mobile Navigation"
|
|
1120
1121
|
}) => {
|
|
1121
1122
|
React.useEffect(() => {
|
|
@@ -1144,8 +1145,8 @@ var NavbarMobileMenu = ({
|
|
|
1144
1145
|
"div",
|
|
1145
1146
|
{
|
|
1146
1147
|
className: cn(
|
|
1147
|
-
|
|
1148
|
-
|
|
1148
|
+
"absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen",
|
|
1149
|
+
closeContainerClassName
|
|
1149
1150
|
),
|
|
1150
1151
|
children: /* @__PURE__ */ jsxs(
|
|
1151
1152
|
"button",
|
|
@@ -1154,7 +1155,7 @@ var NavbarMobileMenu = ({
|
|
|
1154
1155
|
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1155
1156
|
"aria-label": "Close mobile menu",
|
|
1156
1157
|
children: [
|
|
1157
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1158
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: cn("size-4", closeIconClassName) }),
|
|
1158
1159
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1159
1160
|
]
|
|
1160
1161
|
}
|
|
@@ -998,7 +998,8 @@ var NavbarMobileMenu = ({
|
|
|
998
998
|
children,
|
|
999
999
|
className,
|
|
1000
1000
|
contentClassName,
|
|
1001
|
-
closeContainerClassName
|
|
1001
|
+
closeContainerClassName,
|
|
1002
|
+
closeIconClassName,
|
|
1002
1003
|
title = "Mobile Navigation"
|
|
1003
1004
|
}) => {
|
|
1004
1005
|
React__namespace.useEffect(() => {
|
|
@@ -1027,8 +1028,8 @@ var NavbarMobileMenu = ({
|
|
|
1027
1028
|
"div",
|
|
1028
1029
|
{
|
|
1029
1030
|
className: cn(
|
|
1030
|
-
|
|
1031
|
-
|
|
1031
|
+
"absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen",
|
|
1032
|
+
closeContainerClassName
|
|
1032
1033
|
),
|
|
1033
1034
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1034
1035
|
"button",
|
|
@@ -1037,7 +1038,7 @@ var NavbarMobileMenu = ({
|
|
|
1037
1038
|
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1038
1039
|
"aria-label": "Close mobile menu",
|
|
1039
1040
|
children: [
|
|
1040
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1041
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: cn("size-4", closeIconClassName) }),
|
|
1041
1042
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1042
1043
|
]
|
|
1043
1044
|
}
|
|
@@ -1499,6 +1500,7 @@ var MobileNavigationMenu = ({
|
|
|
1499
1500
|
className: cn("bg-black/95", mobileMenuClassName),
|
|
1500
1501
|
contentClassName: "flex flex-col items-center justify-center",
|
|
1501
1502
|
closeContainerClassName: "bg-black/95",
|
|
1503
|
+
closeIconClassName: "text-white",
|
|
1502
1504
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
1503
1505
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col items-center gap-8", children: navItems?.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1504
1506
|
Pressable,
|
|
@@ -976,7 +976,8 @@ var NavbarMobileMenu = ({
|
|
|
976
976
|
children,
|
|
977
977
|
className,
|
|
978
978
|
contentClassName,
|
|
979
|
-
closeContainerClassName
|
|
979
|
+
closeContainerClassName,
|
|
980
|
+
closeIconClassName,
|
|
980
981
|
title = "Mobile Navigation"
|
|
981
982
|
}) => {
|
|
982
983
|
React.useEffect(() => {
|
|
@@ -1005,8 +1006,8 @@ var NavbarMobileMenu = ({
|
|
|
1005
1006
|
"div",
|
|
1006
1007
|
{
|
|
1007
1008
|
className: cn(
|
|
1008
|
-
|
|
1009
|
-
|
|
1009
|
+
"absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen",
|
|
1010
|
+
closeContainerClassName
|
|
1010
1011
|
),
|
|
1011
1012
|
children: /* @__PURE__ */ jsxs(
|
|
1012
1013
|
"button",
|
|
@@ -1015,7 +1016,7 @@ var NavbarMobileMenu = ({
|
|
|
1015
1016
|
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
1016
1017
|
"aria-label": "Close mobile menu",
|
|
1017
1018
|
children: [
|
|
1018
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
1019
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", className: cn("size-4", closeIconClassName) }),
|
|
1019
1020
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1020
1021
|
]
|
|
1021
1022
|
}
|
|
@@ -1477,6 +1478,7 @@ var MobileNavigationMenu = ({
|
|
|
1477
1478
|
className: cn("bg-black/95", mobileMenuClassName),
|
|
1478
1479
|
contentClassName: "flex flex-col items-center justify-center",
|
|
1479
1480
|
closeContainerClassName: "bg-black/95",
|
|
1481
|
+
closeIconClassName: "text-white",
|
|
1480
1482
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
1481
1483
|
/* @__PURE__ */ jsx("nav", { className: "flex flex-col items-center gap-8", children: navItems?.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1482
1484
|
Pressable,
|
package/dist/registry.cjs
CHANGED
|
@@ -57108,7 +57108,8 @@ var NavbarMobileMenu = ({
|
|
|
57108
57108
|
children,
|
|
57109
57109
|
className,
|
|
57110
57110
|
contentClassName,
|
|
57111
|
-
closeContainerClassName
|
|
57111
|
+
closeContainerClassName,
|
|
57112
|
+
closeIconClassName,
|
|
57112
57113
|
title = "Mobile Navigation"
|
|
57113
57114
|
}) => {
|
|
57114
57115
|
React52__namespace.useEffect(() => {
|
|
@@ -57137,8 +57138,8 @@ var NavbarMobileMenu = ({
|
|
|
57137
57138
|
"div",
|
|
57138
57139
|
{
|
|
57139
57140
|
className: cn(
|
|
57140
|
-
|
|
57141
|
-
|
|
57141
|
+
"absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen",
|
|
57142
|
+
closeContainerClassName
|
|
57142
57143
|
),
|
|
57143
57144
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57144
57145
|
"button",
|
|
@@ -57147,7 +57148,7 @@ var NavbarMobileMenu = ({
|
|
|
57147
57148
|
className: "flex size-10 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
|
|
57148
57149
|
"aria-label": "Close mobile menu",
|
|
57149
57150
|
children: [
|
|
57150
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: "size-4" }),
|
|
57151
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", className: cn("size-4", closeIconClassName) }),
|
|
57151
57152
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
57152
57153
|
]
|
|
57153
57154
|
}
|
|
@@ -60602,7 +60603,7 @@ var NavbarAnimatedPreview = ({
|
|
|
60602
60603
|
"div",
|
|
60603
60604
|
{
|
|
60604
60605
|
className: cn(
|
|
60605
|
-
"relative z-999
|
|
60606
|
+
"relative z-999 flex w-full items-center justify-between gap-4"
|
|
60606
60607
|
),
|
|
60607
60608
|
children: [
|
|
60608
60609
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -60877,7 +60878,7 @@ var FeaturedLink = ({ link, optixFlowConfig }) => {
|
|
|
60877
60878
|
Pressable,
|
|
60878
60879
|
{
|
|
60879
60880
|
href: getLinkUrl(link),
|
|
60880
|
-
className: "group relative flex w-full overflow-hidden rounded-xl bg-muted px-4 pt-
|
|
60881
|
+
className: "group relative flex w-full overflow-hidden rounded-xl bg-muted px-4 pt-24 pb-4",
|
|
60881
60882
|
children: [
|
|
60882
60883
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-10 flex w-full items-center gap-6", children: [
|
|
60883
60884
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-12 shrink-0 rounded-lg border bg-background shadow-lg", children: link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -60992,10 +60993,10 @@ var renderMobileMenuItem4 = (item, index) => {
|
|
|
60992
60993
|
className: "border-b-0",
|
|
60993
60994
|
children: [
|
|
60994
60995
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-10 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
|
|
60995
|
-
/* @__PURE__ */ jsxRuntime.jsxs(AccordionContent, { className: "flex flex-col
|
|
60996
|
-
item.featuredLinks && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-
|
|
60997
|
-
item.links && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-
|
|
60998
|
-
item.groupLinks && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-
|
|
60996
|
+
/* @__PURE__ */ jsxRuntime.jsxs(AccordionContent, { className: "flex flex-col py-6 px-4", children: [
|
|
60997
|
+
item.featuredLinks && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: item.featuredLinks.map((link, idx) => /* @__PURE__ */ jsxRuntime.jsx(NavLink, { link }, `default-nav-link-${idx}`)) }),
|
|
60998
|
+
item.links && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: item.links.map((link, idx) => /* @__PURE__ */ jsxRuntime.jsx(NavLink, { link }, `default-nav-link-${idx}`)) }),
|
|
60999
|
+
item.groupLinks && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: item.groupLinks.map((group, groupIdx) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
60999
61000
|
group.label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4 text-xs text-muted-foreground", children: group.label }),
|
|
61000
61001
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-2", children: group.links.map((link, linkIdx) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(NavLink, { link }) }, `group-link-${groupIdx}-${linkIdx}`)) })
|
|
61001
61002
|
] }, `group-link-${groupIdx}`)) })
|
|
@@ -61953,6 +61954,7 @@ var MobileNavigationMenu7 = ({
|
|
|
61953
61954
|
className: cn("bg-black/95", mobileMenuClassName),
|
|
61954
61955
|
contentClassName: "flex flex-col items-center justify-center",
|
|
61955
61956
|
closeContainerClassName: "bg-black/95",
|
|
61957
|
+
closeIconClassName: "text-white",
|
|
61956
61958
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
61957
61959
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col items-center gap-8", children: navItems?.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
61958
61960
|
Pressable,
|
|
@@ -62455,11 +62457,7 @@ var NavbarStickyCompact = ({
|
|
|
62455
62457
|
{
|
|
62456
62458
|
logo,
|
|
62457
62459
|
logoSlot,
|
|
62458
|
-
logoClassName
|
|
62459
|
-
isScrolled ? "[&_img]:h-6 [&_span]:text-base" : "[&_img]:h-8 [&_span]:text-lg",
|
|
62460
|
-
"[&_img]:transition-all [&_img]:duration-300 [&_span]:transition-all [&_span]:duration-300",
|
|
62461
|
-
logoClassName
|
|
62462
|
-
),
|
|
62460
|
+
logoClassName,
|
|
62463
62461
|
optixFlowConfig
|
|
62464
62462
|
}
|
|
62465
62463
|
),
|
|
@@ -62483,13 +62481,7 @@ var NavbarStickyCompact = ({
|
|
|
62483
62481
|
className: "lg:hidden transition-all duration-300",
|
|
62484
62482
|
onClick: () => setIsOpen(!isOpen),
|
|
62485
62483
|
children: [
|
|
62486
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62487
|
-
DynamicIcon,
|
|
62488
|
-
{
|
|
62489
|
-
name: "lucide/menu",
|
|
62490
|
-
size: isScrolled ? 18 : 20
|
|
62491
|
-
}
|
|
62492
|
-
),
|
|
62484
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: isScrolled ? 18 : 20 }),
|
|
62493
62485
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle menu" })
|
|
62494
62486
|
]
|
|
62495
62487
|
}
|
|
@@ -62622,6 +62614,11 @@ var NavbarSearchFocused = ({
|
|
|
62622
62614
|
optixFlowConfig
|
|
62623
62615
|
}) => {
|
|
62624
62616
|
const [isOpen, setIsOpen] = React52.useState(false);
|
|
62617
|
+
const [searchQuery, setSearchQuery] = React52.useState("");
|
|
62618
|
+
const handleSearchSubmit = (e) => {
|
|
62619
|
+
e.preventDefault();
|
|
62620
|
+
onSearch?.(searchQuery);
|
|
62621
|
+
};
|
|
62625
62622
|
const renderNavigation = (items) => {
|
|
62626
62623
|
if (navigationSlot) return navigationSlot;
|
|
62627
62624
|
if (!items || items.length === 0) return null;
|
|
@@ -62667,7 +62664,7 @@ var NavbarSearchFocused = ({
|
|
|
62667
62664
|
);
|
|
62668
62665
|
});
|
|
62669
62666
|
}, [authActionsSlot, authActions]);
|
|
62670
|
-
|
|
62667
|
+
React52.useMemo(() => {
|
|
62671
62668
|
if (mobileMenuActionsSlot) return mobileMenuActionsSlot;
|
|
62672
62669
|
if (!mobileMenuActions || mobileMenuActions.length === 0) return null;
|
|
62673
62670
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: mobileMenuActions.map((action, index) => {
|
|
@@ -62696,100 +62693,157 @@ var NavbarSearchFocused = ({
|
|
|
62696
62693
|
sectionContainerMaxWidth,
|
|
62697
62694
|
spacingOverride
|
|
62698
62695
|
} = getNavbarLayoutClasses(layoutVariant, { className, containerClassName });
|
|
62699
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
62700
|
-
|
|
62701
|
-
|
|
62702
|
-
|
|
62703
|
-
|
|
62704
|
-
|
|
62705
|
-
|
|
62706
|
-
|
|
62707
|
-
|
|
62708
|
-
|
|
62709
|
-
|
|
62710
|
-
"
|
|
62711
|
-
|
|
62712
|
-
|
|
62713
|
-
|
|
62714
|
-
|
|
62715
|
-
|
|
62716
|
-
children: [
|
|
62717
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62718
|
-
NavbarLogo,
|
|
62719
|
-
{
|
|
62720
|
-
logo,
|
|
62721
|
-
logoSlot,
|
|
62722
|
-
logoClassName,
|
|
62723
|
-
optixFlowConfig
|
|
62724
|
-
}
|
|
62725
|
-
),
|
|
62726
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62727
|
-
NavigationMenu,
|
|
62728
|
-
{
|
|
62729
|
-
className: cn("hidden lg:flex", navigationMenuClassName),
|
|
62730
|
-
children: renderNavigation(navItems?.slice(0, 2) ?? [])
|
|
62731
|
-
}
|
|
62732
|
-
),
|
|
62733
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62734
|
-
NavigationMenu,
|
|
62735
|
-
{
|
|
62736
|
-
className: cn("hidden lg:flex", navigationMenuClassName),
|
|
62737
|
-
children: renderNavigation(navItems?.slice(2) ?? [])
|
|
62738
|
-
}
|
|
62696
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
62697
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62698
|
+
Section,
|
|
62699
|
+
{
|
|
62700
|
+
background,
|
|
62701
|
+
spacing: spacingOverride ?? spacing,
|
|
62702
|
+
className: sectionClasses,
|
|
62703
|
+
pattern,
|
|
62704
|
+
patternOpacity,
|
|
62705
|
+
containerClassName: sectionContainerClassName,
|
|
62706
|
+
containerMaxWidth: sectionContainerMaxWidth,
|
|
62707
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
62708
|
+
"nav",
|
|
62709
|
+
{
|
|
62710
|
+
className: cn(
|
|
62711
|
+
"flex items-center justify-between gap-4 py-3 lg:gap-6",
|
|
62712
|
+
navClassName
|
|
62739
62713
|
),
|
|
62740
|
-
|
|
62741
|
-
|
|
62742
|
-
|
|
62743
|
-
|
|
62744
|
-
|
|
62745
|
-
|
|
62714
|
+
children: [
|
|
62715
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62716
|
+
NavbarLogo,
|
|
62717
|
+
{
|
|
62718
|
+
logo,
|
|
62719
|
+
logoSlot,
|
|
62720
|
+
logoClassName,
|
|
62721
|
+
optixFlowConfig
|
|
62722
|
+
}
|
|
62723
|
+
),
|
|
62724
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62725
|
+
NavigationMenu,
|
|
62726
|
+
{
|
|
62727
|
+
className: cn("hidden lg:flex", navigationMenuClassName),
|
|
62728
|
+
children: renderNavigation(navItems ?? [])
|
|
62729
|
+
}
|
|
62730
|
+
),
|
|
62731
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden flex-1 max-w-md lg:block", children: searchSlot ?? /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSearchSubmit, className: "relative", children: [
|
|
62732
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62733
|
+
DynamicIcon,
|
|
62734
|
+
{
|
|
62735
|
+
name: "lucide/search",
|
|
62736
|
+
size: 16,
|
|
62737
|
+
className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
|
|
62738
|
+
}
|
|
62746
62739
|
),
|
|
62747
|
-
|
|
62748
|
-
|
|
62749
|
-
|
|
62750
|
-
|
|
62751
|
-
|
|
62752
|
-
|
|
62753
|
-
|
|
62754
|
-
|
|
62755
|
-
|
|
62756
|
-
|
|
62757
|
-
|
|
62758
|
-
|
|
62759
|
-
|
|
62760
|
-
|
|
62761
|
-
|
|
62762
|
-
|
|
62763
|
-
|
|
62764
|
-
|
|
62765
|
-
|
|
62766
|
-
|
|
62767
|
-
|
|
62768
|
-
|
|
62769
|
-
|
|
62770
|
-
|
|
62771
|
-
|
|
62772
|
-
|
|
62773
|
-
|
|
62774
|
-
|
|
62775
|
-
|
|
62776
|
-
|
|
62777
|
-
|
|
62778
|
-
|
|
62779
|
-
|
|
62780
|
-
|
|
62781
|
-
|
|
62782
|
-
|
|
62783
|
-
|
|
62784
|
-
|
|
62785
|
-
|
|
62786
|
-
|
|
62787
|
-
|
|
62788
|
-
|
|
62789
|
-
|
|
62790
|
-
|
|
62791
|
-
|
|
62792
|
-
|
|
62740
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62741
|
+
Input,
|
|
62742
|
+
{
|
|
62743
|
+
type: "search",
|
|
62744
|
+
placeholder: typeof searchPlaceholder === "string" ? searchPlaceholder : "Search...",
|
|
62745
|
+
value: searchQuery,
|
|
62746
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
62747
|
+
className: "pl-9 pr-4"
|
|
62748
|
+
}
|
|
62749
|
+
)
|
|
62750
|
+
] }) }),
|
|
62751
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62752
|
+
"div",
|
|
62753
|
+
{
|
|
62754
|
+
className: cn(
|
|
62755
|
+
"hidden shrink-0 items-center gap-2 lg:flex",
|
|
62756
|
+
actionsClassName
|
|
62757
|
+
),
|
|
62758
|
+
children: renderAuthActions
|
|
62759
|
+
}
|
|
62760
|
+
),
|
|
62761
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
62762
|
+
Pressable,
|
|
62763
|
+
{
|
|
62764
|
+
variant: "ghost",
|
|
62765
|
+
size: "icon",
|
|
62766
|
+
asButton: true,
|
|
62767
|
+
className: "lg:hidden",
|
|
62768
|
+
onClick: () => setIsOpen(!isOpen),
|
|
62769
|
+
children: [
|
|
62770
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: 20 }),
|
|
62771
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle menu" })
|
|
62772
|
+
]
|
|
62773
|
+
}
|
|
62774
|
+
)
|
|
62775
|
+
]
|
|
62776
|
+
}
|
|
62777
|
+
) }) }) })
|
|
62778
|
+
}
|
|
62779
|
+
),
|
|
62780
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62781
|
+
MobileNavigationMenu10,
|
|
62782
|
+
{
|
|
62783
|
+
open: isOpen,
|
|
62784
|
+
setOpen: setIsOpen,
|
|
62785
|
+
navItems: navItems ?? [],
|
|
62786
|
+
navigationSlot,
|
|
62787
|
+
mobileMenuActions: mobileMenuActions ?? authActions,
|
|
62788
|
+
mobileMenuActionsSlot: mobileMenuActionsSlot ?? authActionsSlot
|
|
62789
|
+
}
|
|
62790
|
+
)
|
|
62791
|
+
] });
|
|
62792
|
+
};
|
|
62793
|
+
var MobileNavigationMenu10 = ({
|
|
62794
|
+
open,
|
|
62795
|
+
setOpen,
|
|
62796
|
+
navItems,
|
|
62797
|
+
navigationSlot,
|
|
62798
|
+
mobileMenuActions,
|
|
62799
|
+
mobileMenuActionsSlot
|
|
62800
|
+
}) => {
|
|
62801
|
+
const handleClose = () => setOpen(false);
|
|
62802
|
+
const renderMobileActions = React52.useMemo(() => {
|
|
62803
|
+
if (mobileMenuActionsSlot) return mobileMenuActionsSlot;
|
|
62804
|
+
if (!mobileMenuActions || mobileMenuActions.length === 0) return null;
|
|
62805
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 flex flex-col gap-4", children: mobileMenuActions.map((action, index) => {
|
|
62806
|
+
const {
|
|
62807
|
+
label,
|
|
62808
|
+
icon,
|
|
62809
|
+
iconAfter,
|
|
62810
|
+
children,
|
|
62811
|
+
className: actionClassName,
|
|
62812
|
+
...pressableProps
|
|
62813
|
+
} = action;
|
|
62814
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
62815
|
+
Pressable,
|
|
62816
|
+
{
|
|
62817
|
+
asButton: true,
|
|
62818
|
+
className: cn("w-full", actionClassName),
|
|
62819
|
+
onClick: handleClose,
|
|
62820
|
+
...pressableProps,
|
|
62821
|
+
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
62822
|
+
icon,
|
|
62823
|
+
label,
|
|
62824
|
+
iconAfter
|
|
62825
|
+
] })
|
|
62826
|
+
},
|
|
62827
|
+
index
|
|
62828
|
+
);
|
|
62829
|
+
}) });
|
|
62830
|
+
}, [mobileMenuActionsSlot, mobileMenuActions]);
|
|
62831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavbarMobileMenu, { open, onClose: handleClose, title: "Navigation Menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
62832
|
+
navigationSlot ?? /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col", children: navItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
62833
|
+
Pressable,
|
|
62834
|
+
{
|
|
62835
|
+
href: item.url,
|
|
62836
|
+
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",
|
|
62837
|
+
onClick: handleClose,
|
|
62838
|
+
children: [
|
|
62839
|
+
item.icon ?? (item.iconName && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 })),
|
|
62840
|
+
item.title
|
|
62841
|
+
]
|
|
62842
|
+
},
|
|
62843
|
+
`nav-link-${index}`
|
|
62844
|
+
)) }),
|
|
62845
|
+
renderMobileActions
|
|
62846
|
+
] }) }) });
|
|
62793
62847
|
};
|
|
62794
62848
|
var MOBILE_BREAKPOINT7 = 1024;
|
|
62795
62849
|
var NavbarSimpleLinks = ({
|
|
@@ -62992,7 +63046,7 @@ var NavbarSimpleLinks = ({
|
|
|
62992
63046
|
}
|
|
62993
63047
|
),
|
|
62994
63048
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62995
|
-
|
|
63049
|
+
MobileNavigationMenu11,
|
|
62996
63050
|
{
|
|
62997
63051
|
open: isOpen,
|
|
62998
63052
|
onClose: handleMobileMenuClose,
|
|
@@ -63004,7 +63058,7 @@ var NavbarSimpleLinks = ({
|
|
|
63004
63058
|
)
|
|
63005
63059
|
] });
|
|
63006
63060
|
};
|
|
63007
|
-
var
|
|
63061
|
+
var MobileNavigationMenu11 = ({
|
|
63008
63062
|
open,
|
|
63009
63063
|
onClose,
|
|
63010
63064
|
navItems,
|