@opensite/ui 0.4.3 → 0.4.5
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 +17 -12
- package/dist/navbar-animated-preview.d.cts +4 -63
- package/dist/navbar-animated-preview.d.ts +4 -63
- package/dist/navbar-animated-preview.js +17 -12
- package/dist/navbar-centered-menu.cjs +60 -51
- package/dist/navbar-centered-menu.d.cts +2 -10
- package/dist/navbar-centered-menu.d.ts +2 -10
- package/dist/navbar-centered-menu.js +60 -51
- package/dist/navbar-dark-icons.cjs +4 -4
- package/dist/navbar-dark-icons.d.cts +1 -10
- package/dist/navbar-dark-icons.d.ts +1 -10
- package/dist/navbar-dark-icons.js +4 -4
- package/dist/navbar-dropdown-menu.cjs +59 -50
- package/dist/navbar-dropdown-menu.d.cts +3 -11
- package/dist/navbar-dropdown-menu.d.ts +3 -11
- package/dist/navbar-dropdown-menu.js +59 -50
- package/dist/navbar-education-platform.cjs +4 -4
- package/dist/navbar-education-platform.d.cts +1 -10
- package/dist/navbar-education-platform.d.ts +1 -10
- package/dist/navbar-education-platform.js +4 -4
- package/dist/navbar-enterprise-mega.cjs +7 -7
- package/dist/navbar-enterprise-mega.d.cts +2 -36
- package/dist/navbar-enterprise-mega.d.ts +2 -36
- package/dist/navbar-enterprise-mega.js +7 -7
- package/dist/navbar-feature-grid.cjs +4 -4
- package/dist/navbar-feature-grid.d.cts +1 -10
- package/dist/navbar-feature-grid.d.ts +1 -10
- package/dist/navbar-feature-grid.js +4 -4
- package/dist/navbar-floating-pill.cjs +4 -4
- package/dist/navbar-floating-pill.d.cts +1 -10
- package/dist/navbar-floating-pill.d.ts +1 -10
- package/dist/navbar-floating-pill.js +4 -4
- package/dist/navbar-fullscreen-menu.d.cts +1 -10
- package/dist/navbar-fullscreen-menu.d.ts +1 -10
- package/dist/navbar-icon-links.cjs +3 -3
- package/dist/navbar-icon-links.d.cts +4 -10
- package/dist/navbar-icon-links.d.ts +4 -10
- package/dist/navbar-icon-links.js +3 -3
- package/dist/navbar-image-preview.cjs +16 -11
- package/dist/navbar-image-preview.d.cts +6 -16
- package/dist/navbar-image-preview.d.ts +6 -16
- package/dist/navbar-image-preview.js +16 -11
- package/dist/navbar-mega-menu.cjs +26 -28
- package/dist/navbar-mega-menu.d.cts +3 -73
- package/dist/navbar-mega-menu.d.ts +3 -73
- package/dist/navbar-mega-menu.js +26 -28
- package/dist/navbar-multi-column-groups.cjs +4 -4
- package/dist/navbar-multi-column-groups.d.cts +1 -10
- package/dist/navbar-multi-column-groups.d.ts +1 -10
- package/dist/navbar-multi-column-groups.js +4 -4
- package/dist/navbar-platform-resources.cjs +20 -15
- package/dist/navbar-platform-resources.d.cts +2 -36
- package/dist/navbar-platform-resources.d.ts +2 -36
- package/dist/navbar-platform-resources.js +20 -15
- package/dist/navbar-search-focused.cjs +3 -3
- package/dist/navbar-search-focused.d.cts +1 -10
- package/dist/navbar-search-focused.d.ts +1 -10
- package/dist/navbar-search-focused.js +3 -3
- package/dist/navbar-sidebar-mobile.cjs +4 -4
- package/dist/navbar-sidebar-mobile.d.cts +1 -10
- package/dist/navbar-sidebar-mobile.d.ts +1 -10
- package/dist/navbar-sidebar-mobile.js +4 -4
- package/dist/navbar-simple-links.cjs +58 -49
- package/dist/navbar-simple-links.d.cts +1 -10
- package/dist/navbar-simple-links.d.ts +1 -10
- package/dist/navbar-simple-links.js +58 -49
- package/dist/navbar-split-cta.cjs +4 -4
- package/dist/navbar-split-cta.d.cts +1 -10
- package/dist/navbar-split-cta.d.ts +1 -10
- package/dist/navbar-split-cta.js +4 -4
- package/dist/navbar-sticky-compact.cjs +4 -4
- package/dist/navbar-sticky-compact.d.cts +1 -10
- package/dist/navbar-sticky-compact.d.ts +1 -10
- package/dist/navbar-sticky-compact.js +4 -4
- package/dist/navbar-tabbed-sections.cjs +4 -4
- package/dist/navbar-tabbed-sections.d.cts +1 -10
- package/dist/navbar-tabbed-sections.d.ts +1 -10
- package/dist/navbar-tabbed-sections.js +4 -4
- package/dist/navbar-transparent-overlay.cjs +3 -3
- package/dist/navbar-transparent-overlay.d.cts +1 -10
- package/dist/navbar-transparent-overlay.d.ts +1 -10
- package/dist/navbar-transparent-overlay.js +3 -3
- package/dist/registry.cjs +222 -192
- package/dist/registry.js +222 -192
- package/dist/types-D2b35ylu.d.cts +98 -0
- package/dist/types-D2b35ylu.d.ts +98 -0
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -48814,7 +48814,7 @@ function NavigationMenuList({
|
|
|
48814
48814
|
{
|
|
48815
48815
|
"data-slot": "navigation-menu-list",
|
|
48816
48816
|
className: cn(
|
|
48817
|
-
"group flex flex-1 list-none items-center justify-center gap-
|
|
48817
|
+
"group flex flex-1 list-none items-center justify-center gap-6",
|
|
48818
48818
|
className
|
|
48819
48819
|
),
|
|
48820
48820
|
...props
|
|
@@ -48835,7 +48835,7 @@ function NavigationMenuItem({
|
|
|
48835
48835
|
);
|
|
48836
48836
|
}
|
|
48837
48837
|
var navigationMenuTriggerStyle = cva(
|
|
48838
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-
|
|
48838
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-muted data-[state=open]:text-foreground data-[state=open]:focus:bg-muted data-[state=open]:bg-muted/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
48839
48839
|
);
|
|
48840
48840
|
function NavigationMenuTrigger({
|
|
48841
48841
|
className,
|
|
@@ -48855,7 +48855,7 @@ function NavigationMenuTrigger({
|
|
|
48855
48855
|
DynamicIcon,
|
|
48856
48856
|
{
|
|
48857
48857
|
name: "lucide/chevron-down",
|
|
48858
|
-
className: "relative top-[1px] ml-1 size-
|
|
48858
|
+
className: "relative top-[1px] ml-1 size-2 transition duration-300 group-data-[state=open]:rotate-180",
|
|
48859
48859
|
"aria-hidden": "true"
|
|
48860
48860
|
}
|
|
48861
48861
|
)
|
|
@@ -48913,7 +48913,7 @@ function NavigationMenuLink({
|
|
|
48913
48913
|
{
|
|
48914
48914
|
"data-slot": "navigation-menu-link",
|
|
48915
48915
|
className: cn(
|
|
48916
|
-
"data-[active=true]:focus:bg-
|
|
48916
|
+
"data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
48917
48917
|
className
|
|
48918
48918
|
),
|
|
48919
48919
|
...props
|
|
@@ -49029,7 +49029,7 @@ var SubMenuLink = ({
|
|
|
49029
49029
|
return /* @__PURE__ */ jsxs(
|
|
49030
49030
|
Pressable,
|
|
49031
49031
|
{
|
|
49032
|
-
className: "flex min-w-80 flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-
|
|
49032
|
+
className: "flex min-w-80 flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
|
|
49033
49033
|
href: item.url,
|
|
49034
49034
|
children: [
|
|
49035
49035
|
item.icon && /* @__PURE__ */ jsx("div", { className: "text-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
|
|
@@ -49052,7 +49052,7 @@ var renderMenuItem = (item, optixFlowConfig) => {
|
|
|
49052
49052
|
NavigationMenuLink,
|
|
49053
49053
|
{
|
|
49054
49054
|
href: item.url,
|
|
49055
|
-
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-
|
|
49055
|
+
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground",
|
|
49056
49056
|
children: item.title
|
|
49057
49057
|
}
|
|
49058
49058
|
) }, item.title);
|
|
@@ -49173,55 +49173,64 @@ var NavbarDropdownMenu = ({
|
|
|
49173
49173
|
className: cn(className),
|
|
49174
49174
|
pattern,
|
|
49175
49175
|
patternOpacity,
|
|
49176
|
-
children: /* @__PURE__ */ jsxs(
|
|
49177
|
-
|
|
49178
|
-
|
|
49179
|
-
|
|
49180
|
-
|
|
49181
|
-
|
|
49182
|
-
|
|
49183
|
-
|
|
49184
|
-
|
|
49185
|
-
|
|
49186
|
-
renderLogo(),
|
|
49187
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsx(NavigationMenu, { className: navigationMenuClassName, children: /* @__PURE__ */ jsx(NavigationMenuList, { children: renderMenu() }) }) })
|
|
49188
|
-
] }),
|
|
49189
|
-
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
49190
|
-
]
|
|
49191
|
-
}
|
|
49192
|
-
),
|
|
49193
|
-
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49194
|
-
renderLogo(),
|
|
49195
|
-
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
49196
|
-
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
49197
|
-
Pressable,
|
|
49176
|
+
children: /* @__PURE__ */ jsxs(
|
|
49177
|
+
"div",
|
|
49178
|
+
{
|
|
49179
|
+
className: cn(
|
|
49180
|
+
"container border-b border-border/50 shadow-sm",
|
|
49181
|
+
containerClassName
|
|
49182
|
+
),
|
|
49183
|
+
children: [
|
|
49184
|
+
/* @__PURE__ */ jsxs(
|
|
49185
|
+
"nav",
|
|
49198
49186
|
{
|
|
49199
|
-
|
|
49200
|
-
|
|
49201
|
-
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
|
|
49187
|
+
className: cn(
|
|
49188
|
+
"hidden items-center justify-between lg:flex",
|
|
49189
|
+
desktopNavClassName
|
|
49190
|
+
),
|
|
49191
|
+
children: [
|
|
49192
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-6", children: [
|
|
49193
|
+
renderLogo(),
|
|
49194
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsx(NavigationMenu, { className: navigationMenuClassName, children: /* @__PURE__ */ jsx(NavigationMenuList, { children: renderMenu() }) }) })
|
|
49195
|
+
] }),
|
|
49196
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
49197
|
+
]
|
|
49205
49198
|
}
|
|
49206
|
-
)
|
|
49207
|
-
/* @__PURE__ */ jsxs(
|
|
49208
|
-
|
|
49209
|
-
/* @__PURE__ */ jsxs(
|
|
49210
|
-
/* @__PURE__ */ jsx(
|
|
49211
|
-
|
|
49199
|
+
),
|
|
49200
|
+
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49201
|
+
renderLogo(),
|
|
49202
|
+
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
49203
|
+
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
49204
|
+
Pressable,
|
|
49212
49205
|
{
|
|
49213
|
-
|
|
49214
|
-
|
|
49215
|
-
|
|
49216
|
-
|
|
49206
|
+
variant: "outline",
|
|
49207
|
+
size: "icon",
|
|
49208
|
+
asButton: true,
|
|
49209
|
+
onClick: () => {
|
|
49210
|
+
},
|
|
49211
|
+
children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 16 })
|
|
49217
49212
|
}
|
|
49218
|
-
),
|
|
49219
|
-
/* @__PURE__ */
|
|
49213
|
+
) }),
|
|
49214
|
+
/* @__PURE__ */ jsxs(SheetContent, { className: "overflow-y-auto", children: [
|
|
49215
|
+
/* @__PURE__ */ jsx(SheetHeader, { children: /* @__PURE__ */ jsx(SheetTitle, { children: renderLogo() }) }),
|
|
49216
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
49217
|
+
/* @__PURE__ */ jsx(
|
|
49218
|
+
Accordion,
|
|
49219
|
+
{
|
|
49220
|
+
type: "single",
|
|
49221
|
+
collapsible: true,
|
|
49222
|
+
className: "flex w-full flex-col gap-4",
|
|
49223
|
+
children: renderMobileMenu()
|
|
49224
|
+
}
|
|
49225
|
+
),
|
|
49226
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-3", actionsClassName), children: renderAuthActions() })
|
|
49227
|
+
] })
|
|
49228
|
+
] })
|
|
49220
49229
|
] })
|
|
49221
|
-
] })
|
|
49222
|
-
]
|
|
49223
|
-
|
|
49224
|
-
|
|
49230
|
+
] }) })
|
|
49231
|
+
]
|
|
49232
|
+
}
|
|
49233
|
+
)
|
|
49225
49234
|
}
|
|
49226
49235
|
);
|
|
49227
49236
|
};
|
|
@@ -49247,7 +49256,7 @@ var SubMenuLink2 = ({ item }) => {
|
|
|
49247
49256
|
return /* @__PURE__ */ jsxs(
|
|
49248
49257
|
Pressable,
|
|
49249
49258
|
{
|
|
49250
|
-
className: "flex flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-
|
|
49259
|
+
className: "flex flex-row gap-4 rounded-md p-3 leading-none no-underline transition-colors outline-none select-none hover:bg-muted hover:text-foreground",
|
|
49251
49260
|
href: item.url,
|
|
49252
49261
|
children: [
|
|
49253
49262
|
item.icon && /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 20, className: "shrink-0" }) }),
|
|
@@ -49270,7 +49279,7 @@ var renderMenuItem2 = (item) => {
|
|
|
49270
49279
|
NavigationMenuLink,
|
|
49271
49280
|
{
|
|
49272
49281
|
href: item.url,
|
|
49273
|
-
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-
|
|
49282
|
+
className: "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground",
|
|
49274
49283
|
children: item.title
|
|
49275
49284
|
}
|
|
49276
49285
|
) }, item.title);
|
|
@@ -49384,59 +49393,73 @@ var NavbarCenteredMenu = ({
|
|
|
49384
49393
|
className: cn(className),
|
|
49385
49394
|
pattern,
|
|
49386
49395
|
patternOpacity,
|
|
49387
|
-
children: /* @__PURE__ */ jsxs(
|
|
49388
|
-
|
|
49389
|
-
|
|
49390
|
-
|
|
49391
|
-
|
|
49392
|
-
|
|
49393
|
-
|
|
49394
|
-
|
|
49395
|
-
|
|
49396
|
-
|
|
49397
|
-
className: navigationMenuClassName,
|
|
49398
|
-
children: /* @__PURE__ */ jsx(NavigationMenuList, { className: "relative", children: renderMenu() })
|
|
49399
|
-
}
|
|
49400
|
-
) }) }),
|
|
49401
|
-
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
49402
|
-
]
|
|
49403
|
-
}
|
|
49404
|
-
),
|
|
49405
|
-
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49406
|
-
renderLogo(),
|
|
49407
|
-
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
49408
|
-
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
49409
|
-
Pressable,
|
|
49396
|
+
children: /* @__PURE__ */ jsxs(
|
|
49397
|
+
"div",
|
|
49398
|
+
{
|
|
49399
|
+
className: cn(
|
|
49400
|
+
"container border-b border-border/50 shadow-sm",
|
|
49401
|
+
containerClassName
|
|
49402
|
+
),
|
|
49403
|
+
children: [
|
|
49404
|
+
/* @__PURE__ */ jsxs(
|
|
49405
|
+
"nav",
|
|
49410
49406
|
{
|
|
49411
|
-
|
|
49412
|
-
|
|
49413
|
-
|
|
49414
|
-
|
|
49415
|
-
|
|
49416
|
-
|
|
49407
|
+
className: cn("hidden justify-between lg:flex", desktopNavClassName),
|
|
49408
|
+
children: [
|
|
49409
|
+
renderLogo(),
|
|
49410
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-6", children: /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsx(
|
|
49411
|
+
NavigationMenuWithoutViewport,
|
|
49412
|
+
{
|
|
49413
|
+
className: navigationMenuClassName,
|
|
49414
|
+
children: /* @__PURE__ */ jsx(NavigationMenuList, { className: "relative", children: renderMenu() })
|
|
49415
|
+
}
|
|
49416
|
+
) }) }),
|
|
49417
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex gap-2", actionsClassName), children: renderAuthActions() })
|
|
49418
|
+
]
|
|
49417
49419
|
}
|
|
49418
|
-
)
|
|
49419
|
-
/* @__PURE__ */ jsxs(
|
|
49420
|
-
|
|
49421
|
-
/* @__PURE__ */ jsxs(
|
|
49422
|
-
/* @__PURE__ */ jsx(
|
|
49423
|
-
|
|
49420
|
+
),
|
|
49421
|
+
/* @__PURE__ */ jsx("div", { className: cn("block lg:hidden", mobileNavClassName), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
49422
|
+
renderLogo(),
|
|
49423
|
+
/* @__PURE__ */ jsxs(Sheet, { children: [
|
|
49424
|
+
/* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
49425
|
+
Pressable,
|
|
49424
49426
|
{
|
|
49425
|
-
|
|
49426
|
-
|
|
49427
|
-
|
|
49428
|
-
|
|
49427
|
+
variant: "outline",
|
|
49428
|
+
size: "icon",
|
|
49429
|
+
asButton: true,
|
|
49430
|
+
onClick: () => {
|
|
49431
|
+
},
|
|
49432
|
+
children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 16 })
|
|
49429
49433
|
}
|
|
49430
|
-
),
|
|
49431
|
-
/* @__PURE__ */
|
|
49434
|
+
) }),
|
|
49435
|
+
/* @__PURE__ */ jsxs(SheetContent, { className: "overflow-y-auto", children: [
|
|
49436
|
+
/* @__PURE__ */ jsx(SheetHeader, { children: /* @__PURE__ */ jsx(SheetTitle, { children: renderLogo() }) }),
|
|
49437
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 p-4", children: [
|
|
49438
|
+
/* @__PURE__ */ jsx(
|
|
49439
|
+
Accordion,
|
|
49440
|
+
{
|
|
49441
|
+
type: "single",
|
|
49442
|
+
collapsible: true,
|
|
49443
|
+
className: "flex w-full flex-col gap-4",
|
|
49444
|
+
children: renderMobileMenu()
|
|
49445
|
+
}
|
|
49446
|
+
),
|
|
49447
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-3", actionsClassName), children: renderAuthActions() })
|
|
49448
|
+
] })
|
|
49449
|
+
] })
|
|
49432
49450
|
] })
|
|
49433
|
-
] })
|
|
49434
|
-
]
|
|
49435
|
-
|
|
49436
|
-
|
|
49451
|
+
] }) })
|
|
49452
|
+
]
|
|
49453
|
+
}
|
|
49454
|
+
)
|
|
49437
49455
|
}
|
|
49438
49456
|
);
|
|
49439
49457
|
};
|
|
49458
|
+
|
|
49459
|
+
// components/blocks/navbars/types.ts
|
|
49460
|
+
function getLinkUrl(item) {
|
|
49461
|
+
return item.href || item.url || "#";
|
|
49462
|
+
}
|
|
49440
49463
|
var DesktopMenuItem = ({
|
|
49441
49464
|
link,
|
|
49442
49465
|
index,
|
|
@@ -49464,7 +49487,7 @@ var DesktopMenuItem = ({
|
|
|
49464
49487
|
};
|
|
49465
49488
|
if (layout === "animated-image-preview" && link.links) {
|
|
49466
49489
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
49467
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
49490
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
49468
49491
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "!rounded-2xl !p-0", children: /* @__PURE__ */ jsxs("div", { className: "grid min-h-[18.75rem] w-[45.25rem] grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
49469
49492
|
/* @__PURE__ */ jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: link.links.map((item, idx) => /* @__PURE__ */ jsx(
|
|
49470
49493
|
Img,
|
|
@@ -49489,14 +49512,14 @@ var DesktopMenuItem = ({
|
|
|
49489
49512
|
/* @__PURE__ */ jsx("ul", { children: link.links.map((item, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
49490
49513
|
NavigationMenuLink,
|
|
49491
49514
|
{
|
|
49492
|
-
href: item
|
|
49515
|
+
href: getLinkUrl(item),
|
|
49493
49516
|
className: "flex items-center gap-4 rounded-lg px-4 py-3 hover:bg-muted",
|
|
49494
49517
|
"data-index": idx,
|
|
49495
49518
|
onMouseEnter: handleMouseEnter,
|
|
49496
49519
|
onMouseLeave: handleMouseLeave,
|
|
49497
49520
|
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
49498
|
-
/* @__PURE__ */ jsx("h3", { className: "leading-normal font-medium", children: item.label }),
|
|
49499
|
-
item.description && /* @__PURE__ */ jsx("p", { className: "leading-normal text-muted-foreground", children: item.description })
|
|
49521
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm leading-normal font-medium", children: item.label }),
|
|
49522
|
+
item.description && /* @__PURE__ */ jsx("p", { className: "text-xs leading-normal text-muted-foreground", children: item.description })
|
|
49500
49523
|
] })
|
|
49501
49524
|
}
|
|
49502
49525
|
) }, `desktop-nav-sublink-${idx}`)) })
|
|
@@ -49506,14 +49529,14 @@ var DesktopMenuItem = ({
|
|
|
49506
49529
|
}
|
|
49507
49530
|
if (layout === "simple-grid" && link.links) {
|
|
49508
49531
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
49509
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
49510
|
-
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[
|
|
49532
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
49533
|
+
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[700px] p-6", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
49511
49534
|
NavigationMenuLink,
|
|
49512
49535
|
{
|
|
49513
|
-
href: item
|
|
49514
|
-
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-
|
|
49536
|
+
href: getLinkUrl(item),
|
|
49537
|
+
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-muted hover:text-foreground",
|
|
49515
49538
|
children: [
|
|
49516
|
-
item.image && /* @__PURE__ */ jsx("div", { className: "h-
|
|
49539
|
+
item.image && /* @__PURE__ */ jsx("div", { className: "h-20 w-20 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
49517
49540
|
Img,
|
|
49518
49541
|
{
|
|
49519
49542
|
src: item.image,
|
|
@@ -49522,9 +49545,9 @@ var DesktopMenuItem = ({
|
|
|
49522
49545
|
optixFlowConfig
|
|
49523
49546
|
}
|
|
49524
49547
|
) }),
|
|
49525
|
-
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-
|
|
49548
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 shrink-0 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: 20 }) : null }),
|
|
49526
49549
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49527
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
49550
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
49528
49551
|
item.description && /* @__PURE__ */ jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
49529
49552
|
] })
|
|
49530
49553
|
]
|
|
@@ -49535,11 +49558,11 @@ var DesktopMenuItem = ({
|
|
|
49535
49558
|
}
|
|
49536
49559
|
if (layout === "list-with-icons" && link.links) {
|
|
49537
49560
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
49538
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
49561
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: link.label }),
|
|
49539
49562
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[400px] p-4", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1", children: link.links.map((item, itemIndex) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
49540
49563
|
NavigationMenuLink,
|
|
49541
49564
|
{
|
|
49542
|
-
href: item
|
|
49565
|
+
href: getLinkUrl(item),
|
|
49543
49566
|
className: "flex items-start gap-3 rounded-lg p-3 hover:bg-muted",
|
|
49544
49567
|
children: [
|
|
49545
49568
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
@@ -49583,7 +49606,7 @@ var MobileSubmenu = ({
|
|
|
49583
49606
|
return /* @__PURE__ */ jsxs(
|
|
49584
49607
|
Pressable,
|
|
49585
49608
|
{
|
|
49586
|
-
href: item
|
|
49609
|
+
href: getLinkUrl(item),
|
|
49587
49610
|
className: "flex items-start gap-4 border-b border-border px-8 py-5",
|
|
49588
49611
|
children: [
|
|
49589
49612
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -49618,9 +49641,7 @@ var NavbarMegaMenu = ({
|
|
|
49618
49641
|
logoClassName,
|
|
49619
49642
|
mobileMenuClassName,
|
|
49620
49643
|
logo = {
|
|
49621
|
-
url: "/"
|
|
49622
|
-
desktopSrc: logoPlaceholders.darkHorizontalLogo,
|
|
49623
|
-
mobileSrc: logoPlaceholders.logoMark
|
|
49644
|
+
url: "/"
|
|
49624
49645
|
},
|
|
49625
49646
|
logoSlot,
|
|
49626
49647
|
menuLinks,
|
|
@@ -49646,7 +49667,7 @@ var NavbarMegaMenu = ({
|
|
|
49646
49667
|
/* @__PURE__ */ jsx(
|
|
49647
49668
|
Img,
|
|
49648
49669
|
{
|
|
49649
|
-
src: logo.desktopSrc
|
|
49670
|
+
src: logo.desktopSrc,
|
|
49650
49671
|
className: cn("hidden h-7 dark:invert md:block", logo.className),
|
|
49651
49672
|
alt: logo.alt || "Logo",
|
|
49652
49673
|
optixFlowConfig
|
|
@@ -49655,7 +49676,7 @@ var NavbarMegaMenu = ({
|
|
|
49655
49676
|
/* @__PURE__ */ jsx(
|
|
49656
49677
|
Img,
|
|
49657
49678
|
{
|
|
49658
|
-
src: logo.mobileSrc
|
|
49679
|
+
src: logo.mobileSrc,
|
|
49659
49680
|
className: cn("h-7 dark:invert md:hidden", logo.className),
|
|
49660
49681
|
alt: logo.alt || "Logo",
|
|
49661
49682
|
optixFlowConfig
|
|
@@ -49700,7 +49721,7 @@ var NavbarMegaMenu = ({
|
|
|
49700
49721
|
navClassName
|
|
49701
49722
|
),
|
|
49702
49723
|
children: [
|
|
49703
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between gap-12 py-4", children: [
|
|
49724
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between gap-12 border-b border-border/50 py-4 shadow-sm", children: [
|
|
49704
49725
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49705
49726
|
(!open || submenuIndex === null) && renderLogo(),
|
|
49706
49727
|
open && submenuIndex !== null && /* @__PURE__ */ jsxs(
|
|
@@ -49940,7 +49961,7 @@ var NavbarEnterpriseMega = ({
|
|
|
49940
49961
|
background,
|
|
49941
49962
|
spacing,
|
|
49942
49963
|
className: cn(
|
|
49943
|
-
"pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center border-b",
|
|
49964
|
+
"pointer-events-auto fixed top-0 z-999 flex w-full items-center justify-center border-b border-border/50 shadow-sm",
|
|
49944
49965
|
className
|
|
49945
49966
|
),
|
|
49946
49967
|
pattern,
|
|
@@ -50025,7 +50046,7 @@ var DesktopMenuItem2 = ({
|
|
|
50025
50046
|
const effectiveLayout = item.layout || "solutions-with-platform";
|
|
50026
50047
|
if (hasDropdown) {
|
|
50027
50048
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
50028
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
50049
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: item.label }),
|
|
50029
50050
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "rounded-xl! border-0! p-0!", children: /* @__PURE__ */ jsx("div", { className: "w-dvw px-8 pt-6 pb-12", children: /* @__PURE__ */ jsx("div", { className: "container", children: renderDropdownContent(
|
|
50030
50051
|
{ ...item, layout: effectiveLayout },
|
|
50031
50052
|
optixFlowConfig
|
|
@@ -50036,7 +50057,7 @@ var DesktopMenuItem2 = ({
|
|
|
50036
50057
|
NavigationMenuLink,
|
|
50037
50058
|
{
|
|
50038
50059
|
href: item.href,
|
|
50039
|
-
className: "h-auto bg-transparent px-
|
|
50060
|
+
className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground",
|
|
50040
50061
|
children: item.label
|
|
50041
50062
|
}
|
|
50042
50063
|
) }, `desktop-menu-item-${index}`);
|
|
@@ -51147,7 +51168,7 @@ var NavbarPlatformResources = ({
|
|
|
51147
51168
|
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51148
51169
|
NavigationMenuLink,
|
|
51149
51170
|
{
|
|
51150
|
-
href: item
|
|
51171
|
+
href: getLinkUrl(item),
|
|
51151
51172
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
51152
51173
|
children: [
|
|
51153
51174
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51176,7 +51197,7 @@ var NavbarPlatformResources = ({
|
|
|
51176
51197
|
/* @__PURE__ */ jsx(
|
|
51177
51198
|
NavigationMenuLink,
|
|
51178
51199
|
{
|
|
51179
|
-
href: featuredItem
|
|
51200
|
+
href: getLinkUrl(featuredItem),
|
|
51180
51201
|
className: "group w-1/3 p-0 hover:bg-transparent",
|
|
51181
51202
|
children: /* @__PURE__ */ jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
51182
51203
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
@@ -51200,7 +51221,7 @@ var NavbarPlatformResources = ({
|
|
|
51200
51221
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-8", children: gridItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51201
51222
|
NavigationMenuLink,
|
|
51202
51223
|
{
|
|
51203
|
-
href: item
|
|
51224
|
+
href: getLinkUrl(item),
|
|
51204
51225
|
className: "group block p-4",
|
|
51205
51226
|
children: [
|
|
51206
51227
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "mb-5 group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
@@ -51221,7 +51242,7 @@ var NavbarPlatformResources = ({
|
|
|
51221
51242
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51222
51243
|
NavigationMenuLink,
|
|
51223
51244
|
{
|
|
51224
|
-
href: item
|
|
51245
|
+
href: getLinkUrl(item),
|
|
51225
51246
|
className: "group flex flex-row items-center gap-5",
|
|
51226
51247
|
children: [
|
|
51227
51248
|
(item.icon || item.iconName) && /* @__PURE__ */ jsx("div", { className: "group-hover:opacity-60", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
@@ -51234,7 +51255,7 @@ var NavbarPlatformResources = ({
|
|
|
51234
51255
|
ctaItem && /* @__PURE__ */ jsx(
|
|
51235
51256
|
NavigationMenuLink,
|
|
51236
51257
|
{
|
|
51237
|
-
href: ctaItem
|
|
51258
|
+
href: getLinkUrl(ctaItem),
|
|
51238
51259
|
className: "group flex-1 p-0 hover:bg-transparent",
|
|
51239
51260
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
51240
51261
|
ctaItem.image && /* @__PURE__ */ jsx("div", { className: "w-2/5 max-w-[310px] shrink-0 overflow-clip rounded-tl-lg rounded-bl-lg", children: /* @__PURE__ */ jsx(
|
|
@@ -51268,7 +51289,7 @@ var NavbarPlatformResources = ({
|
|
|
51268
51289
|
/* @__PURE__ */ jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51269
51290
|
NavigationMenuLink,
|
|
51270
51291
|
{
|
|
51271
|
-
href: item
|
|
51292
|
+
href: getLinkUrl(item),
|
|
51272
51293
|
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
51273
51294
|
children: [
|
|
51274
51295
|
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
|
|
@@ -51281,7 +51302,7 @@ var NavbarPlatformResources = ({
|
|
|
51281
51302
|
/* @__PURE__ */ jsx("div", { className: "max-w-[716px] flex-1 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
|
|
51282
51303
|
NavigationMenuLink,
|
|
51283
51304
|
{
|
|
51284
|
-
href: showcase
|
|
51305
|
+
href: getLinkUrl(showcase),
|
|
51285
51306
|
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
51286
51307
|
children: [
|
|
51287
51308
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -51315,7 +51336,7 @@ var NavbarPlatformResources = ({
|
|
|
51315
51336
|
/* @__PURE__ */ jsx("div", { className: "grid flex-1 grid-cols-1 gap-6 md:grid-cols-2", children: group.links.map((item, itemIndex) => /* @__PURE__ */ jsx(
|
|
51316
51337
|
NavigationMenuLink,
|
|
51317
51338
|
{
|
|
51318
|
-
href: item
|
|
51339
|
+
href: getLinkUrl(item),
|
|
51319
51340
|
className: "flex h-full flex-col overflow-clip rounded-lg border border-input bg-background p-5 hover:bg-accent hover:text-accent-foreground xl:p-8",
|
|
51320
51341
|
children: /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
|
|
51321
51342
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
@@ -51332,7 +51353,7 @@ var NavbarPlatformResources = ({
|
|
|
51332
51353
|
/* @__PURE__ */ jsxs(
|
|
51333
51354
|
NavigationMenuLink,
|
|
51334
51355
|
{
|
|
51335
|
-
href: ctaItem
|
|
51356
|
+
href: getLinkUrl(ctaItem),
|
|
51336
51357
|
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
51337
51358
|
children: [
|
|
51338
51359
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -51361,7 +51382,7 @@ var NavbarPlatformResources = ({
|
|
|
51361
51382
|
return /* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[640px] p-4", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51362
51383
|
NavigationMenuLink,
|
|
51363
51384
|
{
|
|
51364
|
-
href: item
|
|
51385
|
+
href: getLinkUrl(item),
|
|
51365
51386
|
className: "flex flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-accent hover:text-accent-foreground",
|
|
51366
51387
|
children: [
|
|
51367
51388
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51501,7 +51522,7 @@ var NavbarPlatformResources = ({
|
|
|
51501
51522
|
/* @__PURE__ */ jsx(AccordionContent, { className: "px-2 pb-4", children: /* @__PURE__ */ jsx("div", { className: "space-y-3", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51502
51523
|
Pressable,
|
|
51503
51524
|
{
|
|
51504
|
-
href: item
|
|
51525
|
+
href: getLinkUrl(item),
|
|
51505
51526
|
className: "group flex items-start gap-4 rounded-lg p-2 hover:bg-muted",
|
|
51506
51527
|
children: [
|
|
51507
51528
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51717,7 +51738,7 @@ var NavbarImagePreview = ({
|
|
|
51717
51738
|
containerClassName
|
|
51718
51739
|
),
|
|
51719
51740
|
ref: navRef,
|
|
51720
|
-
children: /* @__PURE__ */ jsx("div", { className: "container border-b", children: /* @__PURE__ */ jsxs(
|
|
51741
|
+
children: /* @__PURE__ */ jsx("div", { className: "container border-b border-border/50 shadow-sm", children: /* @__PURE__ */ jsxs(
|
|
51721
51742
|
"div",
|
|
51722
51743
|
{
|
|
51723
51744
|
className: cn(
|
|
@@ -51797,7 +51818,7 @@ var DesktopMenuItem3 = ({
|
|
|
51797
51818
|
};
|
|
51798
51819
|
if (item.links) {
|
|
51799
51820
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
51800
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "bg-transparent", children: item.title }),
|
|
51821
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "bg-transparent px-3 py-2 text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: item.title }),
|
|
51801
51822
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "rounded-2xl! p-0!", children: /* @__PURE__ */ jsxs("div", { className: "grid min-h-75 w-181 grid-cols-[22.5rem_1fr] gap-4 p-3", children: [
|
|
51802
51823
|
/* @__PURE__ */ jsx("div", { className: "relative aspect-square w-full overflow-hidden rounded-xl", children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsx(
|
|
51803
51824
|
Img,
|
|
@@ -51819,14 +51840,14 @@ var DesktopMenuItem3 = ({
|
|
|
51819
51840
|
/* @__PURE__ */ jsx("ul", { children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
51820
51841
|
Pressable,
|
|
51821
51842
|
{
|
|
51822
|
-
href: link
|
|
51843
|
+
href: getLinkUrl(link),
|
|
51823
51844
|
className: "flex items-center gap-4 rounded-lg px-4 py-3 hover:bg-muted",
|
|
51824
51845
|
"data-index": linkIndex,
|
|
51825
51846
|
onMouseEnter: handleMouseEnter,
|
|
51826
51847
|
onMouseLeave: handleMouseLeave,
|
|
51827
51848
|
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
51828
|
-
/* @__PURE__ */ jsx("h3", { className: "leading-normal font-medium", children: link.label }),
|
|
51829
|
-
/* @__PURE__ */ jsx("p", { className: "leading-normal text-muted-foreground", children: link.description })
|
|
51849
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm leading-normal font-medium", children: link.label }),
|
|
51850
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs leading-normal text-muted-foreground", children: link.description })
|
|
51830
51851
|
] })
|
|
51831
51852
|
}
|
|
51832
51853
|
) }, `desktop-nav-sublink-${linkIndex}`)) })
|
|
@@ -51838,7 +51859,7 @@ var DesktopMenuItem3 = ({
|
|
|
51838
51859
|
NavigationMenuItem,
|
|
51839
51860
|
{
|
|
51840
51861
|
value: `${index}`,
|
|
51841
|
-
className: `${navigationMenuTriggerStyle()} bg-transparent`,
|
|
51862
|
+
className: `${navigationMenuTriggerStyle()} bg-transparent text-foreground/80 hover:bg-muted hover:text-foreground`,
|
|
51842
51863
|
children: /* @__PURE__ */ jsx(NavigationMenuLink, { href: item.url, children: item.title })
|
|
51843
51864
|
},
|
|
51844
51865
|
`desktop-menu-item-${index}`
|
|
@@ -51869,7 +51890,7 @@ var MobileNavigationMenu2 = ({
|
|
|
51869
51890
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: item.links?.map((link, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
51870
51891
|
Pressable,
|
|
51871
51892
|
{
|
|
51872
|
-
href: link
|
|
51893
|
+
href: getLinkUrl(link),
|
|
51873
51894
|
className: cn(
|
|
51874
51895
|
"text-primary-foreground leading-normal font-medium",
|
|
51875
51896
|
index === 0 ? "text-2xl" : "text-base"
|
|
@@ -52437,7 +52458,7 @@ var NavbarAnimatedPreview = ({
|
|
|
52437
52458
|
NavigationMenu,
|
|
52438
52459
|
{
|
|
52439
52460
|
className: cn(
|
|
52440
|
-
"h-20 max-w-full after:absolute after:inset-0 after:z-998 after:block after:size-full after:bg-background 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)]!",
|
|
52461
|
+
"h-20 max-w-full border-b border-border/50 shadow-sm after:absolute after:inset-0 after:z-998 after:block after:size-full after:bg-background 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)]!",
|
|
52441
52462
|
navigationMenuClassName
|
|
52442
52463
|
),
|
|
52443
52464
|
children: /* @__PURE__ */ jsxs(
|
|
@@ -52506,7 +52527,7 @@ var DesktopMenuItem5 = ({
|
|
|
52506
52527
|
);
|
|
52507
52528
|
if (hasDropdown) {
|
|
52508
52529
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
52509
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
52530
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal text-foreground/80 hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground data-[state=open]:bg-muted/50 data-[state=open]:text-foreground", children: item.label }),
|
|
52510
52531
|
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "hidden rounded-xl! border-0! p-0! xl:block", children: /* @__PURE__ */ jsx("div", { className: "w-dvw animate-[fade-in-slide-down_0.35s_cubic-bezier(0.33,1,0.68,1)_forwards] px-8 pt-6 pb-12", children: /* @__PURE__ */ jsx("div", { className: "container", children: renderDropdownContent2(item, optixFlowConfig) }) }) })
|
|
52511
52532
|
] }, `desktop-menu-item-${index}`);
|
|
52512
52533
|
}
|
|
@@ -52514,7 +52535,7 @@ var DesktopMenuItem5 = ({
|
|
|
52514
52535
|
NavigationMenuLink,
|
|
52515
52536
|
{
|
|
52516
52537
|
href: item.href,
|
|
52517
|
-
className: `${navigationMenuTriggerStyle()} bg-transparent px-
|
|
52538
|
+
className: `${navigationMenuTriggerStyle()} bg-transparent px-3 py-2 hover:bg-muted focus:bg-muted h-fit font-normal text-foreground/80`,
|
|
52518
52539
|
children: item.label
|
|
52519
52540
|
}
|
|
52520
52541
|
) }, `desktop-menu-item-${index}`);
|
|
@@ -52685,7 +52706,7 @@ var FeaturedImageLink = ({
|
|
|
52685
52706
|
optixFlowConfig
|
|
52686
52707
|
}) => {
|
|
52687
52708
|
if (!link) return null;
|
|
52688
|
-
return /* @__PURE__ */ jsx("div", { className: "hidden xl:block", children: /* @__PURE__ */ jsx(Pressable, { href: link.url, className: "w-full max-w-147.5", children: /* @__PURE__ */ jsx(
|
|
52709
|
+
return /* @__PURE__ */ jsx("div", { className: "hidden xl:block", children: /* @__PURE__ */ jsx(Pressable, { href: link.url || "#", className: "w-full max-w-147.5", children: /* @__PURE__ */ jsx(
|
|
52689
52710
|
AspectRatio,
|
|
52690
52711
|
{
|
|
52691
52712
|
ratio: 1.77245509,
|
|
@@ -52719,7 +52740,7 @@ var FeaturedLink = ({ link, optixFlowConfig }) => {
|
|
|
52719
52740
|
return /* @__PURE__ */ jsxs(
|
|
52720
52741
|
Pressable,
|
|
52721
52742
|
{
|
|
52722
|
-
href: link
|
|
52743
|
+
href: getLinkUrl(link),
|
|
52723
52744
|
className: "group relative flex w-full overflow-hidden rounded-xl bg-muted px-8 py-7",
|
|
52724
52745
|
children: [
|
|
52725
52746
|
/* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full items-center gap-6", children: [
|
|
@@ -52755,7 +52776,7 @@ var NavLink = forwardRef(
|
|
|
52755
52776
|
Pressable,
|
|
52756
52777
|
{
|
|
52757
52778
|
ref,
|
|
52758
|
-
href: link
|
|
52779
|
+
href: getLinkUrl(link),
|
|
52759
52780
|
className: "flex w-full gap-2 transition-opacity duration-300",
|
|
52760
52781
|
onMouseEnter,
|
|
52761
52782
|
onMouseLeave,
|
|
@@ -52769,8 +52790,8 @@ var NavLink = forwardRef(
|
|
|
52769
52790
|
}
|
|
52770
52791
|
) }),
|
|
52771
52792
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-2", children: [
|
|
52772
|
-
link.label && /* @__PURE__ */ jsx("div", { className: "text-
|
|
52773
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
52793
|
+
link.label && /* @__PURE__ */ jsx("div", { className: "text-sm leading-normal", children: link.label }),
|
|
52794
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs leading-normal text-muted-foreground", children: link.description })
|
|
52774
52795
|
] })
|
|
52775
52796
|
]
|
|
52776
52797
|
}
|
|
@@ -54690,7 +54711,7 @@ var NavbarSimpleLinks = ({
|
|
|
54690
54711
|
{
|
|
54691
54712
|
"data-nav-item": item.name,
|
|
54692
54713
|
onClick: () => setActiveItem(item.name),
|
|
54693
|
-
className: `relative cursor-pointer text-sm font-medium hover:bg-
|
|
54714
|
+
className: `relative cursor-pointer rounded-md px-3 py-2 text-sm font-medium transition-colors hover:bg-muted ${activeItem === item.name ? "text-foreground" : "text-muted-foreground hover:text-foreground"}`,
|
|
54694
54715
|
children: item.name
|
|
54695
54716
|
}
|
|
54696
54717
|
) }) }, item.name));
|
|
@@ -54731,56 +54752,65 @@ var NavbarSimpleLinks = ({
|
|
|
54731
54752
|
className: cn(className),
|
|
54732
54753
|
pattern,
|
|
54733
54754
|
patternOpacity,
|
|
54734
|
-
children: /* @__PURE__ */ jsx(
|
|
54735
|
-
|
|
54736
|
-
|
|
54737
|
-
|
|
54738
|
-
|
|
54739
|
-
|
|
54740
|
-
|
|
54741
|
-
|
|
54755
|
+
children: /* @__PURE__ */ jsx(
|
|
54756
|
+
"div",
|
|
54757
|
+
{
|
|
54758
|
+
className: cn(
|
|
54759
|
+
"container border-b border-border/50 shadow-sm",
|
|
54760
|
+
containerClassName
|
|
54761
|
+
),
|
|
54762
|
+
children: /* @__PURE__ */ jsxs("nav", { className: cn("flex items-center justify-between", navClassName), children: [
|
|
54763
|
+
renderLogo(),
|
|
54764
|
+
/* @__PURE__ */ jsx(
|
|
54765
|
+
NavigationMenu,
|
|
54766
|
+
{
|
|
54767
|
+
className: cn("hidden lg:block", navigationMenuClassName),
|
|
54768
|
+
children: /* @__PURE__ */ jsxs(
|
|
54769
|
+
NavigationMenuList,
|
|
54770
|
+
{
|
|
54771
|
+
ref: menuRef,
|
|
54772
|
+
className: cn(
|
|
54773
|
+
"flex items-center gap-6 rounded-4xl px-8 py-3",
|
|
54774
|
+
menuListClassName
|
|
54775
|
+
),
|
|
54776
|
+
children: [
|
|
54777
|
+
renderNavItems(),
|
|
54778
|
+
/* @__PURE__ */ jsx(
|
|
54779
|
+
"div",
|
|
54780
|
+
{
|
|
54781
|
+
ref: indicatorRef,
|
|
54782
|
+
className: "absolute bottom-2 flex h-1 items-center justify-center px-2 transition-all duration-300",
|
|
54783
|
+
children: /* @__PURE__ */ jsx("div", { className: "h-0.5 w-full rounded-t-none bg-foreground transition-all duration-300" })
|
|
54784
|
+
}
|
|
54785
|
+
)
|
|
54786
|
+
]
|
|
54787
|
+
}
|
|
54788
|
+
)
|
|
54789
|
+
}
|
|
54790
|
+
),
|
|
54791
|
+
/* @__PURE__ */ jsx(
|
|
54792
|
+
MobileNav,
|
|
54793
|
+
{
|
|
54794
|
+
navItems: navItems ?? [],
|
|
54795
|
+
activeItem,
|
|
54796
|
+
setActiveItem,
|
|
54797
|
+
actions,
|
|
54798
|
+
actionsSlot
|
|
54799
|
+
}
|
|
54800
|
+
),
|
|
54801
|
+
/* @__PURE__ */ jsx(
|
|
54802
|
+
"div",
|
|
54742
54803
|
{
|
|
54743
|
-
ref: menuRef,
|
|
54744
54804
|
className: cn(
|
|
54745
|
-
"
|
|
54746
|
-
|
|
54805
|
+
"hidden items-center gap-2 lg:flex",
|
|
54806
|
+
actionsClassName
|
|
54747
54807
|
),
|
|
54748
|
-
children:
|
|
54749
|
-
renderNavItems(),
|
|
54750
|
-
/* @__PURE__ */ jsx(
|
|
54751
|
-
"div",
|
|
54752
|
-
{
|
|
54753
|
-
ref: indicatorRef,
|
|
54754
|
-
className: "absolute bottom-2 flex h-1 items-center justify-center px-2 transition-all duration-300",
|
|
54755
|
-
children: /* @__PURE__ */ jsx("div", { className: "h-0.5 w-full rounded-t-none bg-foreground transition-all duration-300" })
|
|
54756
|
-
}
|
|
54757
|
-
)
|
|
54758
|
-
]
|
|
54808
|
+
children: renderActions()
|
|
54759
54809
|
}
|
|
54760
54810
|
)
|
|
54761
|
-
}
|
|
54762
|
-
|
|
54763
|
-
|
|
54764
|
-
MobileNav,
|
|
54765
|
-
{
|
|
54766
|
-
navItems: navItems ?? [],
|
|
54767
|
-
activeItem,
|
|
54768
|
-
setActiveItem,
|
|
54769
|
-
actions,
|
|
54770
|
-
actionsSlot
|
|
54771
|
-
}
|
|
54772
|
-
),
|
|
54773
|
-
/* @__PURE__ */ jsx(
|
|
54774
|
-
"div",
|
|
54775
|
-
{
|
|
54776
|
-
className: cn(
|
|
54777
|
-
"hidden items-center gap-2 lg:flex",
|
|
54778
|
-
actionsClassName
|
|
54779
|
-
),
|
|
54780
|
-
children: renderActions()
|
|
54781
|
-
}
|
|
54782
|
-
)
|
|
54783
|
-
] }) })
|
|
54811
|
+
] })
|
|
54812
|
+
}
|
|
54813
|
+
)
|
|
54784
54814
|
}
|
|
54785
54815
|
);
|
|
54786
54816
|
};
|