@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.js
CHANGED
|
@@ -57084,7 +57084,7 @@ var NavbarMobileMenu = ({
|
|
|
57084
57084
|
"div",
|
|
57085
57085
|
{
|
|
57086
57086
|
className: cn(
|
|
57087
|
-
"fixed inset-0 z-
|
|
57087
|
+
"fixed inset-0 z-998 flex flex-col bg-background",
|
|
57088
57088
|
"animate-in slide-in-from-top duration-300",
|
|
57089
57089
|
"data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top data-[state=closed]:duration-300",
|
|
57090
57090
|
className
|
|
@@ -57468,11 +57468,11 @@ var renderMobileMenuItem2 = (item) => {
|
|
|
57468
57468
|
if (item.items) {
|
|
57469
57469
|
return /* @__PURE__ */ jsxs(AccordionItem, { value: item.title, className: "border-b-0", children: [
|
|
57470
57470
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.title }),
|
|
57471
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "
|
|
57471
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.items.map((subItem) => /* @__PURE__ */ jsxs(
|
|
57472
57472
|
Pressable,
|
|
57473
57473
|
{
|
|
57474
57474
|
href: subItem.url,
|
|
57475
|
-
className: "flex items-center gap-2 pl-
|
|
57475
|
+
className: "flex items-center gap-2 pl-2 text-sm text-muted-foreground hover:text-foreground",
|
|
57476
57476
|
children: [
|
|
57477
57477
|
subItem.icon && /* @__PURE__ */ jsx(DynamicIcon, { name: subItem.icon, size: 14 }),
|
|
57478
57478
|
subItem.title
|
|
@@ -57627,16 +57627,8 @@ var NavbarCenteredMenu = ({
|
|
|
57627
57627
|
open,
|
|
57628
57628
|
onClose: () => setOpen(false),
|
|
57629
57629
|
title: "Mobile Navigation",
|
|
57630
|
-
contentClassName: "pt-10 pb-20",
|
|
57631
57630
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
57632
|
-
/* @__PURE__ */ jsx(
|
|
57633
|
-
Accordion,
|
|
57634
|
-
{
|
|
57635
|
-
type: "multiple",
|
|
57636
|
-
className: "w-full",
|
|
57637
|
-
children: renderMobileMenu
|
|
57638
|
-
}
|
|
57639
|
-
),
|
|
57631
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: renderMobileMenu }),
|
|
57640
57632
|
/* @__PURE__ */ jsx(
|
|
57641
57633
|
"div",
|
|
57642
57634
|
{
|
|
@@ -57857,51 +57849,6 @@ var DesktopMenuItem = ({
|
|
|
57857
57849
|
}
|
|
57858
57850
|
return null;
|
|
57859
57851
|
};
|
|
57860
|
-
var MobileSubmenu = ({
|
|
57861
|
-
submenu,
|
|
57862
|
-
mobileMenuClassName,
|
|
57863
|
-
optixFlowConfig
|
|
57864
|
-
}) => {
|
|
57865
|
-
const items = submenu.links || [];
|
|
57866
|
-
return /* @__PURE__ */ jsxs(
|
|
57867
|
-
"div",
|
|
57868
|
-
{
|
|
57869
|
-
className: cn(
|
|
57870
|
-
"fixed inset-0 top-[72px] flex h-[calc(100vh-72px)] w-full flex-col overflow-scroll border-t border-border bg-background lg:hidden",
|
|
57871
|
-
mobileMenuClassName
|
|
57872
|
-
),
|
|
57873
|
-
children: [
|
|
57874
|
-
/* @__PURE__ */ jsx("div", { className: "px-8 py-3.5 text-xs tracking-widest text-muted-foreground uppercase", children: submenu.label }),
|
|
57875
|
-
items.map((item, index) => {
|
|
57876
|
-
return /* @__PURE__ */ jsxs(
|
|
57877
|
-
Pressable,
|
|
57878
|
-
{
|
|
57879
|
-
href: getLinkUrl(item),
|
|
57880
|
-
className: "flex items-start gap-4 border-b border-border px-8 py-5",
|
|
57881
|
-
children: [
|
|
57882
|
-
item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
57883
|
-
Img,
|
|
57884
|
-
{
|
|
57885
|
-
src: item.image,
|
|
57886
|
-
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
57887
|
-
className: "h-full w-full object-cover object-center",
|
|
57888
|
-
optixFlowConfig
|
|
57889
|
-
}
|
|
57890
|
-
) }),
|
|
57891
|
-
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ 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__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
57892
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
57893
|
-
/* @__PURE__ */ jsx("div", { className: "text-base", children: item.label }),
|
|
57894
|
-
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: item.description })
|
|
57895
|
-
] })
|
|
57896
|
-
]
|
|
57897
|
-
},
|
|
57898
|
-
`mobile-item-${index}`
|
|
57899
|
-
);
|
|
57900
|
-
})
|
|
57901
|
-
]
|
|
57902
|
-
}
|
|
57903
|
-
);
|
|
57904
|
-
};
|
|
57905
57852
|
var NavbarMegaMenu = ({
|
|
57906
57853
|
className,
|
|
57907
57854
|
containerClassName,
|
|
@@ -57922,8 +57869,6 @@ var NavbarMegaMenu = ({
|
|
|
57922
57869
|
optixFlowConfig
|
|
57923
57870
|
}) => {
|
|
57924
57871
|
const [open, setOpen] = useState(false);
|
|
57925
|
-
const [submenuIndex, setSubmenuIndex] = useState(null);
|
|
57926
|
-
const activeSubmenu = submenuIndex !== null ? menuLinks?.[submenuIndex] : null;
|
|
57927
57872
|
const hasDropdownItems = (link) => Boolean(
|
|
57928
57873
|
link.links && link.links.length > 0 || link.dropdownGroups && link.dropdownGroups.length > 0
|
|
57929
57874
|
);
|
|
@@ -57977,36 +57922,15 @@ var NavbarMegaMenu = ({
|
|
|
57977
57922
|
),
|
|
57978
57923
|
children: [
|
|
57979
57924
|
/* @__PURE__ */ jsxs("div", { className: navWrapperClasses, children: [
|
|
57980
|
-
/* @__PURE__ */
|
|
57981
|
-
|
|
57982
|
-
|
|
57983
|
-
|
|
57984
|
-
|
|
57985
|
-
|
|
57986
|
-
|
|
57987
|
-
|
|
57988
|
-
|
|
57989
|
-
),
|
|
57990
|
-
open && submenuIndex !== null && /* @__PURE__ */ jsxs(
|
|
57991
|
-
Pressable,
|
|
57992
|
-
{
|
|
57993
|
-
variant: "outline",
|
|
57994
|
-
asButton: true,
|
|
57995
|
-
onClick: () => setSubmenuIndex(null),
|
|
57996
|
-
children: [
|
|
57997
|
-
"Back",
|
|
57998
|
-
/* @__PURE__ */ jsx(
|
|
57999
|
-
DynamicIcon,
|
|
58000
|
-
{
|
|
58001
|
-
name: "lucide/chevron-left",
|
|
58002
|
-
size: 16,
|
|
58003
|
-
className: "ml-2"
|
|
58004
|
-
}
|
|
58005
|
-
)
|
|
58006
|
-
]
|
|
58007
|
-
}
|
|
58008
|
-
)
|
|
58009
|
-
] }),
|
|
57925
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
57926
|
+
NavbarLogo,
|
|
57927
|
+
{
|
|
57928
|
+
logo,
|
|
57929
|
+
logoSlot,
|
|
57930
|
+
logoClassName,
|
|
57931
|
+
optixFlowConfig
|
|
57932
|
+
}
|
|
57933
|
+
) }),
|
|
58010
57934
|
/* @__PURE__ */ jsx(
|
|
58011
57935
|
NavigationMenuList,
|
|
58012
57936
|
{
|
|
@@ -58047,14 +57971,7 @@ var NavbarMegaMenu = ({
|
|
|
58047
57971
|
size: "icon",
|
|
58048
57972
|
asButton: true,
|
|
58049
57973
|
"aria-label": "Main Menu",
|
|
58050
|
-
onClick: () =>
|
|
58051
|
-
if (open) {
|
|
58052
|
-
setOpen(false);
|
|
58053
|
-
setSubmenuIndex(null);
|
|
58054
|
-
} else {
|
|
58055
|
-
setOpen(true);
|
|
58056
|
-
}
|
|
58057
|
-
},
|
|
57974
|
+
onClick: () => setOpen(!open),
|
|
58058
57975
|
children: [
|
|
58059
57976
|
!open && /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 16 }),
|
|
58060
57977
|
open && /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/x", size: 16 })
|
|
@@ -58062,31 +57979,42 @@ var NavbarMegaMenu = ({
|
|
|
58062
57979
|
}
|
|
58063
57980
|
) })
|
|
58064
57981
|
] }),
|
|
58065
|
-
|
|
58066
|
-
|
|
57982
|
+
/* @__PURE__ */ jsx(
|
|
57983
|
+
NavbarMobileMenu,
|
|
58067
57984
|
{
|
|
58068
|
-
|
|
58069
|
-
|
|
58070
|
-
|
|
58071
|
-
|
|
58072
|
-
children: [
|
|
58073
|
-
/* @__PURE__ */ jsx("
|
|
57985
|
+
open,
|
|
57986
|
+
onClose: () => setOpen(false),
|
|
57987
|
+
title: "Mobile Navigation",
|
|
57988
|
+
contentClassName: "pt-10 pb-20",
|
|
57989
|
+
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
57990
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
58074
57991
|
if (hasDropdownItems(link)) {
|
|
57992
|
+
const items = link.links || [];
|
|
58075
57993
|
return /* @__PURE__ */ jsxs(
|
|
58076
|
-
|
|
57994
|
+
AccordionItem,
|
|
58077
57995
|
{
|
|
58078
|
-
|
|
58079
|
-
className: "
|
|
58080
|
-
onClick: () => setSubmenuIndex(index),
|
|
57996
|
+
value: `menu-${index}`,
|
|
57997
|
+
className: "border-b-0",
|
|
58081
57998
|
children: [
|
|
58082
|
-
/* @__PURE__ */ jsx(
|
|
58083
|
-
/* @__PURE__ */ jsx(
|
|
58084
|
-
|
|
57999
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
58000
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: items.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
58001
|
+
Pressable,
|
|
58085
58002
|
{
|
|
58086
|
-
|
|
58087
|
-
|
|
58088
|
-
|
|
58089
|
-
|
|
58003
|
+
href: getLinkUrl(item),
|
|
58004
|
+
className: "flex items-center gap-2 pl-4 text-sm text-muted-foreground hover:text-foreground",
|
|
58005
|
+
children: [
|
|
58006
|
+
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
|
|
58007
|
+
DynamicIcon,
|
|
58008
|
+
{
|
|
58009
|
+
name: item.iconName,
|
|
58010
|
+
size: 14
|
|
58011
|
+
}
|
|
58012
|
+
) : null),
|
|
58013
|
+
item.label
|
|
58014
|
+
]
|
|
58015
|
+
},
|
|
58016
|
+
`mobile-link-${index}-${itemIndex}`
|
|
58017
|
+
)) })
|
|
58090
58018
|
]
|
|
58091
58019
|
},
|
|
58092
58020
|
`mobile-menu-link-${index}`
|
|
@@ -58099,8 +58027,8 @@ var NavbarMegaMenu = ({
|
|
|
58099
58027
|
Pressable,
|
|
58100
58028
|
{
|
|
58101
58029
|
href: link.href,
|
|
58102
|
-
className: "flex
|
|
58103
|
-
children:
|
|
58030
|
+
className: "flex h-15 items-center text-base font-normal text-foreground",
|
|
58031
|
+
children: link.label
|
|
58104
58032
|
},
|
|
58105
58033
|
`mobile-menu-link-${index}`
|
|
58106
58034
|
);
|
|
@@ -58108,22 +58036,11 @@ var NavbarMegaMenu = ({
|
|
|
58108
58036
|
/* @__PURE__ */ jsx(
|
|
58109
58037
|
"div",
|
|
58110
58038
|
{
|
|
58111
|
-
className: cn(
|
|
58112
|
-
"mx-8 mt-auto flex flex-col gap-4 py-12",
|
|
58113
|
-
actionsClassName
|
|
58114
|
-
),
|
|
58039
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
58115
58040
|
children: renderActions()
|
|
58116
58041
|
}
|
|
58117
58042
|
)
|
|
58118
|
-
]
|
|
58119
|
-
}
|
|
58120
|
-
),
|
|
58121
|
-
open && activeSubmenu && hasDropdownItems(activeSubmenu) && /* @__PURE__ */ jsx(
|
|
58122
|
-
MobileSubmenu,
|
|
58123
|
-
{
|
|
58124
|
-
submenu: activeSubmenu,
|
|
58125
|
-
mobileMenuClassName,
|
|
58126
|
-
optixFlowConfig
|
|
58043
|
+
] })
|
|
58127
58044
|
}
|
|
58128
58045
|
)
|
|
58129
58046
|
]
|
|
@@ -58776,8 +58693,15 @@ var renderDropdownContent = (item, optixFlowConfig) => {
|
|
|
58776
58693
|
var renderMobileDropdownContent = (item) => {
|
|
58777
58694
|
switch (item.layout) {
|
|
58778
58695
|
case "solutions-with-platform":
|
|
58779
|
-
return /* @__PURE__ */ jsx("div", { className: "
|
|
58780
|
-
/* @__PURE__ */ jsx(
|
|
58696
|
+
return /* @__PURE__ */ jsx("div", { className: "relative", children: item.solutionCards?.map((solution) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
58697
|
+
/* @__PURE__ */ jsx(
|
|
58698
|
+
Pressable,
|
|
58699
|
+
{
|
|
58700
|
+
href: solution.href,
|
|
58701
|
+
className: "block pb-2 text-sm font-medium",
|
|
58702
|
+
children: solution.title
|
|
58703
|
+
}
|
|
58704
|
+
),
|
|
58781
58705
|
solution.subpages.map((subpage) => /* @__PURE__ */ jsxs(
|
|
58782
58706
|
Pressable,
|
|
58783
58707
|
{
|
|
@@ -58870,7 +58794,6 @@ var MobileNavigationMenu = ({
|
|
|
58870
58794
|
open,
|
|
58871
58795
|
onClose: () => setOpen(false),
|
|
58872
58796
|
title: "Mobile Navigation",
|
|
58873
|
-
contentClassName: "pt-10 pb-20",
|
|
58874
58797
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
58875
58798
|
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map((item, index) => {
|
|
58876
58799
|
const hasDropdown = Boolean(item.layout);
|
|
@@ -58882,7 +58805,7 @@ var MobileNavigationMenu = ({
|
|
|
58882
58805
|
className: "border-b-0",
|
|
58883
58806
|
children: [
|
|
58884
58807
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: item.label }),
|
|
58885
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "
|
|
58808
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: renderMobileDropdownContent(item) })
|
|
58886
58809
|
]
|
|
58887
58810
|
},
|
|
58888
58811
|
typeof item.label === "string" ? item.label : `nav-${index}`
|
|
@@ -59034,36 +58957,28 @@ var NavbarFeatureGrid = ({
|
|
|
59034
58957
|
open,
|
|
59035
58958
|
onClose: () => setOpen(false),
|
|
59036
58959
|
title: "Mobile Navigation",
|
|
59037
|
-
contentClassName: "pt-10 pb-20",
|
|
59038
58960
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
59039
58961
|
/* @__PURE__ */ jsxs(Accordion, { type: "multiple", className: "w-full", children: [
|
|
59040
|
-
features && features.length > 0 && /* @__PURE__ */ jsxs(
|
|
59041
|
-
|
|
59042
|
-
{
|
|
59043
|
-
|
|
59044
|
-
|
|
59045
|
-
|
|
59046
|
-
|
|
59047
|
-
/* @__PURE__ */
|
|
59048
|
-
|
|
59049
|
-
{
|
|
59050
|
-
|
|
59051
|
-
|
|
59052
|
-
|
|
59053
|
-
|
|
59054
|
-
|
|
59055
|
-
] })
|
|
59056
|
-
},
|
|
59057
|
-
index
|
|
59058
|
-
)) })
|
|
59059
|
-
]
|
|
59060
|
-
}
|
|
59061
|
-
),
|
|
58962
|
+
features && features.length > 0 && /* @__PURE__ */ jsxs(AccordionItem, { value: "features", className: "border-b-0", children: [
|
|
58963
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal hover:no-underline", children: "Features" }),
|
|
58964
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: features.map((feature, index) => /* @__PURE__ */ jsx(
|
|
58965
|
+
Pressable,
|
|
58966
|
+
{
|
|
58967
|
+
href: feature.href,
|
|
58968
|
+
className: "flex items-start gap-2 pl-4 text-sm",
|
|
58969
|
+
children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
58970
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold", children: feature.title }),
|
|
58971
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm", children: feature.description })
|
|
58972
|
+
] })
|
|
58973
|
+
},
|
|
58974
|
+
index
|
|
58975
|
+
)) })
|
|
58976
|
+
] }),
|
|
59062
58977
|
menu?.map((item, index) => /* @__PURE__ */ jsx(
|
|
59063
58978
|
Pressable,
|
|
59064
58979
|
{
|
|
59065
58980
|
href: item.url,
|
|
59066
|
-
className: "flex h-15 items-center text-base font-normal
|
|
58981
|
+
className: "flex h-15 items-center text-base font-normal",
|
|
59067
58982
|
children: item.title
|
|
59068
58983
|
},
|
|
59069
58984
|
index
|
|
@@ -59072,10 +58987,7 @@ var NavbarFeatureGrid = ({
|
|
|
59072
58987
|
/* @__PURE__ */ jsx(
|
|
59073
58988
|
"div",
|
|
59074
58989
|
{
|
|
59075
|
-
className: cn(
|
|
59076
|
-
"mt-6 flex flex-col gap-4",
|
|
59077
|
-
actionsClassName
|
|
59078
|
-
),
|
|
58990
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
59079
58991
|
children: renderAuthActions
|
|
59080
58992
|
}
|
|
59081
58993
|
)
|
|
@@ -59096,8 +59008,8 @@ var NavbarFloatingPill = ({
|
|
|
59096
59008
|
menuSlot,
|
|
59097
59009
|
authActions,
|
|
59098
59010
|
authActionsSlot,
|
|
59099
|
-
className,
|
|
59100
|
-
containerClassName,
|
|
59011
|
+
className = "px-4 md:px-0",
|
|
59012
|
+
containerClassName = "container px-0 sm:px-0 lg:px-0",
|
|
59101
59013
|
pillWrapperClassName,
|
|
59102
59014
|
navigationMenuClassName,
|
|
59103
59015
|
actionsClassName,
|
|
@@ -59166,7 +59078,7 @@ var NavbarFloatingPill = ({
|
|
|
59166
59078
|
"nav",
|
|
59167
59079
|
{
|
|
59168
59080
|
className: cn(
|
|
59169
|
-
"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",
|
|
59081
|
+
"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",
|
|
59170
59082
|
navWrapperClasses
|
|
59171
59083
|
),
|
|
59172
59084
|
children: [
|
|
@@ -59372,27 +59284,30 @@ var NavbarPlatformResources = ({
|
|
|
59372
59284
|
const renderDropdownContent3 = (link) => {
|
|
59373
59285
|
const layout = link.layout || "simple-list";
|
|
59374
59286
|
if (layout === "simple-list") {
|
|
59375
|
-
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "
|
|
59376
|
-
|
|
59287
|
+
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(
|
|
59288
|
+
"li",
|
|
59377
59289
|
{
|
|
59378
|
-
|
|
59379
|
-
|
|
59380
|
-
|
|
59381
|
-
|
|
59382
|
-
|
|
59383
|
-
|
|
59384
|
-
|
|
59385
|
-
|
|
59386
|
-
|
|
59387
|
-
|
|
59388
|
-
|
|
59389
|
-
|
|
59390
|
-
|
|
59391
|
-
|
|
59392
|
-
|
|
59393
|
-
|
|
59394
|
-
|
|
59395
|
-
|
|
59290
|
+
children: /* @__PURE__ */ jsxs(
|
|
59291
|
+
NavigationMenuLink,
|
|
59292
|
+
{
|
|
59293
|
+
href: getLinkUrl(item),
|
|
59294
|
+
className: "group/link flex-row gap-2 px-3 py-2 transition-colors duration-200",
|
|
59295
|
+
children: [
|
|
59296
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-8 shrink-0 rounded-lg border duration-400 fade-in group-hover/link:bg-background", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(
|
|
59297
|
+
DynamicIcon,
|
|
59298
|
+
{
|
|
59299
|
+
name: item.iconName,
|
|
59300
|
+
size: 16,
|
|
59301
|
+
className: "m-auto group-hover/link:stroke-black"
|
|
59302
|
+
}
|
|
59303
|
+
) : null }),
|
|
59304
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
59305
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
59306
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground group-hover/link:text-foreground", children: item.description })
|
|
59307
|
+
] })
|
|
59308
|
+
]
|
|
59309
|
+
}
|
|
59310
|
+
)
|
|
59396
59311
|
},
|
|
59397
59312
|
`${typeof item.label === "string" ? item.label : "item"}-${itemIndex}`
|
|
59398
59313
|
)) }) });
|
|
@@ -59731,7 +59646,6 @@ var NavbarPlatformResources = ({
|
|
|
59731
59646
|
open,
|
|
59732
59647
|
onClose: () => setOpen(false),
|
|
59733
59648
|
title: "Mobile Navigation",
|
|
59734
|
-
contentClassName: "pt-10 pb-20",
|
|
59735
59649
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
59736
59650
|
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
59737
59651
|
if (hasDropdownItems(link)) {
|
|
@@ -59742,7 +59656,7 @@ var NavbarPlatformResources = ({
|
|
|
59742
59656
|
className: "border-b-0",
|
|
59743
59657
|
children: [
|
|
59744
59658
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
59745
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "
|
|
59659
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
59746
59660
|
Pressable,
|
|
59747
59661
|
{
|
|
59748
59662
|
href: getLinkUrl(item),
|
|
@@ -59781,10 +59695,7 @@ var NavbarPlatformResources = ({
|
|
|
59781
59695
|
/* @__PURE__ */ jsx(
|
|
59782
59696
|
"div",
|
|
59783
59697
|
{
|
|
59784
|
-
className: cn(
|
|
59785
|
-
"mt-6 flex flex-col gap-4",
|
|
59786
|
-
actionsClassName
|
|
59787
|
-
),
|
|
59698
|
+
className: cn("mt-6 flex flex-col gap-4", actionsClassName),
|
|
59788
59699
|
children: renderActions
|
|
59789
59700
|
}
|
|
59790
59701
|
)
|
|
@@ -59958,7 +59869,7 @@ var NavbarImagePreview = ({
|
|
|
59958
59869
|
{
|
|
59959
59870
|
className: cn("flex items-center gap-3.5", actionsClassName),
|
|
59960
59871
|
children: [
|
|
59961
|
-
renderAuthActions,
|
|
59872
|
+
/* @__PURE__ */ jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
|
|
59962
59873
|
/* @__PURE__ */ jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsx(
|
|
59963
59874
|
Pressable,
|
|
59964
59875
|
{
|
|
@@ -59982,7 +59893,7 @@ var NavbarImagePreview = ({
|
|
|
59982
59893
|
{
|
|
59983
59894
|
open,
|
|
59984
59895
|
setOpen,
|
|
59985
|
-
mobileNavigation: mobileNavigation ?? [],
|
|
59896
|
+
mobileNavigation: mobileNavigation ?? navigation ?? [],
|
|
59986
59897
|
mobileNavigationSlot,
|
|
59987
59898
|
socialLinks: socialLinks ?? [],
|
|
59988
59899
|
socialLinksSlot,
|
|
@@ -60158,8 +60069,6 @@ var MobileNavigationMenu2 = ({
|
|
|
60158
60069
|
open,
|
|
60159
60070
|
onClose: () => setOpen(false),
|
|
60160
60071
|
title: "Mobile Navigation",
|
|
60161
|
-
className: "bg-primary text-primary-foreground",
|
|
60162
|
-
contentClassName: "pt-24 pb-12",
|
|
60163
60072
|
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col justify-between gap-30", children: [
|
|
60164
60073
|
renderMobileNavigation,
|
|
60165
60074
|
renderSocialLinks,
|
|
@@ -60439,11 +60348,8 @@ var MobileNavigationMenu3 = ({
|
|
|
60439
60348
|
onClose: () => setOpen(false),
|
|
60440
60349
|
title: "Mobile Navigation",
|
|
60441
60350
|
className: "dark",
|
|
60442
|
-
contentClassName: "pt-4",
|
|
60443
60351
|
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col justify-between gap-20", children: [
|
|
60444
|
-
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
60445
|
-
(item, index) => renderMobileMenuItem3(item, index)
|
|
60446
|
-
) }),
|
|
60352
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => renderMobileMenuItem3(item, index)) }),
|
|
60447
60353
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 pb-20", children: renderMobileAuthActions })
|
|
60448
60354
|
] }) })
|
|
60449
60355
|
}
|
|
@@ -60610,21 +60516,21 @@ var NavbarAnimatedPreview = ({
|
|
|
60610
60516
|
"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)]!",
|
|
60611
60517
|
navigationMenuClassName
|
|
60612
60518
|
);
|
|
60613
|
-
return /* @__PURE__ */
|
|
60614
|
-
|
|
60615
|
-
|
|
60616
|
-
|
|
60617
|
-
|
|
60618
|
-
|
|
60619
|
-
|
|
60620
|
-
|
|
60621
|
-
|
|
60622
|
-
|
|
60623
|
-
|
|
60624
|
-
|
|
60625
|
-
|
|
60626
|
-
|
|
60627
|
-
/* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
|
|
60519
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60520
|
+
/* @__PURE__ */ jsx(
|
|
60521
|
+
Section,
|
|
60522
|
+
{
|
|
60523
|
+
background,
|
|
60524
|
+
spacing: spacingOverride ?? spacing,
|
|
60525
|
+
className: cn(
|
|
60526
|
+
"pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center",
|
|
60527
|
+
sectionClasses
|
|
60528
|
+
),
|
|
60529
|
+
pattern,
|
|
60530
|
+
patternOpacity,
|
|
60531
|
+
containerClassName: sectionContainerClassName,
|
|
60532
|
+
containerMaxWidth: sectionContainerMaxWidth,
|
|
60533
|
+
children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: baseNavWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsx(NavigationMenu, { className: navWrapperClasses, children: /* @__PURE__ */ jsxs(
|
|
60628
60534
|
"div",
|
|
60629
60535
|
{
|
|
60630
60536
|
className: cn(
|
|
@@ -60651,14 +60557,7 @@ var NavbarAnimatedPreview = ({
|
|
|
60651
60557
|
size: "icon",
|
|
60652
60558
|
asButton: true,
|
|
60653
60559
|
onClick: handleMobileMenu,
|
|
60654
|
-
children:
|
|
60655
|
-
DynamicIcon,
|
|
60656
|
-
{
|
|
60657
|
-
name: "lucide/x",
|
|
60658
|
-
size: 22,
|
|
60659
|
-
className: "stroke-foreground"
|
|
60660
|
-
}
|
|
60661
|
-
) : /* @__PURE__ */ jsx(
|
|
60560
|
+
children: /* @__PURE__ */ jsx(
|
|
60662
60561
|
DynamicIcon,
|
|
60663
60562
|
{
|
|
60664
60563
|
name: "lucide/menu",
|
|
@@ -60671,20 +60570,20 @@ var NavbarAnimatedPreview = ({
|
|
|
60671
60570
|
] })
|
|
60672
60571
|
]
|
|
60673
60572
|
}
|
|
60674
|
-
) })
|
|
60675
|
-
|
|
60676
|
-
|
|
60677
|
-
|
|
60678
|
-
|
|
60679
|
-
|
|
60680
|
-
|
|
60681
|
-
|
|
60682
|
-
|
|
60683
|
-
|
|
60684
|
-
|
|
60685
|
-
|
|
60686
|
-
|
|
60687
|
-
);
|
|
60573
|
+
) }) }) }) })
|
|
60574
|
+
}
|
|
60575
|
+
),
|
|
60576
|
+
/* @__PURE__ */ jsx(
|
|
60577
|
+
MobileNavigationMenu4,
|
|
60578
|
+
{
|
|
60579
|
+
open,
|
|
60580
|
+
setOpen,
|
|
60581
|
+
menuLinks: menuLinks ?? [],
|
|
60582
|
+
actions,
|
|
60583
|
+
actionsSlot
|
|
60584
|
+
}
|
|
60585
|
+
)
|
|
60586
|
+
] });
|
|
60688
60587
|
};
|
|
60689
60588
|
var DesktopMenuItem5 = ({
|
|
60690
60589
|
item,
|
|
@@ -61009,11 +60908,8 @@ var MobileNavigationMenu4 = ({
|
|
|
61009
60908
|
open,
|
|
61010
60909
|
onClose: () => setOpen(false),
|
|
61011
60910
|
title: "Mobile Navigation",
|
|
61012
|
-
contentClassName: "pt-4 pb-20",
|
|
61013
60911
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
61014
|
-
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map(
|
|
61015
|
-
(item, index) => renderMobileMenuItem4(item, index)
|
|
61016
|
-
) }),
|
|
60912
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks.map((item, index) => renderMobileMenuItem4(item, index)) }),
|
|
61017
60913
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-col gap-2", children: renderMobileActions })
|
|
61018
60914
|
] })
|
|
61019
60915
|
}
|
|
@@ -61145,18 +61041,18 @@ var NavbarMultiColumnGroups = ({
|
|
|
61145
61041
|
sectionContainerMaxWidth,
|
|
61146
61042
|
spacingOverride
|
|
61147
61043
|
} = getNavbarLayoutClasses(layoutVariant, { className, containerClassName });
|
|
61148
|
-
return /* @__PURE__ */ jsxs(
|
|
61149
|
-
|
|
61150
|
-
|
|
61151
|
-
|
|
61152
|
-
|
|
61153
|
-
|
|
61154
|
-
|
|
61155
|
-
|
|
61156
|
-
|
|
61157
|
-
|
|
61158
|
-
|
|
61159
|
-
/* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
|
|
61044
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
61045
|
+
/* @__PURE__ */ jsx(
|
|
61046
|
+
Section,
|
|
61047
|
+
{
|
|
61048
|
+
background,
|
|
61049
|
+
spacing: spacingOverride ?? spacing,
|
|
61050
|
+
className: sectionClasses,
|
|
61051
|
+
pattern,
|
|
61052
|
+
patternOpacity,
|
|
61053
|
+
containerClassName: sectionContainerClassName,
|
|
61054
|
+
containerMaxWidth: sectionContainerMaxWidth,
|
|
61055
|
+
children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
|
|
61160
61056
|
"div",
|
|
61161
61057
|
{
|
|
61162
61058
|
className: cn(
|
|
@@ -61198,16 +61094,10 @@ var NavbarMultiColumnGroups = ({
|
|
|
61198
61094
|
{
|
|
61199
61095
|
className: "size-11",
|
|
61200
61096
|
variant: "ghost",
|
|
61097
|
+
size: "icon",
|
|
61201
61098
|
asButton: true,
|
|
61202
61099
|
onClick: handleMobileMenu,
|
|
61203
|
-
children:
|
|
61204
|
-
DynamicIcon,
|
|
61205
|
-
{
|
|
61206
|
-
name: "lucide/x",
|
|
61207
|
-
size: 22,
|
|
61208
|
-
className: "stroke-foreground"
|
|
61209
|
-
}
|
|
61210
|
-
) : /* @__PURE__ */ jsx(
|
|
61100
|
+
children: /* @__PURE__ */ jsx(
|
|
61211
61101
|
DynamicIcon,
|
|
61212
61102
|
{
|
|
61213
61103
|
name: "lucide/menu",
|
|
@@ -61219,20 +61109,20 @@ var NavbarMultiColumnGroups = ({
|
|
|
61219
61109
|
) })
|
|
61220
61110
|
]
|
|
61221
61111
|
}
|
|
61222
|
-
) }) }) })
|
|
61223
|
-
|
|
61224
|
-
|
|
61225
|
-
|
|
61226
|
-
|
|
61227
|
-
|
|
61228
|
-
|
|
61229
|
-
|
|
61230
|
-
|
|
61231
|
-
|
|
61232
|
-
|
|
61233
|
-
|
|
61234
|
-
|
|
61235
|
-
);
|
|
61112
|
+
) }) }) })
|
|
61113
|
+
}
|
|
61114
|
+
),
|
|
61115
|
+
/* @__PURE__ */ jsx(
|
|
61116
|
+
MobileNavigationMenu5,
|
|
61117
|
+
{
|
|
61118
|
+
open,
|
|
61119
|
+
setOpen,
|
|
61120
|
+
navigation: navigation ?? [],
|
|
61121
|
+
authActions: mobileAuthActions,
|
|
61122
|
+
authActionsSlot: mobileAuthActionsSlot
|
|
61123
|
+
}
|
|
61124
|
+
)
|
|
61125
|
+
] });
|
|
61236
61126
|
};
|
|
61237
61127
|
var DesktopMenuItem6 = ({ item, index }) => {
|
|
61238
61128
|
if (item.groups) {
|
|
@@ -61314,12 +61204,8 @@ var MobileNavigationMenu5 = ({
|
|
|
61314
61204
|
open,
|
|
61315
61205
|
onClose: () => setOpen(false),
|
|
61316
61206
|
title: "Mobile Navigation",
|
|
61317
|
-
className: "dark",
|
|
61318
|
-
contentClassName: "pt-10 pb-20",
|
|
61319
61207
|
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
61320
|
-
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map(
|
|
61321
|
-
(item, index) => renderMobileMenuItem5(item, index)
|
|
61322
|
-
) }),
|
|
61208
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => renderMobileMenuItem5(item, index)) }),
|
|
61323
61209
|
renderMobileAuthActions
|
|
61324
61210
|
] }) })
|
|
61325
61211
|
}
|
|
@@ -61334,12 +61220,12 @@ var renderMobileMenuItem5 = (item, index) => {
|
|
|
61334
61220
|
className: "border-b-0",
|
|
61335
61221
|
children: [
|
|
61336
61222
|
/* @__PURE__ */ 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 }),
|
|
61337
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "
|
|
61223
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.flatMap(
|
|
61338
61224
|
(group, groupIndex) => group.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
|
|
61339
61225
|
Pressable,
|
|
61340
61226
|
{
|
|
61341
61227
|
href: link.url,
|
|
61342
|
-
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",
|
|
61228
|
+
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",
|
|
61343
61229
|
children: [
|
|
61344
61230
|
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
|
|
61345
61231
|
DynamicIcon,
|