|
1 |
| -import { cva } from 'class-variance-authority' |
| 1 | +import { cva } from "class-variance-authority"; |
2 | 2 |
|
3 |
| -export { default as Button } from './Button.vue' |
| 3 | +export { default as Button } from "./Button.vue"; |
4 | 4 |
|
5 | 5 | export const buttonVariants = cva(
|
6 |
| - 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', |
| 6 | + "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", |
7 | 7 | {
|
8 | 8 | variants: {
|
9 | 9 | variant: {
|
10 |
| - default: 'bg-primary text-primary-foreground hover:bg-primary/90', |
| 10 | + default: "bg-primary text-primary-foreground hover:bg-primary/90", |
11 | 11 | destructive:
|
12 |
| - 'bg-destructive text-destructive-foreground hover:bg-destructive/90', |
| 12 | + "bg-destructive text-destructive-foreground hover:bg-destructive/90", |
13 | 13 | outline:
|
14 |
| - 'border border-input bg-background hover:bg-accent hover:text-accent-foreground', |
| 14 | + "border border-input bg-background hover:bg-accent hover:text-accent-foreground", |
15 | 15 | secondary:
|
16 |
| - 'bg-secondary text-secondary-foreground hover:bg-secondary/80', |
17 |
| - ghost: 'hover:bg-accent hover:text-accent-foreground', |
18 |
| - link: 'text-primary underline-offset-4 hover:underline', |
| 16 | + "bg-secondary text-secondary-foreground hover:bg-secondary/80", |
| 17 | + ghost: "hover:bg-accent hover:text-accent-foreground", |
| 18 | + link: "text-primary underline-offset-4 hover:underline", |
19 | 19 | },
|
20 | 20 | size: {
|
21 |
| - default: 'h-10 px-4 py-2', |
22 |
| - sm: 'h-9 rounded-md px-3', |
23 |
| - lg: 'h-11 rounded-md px-8', |
24 |
| - icon: 'h-10 w-10', |
| 21 | + default: "h-10 px-4 py-2", |
| 22 | + sm: "h-9 rounded-md px-3", |
| 23 | + lg: "h-11 rounded-md px-8", |
| 24 | + icon: "h-10 w-10", |
25 | 25 | },
|
26 | 26 | },
|
27 | 27 | defaultVariants: {
|
28 |
| - variant: 'default', |
29 |
| - size: 'default', |
| 28 | + variant: "default", |
| 29 | + size: "default", |
30 | 30 | },
|
31 | 31 | },
|
32 |
| -) |
| 32 | +); |
0 commit comments