@opensite/ui 1.1.2 → 1.1.4
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 +3 -3
- package/dist/navbar-animated-preview.js +3 -3
- package/dist/navbar-centered-menu.cjs +1 -1
- package/dist/navbar-centered-menu.js +1 -1
- package/dist/navbar-dark-icons.cjs +1 -1
- package/dist/navbar-dark-icons.js +1 -1
- package/dist/navbar-dropdown-menu.cjs +1 -1
- package/dist/navbar-dropdown-menu.js +1 -1
- package/dist/navbar-education-platform.cjs +2 -2
- package/dist/navbar-education-platform.js +2 -2
- package/dist/navbar-enterprise-mega.cjs +1 -1
- package/dist/navbar-enterprise-mega.js +1 -1
- package/dist/navbar-feature-grid.cjs +3 -3
- package/dist/navbar-feature-grid.js +3 -3
- package/dist/navbar-floating-pill.cjs +1 -1
- package/dist/navbar-floating-pill.js +1 -1
- package/dist/navbar-fullscreen-menu.cjs +1 -1
- package/dist/navbar-fullscreen-menu.js +1 -1
- package/dist/navbar-icon-links.cjs +1 -1
- package/dist/navbar-icon-links.js +1 -1
- package/dist/navbar-image-preview.cjs +114 -108
- package/dist/navbar-image-preview.js +114 -108
- package/dist/navbar-mega-menu.cjs +1 -2
- package/dist/navbar-mega-menu.js +1 -2
- package/dist/navbar-multi-column-groups.cjs +1 -1
- package/dist/navbar-multi-column-groups.js +1 -1
- package/dist/navbar-platform-resources.cjs +1 -1
- package/dist/navbar-platform-resources.js +1 -1
- package/dist/navbar-search-focused.cjs +2 -2
- package/dist/navbar-search-focused.js +2 -2
- package/dist/navbar-sidebar-mobile.cjs +1 -1
- package/dist/navbar-sidebar-mobile.js +1 -1
- package/dist/navbar-simple-links.cjs +1 -1
- package/dist/navbar-simple-links.js +1 -1
- package/dist/navbar-split-cta.cjs +2 -2
- package/dist/navbar-split-cta.js +2 -2
- package/dist/navbar-sticky-compact.cjs +4 -4
- package/dist/navbar-sticky-compact.js +4 -4
- package/dist/navbar-tabbed-sections.cjs +133 -44
- package/dist/navbar-tabbed-sections.js +132 -44
- package/dist/navbar-transparent-overlay.cjs +4 -12
- package/dist/navbar-transparent-overlay.js +4 -12
- package/dist/registry.cjs +197 -173
- package/dist/registry.js +197 -173
- package/package.json +1 -1
|
@@ -1254,7 +1254,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1254
1254
|
// Section wrapper classes - always full width for non-floating variants
|
|
1255
1255
|
sectionClasses: cn(
|
|
1256
1256
|
"inset-x-0 z-20",
|
|
1257
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1257
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1258
1258
|
customClasses?.className
|
|
1259
1259
|
),
|
|
1260
1260
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1401,65 +1401,55 @@ var NavbarImagePreview = ({
|
|
|
1401
1401
|
containerClassName: sectionContainerClassName,
|
|
1402
1402
|
containerMaxWidth: sectionContainerMaxWidth,
|
|
1403
1403
|
children: [
|
|
1404
|
-
/* @__PURE__ */ jsx(
|
|
1404
|
+
/* @__PURE__ */ jsx("div", { className: cn("z-500 w-full", containerWrapperClasses), ref: navRef, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
|
|
1405
1405
|
"div",
|
|
1406
1406
|
{
|
|
1407
1407
|
className: cn(
|
|
1408
|
-
"
|
|
1409
|
-
|
|
1408
|
+
"flex items-center justify-between gap-3.5 py-5",
|
|
1409
|
+
navClassName
|
|
1410
1410
|
),
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
}
|
|
1428
|
-
),
|
|
1429
|
-
/* @__PURE__ */ jsx(
|
|
1430
|
-
NavigationMenu,
|
|
1431
|
-
{
|
|
1432
|
-
className: cn(
|
|
1433
|
-
"hidden lg:flex [&>div:nth-child(2)]:left-1/2 [&>div:nth-child(2)]:-translate-x-1/2",
|
|
1434
|
-
navigationMenuClassName
|
|
1435
|
-
),
|
|
1436
|
-
children: renderNavigation
|
|
1437
|
-
}
|
|
1411
|
+
children: [
|
|
1412
|
+
/* @__PURE__ */ jsx(
|
|
1413
|
+
NavbarLogo,
|
|
1414
|
+
{
|
|
1415
|
+
logo,
|
|
1416
|
+
logoSlot,
|
|
1417
|
+
logoClassName,
|
|
1418
|
+
optixFlowConfig
|
|
1419
|
+
}
|
|
1420
|
+
),
|
|
1421
|
+
/* @__PURE__ */ jsx(
|
|
1422
|
+
NavigationMenu,
|
|
1423
|
+
{
|
|
1424
|
+
className: cn(
|
|
1425
|
+
"hidden lg:flex [&>div:nth-child(2)]:left-1/2 [&>div:nth-child(2)]:-translate-x-1/2",
|
|
1426
|
+
navigationMenuClassName
|
|
1438
1427
|
),
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1428
|
+
children: renderNavigation
|
|
1429
|
+
}
|
|
1430
|
+
),
|
|
1431
|
+
/* @__PURE__ */ jsxs(
|
|
1432
|
+
"div",
|
|
1433
|
+
{
|
|
1434
|
+
className: cn("flex items-center gap-3.5", actionsClassName),
|
|
1435
|
+
children: [
|
|
1436
|
+
/* @__PURE__ */ jsx("div", { className: "hidden lg:flex lg:items-center lg:gap-3.5", children: renderAuthActions }),
|
|
1437
|
+
/* @__PURE__ */ jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsx(
|
|
1438
|
+
Pressable,
|
|
1439
|
+
{
|
|
1440
|
+
variant: "ghost",
|
|
1441
|
+
size: "icon",
|
|
1442
|
+
asButton: true,
|
|
1443
|
+
onClick: handleMobileMenu,
|
|
1444
|
+
children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/menu", size: 22 })
|
|
1445
|
+
}
|
|
1446
|
+
) })
|
|
1447
|
+
]
|
|
1448
|
+
}
|
|
1449
|
+
)
|
|
1450
|
+
]
|
|
1461
1451
|
}
|
|
1462
|
-
),
|
|
1452
|
+
) }) }) }),
|
|
1463
1453
|
/* @__PURE__ */ jsx(
|
|
1464
1454
|
MobileNavigationMenu,
|
|
1465
1455
|
{
|
|
@@ -1610,61 +1600,77 @@ var MobileNavigationMenu = ({
|
|
|
1610
1600
|
}) });
|
|
1611
1601
|
}, [authActionsSlot, authActions, handleClose]);
|
|
1612
1602
|
if (mobileNavigationSlot) {
|
|
1613
|
-
return /* @__PURE__ */ jsx(
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
{
|
|
1625
|
-
value: `nav-${index}`,
|
|
1626
|
-
className: "border-b-0",
|
|
1627
|
-
children: [
|
|
1628
|
-
/* @__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 }),
|
|
1629
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
|
|
1630
|
-
Pressable,
|
|
1631
|
-
{
|
|
1632
|
-
href: getLinkUrl(link),
|
|
1633
|
-
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",
|
|
1634
|
-
onClick: handleClose,
|
|
1635
|
-
children: [
|
|
1636
|
-
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
|
|
1637
|
-
DynamicIcon,
|
|
1638
|
-
{
|
|
1639
|
-
name: link.iconName,
|
|
1640
|
-
size: 16,
|
|
1641
|
-
className: "stroke-muted-foreground"
|
|
1642
|
-
}
|
|
1643
|
-
) : null,
|
|
1644
|
-
link.label
|
|
1645
|
-
]
|
|
1646
|
-
},
|
|
1647
|
-
`mobile-link-${linkIndex}`
|
|
1648
|
-
)) })
|
|
1649
|
-
]
|
|
1650
|
-
},
|
|
1651
|
-
`nav-item-${index}`
|
|
1652
|
-
);
|
|
1603
|
+
return /* @__PURE__ */ jsx(
|
|
1604
|
+
NavbarMobileMenu,
|
|
1605
|
+
{
|
|
1606
|
+
open,
|
|
1607
|
+
onClose: handleClose,
|
|
1608
|
+
title: "Mobile Navigation",
|
|
1609
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1610
|
+
mobileNavigationSlot,
|
|
1611
|
+
renderSocialLinks,
|
|
1612
|
+
renderMobileAuthActions
|
|
1613
|
+
] }) })
|
|
1653
1614
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1615
|
+
);
|
|
1616
|
+
}
|
|
1617
|
+
return /* @__PURE__ */ jsx(
|
|
1618
|
+
NavbarMobileMenu,
|
|
1619
|
+
{
|
|
1620
|
+
open,
|
|
1621
|
+
onClose: handleClose,
|
|
1622
|
+
title: "Mobile Navigation",
|
|
1623
|
+
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1624
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: mobileNavigation.map((item, index) => {
|
|
1625
|
+
if (item.links && item.links.length > 0) {
|
|
1626
|
+
return /* @__PURE__ */ jsxs(
|
|
1627
|
+
AccordionItem,
|
|
1628
|
+
{
|
|
1629
|
+
value: `nav-${index}`,
|
|
1630
|
+
className: "border-b-0",
|
|
1631
|
+
children: [
|
|
1632
|
+
/* @__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 }),
|
|
1633
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
|
|
1634
|
+
Pressable,
|
|
1635
|
+
{
|
|
1636
|
+
href: getLinkUrl(link),
|
|
1637
|
+
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",
|
|
1638
|
+
onClick: handleClose,
|
|
1639
|
+
children: [
|
|
1640
|
+
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
|
|
1641
|
+
DynamicIcon,
|
|
1642
|
+
{
|
|
1643
|
+
name: link.iconName,
|
|
1644
|
+
size: 16,
|
|
1645
|
+
className: "stroke-muted-foreground"
|
|
1646
|
+
}
|
|
1647
|
+
) : null,
|
|
1648
|
+
link.label
|
|
1649
|
+
]
|
|
1650
|
+
},
|
|
1651
|
+
`mobile-link-${linkIndex}`
|
|
1652
|
+
)) })
|
|
1653
|
+
]
|
|
1654
|
+
},
|
|
1655
|
+
`nav-item-${index}`
|
|
1656
|
+
);
|
|
1657
|
+
}
|
|
1658
|
+
return /* @__PURE__ */ jsx(
|
|
1659
|
+
Pressable,
|
|
1660
|
+
{
|
|
1661
|
+
href: item.url,
|
|
1662
|
+
className: "flex h-15 items-center rounded-md p-0 px-4 text-left text-base leading-[3.75] font-normal text-muted-foreground ring-ring/10 outline-ring/50 transition-all hover:bg-muted focus-visible:ring-4 focus-visible:outline-1",
|
|
1663
|
+
onClick: handleClose,
|
|
1664
|
+
children: item.title
|
|
1665
|
+
},
|
|
1666
|
+
`nav-link-${index}`
|
|
1667
|
+
);
|
|
1668
|
+
}) }),
|
|
1669
|
+
renderSocialLinks,
|
|
1670
|
+
renderMobileAuthActions
|
|
1671
|
+
] }) })
|
|
1672
|
+
}
|
|
1673
|
+
);
|
|
1668
1674
|
};
|
|
1669
1675
|
|
|
1670
1676
|
export { NavbarImagePreview };
|
|
@@ -1277,7 +1277,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1277
1277
|
// Section wrapper classes - always full width for non-floating variants
|
|
1278
1278
|
sectionClasses: cn(
|
|
1279
1279
|
"inset-x-0 z-20",
|
|
1280
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1280
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1281
1281
|
customClasses?.className
|
|
1282
1282
|
),
|
|
1283
1283
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1640,7 +1640,6 @@ var NavbarMegaMenu = ({
|
|
|
1640
1640
|
open,
|
|
1641
1641
|
onClose: () => setOpen(false),
|
|
1642
1642
|
title: "Mobile Navigation",
|
|
1643
|
-
contentClassName: "pt-10 pb-20",
|
|
1644
1643
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1645
1644
|
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
1646
1645
|
if (hasDropdownItems(link)) {
|
package/dist/navbar-mega-menu.js
CHANGED
|
@@ -1254,7 +1254,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1254
1254
|
// Section wrapper classes - always full width for non-floating variants
|
|
1255
1255
|
sectionClasses: cn(
|
|
1256
1256
|
"inset-x-0 z-20",
|
|
1257
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1257
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1258
1258
|
customClasses?.className
|
|
1259
1259
|
),
|
|
1260
1260
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1617,7 +1617,6 @@ var NavbarMegaMenu = ({
|
|
|
1617
1617
|
open,
|
|
1618
1618
|
onClose: () => setOpen(false),
|
|
1619
1619
|
title: "Mobile Navigation",
|
|
1620
|
-
contentClassName: "pt-10 pb-20",
|
|
1621
1620
|
children: /* @__PURE__ */ jsxs("div", { className: "max-w-screen-sm mx-auto", children: [
|
|
1622
1621
|
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: menuLinks?.map((link, index) => {
|
|
1623
1622
|
if (hasDropdownItems(link)) {
|
|
@@ -1272,7 +1272,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1272
1272
|
// Section wrapper classes - always full width for non-floating variants
|
|
1273
1273
|
sectionClasses: cn(
|
|
1274
1274
|
"inset-x-0 z-20",
|
|
1275
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1275
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1276
1276
|
customClasses?.className
|
|
1277
1277
|
),
|
|
1278
1278
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1249,7 +1249,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1249
1249
|
// Section wrapper classes - always full width for non-floating variants
|
|
1250
1250
|
sectionClasses: cn(
|
|
1251
1251
|
"inset-x-0 z-20",
|
|
1252
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1252
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1253
1253
|
customClasses?.className
|
|
1254
1254
|
),
|
|
1255
1255
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1277,7 +1277,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1277
1277
|
// Section wrapper classes - always full width for non-floating variants
|
|
1278
1278
|
sectionClasses: cn(
|
|
1279
1279
|
"inset-x-0 z-20",
|
|
1280
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1280
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1281
1281
|
customClasses?.className
|
|
1282
1282
|
),
|
|
1283
1283
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1254,7 +1254,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1254
1254
|
// Section wrapper classes - always full width for non-floating variants
|
|
1255
1255
|
sectionClasses: cn(
|
|
1256
1256
|
"inset-x-0 z-20",
|
|
1257
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1257
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1258
1258
|
customClasses?.className
|
|
1259
1259
|
),
|
|
1260
1260
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1183,7 +1183,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1183
1183
|
// Section wrapper classes - always full width for non-floating variants
|
|
1184
1184
|
sectionClasses: cn(
|
|
1185
1185
|
"inset-x-0 z-20",
|
|
1186
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1186
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1187
1187
|
customClasses?.className
|
|
1188
1188
|
),
|
|
1189
1189
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1449,7 +1449,7 @@ var MobileNavigationMenu = ({
|
|
|
1449
1449
|
);
|
|
1450
1450
|
}) });
|
|
1451
1451
|
}, [mobileMenuActionsSlot, mobileMenuActions]);
|
|
1452
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavbarMobileMenu, { open, onClose: handleClose, title: "Navigation Menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-
|
|
1452
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NavbarMobileMenu, { open, onClose: handleClose, title: "Navigation Menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0", children: [
|
|
1453
1453
|
navigationSlot ?? /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col", children: navItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1454
1454
|
Pressable,
|
|
1455
1455
|
{
|
|
@@ -1161,7 +1161,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1161
1161
|
// Section wrapper classes - always full width for non-floating variants
|
|
1162
1162
|
sectionClasses: cn(
|
|
1163
1163
|
"inset-x-0 z-20",
|
|
1164
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1164
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1165
1165
|
customClasses?.className
|
|
1166
1166
|
),
|
|
1167
1167
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1427,7 +1427,7 @@ var MobileNavigationMenu = ({
|
|
|
1427
1427
|
);
|
|
1428
1428
|
}) });
|
|
1429
1429
|
}, [mobileMenuActionsSlot, mobileMenuActions]);
|
|
1430
|
-
return /* @__PURE__ */ jsx(NavbarMobileMenu, { open, onClose: handleClose, title: "Navigation Menu", children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-
|
|
1430
|
+
return /* @__PURE__ */ jsx(NavbarMobileMenu, { open, onClose: handleClose, title: "Navigation Menu", children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0", children: [
|
|
1431
1431
|
navigationSlot ?? /* @__PURE__ */ jsx("nav", { className: "flex flex-col", children: navItems.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1432
1432
|
Pressable,
|
|
1433
1433
|
{
|
|
@@ -1272,7 +1272,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1272
1272
|
// Section wrapper classes - always full width for non-floating variants
|
|
1273
1273
|
sectionClasses: cn(
|
|
1274
1274
|
"inset-x-0 z-20",
|
|
1275
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1275
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1276
1276
|
customClasses?.className
|
|
1277
1277
|
),
|
|
1278
1278
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1249,7 +1249,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1249
1249
|
// Section wrapper classes - always full width for non-floating variants
|
|
1250
1250
|
sectionClasses: cn(
|
|
1251
1251
|
"inset-x-0 z-20",
|
|
1252
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1252
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1253
1253
|
customClasses?.className
|
|
1254
1254
|
),
|
|
1255
1255
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1167,7 +1167,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1167
1167
|
// Section wrapper classes - always full width for non-floating variants
|
|
1168
1168
|
sectionClasses: cn(
|
|
1169
1169
|
"inset-x-0 z-20",
|
|
1170
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1170
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1171
1171
|
customClasses?.className
|
|
1172
1172
|
),
|
|
1173
1173
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1145,7 +1145,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1145
1145
|
// Section wrapper classes - always full width for non-floating variants
|
|
1146
1146
|
sectionClasses: cn(
|
|
1147
1147
|
"inset-x-0 z-20",
|
|
1148
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1148
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1149
1149
|
customClasses?.className
|
|
1150
1150
|
),
|
|
1151
1151
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1210,7 +1210,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1210
1210
|
// Section wrapper classes - always full width for non-floating variants
|
|
1211
1211
|
sectionClasses: cn(
|
|
1212
1212
|
"inset-x-0 z-20",
|
|
1213
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1213
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1214
1214
|
customClasses?.className
|
|
1215
1215
|
),
|
|
1216
1216
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1430,7 +1430,7 @@ var NavbarSplitCta = ({
|
|
|
1430
1430
|
index
|
|
1431
1431
|
)
|
|
1432
1432
|
) }),
|
|
1433
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-
|
|
1433
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-4 mt-0", children: renderAuthActions })
|
|
1434
1434
|
] }) })
|
|
1435
1435
|
}
|
|
1436
1436
|
)
|
package/dist/navbar-split-cta.js
CHANGED
|
@@ -1188,7 +1188,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1188
1188
|
// Section wrapper classes - always full width for non-floating variants
|
|
1189
1189
|
sectionClasses: cn(
|
|
1190
1190
|
"inset-x-0 z-20",
|
|
1191
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1191
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1192
1192
|
customClasses?.className
|
|
1193
1193
|
),
|
|
1194
1194
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1408,7 +1408,7 @@ var NavbarSplitCta = ({
|
|
|
1408
1408
|
index
|
|
1409
1409
|
)
|
|
1410
1410
|
) }),
|
|
1411
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-
|
|
1411
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 mt-0", children: renderAuthActions })
|
|
1412
1412
|
] }) })
|
|
1413
1413
|
}
|
|
1414
1414
|
)
|
|
@@ -1272,7 +1272,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1272
1272
|
// Section wrapper classes - always full width for non-floating variants
|
|
1273
1273
|
sectionClasses: cn(
|
|
1274
1274
|
"inset-x-0 z-20",
|
|
1275
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1275
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1276
1276
|
customClasses?.className
|
|
1277
1277
|
),
|
|
1278
1278
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1366,7 +1366,7 @@ var NavbarStickyCompact = ({
|
|
|
1366
1366
|
NavigationMenuTrigger,
|
|
1367
1367
|
{
|
|
1368
1368
|
className: cn(
|
|
1369
|
-
"transition-all duration-300",
|
|
1369
|
+
"transition-all duration-300 bg-transparent hover:bg-muted",
|
|
1370
1370
|
isScrolled ? "h-8 text-sm" : "h-10"
|
|
1371
1371
|
),
|
|
1372
1372
|
children: item.title
|
|
@@ -1376,7 +1376,7 @@ var NavbarStickyCompact = ({
|
|
|
1376
1376
|
Pressable,
|
|
1377
1377
|
{
|
|
1378
1378
|
href: subItem.url,
|
|
1379
|
-
className: "flex items-center gap-2 rounded-md px-3 py-2 text-sm hover:bg-
|
|
1379
|
+
className: "flex items-center gap-2 rounded-md px-3 py-2 text-sm hover:bg-muted",
|
|
1380
1380
|
children: [
|
|
1381
1381
|
subItem.icon && /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: subItem.icon, size: 16 }),
|
|
1382
1382
|
subItem.title
|
|
@@ -1389,7 +1389,7 @@ var NavbarStickyCompact = ({
|
|
|
1389
1389
|
asChild: true,
|
|
1390
1390
|
className: cn(
|
|
1391
1391
|
navigationMenuTriggerStyle(),
|
|
1392
|
-
"transition-all duration-300",
|
|
1392
|
+
"transition-all duration-300 bg-transparent hover:bg-muted",
|
|
1393
1393
|
isScrolled ? "h-8 text-sm" : "h-10"
|
|
1394
1394
|
),
|
|
1395
1395
|
children: /* @__PURE__ */ jsxRuntime.jsx(Pressable, { href: item.url, children: item.title })
|
|
@@ -1249,7 +1249,7 @@ function getNavbarLayoutClasses(layoutVariant = "fullScreenContainerizedLinks",
|
|
|
1249
1249
|
// Section wrapper classes - always full width for non-floating variants
|
|
1250
1250
|
sectionClasses: cn(
|
|
1251
1251
|
"inset-x-0 z-20",
|
|
1252
|
-
isFloatingBar ? "sticky top-4" : "top-0",
|
|
1252
|
+
isFloatingBar ? "sticky top-4" : "fixed top-0",
|
|
1253
1253
|
customClasses?.className
|
|
1254
1254
|
),
|
|
1255
1255
|
// Outer container wrapper (only for floating bar - this containerizes the entire navbar)
|
|
@@ -1343,7 +1343,7 @@ var NavbarStickyCompact = ({
|
|
|
1343
1343
|
NavigationMenuTrigger,
|
|
1344
1344
|
{
|
|
1345
1345
|
className: cn(
|
|
1346
|
-
"transition-all duration-300",
|
|
1346
|
+
"transition-all duration-300 bg-transparent hover:bg-muted",
|
|
1347
1347
|
isScrolled ? "h-8 text-sm" : "h-10"
|
|
1348
1348
|
),
|
|
1349
1349
|
children: item.title
|
|
@@ -1353,7 +1353,7 @@ var NavbarStickyCompact = ({
|
|
|
1353
1353
|
Pressable,
|
|
1354
1354
|
{
|
|
1355
1355
|
href: subItem.url,
|
|
1356
|
-
className: "flex items-center gap-2 rounded-md px-3 py-2 text-sm hover:bg-
|
|
1356
|
+
className: "flex items-center gap-2 rounded-md px-3 py-2 text-sm hover:bg-muted",
|
|
1357
1357
|
children: [
|
|
1358
1358
|
subItem.icon && /* @__PURE__ */ jsx(DynamicIcon, { name: subItem.icon, size: 16 }),
|
|
1359
1359
|
subItem.title
|
|
@@ -1366,7 +1366,7 @@ var NavbarStickyCompact = ({
|
|
|
1366
1366
|
asChild: true,
|
|
1367
1367
|
className: cn(
|
|
1368
1368
|
navigationMenuTriggerStyle(),
|
|
1369
|
-
"transition-all duration-300",
|
|
1369
|
+
"transition-all duration-300 bg-transparent hover:bg-muted",
|
|
1370
1370
|
isScrolled ? "h-8 text-sm" : "h-10"
|
|
1371
1371
|
),
|
|
1372
1372
|
children: /* @__PURE__ */ jsx(Pressable, { href: item.url, children: item.title })
|