@@ -4,7 +4,7 @@ import { cn } from "~/utils/cn";
4
4
import { Icon , RenderIcon } from "./Icon" ;
5
5
6
6
const containerBase =
7
- "has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-text-link has-[:focus-visible]:ring-offset-0 has-[:focus]:border-ring has-[:focus]:outline-none has-[:focus]:ring-2 has-[:focus]:ring-ring has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50 ring-offset-background transition cursor-text" ;
7
+ "has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-charcoal-650 has-[:focus-visible]:ring-offset-0 has-[:focus]:border-ring has-[:focus]:outline-none has-[:focus]:ring-1 has-[:focus]:ring-ring has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50 ring-offset-background transition cursor-text" ;
8
8
9
9
const inputBase =
10
10
"h-full w-full text-text-bright bg-transparent file:border-0 file:bg-transparent file:text-base file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed outline-none ring-0 border-none" ;
@@ -17,27 +17,27 @@ const variants = {
17
17
container :
18
18
"px-1 w-full h-10 rounded-[3px] border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650" ,
19
19
input : "px-2 text-sm" ,
20
- iconSize : "h-4 w -4 ml-1" ,
20
+ iconSize : "size -4 ml-1" ,
21
21
shortcut : "mr-1 min-w-[22px] rounded-sm py-[3px] px-[5px] text-[0.6rem] select-none" ,
22
22
} ,
23
23
medium : {
24
24
container :
25
25
"px-1 h-8 w-full rounded border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650" ,
26
26
input : "px-1.5 rounded text-sm" ,
27
- iconSize : "h-4 w -4 ml-0.5" ,
27
+ iconSize : "size -4 ml-0.5" ,
28
28
shortcut : "min-w-[22px] rounded-sm py-[3px] px-[5px] text-[0.6rem]" ,
29
29
} ,
30
30
small : {
31
31
container :
32
32
"px-1 h-6 w-full rounded border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650" ,
33
33
input : "px-1 rounded text-xs" ,
34
- iconSize : "h-3 w -3 ml-0.5" ,
34
+ iconSize : "size -3 ml-0.5" ,
35
35
shortcut : "min-w-[22px] rounded-[2px] py-px px-[3px] text-[0.5rem]" ,
36
36
} ,
37
37
tertiary : {
38
38
container : "px-1 h-6 w-full rounded hover:bg-charcoal-750" ,
39
39
input : "px-1 rounded text-xs" ,
40
- iconSize : "h-3 w -3 ml-0.5" ,
40
+ iconSize : "size -3 ml-0.5" ,
41
41
shortcut : "min-w-[22px] rounded-[2px] py-px px-[3px] text-[0.5rem]" ,
42
42
} ,
43
43
} ;
0 commit comments