@marcoschwartz/lite-ui 0.25.3 → 0.25.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/index.mjs CHANGED
@@ -653,7 +653,7 @@ var SidebarNav = ({
653
653
  "nav",
654
654
  {
655
655
  className: `
656
- flex flex-col h-full overflow-hidden
656
+ flex flex-col h-full overflow-x-hidden overflow-y-auto
657
657
  transition-[width] duration-200 ease-in-out
658
658
  ${className}
659
659
  `,
@@ -668,7 +668,7 @@ var SidebarNavSection = ({
668
668
  grow = false,
669
669
  className = ""
670
670
  }) => {
671
- return /* @__PURE__ */ jsx7("div", { className: `${grow ? "flex-1 overflow-y-auto" : ""} ${className}`, children });
671
+ return /* @__PURE__ */ jsx7("div", { className: `p-3 space-y-1 ${grow ? "flex-1 overflow-y-auto overflow-x-hidden" : ""} ${className}`, children });
672
672
  };
673
673
  var SidebarNavItem = ({
674
674
  icon,
@@ -693,8 +693,8 @@ var SidebarNavItem = ({
693
693
  flex items-center gap-3 w-full px-3 py-2.5 rounded-lg
694
694
  text-sm font-medium
695
695
  transition-colors duration-150
696
- ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:bg-[hsl(var(--accent))]"}
697
- ${active ? "bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))]" : "text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))]"}
696
+ ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
697
+ ${active ? "bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]" : "text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--foreground))]"}
698
698
  ${collapsed ? "justify-center px-0" : ""}
699
699
  ${className}
700
700
  `;
@@ -1636,7 +1636,7 @@ var AppShell = ({
1636
1636
  style: getWidthStyle(navbarWidth),
1637
1637
  children: [
1638
1638
  (logo || title) && /* @__PURE__ */ jsx79("div", { className: `${heightClasses[headerHeight]} px-4 flex items-center border-b border-[hsl(var(--border))] shrink-0`, children: logo || /* @__PURE__ */ jsx79("span", { className: "text-xl font-bold text-[hsl(var(--foreground))]", children: title }) }),
1639
- /* @__PURE__ */ jsx79("nav", { className: "flex-1 overflow-y-auto", children: navbar.content })
1639
+ /* @__PURE__ */ jsx79("nav", { className: "flex-1 overflow-y-auto overflow-x-hidden", children: navbar.content })
1640
1640
  ]
1641
1641
  }
1642
1642
  ),
@@ -1680,7 +1680,7 @@ var AppShell = ({
1680
1680
  aside && !asideCollapsedDesktop && /* @__PURE__ */ jsx79(
1681
1681
  "aside",
1682
1682
  {
1683
- className: `${asideDesktopShowClass} ${getWidthClass(asideWidth)} ${getVariantClasses(asideVariant, asideWithBorder)} ${asideWithBorder ? "border-l" : ""} flex-col shrink-0 overflow-y-auto`,
1683
+ className: `${asideDesktopShowClass} ${getWidthClass(asideWidth)} ${getVariantClasses(asideVariant, asideWithBorder)} ${asideWithBorder ? "border-l" : ""} flex-col shrink-0 overflow-y-auto overflow-x-hidden`,
1684
1684
  style: getWidthStyle(asideWidth),
1685
1685
  children: aside.content
1686
1686
  }
@@ -1763,7 +1763,7 @@ var AppShell = ({
1763
1763
  navbar && !navbarCollapsedDesktop && /* @__PURE__ */ jsx79(
1764
1764
  "nav",
1765
1765
  {
1766
- className: `${navbarDesktopShowClass} ${getWidthClass(navbarWidth)} ${getVariantClasses(navbarVariant, navbarWithBorder)} ${navbarWithBorder ? "border-r" : ""} flex-col shrink-0 overflow-y-auto`,
1766
+ className: `${navbarDesktopShowClass} ${getWidthClass(navbarWidth)} ${getVariantClasses(navbarVariant, navbarWithBorder)} ${navbarWithBorder ? "border-r" : ""} flex-col shrink-0 overflow-y-auto overflow-x-hidden`,
1767
1767
  style: getWidthStyle(navbarWidth),
1768
1768
  children: navbar.content
1769
1769
  }
@@ -1772,7 +1772,7 @@ var AppShell = ({
1772
1772
  aside && !asideCollapsedDesktop && /* @__PURE__ */ jsx79(
1773
1773
  "aside",
1774
1774
  {
1775
- className: `${asideDesktopShowClass} ${getWidthClass(asideWidth)} ${getVariantClasses(asideVariant, asideWithBorder)} ${asideWithBorder ? "border-l" : ""} flex-col shrink-0 overflow-y-auto`,
1775
+ className: `${asideDesktopShowClass} ${getWidthClass(asideWidth)} ${getVariantClasses(asideVariant, asideWithBorder)} ${asideWithBorder ? "border-l" : ""} flex-col shrink-0 overflow-y-auto overflow-x-hidden`,
1776
1776
  style: getWidthStyle(asideWidth),
1777
1777
  children: aside.content
1778
1778
  }