@@ -5,28 +5,29 @@ import { cva, type VariantProps } from "class-variance-authority"
55import { cn } from "@/lib/utils"
66
77const buttonVariants = cva (
8- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive" ,
8+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius-control)] border border-transparent text-sm font-medium tracking-[0.01em] transition-[color,background-color,border-color,box-shadow,transform] duration-200 ease-out disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive" ,
99 {
1010 variants : {
1111 variant : {
12- default : "bg-primary text-primary-foreground hover:bg-primary/90" ,
12+ default :
13+ "bg-primary text-primary-foreground shadow-[var(--shadow-elev-1)] hover:-translate-y-px hover:bg-primary/92 hover:shadow-[var(--shadow-elev-2)]" ,
1314 destructive :
14- "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60" ,
15+ "bg-destructive text-white shadow-[var(--shadow-elev-1)] hover:-translate-y-px hover: bg-destructive/92 hover:shadow-[var(--shadow-elev-2)] focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60" ,
1516 outline :
16- "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg -input/30 dark:border- input dark:hover:bg-input/50 " ,
17+ "border-border/80 bg-background/95 shadow-[var(--shadow-elev-1)] hover:-translate-y-px hover: bg-accent/80 hover:text-accent-foreground hover:shadow-[var(--shadow-elev-2)] dark:border -input dark:bg-[var(--surface- input)] dark:hover:bg-input/60 " ,
1718 secondary :
18- "bg-secondary text-secondary-foreground hover:bg-secondary/80 " ,
19+ "bg-secondary text-secondary-foreground shadow-[var(--shadow-elev-1)] hover:-translate-y-px hover: bg-secondary/88 hover:shadow-[var(--shadow-elev-2)] " ,
1920 ghost :
20- "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 " ,
21+ "shadow-none hover:bg-accent/70 hover:text-accent-foreground dark:hover:bg-accent/60 " ,
2122 link : "text-primary underline-offset-4 hover:underline" ,
2223 } ,
2324 size : {
24- default : "h-9 px-4 py-2 has-[>svg]:px-3" ,
25- sm : "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5" ,
26- lg : "h-10 rounded-md px-6 has-[>svg]:px-4" ,
27- icon : "size-9 " ,
28- "icon-sm" : "size-8 " ,
29- "icon-lg" : "size-10 " ,
25+ default : "h-[var(--control-height)] px-4 py-2 has-[>svg]:px-3" ,
26+ sm : "h-[var(--control-height-sm)] gap-1.5 px-3 has-[>svg]:px-2.5" ,
27+ lg : "h-[var(--control-height-lg)] px-6 has-[>svg]:px-4" ,
28+ icon : "size-[var(--control-height)] " ,
29+ "icon-sm" : "size-[var(--control-height-sm)] " ,
30+ "icon-lg" : "size-[var(--control-height-lg)] " ,
3031 } ,
3132 } ,
3233 defaultVariants : {
0 commit comments