Skip to content

Commit a119eeb

Browse files
committed
doc(): Add sidebar story.
1 parent 5c0faa4 commit a119eeb

File tree

5 files changed

+394
-13
lines changed

5 files changed

+394
-13
lines changed

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"cmdk": "^0.2.0",
122122
"date-fns": "^3.6.0",
123123
"input-otp": "^1.4.1",
124-
"lucide-react": "^0.298.0",
124+
"lucide-react": "^0.468.0",
125125
"react-day-picker": "^8.10.0",
126126
"react-icons": "^5.3.0",
127127
"react-resizable-panels": "^1.0.5",

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export * from "./shadcn/ui/scroll-area";
3333
export * from "./shadcn/ui/select";
3434
export * from "./shadcn/ui/separator";
3535
export * from "./shadcn/ui/sheet";
36+
export * from './shadcn/ui/sidebar';
3637
export * from "./shadcn/ui/skeleton";
3738
export * from "./shadcn/ui/slider";
3839
export * from "./shadcn/ui/switch";

src/shadcn/ui/button.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from "react"
22
import { Slot } from "@radix-ui/react-slot"
33
import { cva, type VariantProps } from "class-variance-authority"
4-
5-
import { cn } from "src/utils"
6-
4+
5+
import { cn } from "src"
6+
77
const buttonVariants = cva(
8-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
8+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
99
{
1010
variants: {
1111
variant: {
@@ -33,13 +33,13 @@ const buttonVariants = cva(
3333
},
3434
}
3535
)
36-
36+
3737
export interface ButtonProps
3838
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
3939
VariantProps<typeof buttonVariants> {
4040
asChild?: boolean
4141
}
42-
42+
4343
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4444
({ className, variant, size, asChild = false, ...props }, ref) => {
4545
const Comp = asChild ? Slot : "button"
@@ -53,5 +53,5 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
5353
}
5454
)
5555
Button.displayName = "Button"
56-
56+
5757
export { Button, buttonVariants }

0 commit comments

Comments
 (0)