@opensite/ui 0.4.4 → 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 +12 -7
- package/dist/navbar-animated-preview.d.cts +4 -63
- package/dist/navbar-animated-preview.d.ts +4 -63
- package/dist/navbar-animated-preview.js +12 -7
- package/dist/navbar-centered-menu.cjs +55 -46
- package/dist/navbar-centered-menu.d.cts +2 -10
- package/dist/navbar-centered-menu.d.ts +2 -10
- package/dist/navbar-centered-menu.js +55 -46
- package/dist/navbar-dark-icons.cjs +1 -1
- package/dist/navbar-dark-icons.d.cts +1 -10
- package/dist/navbar-dark-icons.d.ts +1 -10
- package/dist/navbar-dark-icons.js +1 -1
- package/dist/navbar-dropdown-menu.cjs +54 -45
- package/dist/navbar-dropdown-menu.d.cts +3 -11
- package/dist/navbar-dropdown-menu.d.ts +3 -11
- package/dist/navbar-dropdown-menu.js +54 -45
- package/dist/navbar-education-platform.cjs +1 -1
- package/dist/navbar-education-platform.d.cts +1 -10
- package/dist/navbar-education-platform.d.ts +1 -10
- package/dist/navbar-education-platform.js +1 -1
- package/dist/navbar-enterprise-mega.cjs +2 -2
- package/dist/navbar-enterprise-mega.d.cts +2 -36
- package/dist/navbar-enterprise-mega.d.ts +2 -36
- package/dist/navbar-enterprise-mega.js +2 -2
- package/dist/navbar-feature-grid.cjs +1 -1
- package/dist/navbar-feature-grid.d.cts +1 -10
- package/dist/navbar-feature-grid.d.ts +1 -10
- package/dist/navbar-feature-grid.js +1 -1
- package/dist/navbar-floating-pill.cjs +1 -1
- package/dist/navbar-floating-pill.d.cts +1 -10
- package/dist/navbar-floating-pill.d.ts +1 -10
- package/dist/navbar-floating-pill.js +1 -1
- package/dist/navbar-fullscreen-menu.d.cts +1 -10
- package/dist/navbar-fullscreen-menu.d.ts +1 -10
- package/dist/navbar-icon-links.d.cts +4 -10
- package/dist/navbar-icon-links.d.ts +4 -10
- package/dist/navbar-image-preview.cjs +11 -6
- package/dist/navbar-image-preview.d.cts +6 -16
- package/dist/navbar-image-preview.d.ts +6 -16
- package/dist/navbar-image-preview.js +11 -6
- package/dist/navbar-mega-menu.cjs +16 -11
- package/dist/navbar-mega-menu.d.cts +3 -73
- package/dist/navbar-mega-menu.d.ts +3 -73
- package/dist/navbar-mega-menu.js +16 -11
- package/dist/navbar-multi-column-groups.cjs +1 -1
- 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 +1 -1
- package/dist/navbar-platform-resources.cjs +17 -12
- package/dist/navbar-platform-resources.d.cts +2 -36
- package/dist/navbar-platform-resources.d.ts +2 -36
- package/dist/navbar-platform-resources.js +17 -12
- package/dist/navbar-search-focused.d.cts +1 -10
- package/dist/navbar-search-focused.d.ts +1 -10
- package/dist/navbar-sidebar-mobile.cjs +1 -1
- package/dist/navbar-sidebar-mobile.d.cts +1 -10
- package/dist/navbar-sidebar-mobile.d.ts +1 -10
- package/dist/navbar-sidebar-mobile.js +1 -1
- package/dist/navbar-simple-links.cjs +54 -45
- package/dist/navbar-simple-links.d.cts +1 -10
- package/dist/navbar-simple-links.d.ts +1 -10
- package/dist/navbar-simple-links.js +54 -45
- package/dist/navbar-split-cta.cjs +1 -1
- package/dist/navbar-split-cta.d.cts +1 -10
- package/dist/navbar-split-cta.d.ts +1 -10
- package/dist/navbar-split-cta.js +1 -1
- package/dist/navbar-sticky-compact.cjs +1 -1
- package/dist/navbar-sticky-compact.d.cts +1 -10
- package/dist/navbar-sticky-compact.d.ts +1 -10
- package/dist/navbar-sticky-compact.js +1 -1
- package/dist/navbar-tabbed-sections.cjs +1 -1
- package/dist/navbar-tabbed-sections.d.cts +1 -10
- package/dist/navbar-tabbed-sections.d.ts +1 -10
- package/dist/navbar-tabbed-sections.js +1 -1
- package/dist/navbar-transparent-overlay.d.cts +1 -10
- package/dist/navbar-transparent-overlay.d.ts +1 -10
- package/dist/registry.cjs +200 -168
- package/dist/registry.js +200 -168
- 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
|
@@ -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-2
|
|
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
|
)
|
|
@@ -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
|
};
|
|
@@ -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,
|
|
@@ -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}`)) })
|
|
@@ -49507,13 +49530,13 @@ var DesktopMenuItem = ({
|
|
|
49507
49530
|
if (layout === "simple-grid" && link.links) {
|
|
49508
49531
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { children: [
|
|
49509
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 }),
|
|
49510
|
-
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "min-w-[
|
|
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
|
|
49536
|
+
href: getLinkUrl(item),
|
|
49514
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,7 +49545,7 @@ 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
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 })
|
|
@@ -49539,7 +49562,7 @@ var DesktopMenuItem = ({
|
|
|
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(
|
|
@@ -49698,7 +49721,7 @@ var NavbarMegaMenu = ({
|
|
|
49698
49721
|
navClassName
|
|
49699
49722
|
),
|
|
49700
49723
|
children: [
|
|
49701
|
-
/* @__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: [
|
|
49702
49725
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
49703
49726
|
(!open || submenuIndex === null) && renderLogo(),
|
|
49704
49727
|
open && submenuIndex !== null && /* @__PURE__ */ jsxs(
|
|
@@ -49938,7 +49961,7 @@ var NavbarEnterpriseMega = ({
|
|
|
49938
49961
|
background,
|
|
49939
49962
|
spacing,
|
|
49940
49963
|
className: cn(
|
|
49941
|
-
"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",
|
|
49942
49965
|
className
|
|
49943
49966
|
),
|
|
49944
49967
|
pattern,
|
|
@@ -51145,7 +51168,7 @@ var NavbarPlatformResources = ({
|
|
|
51145
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(
|
|
51146
51169
|
NavigationMenuLink,
|
|
51147
51170
|
{
|
|
51148
|
-
href: item
|
|
51171
|
+
href: getLinkUrl(item),
|
|
51149
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",
|
|
51150
51173
|
children: [
|
|
51151
51174
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51174,7 +51197,7 @@ var NavbarPlatformResources = ({
|
|
|
51174
51197
|
/* @__PURE__ */ jsx(
|
|
51175
51198
|
NavigationMenuLink,
|
|
51176
51199
|
{
|
|
51177
|
-
href: featuredItem
|
|
51200
|
+
href: getLinkUrl(featuredItem),
|
|
51178
51201
|
className: "group w-1/3 p-0 hover:bg-transparent",
|
|
51179
51202
|
children: /* @__PURE__ */ jsxs("div", { className: "overflow-clip rounded-lg border border-input bg-background", children: [
|
|
51180
51203
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
@@ -51198,7 +51221,7 @@ var NavbarPlatformResources = ({
|
|
|
51198
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(
|
|
51199
51222
|
NavigationMenuLink,
|
|
51200
51223
|
{
|
|
51201
|
-
href: item
|
|
51224
|
+
href: getLinkUrl(item),
|
|
51202
51225
|
className: "group block p-4",
|
|
51203
51226
|
children: [
|
|
51204
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 }),
|
|
@@ -51219,7 +51242,7 @@ var NavbarPlatformResources = ({
|
|
|
51219
51242
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-4", children: link.dropdownGroups[0].links.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51220
51243
|
NavigationMenuLink,
|
|
51221
51244
|
{
|
|
51222
|
-
href: item
|
|
51245
|
+
href: getLinkUrl(item),
|
|
51223
51246
|
className: "group flex flex-row items-center gap-5",
|
|
51224
51247
|
children: [
|
|
51225
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 }),
|
|
@@ -51232,7 +51255,7 @@ var NavbarPlatformResources = ({
|
|
|
51232
51255
|
ctaItem && /* @__PURE__ */ jsx(
|
|
51233
51256
|
NavigationMenuLink,
|
|
51234
51257
|
{
|
|
51235
|
-
href: ctaItem
|
|
51258
|
+
href: getLinkUrl(ctaItem),
|
|
51236
51259
|
className: "group flex-1 p-0 hover:bg-transparent",
|
|
51237
51260
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full rounded-lg border border-input bg-background p-0 hover:bg-transparent", children: [
|
|
51238
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(
|
|
@@ -51266,7 +51289,7 @@ var NavbarPlatformResources = ({
|
|
|
51266
51289
|
/* @__PURE__ */ jsx("div", { className: "-ml-2.5 space-y-2.5", children: listItems.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
51267
51290
|
NavigationMenuLink,
|
|
51268
51291
|
{
|
|
51269
|
-
href: item
|
|
51292
|
+
href: getLinkUrl(item),
|
|
51270
51293
|
className: "group flex flex-row items-center gap-2.5 rounded-md p-2.5 focus:text-accent-foreground",
|
|
51271
51294
|
children: [
|
|
51272
51295
|
(item.icon || item.iconName) && (item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null),
|
|
@@ -51279,7 +51302,7 @@ var NavbarPlatformResources = ({
|
|
|
51279
51302
|
/* @__PURE__ */ jsx("div", { className: "max-w-[716px] flex-1 space-y-6", children: showcaseItems.map((showcase, showcaseIndex) => /* @__PURE__ */ jsxs(
|
|
51280
51303
|
NavigationMenuLink,
|
|
51281
51304
|
{
|
|
51282
|
-
href: showcase
|
|
51305
|
+
href: getLinkUrl(showcase),
|
|
51283
51306
|
className: "flex flex-row items-center overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
51284
51307
|
children: [
|
|
51285
51308
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -51313,7 +51336,7 @@ var NavbarPlatformResources = ({
|
|
|
51313
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(
|
|
51314
51337
|
NavigationMenuLink,
|
|
51315
51338
|
{
|
|
51316
|
-
href: item
|
|
51339
|
+
href: getLinkUrl(item),
|
|
51317
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",
|
|
51318
51341
|
children: /* @__PURE__ */ jsxs("div", { className: "mt-auto", children: [
|
|
51319
51342
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-base", children: item.label }),
|
|
@@ -51330,7 +51353,7 @@ var NavbarPlatformResources = ({
|
|
|
51330
51353
|
/* @__PURE__ */ jsxs(
|
|
51331
51354
|
NavigationMenuLink,
|
|
51332
51355
|
{
|
|
51333
|
-
href: ctaItem
|
|
51356
|
+
href: getLinkUrl(ctaItem),
|
|
51334
51357
|
className: "mb-6 flex flex-row overflow-clip rounded-lg border border-input bg-background p-0 hover:bg-transparent",
|
|
51335
51358
|
children: [
|
|
51336
51359
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 p-5 xl:p-8", children: [
|
|
@@ -51359,7 +51382,7 @@ var NavbarPlatformResources = ({
|
|
|
51359
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(
|
|
51360
51383
|
NavigationMenuLink,
|
|
51361
51384
|
{
|
|
51362
|
-
href: item
|
|
51385
|
+
href: getLinkUrl(item),
|
|
51363
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",
|
|
51364
51387
|
children: [
|
|
51365
51388
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51499,7 +51522,7 @@ var NavbarPlatformResources = ({
|
|
|
51499
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(
|
|
51500
51523
|
Pressable,
|
|
51501
51524
|
{
|
|
51502
|
-
href: item
|
|
51525
|
+
href: getLinkUrl(item),
|
|
51503
51526
|
className: "group flex items-start gap-4 rounded-lg p-2 hover:bg-muted",
|
|
51504
51527
|
children: [
|
|
51505
51528
|
item.image && /* @__PURE__ */ jsx("div", { className: "h-10 w-10 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsx(
|
|
@@ -51715,7 +51738,7 @@ var NavbarImagePreview = ({
|
|
|
51715
51738
|
containerClassName
|
|
51716
51739
|
),
|
|
51717
51740
|
ref: navRef,
|
|
51718
|
-
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(
|
|
51719
51742
|
"div",
|
|
51720
51743
|
{
|
|
51721
51744
|
className: cn(
|
|
@@ -51817,14 +51840,14 @@ var DesktopMenuItem3 = ({
|
|
|
51817
51840
|
/* @__PURE__ */ jsx("ul", { children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
51818
51841
|
Pressable,
|
|
51819
51842
|
{
|
|
51820
|
-
href: link
|
|
51843
|
+
href: getLinkUrl(link),
|
|
51821
51844
|
className: "flex items-center gap-4 rounded-lg px-4 py-3 hover:bg-muted",
|
|
51822
51845
|
"data-index": linkIndex,
|
|
51823
51846
|
onMouseEnter: handleMouseEnter,
|
|
51824
51847
|
onMouseLeave: handleMouseLeave,
|
|
51825
51848
|
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
51826
|
-
/* @__PURE__ */ jsx("h3", { className: "leading-normal font-medium", children: link.label }),
|
|
51827
|
-
/* @__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 })
|
|
51828
51851
|
] })
|
|
51829
51852
|
}
|
|
51830
51853
|
) }, `desktop-nav-sublink-${linkIndex}`)) })
|
|
@@ -51867,7 +51890,7 @@ var MobileNavigationMenu2 = ({
|
|
|
51867
51890
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: item.links?.map((link, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
51868
51891
|
Pressable,
|
|
51869
51892
|
{
|
|
51870
|
-
href: link
|
|
51893
|
+
href: getLinkUrl(link),
|
|
51871
51894
|
className: cn(
|
|
51872
51895
|
"text-primary-foreground leading-normal font-medium",
|
|
51873
51896
|
index === 0 ? "text-2xl" : "text-base"
|
|
@@ -52435,7 +52458,7 @@ var NavbarAnimatedPreview = ({
|
|
|
52435
52458
|
NavigationMenu,
|
|
52436
52459
|
{
|
|
52437
52460
|
className: cn(
|
|
52438
|
-
"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)]!",
|
|
52439
52462
|
navigationMenuClassName
|
|
52440
52463
|
),
|
|
52441
52464
|
children: /* @__PURE__ */ jsxs(
|
|
@@ -52683,7 +52706,7 @@ var FeaturedImageLink = ({
|
|
|
52683
52706
|
optixFlowConfig
|
|
52684
52707
|
}) => {
|
|
52685
52708
|
if (!link) return null;
|
|
52686
|
-
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(
|
|
52687
52710
|
AspectRatio,
|
|
52688
52711
|
{
|
|
52689
52712
|
ratio: 1.77245509,
|
|
@@ -52717,7 +52740,7 @@ var FeaturedLink = ({ link, optixFlowConfig }) => {
|
|
|
52717
52740
|
return /* @__PURE__ */ jsxs(
|
|
52718
52741
|
Pressable,
|
|
52719
52742
|
{
|
|
52720
|
-
href: link
|
|
52743
|
+
href: getLinkUrl(link),
|
|
52721
52744
|
className: "group relative flex w-full overflow-hidden rounded-xl bg-muted px-8 py-7",
|
|
52722
52745
|
children: [
|
|
52723
52746
|
/* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full items-center gap-6", children: [
|
|
@@ -52753,7 +52776,7 @@ var NavLink = forwardRef(
|
|
|
52753
52776
|
Pressable,
|
|
52754
52777
|
{
|
|
52755
52778
|
ref,
|
|
52756
|
-
href: link
|
|
52779
|
+
href: getLinkUrl(link),
|
|
52757
52780
|
className: "flex w-full gap-2 transition-opacity duration-300",
|
|
52758
52781
|
onMouseEnter,
|
|
52759
52782
|
onMouseLeave,
|
|
@@ -52767,8 +52790,8 @@ var NavLink = forwardRef(
|
|
|
52767
52790
|
}
|
|
52768
52791
|
) }),
|
|
52769
52792
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-2", children: [
|
|
52770
|
-
link.label && /* @__PURE__ */ jsx("div", { className: "text-
|
|
52771
|
-
/* @__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 })
|
|
52772
52795
|
] })
|
|
52773
52796
|
]
|
|
52774
52797
|
}
|
|
@@ -54729,56 +54752,65 @@ var NavbarSimpleLinks = ({
|
|
|
54729
54752
|
className: cn(className),
|
|
54730
54753
|
pattern,
|
|
54731
54754
|
patternOpacity,
|
|
54732
|
-
children: /* @__PURE__ */ jsx(
|
|
54733
|
-
|
|
54734
|
-
|
|
54735
|
-
|
|
54736
|
-
|
|
54737
|
-
|
|
54738
|
-
|
|
54739
|
-
|
|
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",
|
|
54740
54803
|
{
|
|
54741
|
-
ref: menuRef,
|
|
54742
54804
|
className: cn(
|
|
54743
|
-
"
|
|
54744
|
-
|
|
54805
|
+
"hidden items-center gap-2 lg:flex",
|
|
54806
|
+
actionsClassName
|
|
54745
54807
|
),
|
|
54746
|
-
children:
|
|
54747
|
-
renderNavItems(),
|
|
54748
|
-
/* @__PURE__ */ jsx(
|
|
54749
|
-
"div",
|
|
54750
|
-
{
|
|
54751
|
-
ref: indicatorRef,
|
|
54752
|
-
className: "absolute bottom-2 flex h-1 items-center justify-center px-2 transition-all duration-300",
|
|
54753
|
-
children: /* @__PURE__ */ jsx("div", { className: "h-0.5 w-full rounded-t-none bg-foreground transition-all duration-300" })
|
|
54754
|
-
}
|
|
54755
|
-
)
|
|
54756
|
-
]
|
|
54808
|
+
children: renderActions()
|
|
54757
54809
|
}
|
|
54758
54810
|
)
|
|
54759
|
-
}
|
|
54760
|
-
|
|
54761
|
-
|
|
54762
|
-
MobileNav,
|
|
54763
|
-
{
|
|
54764
|
-
navItems: navItems ?? [],
|
|
54765
|
-
activeItem,
|
|
54766
|
-
setActiveItem,
|
|
54767
|
-
actions,
|
|
54768
|
-
actionsSlot
|
|
54769
|
-
}
|
|
54770
|
-
),
|
|
54771
|
-
/* @__PURE__ */ jsx(
|
|
54772
|
-
"div",
|
|
54773
|
-
{
|
|
54774
|
-
className: cn(
|
|
54775
|
-
"hidden items-center gap-2 lg:flex",
|
|
54776
|
-
actionsClassName
|
|
54777
|
-
),
|
|
54778
|
-
children: renderActions()
|
|
54779
|
-
}
|
|
54780
|
-
)
|
|
54781
|
-
] }) })
|
|
54811
|
+
] })
|
|
54812
|
+
}
|
|
54813
|
+
)
|
|
54782
54814
|
}
|
|
54783
54815
|
);
|
|
54784
54816
|
};
|