@@ -4,45 +4,68 @@ import { styled } from '../../styled';
4
4
export default styled (
5
5
View ,
6
6
{
7
+ 'w' : '$full' ,
7
8
'bg' : 'transparent' ,
8
- 'minWidth' : '50%' ,
9
- 'maxWidth' : 500 ,
10
9
'borderWidth' : 1 ,
11
10
'borderColor' : '$backgroundLight300' ,
12
11
'borderRadius' : '$sm' ,
13
12
'h' : 100 ,
14
- 'w' : 300 ,
15
- ':hover' : {
16
- bg : '$transparent' ,
17
- borderColor : '$primary700' ,
18
- } ,
19
- ':focus' : {
20
- bg : 'transparent' ,
21
- borderWidth : '$2' ,
22
- borderColor : '$primary500' ,
13
+ ':focusVisible' : {
14
+ // @ts -ignore
15
+ 'boxShadow' : 'offset 0 0 0 2px $primary500' ,
16
+ ':invalid' : {
17
+ bg : 'transparent' ,
18
+ borderWidth : '$2' ,
19
+ borderColor : '$red600' ,
20
+ } ,
21
+ ':disabled' : {
22
+ borderColor : '$backgroundLight300' ,
23
+ opacity : 0.4 ,
24
+ } ,
23
25
} ,
24
-
25
- ':invalid' : {
26
- ':focus' : {
26
+ ':hover' : {
27
+ 'bg' : '$transparent' ,
28
+ 'borderColor' : '$primary700' ,
29
+ ':invalid' : {
27
30
bg : 'transparent' ,
28
31
borderWidth : '$2' ,
29
- borderColor : '$primary700' ,
32
+ borderColor : '$red600' ,
33
+ } ,
34
+ ':disabled' : {
35
+ borderColor : '$backgroundLight300' ,
36
+ opacity : 0.4 ,
30
37
} ,
38
+ } ,
39
+ ':focus' : {
31
40
'bg' : 'transparent' ,
32
41
'borderWidth' : '$2' ,
33
- 'borderColor' : '$red600' ,
42
+ 'borderColor' : '$primary500' ,
43
+ ':invalid' : {
44
+ bg : 'transparent' ,
45
+ borderWidth : '$2' ,
46
+ borderColor : '$red600' ,
47
+ } ,
48
+ ':disabled' : {
49
+ borderColor : '$backgroundLight300' ,
50
+ opacity : 0.4 ,
51
+ } ,
52
+ } ,
53
+ ':invalid' : {
54
+ bg : 'transparent' ,
55
+ borderWidth : '$2' ,
56
+ borderColor : '$red600' ,
34
57
} ,
35
58
36
- // ':focusVisible': {
37
- // boxShadow: 'offset 0 0 0 2px $primary700',
38
- // },
39
59
':disabled' : {
40
60
opacity : 0.4 ,
41
61
} ,
42
62
'_input' : {
43
- placeholderTextColor : '$textLight900' ,
44
63
color : '$textLight900' ,
64
+ props : {
65
+ placeholderTextColor : '$textLight400' ,
66
+ } ,
45
67
} ,
68
+
46
69
'variants' : {
47
70
size : {
48
71
xl : {
@@ -94,29 +117,51 @@ export default styled(
94
117
} ,
95
118
'_dark' : {
96
119
'borderColor' : '$borderDark700' ,
97
- 'placeholderTextColor' : '$textDark600' ,
98
- ':hover' : {
99
- borderColor : '$primary400' ,
100
- } ,
101
- ':focus' : {
102
- borderColor : '$primary400' ,
103
- } ,
104
120
121
+ ':disabled' : {
122
+ borderColor : '$borderDark700' ,
123
+ opacity : 0.4 ,
124
+ } ,
105
125
':focusVisible' : {
126
+ // @ts -ignore
106
127
boxShadow : 'offset 0 0 0 2px $primary400' ,
107
128
} ,
108
129
':invalid' : {
109
130
borderColor : '$error400' ,
110
131
} ,
132
+ ':hover' : {
133
+ 'borderColor' : '$primary400' ,
134
+ ':invalid' : {
135
+ borderColor : '$error400' ,
136
+ } ,
137
+ ':disabled' : {
138
+ borderColor : '$borderDark700' ,
139
+ opacity : 0.4 ,
140
+ } ,
141
+ } ,
142
+ ':focus' : {
143
+ 'borderColor' : '$primary400' ,
144
+ ':invalid' : {
145
+ borderColor : '$error400' ,
146
+ } ,
147
+ ':disabled' : {
148
+ borderColor : '$borderDark700' ,
149
+ opacity : 0.4 ,
150
+ } ,
151
+ } ,
152
+
111
153
'_input' : {
154
+ props : {
155
+ placeholderTextColor : '$textLight400' ,
156
+ } ,
112
157
color : '$textDark50' ,
113
158
} ,
114
159
} ,
115
160
'defaultProps' : {
116
161
variant : 'default' ,
117
162
size : 'md' ,
118
163
} ,
119
- 'placeholderTextColor' : '$textLight400' ,
120
164
} ,
121
- { descendantStyle : [ '_input' ] }
165
+ { descendantStyle : [ '_input' ] } ,
166
+ { }
122
167
) ;
0 commit comments