@@ -9,31 +9,30 @@ const toggleVariants = cva(
99 [
1010 'inline-flex items-center justify-center gap-2 rounded-full' ,
1111 'text-sm font-medium whitespace-nowrap' ,
12- 'cursor-pointer outline-none transition-[color,border,background-color]' ,
12+ 'cursor-pointer outline-none transition-[color,box-shadow,background-color]' ,
13+ 'hover:bg-muted hover:text-muted-foreground' ,
14+ 'disabled:pointer-events-none disabled:opacity-50' ,
15+ 'data-[state=on]:bg-accent data-[state=on]:text-accent-foreground' ,
1316 'focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:border-ring' ,
14- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive' ,
15- 'disabled:pointer-events-none disabled:opacity-50 disabled:not-allowed' ,
16- 'data-[state=on]:bg-button-selected data-[state=on]:border-button-border-selected' ,
17+ 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive ' ,
1718 "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0" ,
1819 ] ,
1920 {
2021 variants : {
2122 variant : {
22- default :
23- 'bg-button hover:bg-muted focus:bg-muted hover:text-muted-foreground focus:text-muted-foreground' ,
23+ default : 'bg-transparent' ,
2424 primary :
25- 'text-fg1 bg-button hover:bg-button-hover focus:bg-button-hover data-[state=off ]:bg-button-primary hover:data-[state=off] :bg-button-hover data-[state=off]:text-button-primary- foreground' ,
25+ 'bg-muted data-[state=on ]:bg-muted hover:text-foreground text-destructive hover:text-foreground hover :bg-foreground/10 hover: data-[state=on]:bg- foreground/10 ' ,
2626 secondary :
27- 'text-fg1 bg-button hover:bg-button-hover focus:bg-button-hover data-[state=on]:bg-button-secondary hover:data-[state=on]:bg-button-secondary data-[state=on]:text-button-secondary-foreground' ,
28- outline : [
29- 'border border-button-border bg-button text-button-foreground' ,
30- 'hover:bg-background focus:bg-background' ,
31- ] ,
27+ 'bg-muted data-[state=on]:bg-muted hover:text-foreground hover:bg-foreground/10 hover:data-[state=on]:bg-foreground/10 data-[state=on]:bg-blue-500/20 data-[state=on]:hover:bg-blue-500/30 data-[state=on]:text-blue-700 dark:data-[state=on]:text-blue-300' ,
28+ outline :
29+ 'border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground' ,
3230 } ,
3331 size : {
34- default : 'h-9 px-2 min-w-9' ,
35- sm : 'h-8 px-1.5 min-w-8' ,
36- lg : 'h-10 px-2.5 min-w-10' ,
32+ default : 'h-9 px-4 py-2 has-[>svg]:px-3' ,
33+ sm : 'h-8 gap-1.5 px-3 has-[>svg]:px-2.5' ,
34+ lg : 'h-10 px-6 has-[>svg]:px-4' ,
35+ icon : 'size-9' ,
3736 } ,
3837 } ,
3938 defaultVariants : {
0 commit comments