@opensite/ui 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/navbar-enterprise-mega.cjs +64 -64
- package/dist/navbar-enterprise-mega.js +64 -64
- package/dist/navbar-mega-menu.cjs +117 -50
- package/dist/navbar-mega-menu.js +117 -50
- package/dist/registry.cjs +181 -114
- package/dist/registry.js +181 -114
- package/package.json +1 -1
|
@@ -1451,7 +1451,7 @@ var DesktopMenuItem = ({
|
|
|
1451
1451
|
if (hasDropdown) {
|
|
1452
1452
|
return /* @__PURE__ */ jsxs(NavigationMenuItem, { value: `${index}`, children: [
|
|
1453
1453
|
/* @__PURE__ */ jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal hover:bg-muted focus:bg-muted data-[state=open]:bg-muted/50", children: item.label }),
|
|
1454
|
-
/* @__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(
|
|
1454
|
+
/* @__PURE__ */ jsx(NavigationMenuContent, { className: "!rounded-xl !border-0 !p-0 overflow-visible", children: /* @__PURE__ */ jsx("div", { className: "w-dvw max-w-screen-2xl px-8 pt-6 pb-12", children: /* @__PURE__ */ jsx("div", { className: "container mx-auto", children: renderDropdownContent(
|
|
1455
1455
|
{ ...item, layout: effectiveLayout },
|
|
1456
1456
|
optixFlowConfig
|
|
1457
1457
|
) }) }) })
|
|
@@ -1524,7 +1524,7 @@ var SolutionsMenu = ({
|
|
|
1524
1524
|
platformItems,
|
|
1525
1525
|
featuredHeroCard,
|
|
1526
1526
|
optixFlowConfig
|
|
1527
|
-
}) => /* @__PURE__ */ jsxs("div", { className: "grid gap-8 sm:grid-cols-2", children: [
|
|
1527
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "grid max-w-full gap-8 sm:grid-cols-2", children: [
|
|
1528
1528
|
featuredHeroCard && /* @__PURE__ */ jsx(
|
|
1529
1529
|
Pressable,
|
|
1530
1530
|
{
|
|
@@ -1533,23 +1533,23 @@ var SolutionsMenu = ({
|
|
|
1533
1533
|
"group relative flex h-full flex-row overflow-hidden rounded-lg px-0 pt-8 text-primary-foreground lg:rounded-xl lg:px-6",
|
|
1534
1534
|
featuredHeroCard.variant === "accent" ? "bg-accent text-accent-foreground" : "bg-primary"
|
|
1535
1535
|
),
|
|
1536
|
-
children: /* @__PURE__ */ jsxs("div", { className: "relative flex w-full flex-col space-y-
|
|
1537
|
-
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-col px-6 lg:mb-6 lg:px-0", children: [
|
|
1538
|
-
featuredHeroCard.subtitle && /* @__PURE__ */ jsx("span", { className: "mb-
|
|
1539
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-
|
|
1536
|
+
children: /* @__PURE__ */ jsxs("div", { className: "relative flex w-full flex-col space-y-8 text-left md:space-y-6 lg:w-full lg:flex-row lg:justify-between lg:space-y-0 lg:space-x-6 xl:space-x-8", children: [
|
|
1537
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-col px-6 lg:mb-6 lg:px-0 lg:flex-1", children: [
|
|
1538
|
+
featuredHeroCard.subtitle && /* @__PURE__ */ jsx("span", { className: "mb-4 text-xs font-medium tracking-wider uppercase md:mb-6", children: featuredHeroCard.subtitle }),
|
|
1539
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-base font-semibold", children: [
|
|
1540
1540
|
featuredHeroCard.title,
|
|
1541
1541
|
/* @__PURE__ */ jsx(
|
|
1542
1542
|
DynamicIcon,
|
|
1543
1543
|
{
|
|
1544
1544
|
name: "lucide/arrow-right",
|
|
1545
|
-
size:
|
|
1545
|
+
size: 18,
|
|
1546
1546
|
className: "ml-1 transition-transform group-hover:translate-x-1"
|
|
1547
1547
|
}
|
|
1548
1548
|
)
|
|
1549
1549
|
] }),
|
|
1550
|
-
/* @__PURE__ */ jsx("p", { className: "mt-
|
|
1550
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 text-sm leading-relaxed text-primary-foreground/85", children: featuredHeroCard.description })
|
|
1551
1551
|
] }),
|
|
1552
|
-
/* @__PURE__ */ jsx("div", { className: "relative aspect-2/1 overflow-clip rounded-t pl-6 lg:max-w-
|
|
1552
|
+
/* @__PURE__ */ jsx("div", { className: "relative aspect-2/1 overflow-clip rounded-t pl-6 lg:max-w-64 lg:shrink-0 lg:pl-0 xl:max-w-72", children: /* @__PURE__ */ jsx(
|
|
1553
1553
|
Img,
|
|
1554
1554
|
{
|
|
1555
1555
|
src: featuredHeroCard.image,
|
|
@@ -1563,11 +1563,11 @@ var SolutionsMenu = ({
|
|
|
1563
1563
|
),
|
|
1564
1564
|
platformItems.length > 0 && /* @__PURE__ */ jsxs("div", { className: "order-last mt-3 sm:order-0 sm:mt-0 sm:py-2 md:p-6", children: [
|
|
1565
1565
|
/* @__PURE__ */ jsx("div", { className: "mb-4 text-left leading-none md:col-span-2 lg:col-span-4 lg:mb-6", children: /* @__PURE__ */ jsx("strong", { className: "text-left text-xs font-medium tracking-wider text-muted-foreground uppercase", children: "Developer Platform" }) }),
|
|
1566
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-4 lg:grid-cols-2", children: platformItems.map((technology) => /* @__PURE__ */ jsxs(
|
|
1566
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full gap-4 lg:grid-cols-2", children: platformItems.map((technology) => /* @__PURE__ */ jsxs(
|
|
1567
1567
|
NavigationMenuLink,
|
|
1568
1568
|
{
|
|
1569
1569
|
href: technology.href,
|
|
1570
|
-
className: "group flex flex-row items-center gap-4",
|
|
1570
|
+
className: "group flex w-full flex-row items-center gap-4 hover:bg-muted rounded-lg p-2 -ml-2",
|
|
1571
1571
|
children: [
|
|
1572
1572
|
/* @__PURE__ */ jsx(DynamicIcon, { name: technology.icon, size: 16 }),
|
|
1573
1573
|
/* @__PURE__ */ jsx("div", { className: "flex-1 text-sm font-medium", children: technology.title }),
|
|
@@ -1584,10 +1584,10 @@ var SolutionsMenu = ({
|
|
|
1584
1584
|
technology.id
|
|
1585
1585
|
)) })
|
|
1586
1586
|
] }),
|
|
1587
|
-
solutionCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "col-span-full grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4 lg:gap-8", children: solutionCards.map((solution) => /* @__PURE__ */ jsxs(
|
|
1587
|
+
solutionCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "col-span-full grid w-full grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4 lg:gap-8", children: solutionCards.map((solution) => /* @__PURE__ */ jsxs(
|
|
1588
1588
|
"div",
|
|
1589
1589
|
{
|
|
1590
|
-
className: "rounded-md border border-border p-5",
|
|
1590
|
+
className: "flex flex-col rounded-md border border-border p-5",
|
|
1591
1591
|
children: [
|
|
1592
1592
|
/* @__PURE__ */ jsx("div", { className: "border-b border-border pb-4", children: /* @__PURE__ */ jsxs(
|
|
1593
1593
|
Pressable,
|
|
@@ -1610,11 +1610,11 @@ var SolutionsMenu = ({
|
|
|
1610
1610
|
]
|
|
1611
1611
|
}
|
|
1612
1612
|
) }),
|
|
1613
|
-
/* @__PURE__ */ jsx("menu", { className: "mt-6 grid gap-y-4", children: solution.subpages.map((subpage) => /* @__PURE__ */ jsxs(
|
|
1613
|
+
/* @__PURE__ */ jsx("menu", { className: "mt-6 grid w-full gap-y-4", children: solution.subpages.map((subpage) => /* @__PURE__ */ jsxs(
|
|
1614
1614
|
NavigationMenuLink,
|
|
1615
1615
|
{
|
|
1616
1616
|
href: subpage.href,
|
|
1617
|
-
className: "group flex flex-row items-center space-x-4 text-left lg:space-x-4 lg:border-0",
|
|
1617
|
+
className: "group flex w-full flex-row items-center space-x-4 text-left hover:bg-muted rounded-lg p-2 -ml-2 lg:space-x-4 lg:border-0",
|
|
1618
1618
|
children: [
|
|
1619
1619
|
/* @__PURE__ */ jsx(DynamicIcon, { name: subpage.icon, size: 16 }),
|
|
1620
1620
|
/* @__PURE__ */ jsx("div", { className: "flex-1 text-sm font-medium", children: subpage.title }),
|
|
@@ -1639,7 +1639,7 @@ var ProductsMenu = ({
|
|
|
1639
1639
|
productCategories,
|
|
1640
1640
|
featuredHeroCard,
|
|
1641
1641
|
optixFlowConfig
|
|
1642
|
-
}) => /* @__PURE__ */ jsxs("div", { className: "grid gap-y-12 lg:flex lg:space-x-8", children: [
|
|
1642
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "grid max-w-full gap-y-12 lg:flex lg:space-x-8", children: [
|
|
1643
1643
|
featuredHeroCard && /* @__PURE__ */ jsx("div", { className: "w-full shrink-0 lg:max-w-[24rem]", children: /* @__PURE__ */ jsx(
|
|
1644
1644
|
Pressable,
|
|
1645
1645
|
{
|
|
@@ -1649,7 +1649,7 @@ var ProductsMenu = ({
|
|
|
1649
1649
|
featuredHeroCard.variant === "accent" ? "bg-accent text-accent-foreground" : "bg-primary"
|
|
1650
1650
|
),
|
|
1651
1651
|
children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full flex-col text-left", children: [
|
|
1652
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-2/1 max-h-
|
|
1652
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-2/1 max-h-48 w-full flex-1 justify-center", children: /* @__PURE__ */ jsx(
|
|
1653
1653
|
Img,
|
|
1654
1654
|
{
|
|
1655
1655
|
src: featuredHeroCard.image,
|
|
@@ -1659,40 +1659,40 @@ var ProductsMenu = ({
|
|
|
1659
1659
|
}
|
|
1660
1660
|
) }),
|
|
1661
1661
|
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex flex-col rounded-b-xl bg-primary p-6", children: [
|
|
1662
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1 text-
|
|
1662
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1 text-base font-semibold", children: [
|
|
1663
1663
|
featuredHeroCard.title,
|
|
1664
1664
|
/* @__PURE__ */ jsx(
|
|
1665
1665
|
DynamicIcon,
|
|
1666
1666
|
{
|
|
1667
1667
|
name: "lucide/arrow-right",
|
|
1668
|
-
size:
|
|
1668
|
+
size: 18,
|
|
1669
1669
|
className: "ml-1 transition-transform group-hover:translate-x-1"
|
|
1670
1670
|
}
|
|
1671
1671
|
)
|
|
1672
1672
|
] }),
|
|
1673
|
-
/* @__PURE__ */ jsx("p", { className: "mt-
|
|
1673
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 text-sm leading-relaxed text-primary-foreground/85", children: featuredHeroCard.description })
|
|
1674
1674
|
] })
|
|
1675
1675
|
] })
|
|
1676
1676
|
}
|
|
1677
1677
|
) }),
|
|
1678
|
-
productCategories.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid w-full gap-y-12 lg:gap-y-6", children: productCategories.map((category) => /* @__PURE__ */ jsxs("div", { className: "grid gap-y-2 lg:gap-y-6", children: [
|
|
1678
|
+
productCategories.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid w-full gap-y-12 overflow-hidden lg:gap-y-6", children: productCategories.map((category) => /* @__PURE__ */ jsxs("div", { className: "grid w-full gap-y-2 lg:gap-y-6", children: [
|
|
1679
1679
|
/* @__PURE__ */ jsx("div", { className: "border-border text-left lg:border-b lg:pb-3", children: /* @__PURE__ */ jsx("strong", { className: "text-left text-xs font-medium tracking-wider text-muted-foreground uppercase", children: category.title }) }),
|
|
1680
|
-
/* @__PURE__ */ jsx("menu", { className: "grid md:grid-cols-3 md:gap-x-5 lg:gap-y-7", children: category.products.map((product) => /* @__PURE__ */ jsxs(
|
|
1680
|
+
/* @__PURE__ */ jsx("menu", { className: "grid w-full auto-cols-fr md:grid-cols-3 md:gap-x-5 lg:gap-y-7", children: category.products.map((product) => /* @__PURE__ */ jsxs(
|
|
1681
1681
|
NavigationMenuLink,
|
|
1682
1682
|
{
|
|
1683
1683
|
href: product.href,
|
|
1684
|
-
className: "group flex flex-row items-center space-x-
|
|
1684
|
+
className: "group flex w-full flex-row items-center space-x-4 border-b border-border py-5 text-left hover:bg-muted rounded-lg px-2 -ml-2 sm:py-7 lg:border-0 lg:py-2",
|
|
1685
1685
|
children: [
|
|
1686
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-square w-16 shrink-0 items-center justify-center overflow-clip rounded md:size-
|
|
1686
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-square w-16 shrink-0 items-center justify-center overflow-clip rounded md:size-16", children: /* @__PURE__ */ jsx(
|
|
1687
1687
|
Img,
|
|
1688
1688
|
{
|
|
1689
1689
|
src: product.image,
|
|
1690
1690
|
alt: product.title,
|
|
1691
|
-
className: "object-cover",
|
|
1691
|
+
className: "h-full w-full object-cover",
|
|
1692
1692
|
optixFlowConfig
|
|
1693
1693
|
}
|
|
1694
1694
|
) }),
|
|
1695
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
1695
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1696
1696
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: product.title }),
|
|
1697
1697
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: product.description })
|
|
1698
1698
|
] }),
|
|
@@ -1701,7 +1701,7 @@ var ProductsMenu = ({
|
|
|
1701
1701
|
{
|
|
1702
1702
|
name: "lucide/arrow-right",
|
|
1703
1703
|
size: 16,
|
|
1704
|
-
className: "transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1704
|
+
className: "shrink-0 transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1705
1705
|
}
|
|
1706
1706
|
)
|
|
1707
1707
|
]
|
|
@@ -1715,7 +1715,7 @@ var GlobalMenu = ({
|
|
|
1715
1715
|
regions,
|
|
1716
1716
|
featuredHeroCard,
|
|
1717
1717
|
optixFlowConfig
|
|
1718
|
-
}) => /* @__PURE__ */ jsxs("div", { children: [
|
|
1718
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "max-w-full overflow-hidden", children: [
|
|
1719
1719
|
/* @__PURE__ */ jsxs("div", { className: "space-y-6 lg:flex lg:space-y-0 lg:space-x-8", children: [
|
|
1720
1720
|
featuredHeroCard && /* @__PURE__ */ jsx("div", { className: "w-full shrink-0 lg:max-w-[18rem]", children: /* @__PURE__ */ jsx(
|
|
1721
1721
|
Pressable,
|
|
@@ -1726,7 +1726,7 @@ var GlobalMenu = ({
|
|
|
1726
1726
|
featuredHeroCard.variant === "accent" ? "bg-accent text-accent-foreground" : "bg-primary"
|
|
1727
1727
|
),
|
|
1728
1728
|
children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full flex-col-reverse text-left lg:flex-col", children: [
|
|
1729
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-4/3 max-h-
|
|
1729
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex aspect-4/3 max-h-48 w-full flex-1 justify-center", children: /* @__PURE__ */ jsx(
|
|
1730
1730
|
Img,
|
|
1731
1731
|
{
|
|
1732
1732
|
src: featuredHeroCard.image,
|
|
@@ -1736,32 +1736,32 @@ var GlobalMenu = ({
|
|
|
1736
1736
|
}
|
|
1737
1737
|
) }),
|
|
1738
1738
|
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex flex-col rounded-b-xl bg-primary p-6", children: [
|
|
1739
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1 text-
|
|
1739
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1 text-base font-semibold", children: [
|
|
1740
1740
|
featuredHeroCard.title,
|
|
1741
1741
|
/* @__PURE__ */ jsx(
|
|
1742
1742
|
DynamicIcon,
|
|
1743
1743
|
{
|
|
1744
1744
|
name: "lucide/arrow-right",
|
|
1745
|
-
size:
|
|
1745
|
+
size: 18,
|
|
1746
1746
|
className: "ml-1 transition-transform group-hover:translate-x-1"
|
|
1747
1747
|
}
|
|
1748
1748
|
)
|
|
1749
1749
|
] }),
|
|
1750
|
-
/* @__PURE__ */ jsx("p", { className: "mt-
|
|
1750
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 text-sm leading-relaxed text-primary-foreground/85", children: featuredHeroCard.description })
|
|
1751
1751
|
] })
|
|
1752
1752
|
] })
|
|
1753
1753
|
}
|
|
1754
1754
|
) }),
|
|
1755
|
-
featureCategories.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid w-full gap-y-12 lg:gap-y-6", children: featureCategories.map((category) => /* @__PURE__ */ jsxs("div", { className: "grid gap-y-2 lg:gap-y-6", children: [
|
|
1755
|
+
featureCategories.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid w-full gap-y-12 overflow-hidden lg:gap-y-6", children: featureCategories.map((category) => /* @__PURE__ */ jsxs("div", { className: "grid w-full gap-y-2 lg:gap-y-6", children: [
|
|
1756
1756
|
/* @__PURE__ */ jsx("div", { className: "border-border text-left lg:border-b lg:pb-3", children: /* @__PURE__ */ jsx("strong", { className: "text-left text-xs font-medium tracking-wider text-muted-foreground uppercase", children: category.title }) }),
|
|
1757
|
-
/* @__PURE__ */ jsx("menu", { className: "grid md:grid-cols-3 md:gap-x-6 lg:gap-y-6", children: category.features.map((feature) => /* @__PURE__ */ jsxs(
|
|
1757
|
+
/* @__PURE__ */ jsx("menu", { className: "grid w-full auto-cols-fr md:grid-cols-3 md:gap-x-6 lg:gap-y-6", children: category.features.map((feature) => /* @__PURE__ */ jsxs(
|
|
1758
1758
|
NavigationMenuLink,
|
|
1759
1759
|
{
|
|
1760
1760
|
href: feature.href,
|
|
1761
|
-
className: "group flex flex-row items-center space-x-4 border-b border-border py-5 text-left sm:py-7 lg:border-0 lg:py-0",
|
|
1761
|
+
className: "group flex w-full flex-row items-center space-x-4 border-b border-border py-5 text-left hover:bg-muted rounded-lg px-2 -ml-2 sm:py-7 lg:border-0 lg:py-0",
|
|
1762
1762
|
children: [
|
|
1763
1763
|
/* @__PURE__ */ jsx("div", { className: "flex aspect-square size-9 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx(DynamicIcon, { name: feature.icon, size: 20 }) }),
|
|
1764
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
1764
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1765
1765
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: feature.title }),
|
|
1766
1766
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: feature.description })
|
|
1767
1767
|
] }),
|
|
@@ -1770,7 +1770,7 @@ var GlobalMenu = ({
|
|
|
1770
1770
|
{
|
|
1771
1771
|
name: "lucide/arrow-right",
|
|
1772
1772
|
size: 16,
|
|
1773
|
-
className: "transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1773
|
+
className: "shrink-0 transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1774
1774
|
}
|
|
1775
1775
|
)
|
|
1776
1776
|
]
|
|
@@ -1781,26 +1781,26 @@ var GlobalMenu = ({
|
|
|
1781
1781
|
] }),
|
|
1782
1782
|
regions.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-8", children: [
|
|
1783
1783
|
/* @__PURE__ */ jsx("div", { className: "mb-6 border-border pb-1 text-left lg:border-b", children: /* @__PURE__ */ jsx("strong", { className: "text-left text-xs font-medium tracking-wider text-muted-foreground uppercase", children: "Popular Locations" }) }),
|
|
1784
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-6 md:grid-cols-3 lg:grid-cols-4", children: regions.map((region) => /* @__PURE__ */ jsxs(
|
|
1784
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full gap-6 md:grid-cols-3 lg:grid-cols-4", children: regions.map((region) => /* @__PURE__ */ jsxs(
|
|
1785
1785
|
"div",
|
|
1786
1786
|
{
|
|
1787
|
-
className: "space-y-6 rounded-md border border-border p-6 lg:border-0 lg:p-0",
|
|
1787
|
+
className: "flex w-full flex-col space-y-6 rounded-md border border-border p-6 lg:border-0 lg:p-0",
|
|
1788
1788
|
children: [
|
|
1789
1789
|
/* @__PURE__ */ jsx("div", { className: "text-left text-xs text-muted-foreground", children: region.title }),
|
|
1790
|
-
/* @__PURE__ */ jsx("menu", { className: "grid gap-y-3 border-t border-border pt-6 lg:border-0 lg:pt-0", children: region.locations.map((location) => /* @__PURE__ */ jsxs(
|
|
1790
|
+
/* @__PURE__ */ jsx("menu", { className: "grid w-full gap-y-3 border-t border-border pt-6 lg:border-0 lg:pt-0", children: region.locations.map((location) => /* @__PURE__ */ jsxs(
|
|
1791
1791
|
NavigationMenuLink,
|
|
1792
1792
|
{
|
|
1793
1793
|
href: location.href,
|
|
1794
|
-
className: "group flex flex-row items-center space-x-4 text-left lg:space-x-4 lg:border-0 lg:py-0",
|
|
1794
|
+
className: "group flex w-full flex-row items-center space-x-4 text-left hover:bg-muted rounded-lg p-2 -ml-2 lg:space-x-4 lg:border-0 lg:py-0",
|
|
1795
1795
|
children: [
|
|
1796
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-4 items-center justify-center", children: location.icon }),
|
|
1797
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 text-sm font-medium", children: location.title }),
|
|
1796
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-4 shrink-0 items-center justify-center", children: location.icon }),
|
|
1797
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0 text-sm font-medium", children: location.title }),
|
|
1798
1798
|
/* @__PURE__ */ jsx(
|
|
1799
1799
|
DynamicIcon,
|
|
1800
1800
|
{
|
|
1801
1801
|
name: "lucide/arrow-right",
|
|
1802
1802
|
size: 16,
|
|
1803
|
-
className: "transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1803
|
+
className: "shrink-0 transition-transform group-hover:translate-x-1 lg:hidden"
|
|
1804
1804
|
}
|
|
1805
1805
|
)
|
|
1806
1806
|
]
|
|
@@ -1817,7 +1817,7 @@ var PartnersMenu = ({
|
|
|
1817
1817
|
partnerCards,
|
|
1818
1818
|
featuredHeroCard,
|
|
1819
1819
|
optixFlowConfig
|
|
1820
|
-
}) => /* @__PURE__ */ jsxs("div", { className: "grid gap-y-6 md:grid-cols-2 md:gap-x-6 lg:grid-cols-4", children: [
|
|
1820
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "grid max-w-full gap-y-6 md:grid-cols-2 md:gap-x-6 lg:grid-cols-4", children: [
|
|
1821
1821
|
featuredHeroCard && /* @__PURE__ */ jsx("div", { className: "md:col-span-2", children: /* @__PURE__ */ jsx(
|
|
1822
1822
|
Pressable,
|
|
1823
1823
|
{
|
|
@@ -1828,18 +1828,18 @@ var PartnersMenu = ({
|
|
|
1828
1828
|
),
|
|
1829
1829
|
children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full flex-col-reverse text-left", children: [
|
|
1830
1830
|
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex flex-col px-6 pt-6 pb-56 md:pt-40 md:pb-6", children: [
|
|
1831
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-
|
|
1831
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-base font-semibold", children: [
|
|
1832
1832
|
featuredHeroCard.title,
|
|
1833
1833
|
/* @__PURE__ */ jsx(
|
|
1834
1834
|
DynamicIcon,
|
|
1835
1835
|
{
|
|
1836
1836
|
name: "lucide/arrow-right",
|
|
1837
|
-
size:
|
|
1837
|
+
size: 18,
|
|
1838
1838
|
className: "ml-1 transition-transform group-hover:translate-x-1"
|
|
1839
1839
|
}
|
|
1840
1840
|
)
|
|
1841
1841
|
] }),
|
|
1842
|
-
/* @__PURE__ */ jsx("p", { className: "mt-
|
|
1842
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 text-sm leading-relaxed", children: featuredHeroCard.description })
|
|
1843
1843
|
] }),
|
|
1844
1844
|
/* @__PURE__ */ jsx(
|
|
1845
1845
|
"div",
|
|
@@ -1862,14 +1862,14 @@ var PartnersMenu = ({
|
|
|
1862
1862
|
] })
|
|
1863
1863
|
}
|
|
1864
1864
|
) }),
|
|
1865
|
-
partnerCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid gap-4 md:col-span-2 lg:col-span-2", children: partnerCards.map((card) => /* @__PURE__ */ jsx(
|
|
1865
|
+
partnerCards.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid w-full gap-4 md:col-span-2 lg:col-span-2", children: partnerCards.map((card) => /* @__PURE__ */ jsx(
|
|
1866
1866
|
NavigationMenuLink,
|
|
1867
1867
|
{
|
|
1868
1868
|
href: card.href,
|
|
1869
|
-
className: "group flex w-full flex-row items-center rounded-lg border border-border lg:rounded-xl",
|
|
1870
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start p-6 text-left", children: [
|
|
1871
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: card.icon, size: 32 }),
|
|
1872
|
-
/* @__PURE__ */ jsxs("div", { className: "ml-4", children: [
|
|
1869
|
+
className: "group flex w-full flex-row items-center rounded-lg border border-border hover:bg-muted lg:rounded-xl",
|
|
1870
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-start p-6 text-left", children: [
|
|
1871
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: card.icon, size: 32, className: "shrink-0" }),
|
|
1872
|
+
/* @__PURE__ */ jsxs("div", { className: "ml-4 flex-1 min-w-0", children: [
|
|
1873
1873
|
/* @__PURE__ */ jsx("div", { className: "mt-auto mb-1 text-sm font-bold", children: card.title }),
|
|
1874
1874
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: card.description })
|
|
1875
1875
|
] })
|
|
@@ -1882,7 +1882,7 @@ var ResourcesMenu = ({
|
|
|
1882
1882
|
resourceItems,
|
|
1883
1883
|
topicGroups,
|
|
1884
1884
|
featuredHeroCard
|
|
1885
|
-
}) => /* @__PURE__ */ jsxs("div", { className: "grid gap-8 lg:grid-cols-3", children: [
|
|
1885
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "grid max-w-full gap-8 lg:grid-cols-3", children: [
|
|
1886
1886
|
featuredHeroCard && /* @__PURE__ */ jsx("div", { className: "lg:col-span-1", children: /* @__PURE__ */ jsx(
|
|
1887
1887
|
Pressable,
|
|
1888
1888
|
{
|
|
@@ -1893,18 +1893,18 @@ var ResourcesMenu = ({
|
|
|
1893
1893
|
),
|
|
1894
1894
|
children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 flex w-full flex-col-reverse text-left", children: [
|
|
1895
1895
|
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex flex-col px-6 pt-6 pb-56 md:pt-40 md:pb-6", children: [
|
|
1896
|
-
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-
|
|
1896
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-auto flex items-center space-x-1 text-base font-semibold", children: [
|
|
1897
1897
|
featuredHeroCard.title,
|
|
1898
1898
|
/* @__PURE__ */ jsx(
|
|
1899
1899
|
DynamicIcon,
|
|
1900
1900
|
{
|
|
1901
1901
|
name: "lucide/arrow-right",
|
|
1902
|
-
size:
|
|
1902
|
+
size: 18,
|
|
1903
1903
|
className: "ml-1 transition-transform group-hover:translate-x-1"
|
|
1904
1904
|
}
|
|
1905
1905
|
)
|
|
1906
1906
|
] }),
|
|
1907
|
-
/* @__PURE__ */ jsx("p", { className: "mt-
|
|
1907
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 text-sm leading-relaxed", children: featuredHeroCard.description })
|
|
1908
1908
|
] }),
|
|
1909
1909
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0", children: /* @__PURE__ */ jsx(
|
|
1910
1910
|
Img,
|
|
@@ -1918,13 +1918,13 @@ var ResourcesMenu = ({
|
|
|
1918
1918
|
] })
|
|
1919
1919
|
}
|
|
1920
1920
|
) }),
|
|
1921
|
-
resourceItems.length > 0 && /* @__PURE__ */ jsxs("div", { className: cn(featuredHeroCard ? "lg:col-span-1" : "lg:col-span-2"), children: [
|
|
1921
|
+
resourceItems.length > 0 && /* @__PURE__ */ jsxs("div", { className: cn(featuredHeroCard ? "lg:col-span-1" : "lg:col-span-2", "overflow-hidden"), children: [
|
|
1922
1922
|
/* @__PURE__ */ jsx("div", { className: "mb-6 text-left", children: /* @__PURE__ */ jsx("strong", { className: "text-xs font-medium tracking-wider text-muted-foreground uppercase", children: "Resources" }) }),
|
|
1923
|
-
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-2", children: resourceItems.map((resource) => /* @__PURE__ */ jsxs(
|
|
1923
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full gap-4 md:grid-cols-2 lg:grid-cols-2", children: resourceItems.map((resource) => /* @__PURE__ */ jsxs(
|
|
1924
1924
|
NavigationMenuLink,
|
|
1925
1925
|
{
|
|
1926
1926
|
href: resource.href,
|
|
1927
|
-
className: "group flex flex-row items-start gap-4 rounded-lg border border-border p-4 hover:bg-
|
|
1927
|
+
className: "group flex w-full flex-row items-start gap-4 rounded-lg border border-border p-4 hover:bg-muted",
|
|
1928
1928
|
children: [
|
|
1929
1929
|
/* @__PURE__ */ jsx(
|
|
1930
1930
|
DynamicIcon,
|
|
@@ -1934,7 +1934,7 @@ var ResourcesMenu = ({
|
|
|
1934
1934
|
className: "mt-1 shrink-0"
|
|
1935
1935
|
}
|
|
1936
1936
|
),
|
|
1937
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
1937
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
1938
1938
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: resource.title }),
|
|
1939
1939
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: resource.description })
|
|
1940
1940
|
] })
|
|
@@ -1949,10 +1949,10 @@ var ResourcesMenu = ({
|
|
|
1949
1949
|
NavigationMenuLink,
|
|
1950
1950
|
{
|
|
1951
1951
|
href: topic.href,
|
|
1952
|
-
className: "group flex flex-row items-center gap-3",
|
|
1952
|
+
className: "group flex flex-row items-center gap-3 hover:bg-muted rounded-lg p-2 -ml-2",
|
|
1953
1953
|
children: [
|
|
1954
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: topic.icon, size: 16 }),
|
|
1955
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: topic.title })
|
|
1954
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: topic.icon, size: 16, className: "shrink-0" }),
|
|
1955
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 text-sm font-medium", children: topic.title })
|
|
1956
1956
|
]
|
|
1957
1957
|
},
|
|
1958
1958
|
topic.id
|
|
@@ -1238,61 +1238,126 @@ var DesktopMenuItem = ({
|
|
|
1238
1238
|
] }) })
|
|
1239
1239
|
] }, `desktop-menu-item-${index}`);
|
|
1240
1240
|
}
|
|
1241
|
-
if (layout === "simple-grid" && link.links) {
|
|
1241
|
+
if (layout === "simple-grid" && (link.links || link.dropdownGroups)) {
|
|
1242
|
+
const allLinks = link.dropdownGroups ? link.dropdownGroups.flatMap((group) => group.links || []) : link.links || [];
|
|
1242
1243
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { children: [
|
|
1243
1244
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal hover:bg-muted focus:bg-muted data-[state=open]:bg-muted/50", children: link.label }),
|
|
1244
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[700px] p-6", children:
|
|
1245
|
-
|
|
1246
|
-
{
|
|
1247
|
-
|
|
1248
|
-
className: "
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1245
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[700px] p-6", children: link.dropdownGroups ? (
|
|
1246
|
+
// Render with group headers
|
|
1247
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: link.dropdownGroups.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1248
|
+
group.label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-3 text-xs font-medium tracking-wider uppercase text-muted-foreground", children: group.label }),
|
|
1249
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid auto-rows-fr grid-cols-1 gap-4 sm:grid-cols-2", children: (group.links || []).map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1250
|
+
NavigationMenuLink,
|
|
1251
|
+
{
|
|
1252
|
+
href: getLinkUrl(item),
|
|
1253
|
+
className: "flex w-full flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-muted hover:text-foreground",
|
|
1254
|
+
children: [
|
|
1255
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 w-20 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1256
|
+
img.Img,
|
|
1257
|
+
{
|
|
1258
|
+
src: item.image,
|
|
1259
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
1260
|
+
className: "h-full w-full object-cover object-center",
|
|
1261
|
+
optixFlowConfig
|
|
1262
|
+
}
|
|
1263
|
+
) }),
|
|
1264
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
1265
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
1266
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1267
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1268
|
+
] })
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
`grid-item-${groupIndex}-${itemIndex}`
|
|
1272
|
+
)) })
|
|
1273
|
+
] }, `group-${groupIndex}`)) })
|
|
1274
|
+
) : (
|
|
1275
|
+
// Render without groups
|
|
1276
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid auto-rows-fr grid-cols-1 gap-4 sm:grid-cols-2", children: allLinks.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1277
|
+
NavigationMenuLink,
|
|
1278
|
+
{
|
|
1279
|
+
href: getLinkUrl(item),
|
|
1280
|
+
className: "flex w-full flex-row items-start gap-4 rounded-lg border border-input bg-background p-4 hover:bg-muted hover:text-foreground",
|
|
1281
|
+
children: [
|
|
1282
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 w-20 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
|
+
img.Img,
|
|
1284
|
+
{
|
|
1285
|
+
src: item.image,
|
|
1286
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
1287
|
+
className: "h-full w-full object-cover object-center",
|
|
1288
|
+
optixFlowConfig
|
|
1289
|
+
}
|
|
1290
|
+
) }),
|
|
1291
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 20 }) : null }),
|
|
1292
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
1293
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1294
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-normal text-muted-foreground", children: item.description })
|
|
1295
|
+
] })
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
`grid-item-${itemIndex}`
|
|
1299
|
+
)) })
|
|
1300
|
+
) })
|
|
1268
1301
|
] }, `desktop-menu-item-${index}`);
|
|
1269
1302
|
}
|
|
1270
|
-
if (layout === "list-with-icons" && link.links) {
|
|
1303
|
+
if (layout === "list-with-icons" && (link.links || link.dropdownGroups)) {
|
|
1304
|
+
const allLinks = link.dropdownGroups ? link.dropdownGroups.flatMap((group) => group.links || []) : link.links || [];
|
|
1271
1305
|
return /* @__PURE__ */ jsxRuntime.jsxs(NavigationMenuItem, { children: [
|
|
1272
1306
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuTrigger, { className: "h-auto bg-transparent px-3 py-2 font-normal hover:bg-muted focus:bg-muted data-[state=open]:bg-muted/50", children: link.label }),
|
|
1273
|
-
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[400px] p-4", children:
|
|
1274
|
-
|
|
1275
|
-
{
|
|
1276
|
-
|
|
1277
|
-
className: "flex
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1307
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuContent, { className: "min-w-[400px] p-4", children: link.dropdownGroups ? (
|
|
1308
|
+
// Render with group headers
|
|
1309
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: link.dropdownGroups.map((group, groupIndex) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1310
|
+
group.label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-2 text-xs font-medium tracking-wider uppercase text-muted-foreground", children: group.label }),
|
|
1311
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-1", children: (group.links || []).map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1312
|
+
NavigationMenuLink,
|
|
1313
|
+
{
|
|
1314
|
+
href: getLinkUrl(item),
|
|
1315
|
+
className: "flex w-full items-start gap-3 rounded-lg p-3 hover:bg-muted",
|
|
1316
|
+
children: [
|
|
1317
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1318
|
+
img.Img,
|
|
1319
|
+
{
|
|
1320
|
+
src: item.image,
|
|
1321
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
1322
|
+
className: "h-full w-full object-cover object-center",
|
|
1323
|
+
optixFlowConfig
|
|
1324
|
+
}
|
|
1325
|
+
) }),
|
|
1326
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
1327
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
1328
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1329
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground", children: item.description })
|
|
1330
|
+
] })
|
|
1331
|
+
]
|
|
1332
|
+
}
|
|
1333
|
+
) }, `list-item-${groupIndex}-${itemIndex}`)) })
|
|
1334
|
+
] }, `group-${groupIndex}`)) })
|
|
1335
|
+
) : (
|
|
1336
|
+
// Render without groups
|
|
1337
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-1", children: allLinks.map((item, itemIndex) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1338
|
+
NavigationMenuLink,
|
|
1339
|
+
{
|
|
1340
|
+
href: getLinkUrl(item),
|
|
1341
|
+
className: "flex w-full items-start gap-3 rounded-lg p-3 hover:bg-muted",
|
|
1342
|
+
children: [
|
|
1343
|
+
item.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12 w-12 shrink-0 overflow-hidden rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1344
|
+
img.Img,
|
|
1345
|
+
{
|
|
1346
|
+
src: item.image,
|
|
1347
|
+
alt: typeof item.label === "string" ? item.label : "Menu item",
|
|
1348
|
+
className: "h-full w-full object-cover object-center",
|
|
1349
|
+
optixFlowConfig
|
|
1350
|
+
}
|
|
1351
|
+
) }),
|
|
1352
|
+
!item.image && (item.icon || item.iconName) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted/40 text-muted-foreground", children: item.icon ? item.icon : item.iconName ? /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.iconName, size: 16 }) : null }),
|
|
1353
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
1354
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: item.label }),
|
|
1355
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground", children: item.description })
|
|
1356
|
+
] })
|
|
1357
|
+
]
|
|
1358
|
+
}
|
|
1359
|
+
) }, `list-item-${itemIndex}`)) })
|
|
1360
|
+
) })
|
|
1296
1361
|
] }, `desktop-menu-item-${index}`);
|
|
1297
1362
|
}
|
|
1298
1363
|
if (link.href) {
|
|
@@ -1369,7 +1434,9 @@ var NavbarMegaMenu = ({
|
|
|
1369
1434
|
const [open, setOpen] = React.useState(false);
|
|
1370
1435
|
const [submenuIndex, setSubmenuIndex] = React.useState(null);
|
|
1371
1436
|
const activeSubmenu = submenuIndex !== null ? menuLinks?.[submenuIndex] : null;
|
|
1372
|
-
const hasDropdownItems = (link) => Boolean(
|
|
1437
|
+
const hasDropdownItems = (link) => Boolean(
|
|
1438
|
+
link.links && link.links.length > 0 || link.dropdownGroups && link.dropdownGroups.length > 0
|
|
1439
|
+
);
|
|
1373
1440
|
const renderActions = () => {
|
|
1374
1441
|
if (!actions || actions.length === 0) return null;
|
|
1375
1442
|
return actions.map((action, index) => {
|