@opensite/ui 1.0.7 → 1.0.9
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 +16 -16
- package/dist/navbar-animated-preview.js +16 -16
- 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 +278 -236
- package/dist/navbar-education-platform.d.cts +61 -36
- package/dist/navbar-education-platform.d.ts +61 -36
- package/dist/navbar-education-platform.js +279 -237
- package/dist/navbar-enterprise-mega.cjs +6 -6
- package/dist/navbar-enterprise-mega.js +6 -6
- package/dist/navbar-feature-grid.cjs +1 -1
- package/dist/navbar-feature-grid.js +1 -1
- package/dist/navbar-icon-links.cjs +2 -1
- package/dist/navbar-icon-links.js +2 -1
- package/dist/navbar-image-preview.cjs +129 -50
- package/dist/navbar-image-preview.js +128 -50
- package/dist/navbar-mega-menu.cjs +1 -1
- package/dist/navbar-mega-menu.js +1 -1
- package/dist/navbar-multi-column-groups.cjs +53 -49
- package/dist/navbar-multi-column-groups.js +53 -49
- package/dist/navbar-platform-resources.cjs +5 -4
- package/dist/navbar-platform-resources.js +5 -4
- package/dist/navbar-search-focused.cjs +1 -1
- package/dist/navbar-search-focused.js +1 -1
- package/dist/navbar-sidebar-mobile.cjs +235 -166
- package/dist/navbar-sidebar-mobile.js +236 -167
- package/dist/navbar-simple-links.cjs +228 -184
- package/dist/navbar-simple-links.d.cts +15 -3
- package/dist/navbar-simple-links.d.ts +15 -3
- package/dist/navbar-simple-links.js +228 -183
- package/dist/navbar-split-cta.cjs +3 -3
- package/dist/navbar-split-cta.js +3 -3
- package/dist/navbar-sticky-compact.cjs +1 -1
- package/dist/navbar-sticky-compact.js +1 -1
- package/dist/navbar-tabbed-sections.cjs +1 -1
- package/dist/navbar-tabbed-sections.js +1 -1
- package/dist/navbar-transparent-overlay.cjs +244 -123
- package/dist/navbar-transparent-overlay.d.cts +30 -1
- package/dist/navbar-transparent-overlay.d.ts +30 -1
- package/dist/navbar-transparent-overlay.js +244 -123
- package/dist/registry.cjs +1008 -894
- package/dist/registry.js +1008 -894
- package/package.json +1 -1
|
@@ -1222,7 +1222,7 @@ var NavbarMobileMenu = ({
|
|
|
1222
1222
|
"data-state": open ? "open" : "closed",
|
|
1223
1223
|
children: [
|
|
1224
1224
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1225
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-
|
|
1225
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1226
1226
|
"button",
|
|
1227
1227
|
{
|
|
1228
1228
|
onClick: onClose,
|
|
@@ -1507,10 +1507,11 @@ var MobileNavigationMenu = ({
|
|
|
1507
1507
|
authActions,
|
|
1508
1508
|
authActionsSlot
|
|
1509
1509
|
}) => {
|
|
1510
|
+
const handleClose = () => setOpen(false);
|
|
1510
1511
|
const renderMobileAuthActions = React.useMemo(() => {
|
|
1511
1512
|
if (authActionsSlot) return authActionsSlot;
|
|
1512
1513
|
if (!authActions || authActions.length === 0) return null;
|
|
1513
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-4", children: authActions.map((action, index) => {
|
|
1514
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-4 mt-6", children: authActions.map((action, index) => {
|
|
1514
1515
|
const {
|
|
1515
1516
|
label,
|
|
1516
1517
|
icon,
|
|
@@ -1524,6 +1525,7 @@ var MobileNavigationMenu = ({
|
|
|
1524
1525
|
{
|
|
1525
1526
|
asButton: true,
|
|
1526
1527
|
className: cn("w-full", actionClassName),
|
|
1528
|
+
onClick: handleClose,
|
|
1527
1529
|
...pressableProps,
|
|
1528
1530
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1529
1531
|
icon,
|
|
@@ -1534,63 +1536,65 @@ var MobileNavigationMenu = ({
|
|
|
1534
1536
|
index
|
|
1535
1537
|
);
|
|
1536
1538
|
}) });
|
|
1537
|
-
}, [authActionsSlot, authActions]);
|
|
1539
|
+
}, [authActionsSlot, authActions, handleClose]);
|
|
1538
1540
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1539
1541
|
NavbarMobileMenu,
|
|
1540
1542
|
{
|
|
1541
1543
|
open,
|
|
1542
|
-
onClose:
|
|
1544
|
+
onClose: handleClose,
|
|
1543
1545
|
title: "Mobile Navigation",
|
|
1544
1546
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1545
|
-
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) =>
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
);
|
|
1550
|
-
};
|
|
1551
|
-
var renderMobileMenuItem = (item, index) => {
|
|
1552
|
-
if (item.groups) {
|
|
1553
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1554
|
-
AccordionItem,
|
|
1555
|
-
{
|
|
1556
|
-
value: `nav-${index}`,
|
|
1557
|
-
className: "border-b-0",
|
|
1558
|
-
children: [
|
|
1559
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center p-0 px-4! text-base leading-[3.75] font-normal text-muted-foreground hover:bg-muted hover:no-underline", children: item.title }),
|
|
1560
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.flatMap(
|
|
1561
|
-
(group, groupIndex) => group.links.map((link, linkIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1562
|
-
Pressable,
|
|
1547
|
+
/* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => {
|
|
1548
|
+
if (item.groups && item.groups.length > 0) {
|
|
1549
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1550
|
+
AccordionItem,
|
|
1563
1551
|
{
|
|
1564
|
-
|
|
1565
|
-
className: "
|
|
1552
|
+
value: `nav-${index}`,
|
|
1553
|
+
className: "border-b-0",
|
|
1566
1554
|
children: [
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
{
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1555
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center p-0 px-4! text-base leading-[3.75] font-normal text-muted-foreground hover:bg-muted hover:no-underline", children: item.title }),
|
|
1556
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1557
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 px-4 text-[10px] text-muted-foreground uppercase", children: group.title }),
|
|
1558
|
+
group.links.map((link, linkIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1559
|
+
Pressable,
|
|
1560
|
+
{
|
|
1561
|
+
href: link.url,
|
|
1562
|
+
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",
|
|
1563
|
+
onClick: handleClose,
|
|
1564
|
+
children: [
|
|
1565
|
+
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1566
|
+
DynamicIcon,
|
|
1567
|
+
{
|
|
1568
|
+
name: link.iconName,
|
|
1569
|
+
size: 16,
|
|
1570
|
+
className: "stroke-muted-foreground"
|
|
1571
|
+
}
|
|
1572
|
+
) : null,
|
|
1573
|
+
link.label
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1576
|
+
`mobile-link-${groupIndex}-${linkIndex}`
|
|
1577
|
+
))
|
|
1578
|
+
] }, `mobile-group-${groupIndex}`)) })
|
|
1576
1579
|
]
|
|
1577
1580
|
},
|
|
1578
|
-
`
|
|
1579
|
-
)
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1581
|
+
`nav-item-${index}`
|
|
1582
|
+
);
|
|
1583
|
+
}
|
|
1584
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1585
|
+
Pressable,
|
|
1586
|
+
{
|
|
1587
|
+
href: item.url,
|
|
1588
|
+
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",
|
|
1589
|
+
onClick: handleClose,
|
|
1590
|
+
children: item.title
|
|
1591
|
+
},
|
|
1592
|
+
`nav-link-${index}`
|
|
1593
|
+
);
|
|
1594
|
+
}) }),
|
|
1595
|
+
renderMobileAuthActions
|
|
1596
|
+
] }) })
|
|
1597
|
+
}
|
|
1594
1598
|
);
|
|
1595
1599
|
};
|
|
1596
1600
|
|
|
@@ -1199,7 +1199,7 @@ var NavbarMobileMenu = ({
|
|
|
1199
1199
|
"data-state": open ? "open" : "closed",
|
|
1200
1200
|
children: [
|
|
1201
1201
|
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1202
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-
|
|
1202
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxs(
|
|
1203
1203
|
"button",
|
|
1204
1204
|
{
|
|
1205
1205
|
onClick: onClose,
|
|
@@ -1484,10 +1484,11 @@ var MobileNavigationMenu = ({
|
|
|
1484
1484
|
authActions,
|
|
1485
1485
|
authActionsSlot
|
|
1486
1486
|
}) => {
|
|
1487
|
+
const handleClose = () => setOpen(false);
|
|
1487
1488
|
const renderMobileAuthActions = useMemo(() => {
|
|
1488
1489
|
if (authActionsSlot) return authActionsSlot;
|
|
1489
1490
|
if (!authActions || authActions.length === 0) return null;
|
|
1490
|
-
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: authActions.map((action, index) => {
|
|
1491
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 mt-6", children: authActions.map((action, index) => {
|
|
1491
1492
|
const {
|
|
1492
1493
|
label,
|
|
1493
1494
|
icon,
|
|
@@ -1501,6 +1502,7 @@ var MobileNavigationMenu = ({
|
|
|
1501
1502
|
{
|
|
1502
1503
|
asButton: true,
|
|
1503
1504
|
className: cn("w-full", actionClassName),
|
|
1505
|
+
onClick: handleClose,
|
|
1504
1506
|
...pressableProps,
|
|
1505
1507
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1506
1508
|
icon,
|
|
@@ -1511,63 +1513,65 @@ var MobileNavigationMenu = ({
|
|
|
1511
1513
|
index
|
|
1512
1514
|
);
|
|
1513
1515
|
}) });
|
|
1514
|
-
}, [authActionsSlot, authActions]);
|
|
1516
|
+
}, [authActionsSlot, authActions, handleClose]);
|
|
1515
1517
|
return /* @__PURE__ */ jsx(
|
|
1516
1518
|
NavbarMobileMenu,
|
|
1517
1519
|
{
|
|
1518
1520
|
open,
|
|
1519
|
-
onClose:
|
|
1521
|
+
onClose: handleClose,
|
|
1520
1522
|
title: "Mobile Navigation",
|
|
1521
1523
|
children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-sm mx-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
1522
|
-
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) =>
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
);
|
|
1527
|
-
};
|
|
1528
|
-
var renderMobileMenuItem = (item, index) => {
|
|
1529
|
-
if (item.groups) {
|
|
1530
|
-
return /* @__PURE__ */ jsxs(
|
|
1531
|
-
AccordionItem,
|
|
1532
|
-
{
|
|
1533
|
-
value: `nav-${index}`,
|
|
1534
|
-
className: "border-b-0",
|
|
1535
|
-
children: [
|
|
1536
|
-
/* @__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 }),
|
|
1537
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.flatMap(
|
|
1538
|
-
(group, groupIndex) => group.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
|
|
1539
|
-
Pressable,
|
|
1524
|
+
/* @__PURE__ */ jsx(Accordion, { type: "multiple", className: "w-full", children: navigation.map((item, index) => {
|
|
1525
|
+
if (item.groups && item.groups.length > 0) {
|
|
1526
|
+
return /* @__PURE__ */ jsxs(
|
|
1527
|
+
AccordionItem,
|
|
1540
1528
|
{
|
|
1541
|
-
|
|
1542
|
-
className: "
|
|
1529
|
+
value: `nav-${index}`,
|
|
1530
|
+
className: "border-b-0",
|
|
1543
1531
|
children: [
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
{
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1532
|
+
/* @__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 }),
|
|
1533
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: item.groups.map((group, groupIndex) => /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
1534
|
+
/* @__PURE__ */ jsx("p", { className: "mb-2 px-4 text-[10px] text-muted-foreground uppercase", children: group.title }),
|
|
1535
|
+
group.links.map((link, linkIndex) => /* @__PURE__ */ jsxs(
|
|
1536
|
+
Pressable,
|
|
1537
|
+
{
|
|
1538
|
+
href: link.url,
|
|
1539
|
+
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",
|
|
1540
|
+
onClick: handleClose,
|
|
1541
|
+
children: [
|
|
1542
|
+
link.icon ? link.icon : link.iconName ? /* @__PURE__ */ jsx(
|
|
1543
|
+
DynamicIcon,
|
|
1544
|
+
{
|
|
1545
|
+
name: link.iconName,
|
|
1546
|
+
size: 16,
|
|
1547
|
+
className: "stroke-muted-foreground"
|
|
1548
|
+
}
|
|
1549
|
+
) : null,
|
|
1550
|
+
link.label
|
|
1551
|
+
]
|
|
1552
|
+
},
|
|
1553
|
+
`mobile-link-${groupIndex}-${linkIndex}`
|
|
1554
|
+
))
|
|
1555
|
+
] }, `mobile-group-${groupIndex}`)) })
|
|
1553
1556
|
]
|
|
1554
1557
|
},
|
|
1555
|
-
`
|
|
1556
|
-
)
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1558
|
+
`nav-item-${index}`
|
|
1559
|
+
);
|
|
1560
|
+
}
|
|
1561
|
+
return /* @__PURE__ */ jsx(
|
|
1562
|
+
Pressable,
|
|
1563
|
+
{
|
|
1564
|
+
href: item.url,
|
|
1565
|
+
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",
|
|
1566
|
+
onClick: handleClose,
|
|
1567
|
+
children: item.title
|
|
1568
|
+
},
|
|
1569
|
+
`nav-link-${index}`
|
|
1570
|
+
);
|
|
1571
|
+
}) }),
|
|
1572
|
+
renderMobileAuthActions
|
|
1573
|
+
] }) })
|
|
1574
|
+
}
|
|
1571
1575
|
);
|
|
1572
1576
|
};
|
|
1573
1577
|
|
|
@@ -1222,7 +1222,7 @@ var NavbarMobileMenu = ({
|
|
|
1222
1222
|
"data-state": open ? "open" : "closed",
|
|
1223
1223
|
children: [
|
|
1224
1224
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1225
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-
|
|
1225
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1226
1226
|
"button",
|
|
1227
1227
|
{
|
|
1228
1228
|
onClick: onClose,
|
|
@@ -1595,6 +1595,7 @@ var NavbarPlatformResources = ({
|
|
|
1595
1595
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1596
1596
|
NavigationMenu,
|
|
1597
1597
|
{
|
|
1598
|
+
viewport: false,
|
|
1598
1599
|
className: cn("min-w-full", navigationMenuClassName),
|
|
1599
1600
|
children: [
|
|
1600
1601
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-between gap-12 py-4", children: [
|
|
@@ -1617,7 +1618,7 @@ var NavbarPlatformResources = ({
|
|
|
1617
1618
|
NavigationMenuItem,
|
|
1618
1619
|
{
|
|
1619
1620
|
children: [
|
|
1620
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1621
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-4 py-2 font-normal hover:bg-muted focus:bg-transparent data-[state=open]:bg-transparent", children: link.label }),
|
|
1621
1622
|
renderDropdownContent(link)
|
|
1622
1623
|
]
|
|
1623
1624
|
},
|
|
@@ -1634,7 +1635,7 @@ var NavbarPlatformResources = ({
|
|
|
1634
1635
|
NavigationMenuLink,
|
|
1635
1636
|
{
|
|
1636
1637
|
href: link.href,
|
|
1637
|
-
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
|
|
1638
|
+
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",
|
|
1638
1639
|
children: link.label
|
|
1639
1640
|
}
|
|
1640
1641
|
)
|
|
@@ -1685,7 +1686,7 @@ var NavbarPlatformResources = ({
|
|
|
1685
1686
|
className: "border-b-0",
|
|
1686
1687
|
children: [
|
|
1687
1688
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
1688
|
-
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1689
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { className: "overflow-x-none space-y-4", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1689
1690
|
Pressable,
|
|
1690
1691
|
{
|
|
1691
1692
|
href: getLinkUrl(item),
|
|
@@ -1199,7 +1199,7 @@ var NavbarMobileMenu = ({
|
|
|
1199
1199
|
"data-state": open ? "open" : "closed",
|
|
1200
1200
|
children: [
|
|
1201
1201
|
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1202
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-
|
|
1202
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxs(
|
|
1203
1203
|
"button",
|
|
1204
1204
|
{
|
|
1205
1205
|
onClick: onClose,
|
|
@@ -1572,6 +1572,7 @@ var NavbarPlatformResources = ({
|
|
|
1572
1572
|
children: /* @__PURE__ */ jsx("div", { className: containerWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: navWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: innerContainerClasses, children: /* @__PURE__ */ jsxs(
|
|
1573
1573
|
NavigationMenu,
|
|
1574
1574
|
{
|
|
1575
|
+
viewport: false,
|
|
1575
1576
|
className: cn("min-w-full", navigationMenuClassName),
|
|
1576
1577
|
children: [
|
|
1577
1578
|
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between gap-12 py-4", children: [
|
|
@@ -1594,7 +1595,7 @@ var NavbarPlatformResources = ({
|
|
|
1594
1595
|
NavigationMenuItem,
|
|
1595
1596
|
{
|
|
1596
1597
|
children: [
|
|
1597
|
-
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-
|
|
1598
|
+
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-4 py-2 font-normal hover:bg-muted focus:bg-transparent data-[state=open]:bg-transparent", children: link.label }),
|
|
1598
1599
|
renderDropdownContent(link)
|
|
1599
1600
|
]
|
|
1600
1601
|
},
|
|
@@ -1611,7 +1612,7 @@ var NavbarPlatformResources = ({
|
|
|
1611
1612
|
NavigationMenuLink,
|
|
1612
1613
|
{
|
|
1613
1614
|
href: link.href,
|
|
1614
|
-
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
|
|
1615
|
+
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",
|
|
1615
1616
|
children: link.label
|
|
1616
1617
|
}
|
|
1617
1618
|
)
|
|
@@ -1662,7 +1663,7 @@ var NavbarPlatformResources = ({
|
|
|
1662
1663
|
className: "border-b-0",
|
|
1663
1664
|
children: [
|
|
1664
1665
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "h-15 items-center text-base font-normal text-foreground hover:no-underline", children: link.label }),
|
|
1665
|
-
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1666
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "overflow-x-none space-y-4", children: link.links?.map((item, itemIndex) => /* @__PURE__ */ jsxs(
|
|
1666
1667
|
Pressable,
|
|
1667
1668
|
{
|
|
1668
1669
|
href: getLinkUrl(item),
|
|
@@ -1117,7 +1117,7 @@ var NavbarMobileMenu = ({
|
|
|
1117
1117
|
"data-state": open ? "open" : "closed",
|
|
1118
1118
|
children: [
|
|
1119
1119
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { children: title }) }),
|
|
1120
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-
|
|
1120
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1121
1121
|
"button",
|
|
1122
1122
|
{
|
|
1123
1123
|
onClick: onClose,
|
|
@@ -1095,7 +1095,7 @@ var NavbarMobileMenu = ({
|
|
|
1095
1095
|
"data-state": open ? "open" : "closed",
|
|
1096
1096
|
children: [
|
|
1097
1097
|
/* @__PURE__ */ jsx("div", { className: "sr-only", children: /* @__PURE__ */ jsx("h2", { children: title }) }),
|
|
1098
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-
|
|
1098
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-0 left-0 right-0 p-4 bg-background flex justify-end items-center z-10 w-screen", children: /* @__PURE__ */ jsxs(
|
|
1099
1099
|
"button",
|
|
1100
1100
|
{
|
|
1101
1101
|
onClick: onClose,
|