|
33 | 33 | variants: { |
34 | 34 | variant: { |
35 | 35 | primary: { |
36 | | - class: 'bg-primary text-primary-foreground hover:bg-primary/80' |
| 36 | + class: 'bg-primary text-primary-foreground hover:bg-primary/80 active:bg-primary/90' |
37 | 37 | }, |
38 | 38 | secondary: { |
39 | | - class: 'bg-secondary text-secondary-foreground hover:bg-secondary/80' |
| 39 | + class: |
| 40 | + 'bg-secondary text-secondary-foreground hover:bg-secondary/80 active:bg-secondary/90' |
40 | 41 | }, |
41 | 42 | destructive: { |
42 | | - class: 'bg-destructive text-destructive-foreground hover:bg-destructive/80' |
| 43 | + class: |
| 44 | + 'bg-destructive text-destructive-foreground hover:bg-destructive/80 active:bg-destructive/90' |
43 | 45 | }, |
44 | 46 | outline: { |
45 | 47 | class: |
46 | 48 | 'bg-transparent hover:bg-foreground/5 active:bg-foreground/10 border border-border text-foreground' |
47 | 49 | }, |
48 | 50 | ghost: { |
49 | | - class: 'hover:bg-accent hover:text-accent-foreground' |
| 51 | + class: |
| 52 | + 'bg-transparent text-foreground hover:bg-foreground/5 active:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2' |
50 | 53 | } |
51 | 54 | } |
52 | 55 | }, |
| 56 | + compounds: [], |
53 | 57 | defaults: { |
54 | 58 | variant: 'primary' |
55 | 59 | } |
|
81 | 85 | variants: { |
82 | 86 | variant: { |
83 | 87 | info: { |
84 | | - class: 'bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-100' |
| 88 | + class: |
| 89 | + 'bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-100' |
85 | 90 | }, |
86 | 91 | success: { |
87 | | - class: 'bg-green-50 border-green-200 text-green-900 dark:bg-green-950/50 dark:border-green-800 dark:text-green-100' |
| 92 | + class: |
| 93 | + 'bg-green-50 border-green-200 text-green-900 dark:bg-green-950/50 dark:border-green-800 dark:text-green-100' |
88 | 94 | }, |
89 | 95 | warning: { |
90 | | - class: 'bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-950/50 dark:border-yellow-800 dark:text-yellow-100' |
| 96 | + class: |
| 97 | + 'bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-950/50 dark:border-yellow-800 dark:text-yellow-100' |
91 | 98 | }, |
92 | 99 | error: { |
93 | | - class: 'bg-red-50 border-red-200 text-red-900 dark:bg-red-950/50 dark:border-red-800 dark:text-red-100' |
| 100 | + class: |
| 101 | + 'bg-red-50 border-red-200 text-red-900 dark:bg-red-950/50 dark:border-red-800 dark:text-red-100' |
94 | 102 | } |
95 | 103 | } |
96 | 104 | }, |
|
99 | 107 | } |
100 | 108 | }), |
101 | 109 | 'alert.icon': () => ({ |
102 | | - class: 'inline-flex aspect-square h-5 w-5 shrink-0 items-center justify-center' |
| 110 | + class: 'inline-flex aspect-square size-4 shrink-0 items-center justify-center' |
103 | 111 | }), |
104 | 112 | 'alert.content': () => ({ |
105 | 113 | class: 'flex-1 space-y-1' |
106 | 114 | }), |
107 | 115 | 'alert.title': () => ({ |
108 | | - class: 'text-sm font-semibold leading-tight' |
| 116 | + class: 'text-md font-semibold leading-tight' |
109 | 117 | }), |
110 | 118 | 'alert.description': () => ({ |
111 | 119 | class: 'text-sm leading-relaxed opacity-90' |
|
114 | 122 | class: 'mt-3 flex items-center gap-2' |
115 | 123 | }), |
116 | 124 | 'alert.close-button': () => ({ |
117 | | - class: 'rounded-md p-1.5 opacity-70 transition-all hover:opacity-100 hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-offset-1' |
| 125 | + class: |
| 126 | + 'rounded-md p-0.5 size-6 opacity-70 transition-all hover:opacity-100 hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-offset-1' |
118 | 127 | }) |
119 | 128 | }; |
120 | 129 |
|
|
0 commit comments