@dilipod/ui 0.3.0 → 0.3.2

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
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import * as React27 from 'react';
2
3
  import { Slot, createSlot } from '@radix-ui/react-slot';
3
4
  import { cva } from 'class-variance-authority';
@@ -1767,7 +1768,7 @@ var SidebarNavItem = React27.forwardRef(
1767
1768
  ({ item, isActive, className, LinkComponent, ...props }, ref) => {
1768
1769
  const Icon = item.icon;
1769
1770
  const baseClassName = cn(
1770
- "flex items-center gap-3 rounded-sm px-3 py-2 text-sm transition-colors",
1771
+ "flex items-center gap-3 rounded-md px-3 py-2.5 text-sm transition-colors focus-visible:outline-none",
1771
1772
  isActive ? "bg-muted text-foreground font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted/50",
1772
1773
  className
1773
1774
  );
@@ -1781,8 +1782,8 @@ var SidebarNavItem = React27.forwardRef(
1781
1782
  className: baseClassName,
1782
1783
  ...props,
1783
1784
  children: [
1784
- /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", weight: isActive ? "fill" : "regular" }),
1785
- item.name
1785
+ /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", weight: isActive ? "fill" : "regular" }),
1786
+ /* @__PURE__ */ jsx("span", { children: item.name })
1786
1787
  ]
1787
1788
  }
1788
1789
  );
@@ -1795,8 +1796,8 @@ var SidebarNavItem = React27.forwardRef(
1795
1796
  className: baseClassName,
1796
1797
  ...props,
1797
1798
  children: [
1798
- /* @__PURE__ */ jsx(Icon, { className: "h-4 w-4", weight: isActive ? "fill" : "regular" }),
1799
- item.name
1799
+ /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 shrink-0", weight: isActive ? "fill" : "regular" }),
1800
+ /* @__PURE__ */ jsx("span", { children: item.name })
1800
1801
  ]
1801
1802
  }
1802
1803
  );
@@ -1846,7 +1847,7 @@ var Sidebar = React27.forwardRef(
1846
1847
  ]
1847
1848
  }
1848
1849
  ) }),
1849
- mainNav.length > 0 && /* @__PURE__ */ jsx("nav", { className: "flex-1 px-3 space-y-1", children: mainNav.map((item) => /* @__PURE__ */ jsx(
1850
+ mainNav.length > 0 && /* @__PURE__ */ jsx("nav", { className: "flex-1 px-3 pt-4 space-y-1", children: mainNav.map((item) => /* @__PURE__ */ jsx(
1850
1851
  SidebarNavItem,
1851
1852
  {
1852
1853
  item,