@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.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/sidebar.tsx +6 -6
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
'use strict';
|
|
2
3
|
|
|
3
4
|
var React27 = require('react');
|
|
@@ -1801,7 +1802,7 @@ var SidebarNavItem = React27__namespace.forwardRef(
|
|
|
1801
1802
|
({ item, isActive, className, LinkComponent, ...props }, ref) => {
|
|
1802
1803
|
const Icon = item.icon;
|
|
1803
1804
|
const baseClassName = cn(
|
|
1804
|
-
"flex items-center gap-3 rounded-
|
|
1805
|
+
"flex items-center gap-3 rounded-md px-3 py-2.5 text-sm transition-colors focus-visible:outline-none",
|
|
1805
1806
|
isActive ? "bg-muted text-foreground font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted/50",
|
|
1806
1807
|
className
|
|
1807
1808
|
);
|
|
@@ -1815,8 +1816,8 @@ var SidebarNavItem = React27__namespace.forwardRef(
|
|
|
1815
1816
|
className: baseClassName,
|
|
1816
1817
|
...props,
|
|
1817
1818
|
children: [
|
|
1818
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-
|
|
1819
|
-
item.name
|
|
1819
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-5 w-5 shrink-0", weight: isActive ? "fill" : "regular" }),
|
|
1820
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.name })
|
|
1820
1821
|
]
|
|
1821
1822
|
}
|
|
1822
1823
|
);
|
|
@@ -1829,8 +1830,8 @@ var SidebarNavItem = React27__namespace.forwardRef(
|
|
|
1829
1830
|
className: baseClassName,
|
|
1830
1831
|
...props,
|
|
1831
1832
|
children: [
|
|
1832
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-
|
|
1833
|
-
item.name
|
|
1833
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-5 w-5 shrink-0", weight: isActive ? "fill" : "regular" }),
|
|
1834
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.name })
|
|
1834
1835
|
]
|
|
1835
1836
|
}
|
|
1836
1837
|
);
|
|
@@ -1880,7 +1881,7 @@ var Sidebar = React27__namespace.forwardRef(
|
|
|
1880
1881
|
]
|
|
1881
1882
|
}
|
|
1882
1883
|
) }),
|
|
1883
|
-
mainNav.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex-1 px-3 space-y-1", children: mainNav.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1884
|
+
mainNav.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex-1 px-3 pt-4 space-y-1", children: mainNav.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1884
1885
|
SidebarNavItem,
|
|
1885
1886
|
{
|
|
1886
1887
|
item,
|