@occmundial/occ-atomic 2.0.0 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +62 -0
- package/build/Autocomplete/Autocomplete.js +2 -5
- package/build/Autocomplete/Autocomplete.test.js +17 -9
- package/build/Autocomplete/styles.js +5 -5
- package/build/Button/Button.js +28 -7
- package/build/Droplist/Droplist.js +37 -49
- package/build/Droplist/Droplist.test.js +2 -2
- package/build/Droplist/__snapshots__/Droplist.test.js.snap +57 -25
- package/build/Droplist/styles.js +62 -32
- package/build/Fab/__snapshots__/Fab.test.js.snap +1 -0
- package/build/Text/styles.js +2 -1
- package/build/TextField/TextField.js +77 -104
- package/build/TextField/TextField.test.js +7 -15
- package/build/TextField/__snapshots__/TextField.test.js.snap +59 -145
- package/build/TextField/styles.js +81 -149
- package/build/tokens/colors.json +38 -11
- package/package.json +1 -1
@@ -7,108 +7,59 @@ Object {
|
|
7
7
|
"alignRight": Object {
|
8
8
|
"textAlign": "right",
|
9
9
|
},
|
10
|
+
"assistiveError": Object {
|
11
|
+
"color": "#8b1313",
|
12
|
+
},
|
10
13
|
"assistiveText": Object {
|
11
|
-
"color": "#
|
12
|
-
"
|
13
|
-
"fontWeight": 300,
|
14
|
+
"color": "#5A5D7B",
|
15
|
+
"font": "400 14px/1.5 'OccText', sans-serif",
|
14
16
|
},
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"marginTop": 4,
|
17
|
+
"assistiveTextWrap": Object {
|
18
|
+
"display": "flex",
|
18
19
|
},
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"height": 24,
|
24
|
-
"margin": 0,
|
25
|
-
"outline": 0,
|
26
|
-
"padding": 3,
|
27
|
-
"position": "absolute",
|
28
|
-
"right": 12,
|
29
|
-
"top": "50%",
|
30
|
-
"transform": "translateY(-50%)",
|
31
|
-
"width": 24,
|
32
|
-
"zIndex": 1,
|
20
|
+
"bottom": Object {
|
21
|
+
"display": "flex",
|
22
|
+
"justifyContent": "space-between",
|
23
|
+
"marginTop": "8px",
|
33
24
|
},
|
34
25
|
"container": Object {
|
35
|
-
"marginBottom": 8,
|
36
26
|
"position": "relative",
|
37
27
|
},
|
38
28
|
"counter": Object {
|
39
|
-
"color": "#
|
29
|
+
"color": "#5A5D7B",
|
30
|
+
"font": "400 14px/1.5 'OccText', sans-serif",
|
40
31
|
},
|
41
32
|
"default": Object {},
|
42
33
|
"disabled": Object {
|
43
34
|
"& $input": Object {
|
44
|
-
"
|
45
|
-
"color": "#
|
46
|
-
"paddingTop": 9,
|
47
|
-
},
|
48
|
-
"& $label": Object {
|
49
|
-
"color": "#dddddd",
|
50
|
-
},
|
51
|
-
"& $passIcon": Object {
|
52
|
-
"cursor": "auto",
|
35
|
+
"background": "#EDEDF1",
|
36
|
+
"color": "#878A9F",
|
53
37
|
},
|
54
38
|
},
|
55
39
|
"error": Object {
|
56
40
|
"& $input": Object {
|
57
|
-
"
|
58
|
-
"borderColor": "#db3737",
|
59
|
-
"color": "#db3737",
|
60
|
-
},
|
61
|
-
"& $searchField": Object {
|
62
|
-
"borderWidth": 2,
|
63
|
-
"color": "#222222",
|
64
|
-
"paddingLeft": 7,
|
65
|
-
},
|
66
|
-
"& $searchFieldHasIcon": Object {
|
67
|
-
"paddingLeft": 41,
|
68
|
-
},
|
69
|
-
},
|
70
|
-
"errorAssistiveText": Object {
|
71
|
-
"color": "#db3737",
|
72
|
-
},
|
73
|
-
"errorIcon": Object {
|
74
|
-
"marginBottom": -2,
|
75
|
-
},
|
76
|
-
"filled": Object {
|
77
|
-
"& $input": Object {
|
78
|
-
"borderColor": "#222222",
|
79
|
-
"borderWidth": 2,
|
80
|
-
"paddingLeft": 7,
|
81
|
-
},
|
82
|
-
"& $searchFieldHasIcon": Object {
|
83
|
-
"paddingLeft": 41,
|
41
|
+
"boxShadow": "inset 0 0 0 1px #e82020",
|
84
42
|
},
|
85
43
|
},
|
86
44
|
"focus": Object {
|
87
45
|
"& $input": Object {
|
88
|
-
"
|
89
|
-
},
|
90
|
-
"& $searchField": Object {
|
91
|
-
"borderWidth": 2,
|
92
|
-
"paddingLeft": 7,
|
93
|
-
},
|
94
|
-
"& $searchFieldHasIcon": Object {
|
95
|
-
"paddingLeft": 41,
|
46
|
+
"boxShadow": "inset 0 0 0 2px #0059CD, 0 0 0 8px rgba(0,110,255,0.3) !important",
|
96
47
|
},
|
97
48
|
},
|
98
49
|
"hasClear": Object {
|
99
|
-
"paddingRight":
|
50
|
+
"paddingRight": "48px",
|
100
51
|
},
|
101
52
|
"hasIcon": Object {
|
102
|
-
"paddingLeft":
|
53
|
+
"paddingLeft": "48px",
|
103
54
|
},
|
104
55
|
"hasPass": Object {
|
105
|
-
"paddingRight":
|
56
|
+
"paddingRight": "48px",
|
106
57
|
},
|
107
58
|
"hasRightIcon": Object {
|
108
|
-
"marginRight":
|
59
|
+
"marginRight": "48px",
|
109
60
|
},
|
110
61
|
"icon": Object {
|
111
|
-
"left":
|
62
|
+
"left": "16px",
|
112
63
|
"position": "absolute",
|
113
64
|
"top": "50%",
|
114
65
|
"transform": "translateY(-50%)",
|
@@ -123,7 +74,10 @@ Object {
|
|
123
74
|
"margin": 0,
|
124
75
|
},
|
125
76
|
"&::placeholder": Object {
|
126
|
-
"color": "#
|
77
|
+
"color": "#5A5D7B",
|
78
|
+
},
|
79
|
+
"&:hover": Object {
|
80
|
+
"boxShadow": "inset 0 0 0 1px #6C6F89",
|
127
81
|
},
|
128
82
|
"&[type=number]": Object {
|
129
83
|
"-moz-appearance": "textfield",
|
@@ -131,25 +85,22 @@ Object {
|
|
131
85
|
"-webkit-appearance": "none",
|
132
86
|
"alignItems": "center",
|
133
87
|
"appearance": "none",
|
134
|
-
"background": "#
|
135
|
-
"border": "
|
136
|
-
"borderRadius":
|
137
|
-
"boxShadow": "
|
88
|
+
"background": "#fff",
|
89
|
+
"border": "none",
|
90
|
+
"borderRadius": "4px",
|
91
|
+
"boxShadow": "inset 0 0 0 1px #D3D4DC",
|
138
92
|
"boxSizing": "border-box",
|
139
|
-
"caretColor": "#
|
140
|
-
"color": "#
|
93
|
+
"caretColor": "#083CAE",
|
94
|
+
"color": "#080D39",
|
141
95
|
"display": "flex",
|
142
|
-
"
|
143
|
-
"
|
144
|
-
"fontWeight": 300,
|
145
|
-
"height": 40,
|
146
|
-
"lineHeight": 1.5,
|
96
|
+
"font": "400 16px/1.5 'OccText', sans-serif",
|
97
|
+
"height": 48,
|
147
98
|
"outline": "none",
|
148
99
|
"padding": Array [
|
149
|
-
|
150
|
-
|
100
|
+
"4px",
|
101
|
+
"16px",
|
151
102
|
],
|
152
|
-
"transition": "0.
|
103
|
+
"transition": "all cubic-bezier(0.25,0.46,0.45,0.94) 0.2s",
|
153
104
|
"width": "100%",
|
154
105
|
},
|
155
106
|
"inputDisabled": Object {
|
@@ -161,88 +112,50 @@ Object {
|
|
161
112
|
"position": "relative",
|
162
113
|
},
|
163
114
|
"label": Object {
|
164
|
-
"
|
165
|
-
|
166
|
-
"outline": "none",
|
167
|
-
"textDecoration": "none",
|
168
|
-
},
|
169
|
-
"color": "#222222",
|
170
|
-
"fontFamily": "'OccText', sans-serif",
|
171
|
-
"fontSize": 14,
|
172
|
-
"fontWeight": 300,
|
173
|
-
"lineHeight": 1.5,
|
174
|
-
"transition": "0.3s all",
|
175
|
-
},
|
176
|
-
"left": Object {
|
177
|
-
"float": "left",
|
115
|
+
"color": "#080D39",
|
116
|
+
"font": "400 14px/1.5 'OccText', sans-serif",
|
178
117
|
},
|
179
|
-
"
|
180
|
-
"background": "none",
|
181
|
-
"border": 0,
|
182
|
-
"cursor": "pointer",
|
183
|
-
"height": 24,
|
184
|
-
"margin": 0,
|
185
|
-
"outline": 0,
|
186
|
-
"padding": 3,
|
118
|
+
"rightButton": Object {
|
187
119
|
"position": "absolute",
|
188
|
-
"right":
|
189
|
-
"top":
|
190
|
-
"
|
120
|
+
"right": "4px",
|
121
|
+
"top": "50%",
|
122
|
+
"transform": "translateY(-50%)",
|
191
123
|
"zIndex": 1,
|
192
124
|
},
|
193
|
-
"right": Object {
|
194
|
-
"float": "right",
|
195
|
-
},
|
196
|
-
"searchField": Object {
|
197
|
-
"background": Array [
|
198
|
-
"#ffffff",
|
199
|
-
"!important",
|
200
|
-
],
|
201
|
-
"borderColor": "#777777",
|
202
|
-
"borderRadius": 24,
|
203
|
-
"height": 48,
|
204
|
-
},
|
205
|
-
"searchFieldHasIcon": Object {},
|
206
125
|
"select": Object {
|
207
126
|
"& optgroup": Object {
|
208
|
-
"color": "#
|
209
|
-
"
|
210
|
-
"fontWeight": "normal",
|
211
|
-
"lineHeight": 1.5,
|
127
|
+
"color": "#5A5D7B",
|
128
|
+
"font": "400 14px/1.5 'OccText', sans-serif",
|
212
129
|
},
|
213
130
|
"& option": Object {
|
214
131
|
"&:disabled": Object {
|
215
|
-
"color": "#
|
132
|
+
"color": "#878A9F",
|
216
133
|
},
|
217
|
-
"color": "#
|
218
|
-
"
|
219
|
-
"lineHeight": 1.5,
|
134
|
+
"color": "#080D39",
|
135
|
+
"font": "400 16px/1.5 'OccText', sans-serif",
|
220
136
|
},
|
221
137
|
"&::-ms-expand": Object {
|
222
138
|
"display": "none",
|
223
139
|
},
|
224
140
|
"&:invalid, & option[value=\\"\\"]": Object {
|
225
|
-
"color": "#
|
141
|
+
"color": "#878A9F",
|
226
142
|
},
|
227
|
-
"paddingRight":
|
143
|
+
"paddingRight": "48px",
|
228
144
|
},
|
229
145
|
"selectIcon": Object {
|
230
|
-
"background": "none",
|
231
|
-
"border": 0,
|
232
|
-
"height": 24,
|
233
|
-
"margin": 0,
|
234
|
-
"outline": 0,
|
235
|
-
"padding": "3px 0",
|
236
146
|
"pointerEvents": "none",
|
237
147
|
"position": "absolute",
|
238
|
-
"right":
|
239
|
-
"top":
|
240
|
-
"
|
241
|
-
"zIndex": 1,
|
148
|
+
"right": "16px",
|
149
|
+
"top": "50%",
|
150
|
+
"transform": "translateY(-50%)",
|
242
151
|
},
|
243
152
|
"textarea": Object {
|
244
153
|
"alignItems": "flex-start",
|
245
154
|
"height": 120,
|
155
|
+
"paddingg": Array [
|
156
|
+
"12px",
|
157
|
+
"16px",
|
158
|
+
],
|
246
159
|
"resize": "none",
|
247
160
|
},
|
248
161
|
"top": Object {
|
@@ -250,7 +163,8 @@ Object {
|
|
250
163
|
"clear": "both",
|
251
164
|
"content": "\\"\\"",
|
252
165
|
},
|
253
|
-
"
|
166
|
+
"display": "flex",
|
167
|
+
"marginBottom": "8px",
|
254
168
|
},
|
255
169
|
}
|
256
170
|
`;
|
@@ -3,27 +3,45 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = void 0;
|
6
|
+
exports["default"] = exports.objectToFontValue = void 0;
|
7
7
|
|
8
|
-
var
|
8
|
+
var _fonts = _interopRequireDefault(require("../subatomic/fonts"));
|
9
9
|
|
10
|
-
var _colors = _interopRequireDefault(require("../
|
10
|
+
var _colors = _interopRequireDefault(require("../tokens/colors.json"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _fonts2 = _interopRequireDefault(require("../tokens/fonts.json"));
|
13
|
+
|
14
|
+
var _spacing = _interopRequireDefault(require("../tokens/spacing.json"));
|
13
15
|
|
14
|
-
var
|
16
|
+
var _borderRadius = _interopRequireDefault(require("../tokens/borderRadius.json"));
|
17
|
+
|
18
|
+
var _shadows = _interopRequireDefault(require("../tokens/shadows.json"));
|
15
19
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
21
|
|
18
|
-
|
22
|
+
var placeholder = _fonts2["default"]['text-field-placeholder'];
|
23
|
+
var label = _fonts2["default"]['text-field-label'];
|
24
|
+
var assistiveText = _fonts2["default"]['text-field-assistive-text'];
|
25
|
+
var TRANSITION = 'all cubic-bezier(0.25,0.46,0.45,0.94) 0.2s';
|
26
|
+
var border = {
|
27
|
+
DEFAULT: "inset 0 0 0 1px ".concat(_colors["default"]['text-field'].border["default"]),
|
28
|
+
HOVER: "inset 0 0 0 1px ".concat(_colors["default"]['text-field'].border.hover),
|
29
|
+
FOCUS: "inset 0 0 0 2px ".concat(_colors["default"]['text-field'].border.focus),
|
30
|
+
ERROR: "inset 0 0 0 1px ".concat(_colors["default"]['text-field'].border.error)
|
31
|
+
};
|
19
32
|
|
33
|
+
var objectToFontValue = function objectToFontValue(font) {
|
34
|
+
return "".concat(font.fontWeight, " ").concat(font.fontSize, "/").concat(font.lineHeight, " ").concat(_fonts["default"].body);
|
35
|
+
};
|
36
|
+
|
37
|
+
exports.objectToFontValue = objectToFontValue;
|
20
38
|
var _default = {
|
21
39
|
container: {
|
22
|
-
position: 'relative'
|
23
|
-
marginBottom: _spacing["default"].tiny
|
40
|
+
position: 'relative'
|
24
41
|
},
|
25
42
|
top: {
|
26
|
-
|
43
|
+
display: 'flex',
|
44
|
+
marginBottom: _spacing["default"]['size-2'],
|
27
45
|
'&:after': {
|
28
46
|
content: '""',
|
29
47
|
clear: 'both'
|
@@ -32,75 +50,27 @@ var _default = {
|
|
32
50
|
"default": {},
|
33
51
|
disabled: {
|
34
52
|
'& $input': {
|
35
|
-
|
36
|
-
color: _colors["default"].
|
37
|
-
paddingTop: 9
|
38
|
-
},
|
39
|
-
'& $label': {
|
40
|
-
color: _colors["default"].inkLightest
|
41
|
-
},
|
42
|
-
'& $passIcon': {
|
43
|
-
cursor: 'auto'
|
53
|
+
background: _colors["default"]['text-field'].bg.disabled,
|
54
|
+
color: _colors["default"].text.corp.disabled
|
44
55
|
}
|
45
56
|
},
|
46
57
|
focus: {
|
47
58
|
'& $input': {
|
48
|
-
|
49
|
-
},
|
50
|
-
'& $searchField': {
|
51
|
-
borderWidth: 2,
|
52
|
-
paddingLeft: _spacing["default"].tiny - 1
|
53
|
-
},
|
54
|
-
'& $searchFieldHasIcon': {
|
55
|
-
paddingLeft: 41
|
59
|
+
boxShadow: "".concat(border.FOCUS, ", ").concat(_shadows["default"]['focus-bright-blue'], " !important")
|
56
60
|
}
|
57
61
|
},
|
58
62
|
error: {
|
59
63
|
'& $input': {
|
60
|
-
|
61
|
-
color: _colors["default"].errorText,
|
62
|
-
background: (0, _hexRgba["default"])(_colors["default"].errorText, 4)
|
63
|
-
},
|
64
|
-
'& $searchField': {
|
65
|
-
borderWidth: 2,
|
66
|
-
color: _colors["default"].ink,
|
67
|
-
paddingLeft: _spacing["default"].tiny - 1
|
68
|
-
},
|
69
|
-
'& $searchFieldHasIcon': {
|
70
|
-
paddingLeft: 41
|
71
|
-
}
|
72
|
-
},
|
73
|
-
filled: {
|
74
|
-
'& $input': {
|
75
|
-
borderColor: _colors["default"].grey900,
|
76
|
-
borderWidth: 2,
|
77
|
-
paddingLeft: _spacing["default"].tiny - 1
|
78
|
-
},
|
79
|
-
'& $searchFieldHasIcon': {
|
80
|
-
paddingLeft: 41
|
64
|
+
boxShadow: border.ERROR
|
81
65
|
}
|
82
66
|
},
|
83
67
|
label: {
|
84
|
-
|
85
|
-
|
86
|
-
fontSize: 14,
|
87
|
-
lineHeight: 1.5,
|
88
|
-
color: _colors["default"].ink,
|
89
|
-
transition: '0.3s all',
|
90
|
-
'& a': {
|
91
|
-
color: _colors["default"].blue,
|
92
|
-
textDecoration: 'none',
|
93
|
-
outline: 'none'
|
94
|
-
}
|
95
|
-
},
|
96
|
-
left: {
|
97
|
-
"float": 'left'
|
98
|
-
},
|
99
|
-
right: {
|
100
|
-
"float": 'right'
|
68
|
+
font: objectToFontValue(label),
|
69
|
+
color: _colors["default"].text.corp.primary
|
101
70
|
},
|
102
71
|
counter: {
|
103
|
-
|
72
|
+
font: objectToFontValue(assistiveText),
|
73
|
+
color: _colors["default"].text.corp.secondary
|
104
74
|
},
|
105
75
|
inputWrap: {
|
106
76
|
boxSizing: 'border-box',
|
@@ -111,24 +81,21 @@ var _default = {
|
|
111
81
|
display: 'flex',
|
112
82
|
alignItems: 'center',
|
113
83
|
width: '100%',
|
114
|
-
height:
|
115
|
-
color: _colors["default"].
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
borderRadius: 4,
|
123
|
-
padding: [_spacing["default"].tiny, _spacing["default"].small],
|
124
|
-
boxShadow: 'none',
|
84
|
+
height: 48,
|
85
|
+
color: _colors["default"].text.corp.primary,
|
86
|
+
font: objectToFontValue(placeholder),
|
87
|
+
background: _colors["default"]['text-field'].bg["default"],
|
88
|
+
border: 'none',
|
89
|
+
borderRadius: _borderRadius["default"]['br-xs'],
|
90
|
+
padding: [_spacing["default"]['size-1'], _spacing["default"]['size-4']],
|
91
|
+
boxShadow: border.DEFAULT,
|
125
92
|
outline: 'none',
|
126
|
-
transition:
|
93
|
+
transition: TRANSITION,
|
127
94
|
appearance: 'none',
|
128
95
|
'-webkit-appearance': 'none',
|
129
|
-
caretColor: _colors["default"].
|
96
|
+
caretColor: _colors["default"].border.brand["default"],
|
130
97
|
'&::placeholder': {
|
131
|
-
color: _colors["default"].
|
98
|
+
color: _colors["default"].text.corp.secondary
|
132
99
|
},
|
133
100
|
'&::-webkit-outer-spin-button': {
|
134
101
|
'-webkit-appearance': 'none',
|
@@ -140,6 +107,9 @@ var _default = {
|
|
140
107
|
},
|
141
108
|
'&[type=number]': {
|
142
109
|
'-moz-appearance': 'textfield'
|
110
|
+
},
|
111
|
+
'&:hover': {
|
112
|
+
boxShadow: border.HOVER
|
143
113
|
}
|
144
114
|
},
|
145
115
|
inputDisabled: {
|
@@ -147,118 +117,80 @@ var _default = {
|
|
147
117
|
whiteSpace: 'nowrap'
|
148
118
|
},
|
149
119
|
hasRightIcon: {
|
150
|
-
marginRight: _spacing["default"]
|
120
|
+
marginRight: _spacing["default"]['size-8']
|
151
121
|
},
|
152
122
|
select: {
|
153
123
|
'&::-ms-expand': {
|
154
124
|
display: 'none'
|
155
125
|
},
|
156
|
-
paddingRight:
|
126
|
+
paddingRight: _spacing["default"]['size-8'],
|
157
127
|
'& optgroup': {
|
158
|
-
|
159
|
-
|
160
|
-
lineHeight: 1.5,
|
161
|
-
color: _colors["default"].inkLight
|
128
|
+
font: objectToFontValue(label),
|
129
|
+
color: _colors["default"].text.corp.secondary
|
162
130
|
},
|
163
131
|
'& option': {
|
164
|
-
|
165
|
-
|
166
|
-
color: _colors["default"].ink,
|
132
|
+
font: objectToFontValue(placeholder),
|
133
|
+
color: _colors["default"].text.corp.primary,
|
167
134
|
'&:disabled': {
|
168
|
-
color: _colors["default"].
|
135
|
+
color: _colors["default"].text.corp.disabled
|
169
136
|
}
|
170
137
|
},
|
171
138
|
'&:invalid, & option[value=""]': {
|
172
|
-
color: _colors["default"].
|
139
|
+
color: _colors["default"].text.corp.disabled
|
173
140
|
}
|
174
141
|
},
|
175
142
|
textarea: {
|
176
143
|
resize: 'none',
|
144
|
+
paddingg: [_spacing["default"]['size-3'], _spacing["default"]['size-4']],
|
177
145
|
height: 120,
|
178
146
|
alignItems: 'flex-start'
|
179
147
|
},
|
180
148
|
hasIcon: {
|
181
|
-
paddingLeft:
|
149
|
+
paddingLeft: _spacing["default"]['size-8']
|
182
150
|
},
|
183
151
|
hasPass: {
|
184
|
-
paddingRight:
|
152
|
+
paddingRight: _spacing["default"]['size-8']
|
185
153
|
},
|
186
154
|
icon: {
|
187
155
|
position: 'absolute',
|
188
|
-
left: _spacing["default"]
|
156
|
+
left: _spacing["default"]['size-4'],
|
189
157
|
top: '50%',
|
190
158
|
transform: 'translateY(-50%)'
|
191
159
|
},
|
192
|
-
|
193
|
-
width: 24,
|
194
|
-
height: 24,
|
195
|
-
background: 'none',
|
196
|
-
border: 0,
|
197
|
-
padding: 3,
|
198
|
-
margin: 0,
|
160
|
+
rightButton: {
|
199
161
|
position: 'absolute',
|
200
|
-
right:
|
201
|
-
top:
|
202
|
-
|
203
|
-
|
204
|
-
cursor: 'pointer'
|
162
|
+
right: _spacing["default"]['size-1'],
|
163
|
+
top: '50%',
|
164
|
+
transform: 'translateY(-50%)',
|
165
|
+
zIndex: 1
|
205
166
|
},
|
206
167
|
selectIcon: {
|
207
|
-
width: 18,
|
208
|
-
height: 24,
|
209
|
-
background: 'none',
|
210
|
-
border: 0,
|
211
|
-
padding: '3px 0',
|
212
|
-
margin: 0,
|
213
168
|
position: 'absolute',
|
214
|
-
right:
|
215
|
-
top:
|
216
|
-
|
217
|
-
outline: 0,
|
169
|
+
right: _spacing["default"]['size-4'],
|
170
|
+
top: '50%',
|
171
|
+
transform: 'translateY(-50%)',
|
218
172
|
pointerEvents: 'none'
|
219
173
|
},
|
220
174
|
hasClear: {
|
221
|
-
paddingRight:
|
175
|
+
paddingRight: _spacing["default"]['size-8']
|
222
176
|
},
|
223
|
-
clear: _defineProperty({
|
224
|
-
width: 24,
|
225
|
-
height: 24,
|
226
|
-
background: 'none',
|
227
|
-
border: 0,
|
228
|
-
padding: 0,
|
229
|
-
margin: 0,
|
230
|
-
position: 'absolute',
|
231
|
-
right: 12,
|
232
|
-
top: '50%',
|
233
|
-
transform: 'translateY(-50%)',
|
234
|
-
zIndex: 1,
|
235
|
-
outline: 0,
|
236
|
-
cursor: 'pointer'
|
237
|
-
}, "padding", 3),
|
238
177
|
alignRight: {
|
239
178
|
textAlign: 'right'
|
240
179
|
},
|
241
|
-
|
242
|
-
|
243
|
-
fontSize: 12,
|
244
|
-
fontWeight: 300
|
180
|
+
assistiveTextWrap: {
|
181
|
+
display: 'flex'
|
245
182
|
},
|
246
|
-
|
247
|
-
|
183
|
+
assistiveText: {
|
184
|
+
font: objectToFontValue(assistiveText),
|
185
|
+
color: _colors["default"].text.corp.secondary
|
248
186
|
},
|
249
|
-
|
250
|
-
|
187
|
+
assistiveError: {
|
188
|
+
color: _colors["default"].text.error
|
251
189
|
},
|
252
190
|
bottom: {
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
height: _spacing["default"].large,
|
258
|
-
borderRadius: _spacing["default"].base,
|
259
|
-
borderColor: _colors["default"].grey600,
|
260
|
-
background: [_colors["default"].bgWhite, '!important']
|
261
|
-
},
|
262
|
-
searchFieldHasIcon: {}
|
191
|
+
display: 'flex',
|
192
|
+
justifyContent: 'space-between',
|
193
|
+
marginTop: _spacing["default"]['size-2']
|
194
|
+
}
|
263
195
|
};
|
264
196
|
exports["default"] = _default;
|