@opensite/ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/navbar-animated-preview.cjs +32 -42
- package/dist/navbar-animated-preview.js +32 -42
- package/dist/navbar-centered-menu.cjs +4 -12
- package/dist/navbar-centered-menu.js +4 -12
- package/dist/navbar-dark-icons.cjs +2 -5
- package/dist/navbar-dark-icons.js +2 -5
- package/dist/navbar-dropdown-menu.cjs +1 -1
- package/dist/navbar-dropdown-menu.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +11 -5
- package/dist/navbar-enterprise-mega.js +11 -5
- package/dist/navbar-feature-grid.cjs +18 -29
- package/dist/navbar-feature-grid.js +18 -29
- package/dist/navbar-floating-pill.cjs +3 -3
- package/dist/navbar-floating-pill.js +3 -3
- package/dist/navbar-icon-links.cjs +1 -1
- package/dist/navbar-icon-links.js +1 -1
- package/dist/navbar-image-preview.cjs +3 -5
- package/dist/navbar-image-preview.js +3 -5
- package/dist/navbar-mega-menu.cjs +162 -119
- package/dist/navbar-mega-menu.js +161 -119
- package/dist/navbar-multi-column-groups.cjs +32 -42
- package/dist/navbar-multi-column-groups.js +32 -42
- package/dist/navbar-platform-resources.cjs +26 -27
- package/dist/navbar-platform-resources.js +26 -27
- package/dist/navbar-search-focused.cjs +1 -1
- package/dist/navbar-search-focused.js +1 -1
- package/dist/navbar-sidebar-mobile.cjs +1 -1
- package/dist/navbar-sidebar-mobile.js +1 -1
- package/dist/navbar-split-cta.cjs +1 -1
- package/dist/navbar-split-cta.js +1 -1
- package/dist/navbar-sticky-compact.cjs +1 -1
- package/dist/navbar-sticky-compact.js +1 -1
- package/dist/navbar-tabbed-sections.cjs +1 -1
- package/dist/navbar-tabbed-sections.js +1 -1
- package/dist/registry.cjs +168 -282
- package/dist/registry.js +168 -282
- package/package.json +1 -1
package/dist/registry.cjs
CHANGED
|
@@ -57124,7 +57124,7 @@ var NavbarMobileMenu = ({
|
|
|
57124
57124
|
"div",
|
|
57125
57125
|
{
|
|
57126
57126
|
className: cn(
|
|
57127
|
-
"fixed inset-0 z-
|
|
57127
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
57128
57128
|
"animate-in slide-in-from-top duration-300",
|
|
57129
57129
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
57130
57130
|
className
|
|
@@ -57508,11 +57508,11 @@ var renderMobileMenuItem2 = (item) => {
|
|
|
57508
57508
|
if (item.items) {
|
|
57509
57509
|
return /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: item.title, className: "border-b-0", children: [
|
|
57510
57510
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.title }),
|
|
57511
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "
|
|
57511
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: item.items.map((subItem) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57512
57512
|
Pressable,
|
|
57513
57513
|
{
|
|
57514
57514
|
href: subItem.url,
|
|
57515
|
-
className: "flex items-center gap-2 pl-
|
|
57515
|
+
className: "flex items-center gap-2 pl-2 text-sm text-muted-foreground hover:text-foreground",
|
|
57516
57516
|
children: [
|
|
57517
57517
|
subItem.icon && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: subItem.icon, size: 14 }),
|
|
57518
57518
|
subItem.title
|
|
@@ -57667,16 +57667,8 @@ var NavbarCenteredMenu = ({
|
|
|
57667
57667
|
open,
|
|
57668
57668
|
onClose: () => setOpen(false),
|
|
57669
57669
|
title: "Mobile Navigation",
|
|
57670
|
-
contentClassName: "pt-10 pb-20",
|
|
57671
57670
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
57672
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57673
|
-
Accordion,
|
|
57674
|
-
{
|
|
57675
|
-
type: "multiple",
|
|
57676
|
-
className: "w-full",
|
|
57677
|
-
children: renderMobileMenu
|
|
57678
|
-
}
|
|
57679
|
-
),
|
|
57671
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: renderMobileMenu }),
|
|
57680
57672
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57681
57673
|
"div",
|
|
57682
57674
|
{
|
|
@@ -57897,51 +57889,6 @@ var DesktopMenuItem = ({
|
|
|
57897
57889
|
}
|
|
57898
57890
|
return null;
|
|
57899
57891
|
};
|
|
57900
|
-
var MobileSubmenu = ({
|
|
57901
|
-
submenu,
|
|
57902
|
-
mobileMenuClassName,
|
|
57903
|
-
optixFlowConfig
|
|
57904
|
-
}) => {
|
|
57905
|
-
const items = submenu.links || [];
|
|
57906
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57907
|
-
"div",
|
|
57908
|
-
{
|
|
57909
|
-
className: cn(
|
|
57910
|
-
"fixed inset-0 top-[72px] flex h-[calc(100vh-72px)] w-full flex-col overflow-scroll border-t border-border bg-background lg:hidden",
|
|
57911
|
-
mobileMenuClassName
|
|
57912
|
-
),
|
|
57913
|
-
children: [
|
|
57914
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-8 py-3.5 text-xs tracking-widest text-muted-foreground uppercase", children: submenu.label }),
|
|
57915
|
-
items.map((item, index) => {
|
|
57916
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57917
|
-
Pressable,
|
|
57918
|
-
{
|
|
57919
|
-
href: getLinkUrl(item),
|
|
57920
|
-
className: "flex items-start gap-4 border-b border-border px-8 py-5",
|
|
57921
|
-
children: [
|
|
57922
|
-
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57923
|
-
img.Img,
|
|
57924
|
-
{
|
|
57925
|
-
src: item.image,
|
|
57926
|
-
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
57927
|
-
className: "h-full w-full object-cover object-center",
|
|
57928
|
-
optixFlowConfig
|
|
57929
|
-
}
|
|
57930
|
-
) }),
|
|
57931
|
-
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-md border border-border bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
57932
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
57933
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base", children: item.label }),
|
|
57934
|
-
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: item.description })
|
|
57935
|
-
] })
|
|
57936
|
-
]
|
|
57937
|
-
},
|
|
57938
|
-
`mobile-item-${index}`
|
|
57939
|
-
);
|
|
57940
|
-
})
|
|
57941
|
-
]
|
|
57942
|
-
}
|
|
57943
|
-
);
|
|
57944
|
-
};
|
|
57945
57892
|
var NavbarMegaMenu = ({
|
|
57946
57893
|
className,
|
|
57947
57894
|
containerClassName,
|
|
@@ -57962,8 +57909,6 @@ var NavbarMegaMenu = ({
|
|
|
57962
57909
|
optixFlowConfig
|
|
57963
57910
|
}) => {
|
|
57964
57911
|
const [open, setOpen] = React52.useState(false);
|
|
57965
|
-
const [submenuIndex, setSubmenuIndex] = React52.useState(null);
|
|
57966
|
-
const activeSubmenu = submenuIndex !== null ? menuLinks?.[submenuIndex] : null;
|
|
57967
57912
|
const hasDropdownItems = (link) => Boolean(
|
|
57968
57913
|
link.links && link.links.length > 0 || link.dropdownGroups && link.dropdownGroups.length > 0
|
|
57969
57914
|
);
|
|
@@ -58017,36 +57962,15 @@ var NavbarMegaMenu = ({
|
|
|
58017
57962
|
),
|
|
58018
57963
|
children: [
|
|
58019
57964
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: navWrapperClasses, children: [
|
|
58020
|
-
/* @__PURE__ */ jsxRuntime.
|
|
58021
|
-
|
|
58022
|
-
|
|
58023
|
-
|
|
58024
|
-
|
|
58025
|
-
|
|
58026
|
-
|
|
58027
|
-
|
|
58028
|
-
|
|
58029
|
-
),
|
|
58030
|
-
open && submenuIndex !== null && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58031
|
-
Pressable,
|
|
58032
|
-
{
|
|
58033
|
-
variant: "outline",
|
|
58034
|
-
asButton: true,
|
|
58035
|
-
onClick: () => setSubmenuIndex(null),
|
|
58036
|
-
children: [
|
|
58037
|
-
"Back",
|
|
58038
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58039
|
-
DynamicIcon,
|
|
58040
|
-
{
|
|
58041
|
-
name: "lucide/chevron-left",
|
|
58042
|
-
size: 16,
|
|
58043
|
-
className: "ml-2"
|
|
58044
|
-
}
|
|
58045
|
-
)
|
|
58046
|
-
]
|
|
58047
|
-
}
|
|
58048
|
-
)
|
|
58049
|
-
] }),
|
|
57965
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57966
|
+
NavbarLogo,
|
|
57967
|
+
{
|
|
57968
|
+
logo,
|
|
57969
|
+
logoSlot,
|
|
57970
|
+
logoClassName,
|
|
57971
|
+
optixFlowConfig
|
|
57972
|
+
}
|
|
57973
|
+
) }),
|
|
58050
57974
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58051
57975
|
NavigationMenuList,
|
|
58052
57976
|
{
|
|
@@ -58087,14 +58011,7 @@ var NavbarMegaMenu = ({
|
|
|
58087
58011
|
size: "icon",
|
|
58088
58012
|
asButton: true,
|
|
58089
58013
|
"aria-label": "Main Menu",
|
|
58090
|
-
onClick: () =>
|
|
58091
|
-
if (open) {
|
|
58092
|
-
setOpen(false);
|
|
58093
|
-
setSubmenuIndex(null);
|
|
58094
|
-
} else {
|
|
58095
|
-
setOpen(true);
|
|
58096
|
-
}
|
|
58097
|
-
},
|
|
58014
|
+
onClick: () => setOpen(!open),
|
|
58098
58015
|
children: [
|
|
58099
58016
|
!open && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/menu", size: 16 }),
|
|
58100
58017
|
open && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", size: 16 })
|
|
@@ -58102,31 +58019,42 @@ var NavbarMegaMenu = ({
|
|
|
58102
58019
|
}
|
|
58103
58020
|
) })
|
|
58104
58021
|
] }),
|
|
58105
|
-
|
|
58106
|
-
|
|
58022
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58023
|
+
NavbarMobileMenu,
|
|
58107
58024
|
{
|
|
58108
|
-
|
|
58109
|
-
|
|
58110
|
-
|
|
58111
|
-
|
|
58112
|
-
children: [
|
|
58113
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
58025
|
+
open,
|
|
58026
|
+
onClose: () => setOpen(false),
|
|
58027
|
+
title: "Mobile Navigation",
|
|
58028
|
+
contentClassName: "pt-10 pb-20",
|
|
58029
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
58030
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
58114
58031
|
if (hasDropdownItems(link)) {
|
|
58032
|
+
const items = link.links || [];
|
|
58115
58033
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58116
|
-
|
|
58034
|
+
AccordionItem,
|
|
58117
58035
|
{
|
|
58118
|
-
|
|
58119
|
-
className: "
|
|
58120
|
-
onClick: () => setSubmenuIndex(index),
|
|
58036
|
+
value: `menu-${index}`,
|
|
58037
|
+
className: "border-b-0",
|
|
58121
58038
|
children: [
|
|
58122
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58123
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58124
|
-
|
|
58039
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
58040
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: items.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58041
|
+
Pressable,
|
|
58125
58042
|
{
|
|
58126
|
-
|
|
58127
|
-
|
|
58128
|
-
|
|
58129
|
-
|
|
58043
|
+
href: getLinkUrl(item),
|
|
58044
|
+
className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
|
|
58045
|
+
children: [
|
|
58046
|
+
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
58047
|
+
DynamicIcon,
|
|
58048
|
+
{
|
|
58049
|
+
name: item.iconName,
|
|
58050
|
+
size: 14
|
|
58051
|
+
}
|
|
58052
|
+
) : null),
|
|
58053
|
+
item.label
|
|
58054
|
+
]
|
|
58055
|
+
},
|
|
58056
|
+
`mobile-link-${index}-${itemIndex}`
|
|
58057
|
+
)) })
|
|
58130
58058
|
]
|
|
58131
58059
|
},
|
|
58132
58060
|
`mobile-menu-link-${index}`
|
|
@@ -58139,8 +58067,8 @@ var NavbarMegaMenu = ({
|
|
|
58139
58067
|
Pressable,
|
|
58140
58068
|
{
|
|
58141
58069
|
href: link.href,
|
|
58142
|
-
className: "flex
|
|
58143
|
-
children:
|
|
58070
|
+
className: "flex h-15 items-center text-base font-normal text-foreground",
|
|
58071
|
+
children: link.label
|
|
58144
58072
|
},
|
|
58145
58073
|
`mobile-menu-link-${index}`
|
|
58146
58074
|
);
|
|
@@ -58148,22 +58076,11 @@ var NavbarMegaMenu = ({
|
|
|
58148
58076
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58149
58077
|
"div",
|
|
58150
58078
|
{
|
|
58151
|
-
className: cn(
|
|
58152
|
-
"mx-8 mt-auto flex flex-col gap-4 py-12",
|
|
58153
|
-
actionsClassName
|
|
58154
|
-
),
|
|
58079
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
58155
58080
|
children: renderActions()
|
|
58156
58081
|
}
|
|
58157
58082
|
)
|
|
58158
|
-
]
|
|
58159
|
-
}
|
|
58160
|
-
),
|
|
58161
|
-
open && activeSubmenu && hasDropdownItems(activeSubmenu) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
58162
|
-
MobileSubmenu,
|
|
58163
|
-
{
|
|
58164
|
-
submenu: activeSubmenu,
|
|
58165
|
-
mobileMenuClassName,
|
|
58166
|
-
optixFlowConfig
|
|
58083
|
+
] })
|
|
58167
58084
|
}
|
|
58168
58085
|
)
|
|
58169
58086
|
]
|
|
@@ -58816,8 +58733,15 @@ var renderDropdownContent = (item, optixFlowConfig) => {
|
|
|
58816
58733
|
var renderMobileDropdownContent = (item) => {
|
|
58817
58734
|
switch (item.layout) {
|
|
58818
58735
|
case "solutions-with-platform":
|
|
58819
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
58820
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58736
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
58737
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58738
|
+
Pressable,
|
|
58739
|
+
{
|
|
58740
|
+
href: solution.href,
|
|
58741
|
+
className: "block pb-2 text-sm font-medium",
|
|
58742
|
+
children: solution.title
|
|
58743
|
+
}
|
|
58744
|
+
),
|
|
58821
58745
|
solution.subpages.map((subpage) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58822
58746
|
Pressable,
|
|
58823
58747
|
{
|
|
@@ -58910,7 +58834,6 @@ var MobileNavigationMenu = ({
|
|
|
58910
58834
|
open,
|
|
58911
58835
|
onClose: () => setOpen(false),
|
|
58912
58836
|
title: "Mobile Navigation",
|
|
58913
|
-
contentClassName: "pt-10 pb-20",
|
|
58914
58837
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
58915
58838
|
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map((item, index) => {
|
|
58916
58839
|
const hasDropdown = Boolean(item.layout);
|
|
@@ -58922,7 +58845,7 @@ var MobileNavigationMenu = ({
|
|
|
58922
58845
|
className: "border-b-0",
|
|
58923
58846
|
children: [
|
|
58924
58847
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
|
|
58925
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "
|
|
58848
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: renderMobileDropdownContent(item) })
|
|
58926
58849
|
]
|
|
58927
58850
|
},
|
|
58928
58851
|
typeof item.label === "string" ? item.label : `nav-${index}`
|
|
@@ -59074,36 +58997,28 @@ var NavbarFeatureGrid = ({
|
|
|
59074
58997
|
open,
|
|
59075
58998
|
onClose: () => setOpen(false),
|
|
59076
58999
|
title: "Mobile Navigation",
|
|
59077
|
-
contentClassName: "pt-10 pb-20",
|
|
59078
59000
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
59079
59001
|
/* @__PURE__ */ jsxRuntime.jsxs(Accordion, { type: "multiple", className: "w-full", children: [
|
|
59080
|
-
features && features.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
59081
|
-
|
|
59082
|
-
{
|
|
59083
|
-
|
|
59084
|
-
|
|
59085
|
-
|
|
59086
|
-
|
|
59087
|
-
/* @__PURE__ */ jsxRuntime.
|
|
59088
|
-
|
|
59089
|
-
{
|
|
59090
|
-
|
|
59091
|
-
|
|
59092
|
-
|
|
59093
|
-
|
|
59094
|
-
|
|
59095
|
-
] })
|
|
59096
|
-
},
|
|
59097
|
-
index
|
|
59098
|
-
)) })
|
|
59099
|
-
]
|
|
59100
|
-
}
|
|
59101
|
-
),
|
|
59002
|
+
features && features.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: "features", className: "border-b-0", children: [
|
|
59003
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal hover:no-underline", children: "Features" }),
|
|
59004
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
59005
|
+
Pressable,
|
|
59006
|
+
{
|
|
59007
|
+
href: feature.href,
|
|
59008
|
+
className: "flex items-start gap-2 pl-4 text-sm",
|
|
59009
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
59010
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: feature.title }),
|
|
59011
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: feature.description })
|
|
59012
|
+
] })
|
|
59013
|
+
},
|
|
59014
|
+
index
|
|
59015
|
+
)) })
|
|
59016
|
+
] }),
|
|
59102
59017
|
menu?.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
59103
59018
|
Pressable,
|
|
59104
59019
|
{
|
|
59105
59020
|
href: item.url,
|
|
59106
|
-
className: "flex h-15 items-center text-base font-normal
|
|
59021
|
+
className: "flex h-15 items-center text-base font-normal",
|
|
59107
59022
|
children: item.title
|
|
59108
59023
|
},
|
|
59109
59024
|
index
|
|
@@ -59112,10 +59027,7 @@ var NavbarFeatureGrid = ({
|
|
|
59112
59027
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
59113
59028
|
"div",
|
|
59114
59029
|
{
|
|
59115
|
-
className: cn(
|
|
59116
|
-
"mt-6 flex flex-col gap-4",
|
|
59117
|
-
actionsClassName
|
|
59118
|
-
),
|
|
59030
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
59119
59031
|
children: renderAuthActions
|
|
59120
59032
|
}
|
|
59121
59033
|
)
|
|
@@ -59136,8 +59048,8 @@ var NavbarFloatingPill = ({
|
|
|
59136
59048
|
menuSlot,
|
|
59137
59049
|
authActions,
|
|
59138
59050
|
authActionsSlot,
|
|
59139
|
-
className,
|
|
59140
|
-
containerClassName,
|
|
59051
|
+
className = "px-4 md:px-0",
|
|
59052
|
+
containerClassName = "container px-0 sm:px-0 lg:px-0",
|
|
59141
59053
|
pillWrapperClassName,
|
|
59142
59054
|
navigationMenuClassName,
|
|
59143
59055
|
actionsClassName,
|
|
@@ -59206,7 +59118,7 @@ var NavbarFloatingPill = ({
|
|
|
59206
59118
|
"nav",
|
|
59207
59119
|
{
|
|
59208
59120
|
className: cn(
|
|
59209
|
-
"absolute border top-4 left-1/2 z-50 w-[min(90%,700px)] -translate-x-1/2 rounded-full bg-background/70 backdrop-blur-md lg:top-6",
|
|
59121
|
+
"container absolute border top-4 left-1/2 z-50 w-[min(90%,700px)] -translate-x-1/2 rounded-full bg-background/70 backdrop-blur-md lg:top-6",
|
|
59210
59122
|
navWrapperClasses
|
|
59211
59123
|
),
|
|
59212
59124
|
children: [
|
|
@@ -59412,27 +59324,30 @@ var NavbarPlatformResources = ({
|
|
|
59412
59324
|
const renderDropdownContent3 = (link) => {
|
|
59413
59325
|
const layout = link.layout || "simple-list";
|
|
59414
59326
|
if (layout === "simple-list") {
|
|
59415
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "
|
|
59416
|
-
|
|
59327
|
+
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(
|
|
59328
|
+
"li",
|
|
59417
59329
|
{
|
|
59418
|
-
|
|
59419
|
-
|
|
59420
|
-
|
|
59421
|
-
|
|
59422
|
-
|
|
59423
|
-
|
|
59424
|
-
|
|
59425
|
-
|
|
59426
|
-
|
|
59427
|
-
|
|
59428
|
-
|
|
59429
|
-
|
|
59430
|
-
|
|
59431
|
-
|
|
59432
|
-
|
|
59433
|
-
|
|
59434
|
-
|
|
59435
|
-
|
|
59330
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
59331
|
+
NavigationMenuLink,
|
|
59332
|
+
{
|
|
59333
|
+
href: getLinkUrl(item),
|
|
59334
|
+
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
59335
|
+
children: [
|
|
59336
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
59337
|
+
DynamicIcon,
|
|
59338
|
+
{
|
|
59339
|
+
name: item.iconName,
|
|
59340
|
+
size: 16,
|
|
59341
|
+
className: "m-auto group-hover/link:stroke-black"
|
|
59342
|
+
}
|
|
59343
|
+
) : null }),
|
|
59344
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
59345
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
59346
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
59347
|
+
] })
|
|
59348
|
+
]
|
|
59349
|
+
}
|
|
59350
|
+
)
|
|
59436
59351
|
},
|
|
59437
59352
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
59438
59353
|
)) }) });
|
|
@@ -59771,7 +59686,6 @@ var NavbarPlatformResources = ({
|
|
|
59771
59686
|
open,
|
|
59772
59687
|
onClose: () => setOpen(false),
|
|
59773
59688
|
title: "Mobile Navigation",
|
|
59774
|
-
contentClassName: "pt-10 pb-20",
|
|
59775
59689
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
59776
59690
|
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
59777
59691
|
if (hasDropdownItems(link)) {
|
|
@@ -59782,7 +59696,7 @@ var NavbarPlatformResources = ({
|
|
|
59782
59696
|
className: "border-b-0",
|
|
59783
59697
|
children: [
|
|
59784
59698
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
59785
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "
|
|
59699
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
59786
59700
|
Pressable,
|
|
59787
59701
|
{
|
|
59788
59702
|
href: getLinkUrl(item),
|
|
@@ -59821,10 +59735,7 @@ var NavbarPlatformResources = ({
|
|
|
59821
59735
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
59822
59736
|
"div",
|
|
59823
59737
|
{
|
|
59824
|
-
className: cn(
|
|
59825
|
-
"mt-6 flex flex-col gap-4",
|
|
59826
|
-
actionsClassName
|
|
59827
|
-
),
|
|
59738
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
59828
59739
|
children: renderActions
|
|
59829
59740
|
}
|
|
59830
59741
|
)
|
|
@@ -59998,7 +59909,7 @@ var NavbarImagePreview = ({
|
|
|
59998
59909
|
{
|
|
59999
59910
|
className: cn("flex items-center gap-3.5", actionsClassName),
|
|
60000
59911
|
children: [
|
|
60001
|
-
renderAuthActions,
|
|
59912
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
|
|
60002
59913
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
60003
59914
|
Pressable,
|
|
60004
59915
|
{
|
|
@@ -60022,7 +59933,7 @@ var NavbarImagePreview = ({
|
|
|
60022
59933
|
{
|
|
60023
59934
|
open,
|
|
60024
59935
|
setOpen,
|
|
60025
|
-
mobileNavigation: mobileNavigation ?? [],
|
|
59936
|
+
mobileNavigation: mobileNavigation ?? navigation ?? [],
|
|
60026
59937
|
mobileNavigationSlot,
|
|
60027
59938
|
socialLinks: socialLinks ?? [],
|
|
60028
59939
|
socialLinksSlot,
|
|
@@ -60198,8 +60109,6 @@ var MobileNavigationMenu2 = ({
|
|
|
60198
60109
|
open,
|
|
60199
60110
|
onClose: () => setOpen(false),
|
|
60200
60111
|
title: "Mobile Navigation",
|
|
60201
|
-
className: "bg-primary text-primary-foreground",
|
|
60202
|
-
contentClassName: "pt-24 pb-12",
|
|
60203
60112
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col justify-between gap-30", children: [
|
|
60204
60113
|
renderMobileNavigation,
|
|
60205
60114
|
renderSocialLinks,
|
|
@@ -60479,11 +60388,8 @@ var MobileNavigationMenu3 = ({
|
|
|
60479
60388
|
onClose: () => setOpen(false),
|
|
60480
60389
|
title: "Mobile Navigation",
|
|
60481
60390
|
className: "dark",
|
|
60482
|
-
contentClassName: "pt-4",
|
|
60483
60391
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col justify-between gap-20", children: [
|
|
60484
|
-
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
60485
|
-
(item, index) => renderMobileMenuItem3(item, index)
|
|
60486
|
-
) }),
|
|
60392
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => renderMobileMenuItem3(item, index)) }),
|
|
60487
60393
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 pb-20", children: renderMobileAuthActions })
|
|
60488
60394
|
] }) })
|
|
60489
60395
|
}
|
|
@@ -60650,21 +60556,21 @@ var NavbarAnimatedPreview = ({
|
|
|
60650
60556
|
"h-full max-w-full after:absolute after:inset-0 after:z-998 after:block after:size-full after:content-[''] [&>div:last-child>div]:mt-0 [&>div:last-child>div]:animate-none [&>div:last-child>div]:rounded-none [&>div:last-child>div]:border-0 [&>div:last-child>div]:shadow-[0px_-1px_0px_0px_rgba(0,0,0,0.05),0px_0px_0px_1px_rgba(17,26,37,0.05),0px_2px_5px_0px_rgba(16,25,36,0.1),0px_5px_20px_0px_rgba(16,25,36,0.1)]!",
|
|
60651
60557
|
navigationMenuClassName
|
|
60652
60558
|
);
|
|
60653
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
60654
|
-
|
|
60655
|
-
|
|
60656
|
-
|
|
60657
|
-
|
|
60658
|
-
|
|
60659
|
-
|
|
60660
|
-
|
|
60661
|
-
|
|
60662
|
-
|
|
60663
|
-
|
|
60664
|
-
|
|
60665
|
-
|
|
60666
|
-
|
|
60667
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
60559
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
60560
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60561
|
+
Section,
|
|
60562
|
+
{
|
|
60563
|
+
background,
|
|
60564
|
+
spacing: spacingOverride ?? spacing,
|
|
60565
|
+
className: cn(
|
|
60566
|
+
"pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
|
|
60567
|
+
sectionClasses
|
|
60568
|
+
),
|
|
60569
|
+
pattern,
|
|
60570
|
+
patternOpacity,
|
|
60571
|
+
containerClassName: sectionContainerClassName,
|
|
60572
|
+
containerMaxWidth: sectionContainerMaxWidth,
|
|
60573
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
60668
60574
|
"div",
|
|
60669
60575
|
{
|
|
60670
60576
|
className: cn(
|
|
@@ -60691,14 +60597,7 @@ var NavbarAnimatedPreview = ({
|
|
|
60691
60597
|
size: "icon",
|
|
60692
60598
|
asButton: true,
|
|
60693
60599
|
onClick: handleMobileMenu,
|
|
60694
|
-
children:
|
|
60695
|
-
DynamicIcon,
|
|
60696
|
-
{
|
|
60697
|
-
name: "lucide/x",
|
|
60698
|
-
size: 22,
|
|
60699
|
-
className: "stroke-foreground"
|
|
60700
|
-
}
|
|
60701
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
60600
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
60702
60601
|
DynamicIcon,
|
|
60703
60602
|
{
|
|
60704
60603
|
name: "lucide/menu",
|
|
@@ -60711,20 +60610,20 @@ var NavbarAnimatedPreview = ({
|
|
|
60711
60610
|
] })
|
|
60712
60611
|
]
|
|
60713
60612
|
}
|
|
60714
|
-
) })
|
|
60715
|
-
|
|
60716
|
-
|
|
60717
|
-
|
|
60718
|
-
|
|
60719
|
-
|
|
60720
|
-
|
|
60721
|
-
|
|
60722
|
-
|
|
60723
|
-
|
|
60724
|
-
|
|
60725
|
-
|
|
60726
|
-
|
|
60727
|
-
);
|
|
60613
|
+
) }) }) }) })
|
|
60614
|
+
}
|
|
60615
|
+
),
|
|
60616
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60617
|
+
MobileNavigationMenu4,
|
|
60618
|
+
{
|
|
60619
|
+
open,
|
|
60620
|
+
setOpen,
|
|
60621
|
+
menuLinks: menuLinks ?? [],
|
|
60622
|
+
actions,
|
|
60623
|
+
actionsSlot
|
|
60624
|
+
}
|
|
60625
|
+
)
|
|
60626
|
+
] });
|
|
60728
60627
|
};
|
|
60729
60628
|
var DesktopMenuItem5 = ({
|
|
60730
60629
|
item,
|
|
@@ -61049,11 +60948,8 @@ var MobileNavigationMenu4 = ({
|
|
|
61049
60948
|
open,
|
|
61050
60949
|
onClose: () => setOpen(false),
|
|
61051
60950
|
title: "Mobile Navigation",
|
|
61052
|
-
contentClassName: "pt-4 pb-20",
|
|
61053
60951
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
61054
|
-
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
|
|
61055
|
-
(item, index) => renderMobileMenuItem4(item, index)
|
|
61056
|
-
) }),
|
|
60952
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map((item, index) => renderMobileMenuItem4(item, index)) }),
|
|
61057
60953
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 flex flex-col gap-2", children: renderMobileActions })
|
|
61058
60954
|
] })
|
|
61059
60955
|
}
|
|
@@ -61185,18 +61081,18 @@ var NavbarMultiColumnGroups = ({
|
|
|
61185
61081
|
sectionContainerMaxWidth,
|
|
61186
61082
|
spacingOverride
|
|
61187
61083
|
} = getNavbarLayoutClasses(layoutVariant, { className, containerClassName });
|
|
61188
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
61189
|
-
|
|
61190
|
-
|
|
61191
|
-
|
|
61192
|
-
|
|
61193
|
-
|
|
61194
|
-
|
|
61195
|
-
|
|
61196
|
-
|
|
61197
|
-
|
|
61198
|
-
|
|
61199
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
61084
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
61085
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
61086
|
+
Section,
|
|
61087
|
+
{
|
|
61088
|
+
background,
|
|
61089
|
+
spacing: spacingOverride ?? spacing,
|
|
61090
|
+
className: sectionClasses,
|
|
61091
|
+
pattern,
|
|
61092
|
+
patternOpacity,
|
|
61093
|
+
containerClassName: sectionContainerClassName,
|
|
61094
|
+
containerMaxWidth: sectionContainerMaxWidth,
|
|
61095
|
+
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(
|
|
61200
61096
|
"div",
|
|
61201
61097
|
{
|
|
61202
61098
|
className: cn(
|
|
@@ -61238,16 +61134,10 @@ var NavbarMultiColumnGroups = ({
|
|
|
61238
61134
|
{
|
|
61239
61135
|
className: "size-11",
|
|
61240
61136
|
variant: "ghost",
|
|
61137
|
+
size: "icon",
|
|
61241
61138
|
asButton: true,
|
|
61242
61139
|
onClick: handleMobileMenu,
|
|
61243
|
-
children:
|
|
61244
|
-
DynamicIcon,
|
|
61245
|
-
{
|
|
61246
|
-
name: "lucide/x",
|
|
61247
|
-
size: 22,
|
|
61248
|
-
className: "stroke-foreground"
|
|
61249
|
-
}
|
|
61250
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
61140
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
61251
61141
|
DynamicIcon,
|
|
61252
61142
|
{
|
|
61253
61143
|
name: "lucide/menu",
|
|
@@ -61259,20 +61149,20 @@ var NavbarMultiColumnGroups = ({
|
|
|
61259
61149
|
) })
|
|
61260
61150
|
]
|
|
61261
61151
|
}
|
|
61262
|
-
) }) }) })
|
|
61263
|
-
|
|
61264
|
-
|
|
61265
|
-
|
|
61266
|
-
|
|
61267
|
-
|
|
61268
|
-
|
|
61269
|
-
|
|
61270
|
-
|
|
61271
|
-
|
|
61272
|
-
|
|
61273
|
-
|
|
61274
|
-
|
|
61275
|
-
);
|
|
61152
|
+
) }) }) })
|
|
61153
|
+
}
|
|
61154
|
+
),
|
|
61155
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
61156
|
+
MobileNavigationMenu5,
|
|
61157
|
+
{
|
|
61158
|
+
open,
|
|
61159
|
+
setOpen,
|
|
61160
|
+
navigation: navigation ?? [],
|
|
61161
|
+
authActions: mobileAuthActions,
|
|
61162
|
+
authActionsSlot: mobileAuthActionsSlot
|
|
61163
|
+
}
|
|
61164
|
+
)
|
|
61165
|
+
] });
|
|
61276
61166
|
};
|
|
61277
61167
|
var DesktopMenuItem6 = ({ item, index }) => {
|
|
61278
61168
|
if (item.groups) {
|
|
@@ -61354,12 +61244,8 @@ var MobileNavigationMenu5 = ({
|
|
|
61354
61244
|
open,
|
|
61355
61245
|
onClose: () => setOpen(false),
|
|
61356
61246
|
title: "Mobile Navigation",
|
|
61357
|
-
className: "dark",
|
|
61358
|
-
contentClassName: "pt-10 pb-20",
|
|
61359
61247
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
61360
|
-
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
61361
|
-
(item, index) => renderMobileMenuItem5(item, index)
|
|
61362
|
-
) }),
|
|
61248
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => renderMobileMenuItem5(item, index)) }),
|
|
61363
61249
|
renderMobileAuthActions
|
|
61364
61250
|
] }) })
|
|
61365
61251
|
}
|
|
@@ -61374,12 +61260,12 @@ var renderMobileMenuItem5 = (item, index) => {
|
|
|
61374
61260
|
className: "border-b-0",
|
|
61375
61261
|
children: [
|
|
61376
61262
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center p-0 px-4! text-base leading-[3.75] font-normal text-muted-foreground hover:bg-muted hover:no-underline", children: item.title }),
|
|
61377
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "
|
|
61263
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.flatMap(
|
|
61378
61264
|
(group, groupIndex) => group.links.map((link, linkIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
61379
61265
|
Pressable,
|
|
61380
61266
|
{
|
|
61381
61267
|
href: link.url,
|
|
61382
|
-
className: "flex h-12 items-center gap-2 rounded-lg px-4 text-muted-foreground transition-colors duration-300 hover:bg-muted hover:text-foreground",
|
|
61268
|
+
className: "flex min-h-12 items-center gap-2 rounded-lg px-4 text-muted-foreground transition-colors duration-300 hover:bg-muted hover:text-foreground",
|
|
61383
61269
|
children: [
|
|
61384
61270
|
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
61385
61271
|
DynamicIcon,
|