@ornikar/kitt-universal 26.3.1-late-ocean.ea9938a3219bcd82e7bbea585f5b7083975351b2.0 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -4
- package/dist/definitions/Actions/Actions.d.ts +1 -1
- package/dist/definitions/SegmentedProgressBar/SegmentedProgressBar.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +2 -7
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts.map +1 -1
- package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts +2 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +161 -362
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +215 -213
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/checkbox.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/colors.d.ts +14 -16
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts +0 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radio.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +140 -70
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts +79 -0
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts +19 -951
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +718 -849
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +718 -849
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +715 -846
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +1 -1
- package/dist/index-node-22.17.cjs.web.js +712 -843
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +715 -846
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +1 -1
- package/dist/index-node-22.17.es.web.mjs +712 -843
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +735 -874
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +732 -871
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +469 -532
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +469 -532
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +469 -532
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +469 -532
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +469 -532
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +469 -532
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +469 -538
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +469 -538
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +0 -260
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +0 -1
|
@@ -64,117 +64,81 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
64
64
|
|
|
65
65
|
const createColorScale = colorScale => colorScale;
|
|
66
66
|
const colorScales = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
6: '#bab8ae',
|
|
74
|
-
7: '#aeaba3',
|
|
75
|
-
8: '#9c9a92',
|
|
76
|
-
9: '#8e8c83',
|
|
77
|
-
10: '#74726a',
|
|
78
|
-
11: '#3e3d3a',
|
|
79
|
-
12: '#282826'
|
|
67
|
+
deepPurple: createColorScale({
|
|
68
|
+
5: '#936C93',
|
|
69
|
+
6: '#7A587A',
|
|
70
|
+
7: '#6E4D6E',
|
|
71
|
+
8: '#563B56',
|
|
72
|
+
9: '#452F45'
|
|
80
73
|
}),
|
|
81
|
-
|
|
82
|
-
1: '#
|
|
83
|
-
2: '#
|
|
84
|
-
3: '#
|
|
85
|
-
4: '#
|
|
86
|
-
5: '#
|
|
87
|
-
6: '#
|
|
88
|
-
7: '#9180ff',
|
|
89
|
-
8: '#7b66ff',
|
|
90
|
-
9: '#624af7',
|
|
91
|
-
10: '#5139e1',
|
|
92
|
-
11: '#3a26b5',
|
|
93
|
-
12: '#0a0428'
|
|
74
|
+
beige: createColorScale({
|
|
75
|
+
1: '#F7F4EE',
|
|
76
|
+
2: '#F1ECE4',
|
|
77
|
+
3: '#EAE3D6',
|
|
78
|
+
4: '#E5DCCA',
|
|
79
|
+
5: '#DDD0B8',
|
|
80
|
+
6: '#C1B59F'
|
|
94
81
|
}),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
82
|
+
lightning: createColorScale({
|
|
83
|
+
5: '#FFF500',
|
|
84
|
+
7: '#43390A'
|
|
85
|
+
}),
|
|
86
|
+
rainbow: createColorScale({
|
|
87
|
+
pink: '#E4A4F9',
|
|
88
|
+
brick: '#951D12',
|
|
89
|
+
orange: '#DB6E2E',
|
|
90
|
+
gold: '#9A7600',
|
|
91
|
+
sun: '#EFD346',
|
|
92
|
+
'green-pine': '#1C5D47',
|
|
93
|
+
'green-grass': '#4DA00A',
|
|
94
|
+
'green-apple': '#DEF985',
|
|
95
|
+
'blue-electric': '#2850C4',
|
|
96
|
+
'blue-sky': '#B2F0FD'
|
|
97
|
+
}),
|
|
98
|
+
grey: createColorScale({
|
|
99
|
+
0: '#ffffff',
|
|
100
|
+
1: '#ECECEC',
|
|
101
|
+
2: '#CDCED0',
|
|
102
|
+
3: '#A8A8A8',
|
|
103
|
+
5: '#838383',
|
|
104
|
+
7: '#505050',
|
|
105
|
+
9: '#101010'
|
|
108
106
|
}),
|
|
109
107
|
blue: createColorScale({
|
|
110
|
-
1: '#
|
|
111
|
-
2: '#
|
|
112
|
-
|
|
113
|
-
4: '#d4e0ff',
|
|
114
|
-
5: '#baceff',
|
|
115
|
-
6: '#a1bbff',
|
|
116
|
-
7: '#87a9ff',
|
|
117
|
-
8: '#6e96ff',
|
|
118
|
-
9: '#5383ff',
|
|
119
|
-
10: '#4170eb',
|
|
120
|
-
11: '#0e4381',
|
|
121
|
-
12: '#061c36'
|
|
108
|
+
1: '#E9F4FC',
|
|
109
|
+
2: '#BCDFF6',
|
|
110
|
+
6: '#1772AB'
|
|
122
111
|
}),
|
|
123
|
-
|
|
124
|
-
1: '#
|
|
125
|
-
2: '#
|
|
126
|
-
|
|
127
|
-
4: '#f0c7d4',
|
|
128
|
-
5: '#f0afc4',
|
|
129
|
-
6: '#f097b3',
|
|
130
|
-
7: '#f07fa3',
|
|
131
|
-
8: '#d95d84',
|
|
132
|
-
9: '#cf2a60',
|
|
133
|
-
10: '#c12558',
|
|
134
|
-
11: '#61192e',
|
|
135
|
-
12: '#29040f'
|
|
112
|
+
green: createColorScale({
|
|
113
|
+
1: '#ECFEDD',
|
|
114
|
+
2: '#DBFAC1',
|
|
115
|
+
6: '#438D06'
|
|
136
116
|
}),
|
|
137
|
-
|
|
138
|
-
1: '#
|
|
139
|
-
2: '#
|
|
140
|
-
|
|
141
|
-
4: '#ffcfcf',
|
|
142
|
-
5: '#ffb5b5',
|
|
143
|
-
6: '#ff9c9c',
|
|
144
|
-
7: '#f57d7d',
|
|
145
|
-
8: '#eb6565',
|
|
146
|
-
9: '#e55050',
|
|
147
|
-
10: '#da3d3d',
|
|
148
|
-
11: '#8a2b1e',
|
|
149
|
-
12: '#330c07'
|
|
117
|
+
yellow: createColorScale({
|
|
118
|
+
1: '#FDF8E7',
|
|
119
|
+
2: '#FAEBB8',
|
|
120
|
+
6: '#EFC11F'
|
|
150
121
|
}),
|
|
151
|
-
|
|
152
|
-
1: '#
|
|
153
|
-
2: '#
|
|
154
|
-
|
|
155
|
-
4: '#ffefc4',
|
|
156
|
-
5: '#ffe8ab',
|
|
157
|
-
6: '#ffe191',
|
|
158
|
-
7: '#ffda78',
|
|
159
|
-
8: '#ffd35e',
|
|
160
|
-
9: '#fdc32d',
|
|
161
|
-
10: '#f3a40c',
|
|
162
|
-
11: '#9f5600',
|
|
163
|
-
12: '#341c00'
|
|
122
|
+
red: createColorScale({
|
|
123
|
+
1: '#FDE4E3',
|
|
124
|
+
2: '#FAB8B8',
|
|
125
|
+
6: '#F14847'
|
|
164
126
|
}),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
127
|
+
'beige-alpha': createColorScale({
|
|
128
|
+
'25': '#C1B59F40',
|
|
129
|
+
'40': '#C1B59F66',
|
|
130
|
+
'50': '#C1B59F80'
|
|
131
|
+
}),
|
|
132
|
+
'grey-alpha': createColorScale({
|
|
133
|
+
'25': '#10101040',
|
|
134
|
+
'35': '#10101059',
|
|
135
|
+
'50': '#10101080'
|
|
136
|
+
}),
|
|
137
|
+
'white-alpha': createColorScale({
|
|
138
|
+
'10': '#FFFFFF1A',
|
|
139
|
+
'20': '#FFFFFF33',
|
|
140
|
+
'80': '#FFFFFFCC',
|
|
141
|
+
'90': '#FFFFFFE5'
|
|
178
142
|
})
|
|
179
143
|
};
|
|
180
144
|
const transformColorScalesToTokens = () => {
|
|
@@ -184,90 +148,44 @@ const transformColorScalesToTokens = () => {
|
|
|
184
148
|
});
|
|
185
149
|
}));
|
|
186
150
|
};
|
|
187
|
-
const
|
|
151
|
+
const deepPurpleColorPalette = {
|
|
188
152
|
...transformColorScalesToTokens(),
|
|
189
|
-
/** @deprecated use violine.9 instead */
|
|
190
|
-
lateOcean: colorScales.violine[9],
|
|
191
|
-
/** @deprecated use violine.8 instead */
|
|
192
|
-
lateOceanLight1: colorScales.violine[8],
|
|
193
|
-
/** @deprecated use violine.6 instead */
|
|
194
|
-
lateOceanLight2: colorScales.violine[6],
|
|
195
|
-
/** @deprecated use lavender.6 instead */
|
|
196
|
-
lateOceanLight3: colorScales.lavender[6],
|
|
197
|
-
/** @deprecated use violine.12 instead */
|
|
198
|
-
lateOceanDark1: colorScales.violine[12],
|
|
199
|
-
/** @deprecated use lavender.5 instead */
|
|
200
|
-
warmEmbrace: colorScales.lavender[5],
|
|
201
|
-
/** @deprecated use lavender.3 instead */
|
|
202
|
-
warmEmbraceLight1: colorScales.lavender[3],
|
|
203
153
|
white: '#FFFFFF',
|
|
204
154
|
black: '#000000',
|
|
205
|
-
|
|
206
|
-
black1000: '#000000',
|
|
207
|
-
/** @deprecated use eggshell.11 instead */
|
|
208
|
-
black800: colorScales.eggshell[11],
|
|
209
|
-
/** @deprecated use eggshell.10 instead */
|
|
210
|
-
black555: colorScales.eggshell[10],
|
|
211
|
-
/** @deprecated use eggshell.7 instead */
|
|
212
|
-
black400: colorScales.eggshell[7],
|
|
213
|
-
/** @deprecated use eggshell.4 instead */
|
|
214
|
-
black200: colorScales.eggshell[4],
|
|
215
|
-
/** @deprecated use eggshell.3 instead */
|
|
216
|
-
black100: colorScales.eggshell[3],
|
|
217
|
-
/** @deprecated use eggshell.2 instead */
|
|
218
|
-
black50: colorScales.eggshell[2],
|
|
219
|
-
/** @deprecated use eggshell.1 instead */
|
|
220
|
-
black25: colorScales.eggshell[1],
|
|
221
|
-
/** @deprecated use green.8 instead */
|
|
222
|
-
viride: colorScales.green[8],
|
|
223
|
-
/** @deprecated use coral.7 instead */
|
|
224
|
-
englishVermillon: colorScales.coral[7],
|
|
225
|
-
/** @deprecated use sun.8 instead */
|
|
226
|
-
goldCrayola: colorScales.sun[8],
|
|
227
|
-
/** @deprecated use blue.8 instead */
|
|
228
|
-
aero: colorScales.blue[8],
|
|
229
|
-
/** @deprecated use eggshell.1 instead */
|
|
230
|
-
seaShell: colorScales.eggshell[1],
|
|
231
|
-
transparent: 'transparent',
|
|
232
|
-
/** @deprecated use violine.4 instead */
|
|
233
|
-
moonPurple: colorScales.violine[4],
|
|
234
|
-
/** @deprecated use violine.2 instead */
|
|
235
|
-
moonPurpleLight1: colorScales.violine[2]
|
|
155
|
+
transparent: 'transparent'
|
|
236
156
|
};
|
|
237
157
|
|
|
238
158
|
const colors = {
|
|
239
|
-
primary:
|
|
240
|
-
primaryLight:
|
|
241
|
-
accent:
|
|
242
|
-
accentLight:
|
|
243
|
-
success:
|
|
244
|
-
correct:
|
|
245
|
-
danger:
|
|
246
|
-
info:
|
|
247
|
-
warning:
|
|
248
|
-
separator:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
transparent: lateOceanColorPalette.transparent,
|
|
258
|
-
disabled: lateOceanColorPalette['eggshell.2'],
|
|
159
|
+
primary: deepPurpleColorPalette['deepPurple.8'],
|
|
160
|
+
primaryLight: deepPurpleColorPalette['deepPurple.8'],
|
|
161
|
+
accent: deepPurpleColorPalette['beige.1'],
|
|
162
|
+
accentLight: deepPurpleColorPalette['beige.1'],
|
|
163
|
+
success: deepPurpleColorPalette['green.6'],
|
|
164
|
+
correct: deepPurpleColorPalette['green.6'],
|
|
165
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
166
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
167
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
168
|
+
separator: deepPurpleColorPalette['beige.3'],
|
|
169
|
+
white: deepPurpleColorPalette['grey.0'],
|
|
170
|
+
black: deepPurpleColorPalette['grey.9'],
|
|
171
|
+
blackLight: deepPurpleColorPalette['grey.5'],
|
|
172
|
+
blackAnthracite: deepPurpleColorPalette['grey.7'],
|
|
173
|
+
uiBackground: deepPurpleColorPalette['beige.1'],
|
|
174
|
+
uiBackgroundLight: deepPurpleColorPalette['grey.0'],
|
|
175
|
+
transparent: deepPurpleColorPalette.transparent,
|
|
176
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
259
177
|
overlay: {
|
|
260
|
-
dark: '
|
|
261
|
-
light: '
|
|
178
|
+
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
179
|
+
light: deepPurpleColorPalette['white-alpha.80']
|
|
262
180
|
}
|
|
263
181
|
};
|
|
264
182
|
|
|
265
183
|
const actionCard = {
|
|
266
|
-
borderRadius:
|
|
184
|
+
borderRadius: 8,
|
|
267
185
|
primary: {
|
|
268
186
|
default: {
|
|
269
187
|
backgroundColor: colors.uiBackgroundLight,
|
|
270
|
-
borderColor:
|
|
188
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
271
189
|
borderWidth: 1,
|
|
272
190
|
shadow: {
|
|
273
191
|
color: '',
|
|
@@ -279,8 +197,8 @@ const actionCard = {
|
|
|
279
197
|
translateY: 0
|
|
280
198
|
},
|
|
281
199
|
hovered: {
|
|
282
|
-
backgroundColor:
|
|
283
|
-
borderColor:
|
|
200
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
201
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
284
202
|
borderWidth: 1,
|
|
285
203
|
shadow: {
|
|
286
204
|
color: '',
|
|
@@ -292,8 +210,8 @@ const actionCard = {
|
|
|
292
210
|
translateY: 0
|
|
293
211
|
},
|
|
294
212
|
disabled: {
|
|
295
|
-
backgroundColor:
|
|
296
|
-
borderColor:
|
|
213
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
214
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
297
215
|
borderWidth: 1,
|
|
298
216
|
shadow: {
|
|
299
217
|
color: '',
|
|
@@ -305,8 +223,8 @@ const actionCard = {
|
|
|
305
223
|
translateY: 0
|
|
306
224
|
},
|
|
307
225
|
focused: {
|
|
308
|
-
backgroundColor:
|
|
309
|
-
borderColor:
|
|
226
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
227
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
310
228
|
borderWidth: 1,
|
|
311
229
|
shadow: {
|
|
312
230
|
color: '',
|
|
@@ -318,8 +236,8 @@ const actionCard = {
|
|
|
318
236
|
translateY: 0
|
|
319
237
|
},
|
|
320
238
|
pressed: {
|
|
321
|
-
backgroundColor:
|
|
322
|
-
borderColor:
|
|
239
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
240
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
323
241
|
borderWidth: 1,
|
|
324
242
|
shadow: {
|
|
325
243
|
color: '',
|
|
@@ -334,10 +252,10 @@ const actionCard = {
|
|
|
334
252
|
'primary-border-soft': {
|
|
335
253
|
default: {
|
|
336
254
|
backgroundColor: colors.uiBackgroundLight,
|
|
337
|
-
borderColor:
|
|
255
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
338
256
|
borderWidth: 1,
|
|
339
257
|
shadow: {
|
|
340
|
-
color:
|
|
258
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
341
259
|
offsetX: 0,
|
|
342
260
|
offsetY: 4,
|
|
343
261
|
opacity: 1,
|
|
@@ -346,11 +264,11 @@ const actionCard = {
|
|
|
346
264
|
translateY: 0
|
|
347
265
|
},
|
|
348
266
|
hovered: {
|
|
349
|
-
backgroundColor:
|
|
350
|
-
borderColor:
|
|
267
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
268
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
351
269
|
borderWidth: 1,
|
|
352
270
|
shadow: {
|
|
353
|
-
color:
|
|
271
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
354
272
|
offsetX: 0,
|
|
355
273
|
offsetY: 4,
|
|
356
274
|
opacity: 1,
|
|
@@ -359,8 +277,8 @@ const actionCard = {
|
|
|
359
277
|
translateY: 0
|
|
360
278
|
},
|
|
361
279
|
disabled: {
|
|
362
|
-
backgroundColor:
|
|
363
|
-
borderColor:
|
|
280
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
281
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
364
282
|
borderWidth: 1,
|
|
365
283
|
shadow: {
|
|
366
284
|
color: '',
|
|
@@ -372,11 +290,11 @@ const actionCard = {
|
|
|
372
290
|
translateY: 0
|
|
373
291
|
},
|
|
374
292
|
focused: {
|
|
375
|
-
backgroundColor:
|
|
376
|
-
borderColor:
|
|
293
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
294
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
377
295
|
borderWidth: 1,
|
|
378
296
|
shadow: {
|
|
379
|
-
color:
|
|
297
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
380
298
|
offsetX: 0,
|
|
381
299
|
offsetY: 4,
|
|
382
300
|
opacity: 1,
|
|
@@ -385,8 +303,8 @@ const actionCard = {
|
|
|
385
303
|
translateY: 0
|
|
386
304
|
},
|
|
387
305
|
pressed: {
|
|
388
|
-
backgroundColor:
|
|
389
|
-
borderColor:
|
|
306
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
307
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
390
308
|
borderWidth: 1,
|
|
391
309
|
shadow: {
|
|
392
310
|
color: '',
|
|
@@ -401,10 +319,10 @@ const actionCard = {
|
|
|
401
319
|
'primary-border-hard': {
|
|
402
320
|
default: {
|
|
403
321
|
backgroundColor: colors.uiBackgroundLight,
|
|
404
|
-
borderColor:
|
|
322
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
405
323
|
borderWidth: 1,
|
|
406
324
|
shadow: {
|
|
407
|
-
color:
|
|
325
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
408
326
|
offsetX: 0,
|
|
409
327
|
offsetY: 4,
|
|
410
328
|
opacity: 1,
|
|
@@ -413,11 +331,11 @@ const actionCard = {
|
|
|
413
331
|
translateY: 0
|
|
414
332
|
},
|
|
415
333
|
hovered: {
|
|
416
|
-
backgroundColor:
|
|
417
|
-
borderColor:
|
|
334
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
335
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
418
336
|
borderWidth: 1,
|
|
419
337
|
shadow: {
|
|
420
|
-
color:
|
|
338
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
421
339
|
offsetX: 0,
|
|
422
340
|
offsetY: 4,
|
|
423
341
|
opacity: 1,
|
|
@@ -426,8 +344,8 @@ const actionCard = {
|
|
|
426
344
|
translateY: 0
|
|
427
345
|
},
|
|
428
346
|
disabled: {
|
|
429
|
-
backgroundColor:
|
|
430
|
-
borderColor:
|
|
347
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
348
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
431
349
|
borderWidth: 1,
|
|
432
350
|
shadow: {
|
|
433
351
|
color: '',
|
|
@@ -439,11 +357,11 @@ const actionCard = {
|
|
|
439
357
|
translateY: 0
|
|
440
358
|
},
|
|
441
359
|
focused: {
|
|
442
|
-
backgroundColor:
|
|
443
|
-
borderColor:
|
|
360
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
361
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
444
362
|
borderWidth: 1,
|
|
445
363
|
shadow: {
|
|
446
|
-
color:
|
|
364
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
447
365
|
offsetX: 0,
|
|
448
366
|
offsetY: 4,
|
|
449
367
|
opacity: 1,
|
|
@@ -452,8 +370,8 @@ const actionCard = {
|
|
|
452
370
|
translateY: 0
|
|
453
371
|
},
|
|
454
372
|
pressed: {
|
|
455
|
-
backgroundColor:
|
|
456
|
-
borderColor:
|
|
373
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
374
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
457
375
|
borderWidth: 1,
|
|
458
376
|
shadow: {
|
|
459
377
|
color: '',
|
|
@@ -467,8 +385,8 @@ const actionCard = {
|
|
|
467
385
|
},
|
|
468
386
|
secondary: {
|
|
469
387
|
default: {
|
|
470
|
-
backgroundColor:
|
|
471
|
-
borderColor:
|
|
388
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
389
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
472
390
|
borderWidth: 0,
|
|
473
391
|
shadow: {
|
|
474
392
|
color: '',
|
|
@@ -480,8 +398,8 @@ const actionCard = {
|
|
|
480
398
|
translateY: 0
|
|
481
399
|
},
|
|
482
400
|
disabled: {
|
|
483
|
-
backgroundColor:
|
|
484
|
-
borderColor:
|
|
401
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
402
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
485
403
|
borderWidth: 1,
|
|
486
404
|
shadow: {
|
|
487
405
|
color: '',
|
|
@@ -493,8 +411,8 @@ const actionCard = {
|
|
|
493
411
|
translateY: 0
|
|
494
412
|
},
|
|
495
413
|
hovered: {
|
|
496
|
-
backgroundColor:
|
|
497
|
-
borderColor:
|
|
414
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
415
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
498
416
|
borderWidth: 0,
|
|
499
417
|
shadow: {
|
|
500
418
|
color: '',
|
|
@@ -506,8 +424,8 @@ const actionCard = {
|
|
|
506
424
|
translateY: 0
|
|
507
425
|
},
|
|
508
426
|
focused: {
|
|
509
|
-
backgroundColor:
|
|
510
|
-
borderColor:
|
|
427
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
428
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
511
429
|
borderWidth: 0,
|
|
512
430
|
shadow: {
|
|
513
431
|
color: '',
|
|
@@ -519,8 +437,8 @@ const actionCard = {
|
|
|
519
437
|
translateY: 0
|
|
520
438
|
},
|
|
521
439
|
pressed: {
|
|
522
|
-
backgroundColor:
|
|
523
|
-
borderColor:
|
|
440
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
441
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
524
442
|
borderWidth: 0,
|
|
525
443
|
shadow: {
|
|
526
444
|
color: '',
|
|
@@ -534,11 +452,11 @@ const actionCard = {
|
|
|
534
452
|
},
|
|
535
453
|
highlight: {
|
|
536
454
|
default: {
|
|
537
|
-
backgroundColor:
|
|
538
|
-
borderColor:
|
|
455
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
456
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
539
457
|
borderWidth: 1,
|
|
540
458
|
shadow: {
|
|
541
|
-
color:
|
|
459
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
542
460
|
offsetX: 0,
|
|
543
461
|
offsetY: 4,
|
|
544
462
|
opacity: 1,
|
|
@@ -547,8 +465,8 @@ const actionCard = {
|
|
|
547
465
|
translateY: 0
|
|
548
466
|
},
|
|
549
467
|
disabled: {
|
|
550
|
-
backgroundColor:
|
|
551
|
-
borderColor:
|
|
468
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
469
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
552
470
|
borderWidth: 1,
|
|
553
471
|
shadow: {
|
|
554
472
|
color: '',
|
|
@@ -560,11 +478,11 @@ const actionCard = {
|
|
|
560
478
|
translateY: 0
|
|
561
479
|
},
|
|
562
480
|
hovered: {
|
|
563
|
-
backgroundColor: hex2rgba(
|
|
564
|
-
borderColor:
|
|
481
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
482
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
565
483
|
borderWidth: 1,
|
|
566
484
|
shadow: {
|
|
567
|
-
color:
|
|
485
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
568
486
|
offsetX: 0,
|
|
569
487
|
offsetY: 4,
|
|
570
488
|
opacity: 1,
|
|
@@ -573,11 +491,11 @@ const actionCard = {
|
|
|
573
491
|
translateY: 0
|
|
574
492
|
},
|
|
575
493
|
focused: {
|
|
576
|
-
backgroundColor: hex2rgba(
|
|
577
|
-
borderColor:
|
|
494
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
495
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
578
496
|
borderWidth: 1,
|
|
579
497
|
shadow: {
|
|
580
|
-
color:
|
|
498
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
581
499
|
offsetX: 0,
|
|
582
500
|
offsetY: 4,
|
|
583
501
|
opacity: 1,
|
|
@@ -586,8 +504,8 @@ const actionCard = {
|
|
|
586
504
|
translateY: 0
|
|
587
505
|
},
|
|
588
506
|
pressed: {
|
|
589
|
-
backgroundColor: hex2rgba(
|
|
590
|
-
borderColor:
|
|
507
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
508
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
591
509
|
borderWidth: 1,
|
|
592
510
|
shadow: {
|
|
593
511
|
color: '',
|
|
@@ -605,42 +523,28 @@ const defaultAvatarSize = 40;
|
|
|
605
523
|
const defaultAvatarIconSize = 20;
|
|
606
524
|
const largeAvatarSize = 120;
|
|
607
525
|
const largeAvatarIconSize = 30;
|
|
608
|
-
|
|
609
|
-
// export interface AvatarThemeBackgroundColorVariant {
|
|
610
|
-
// default: string;
|
|
611
|
-
// light: string;
|
|
612
|
-
// dark: string;
|
|
613
|
-
// disabled: string;
|
|
614
|
-
// }
|
|
615
|
-
|
|
616
|
-
// export interface AvatarThemeColorVariant {
|
|
617
|
-
// default: string;
|
|
618
|
-
// light: string;
|
|
619
|
-
// disabled: string;
|
|
620
|
-
// }
|
|
621
|
-
|
|
622
526
|
const avatar = {
|
|
623
|
-
borderRadius:
|
|
527
|
+
borderRadius: 4,
|
|
624
528
|
size: defaultAvatarSize,
|
|
625
529
|
iconSize: defaultAvatarIconSize,
|
|
626
530
|
default: {
|
|
627
|
-
color:
|
|
628
|
-
backgroundColor:
|
|
531
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
532
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
629
533
|
},
|
|
630
534
|
light: {
|
|
631
|
-
color:
|
|
632
|
-
backgroundColor:
|
|
535
|
+
color: deepPurpleColorPalette['beige.6'],
|
|
536
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
633
537
|
},
|
|
634
538
|
dark: {
|
|
635
|
-
color:
|
|
636
|
-
backgroundColor:
|
|
539
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
540
|
+
backgroundColor: deepPurpleColorPalette['grey.9']
|
|
637
541
|
},
|
|
638
542
|
disabled: {
|
|
639
|
-
color:
|
|
640
|
-
backgroundColor:
|
|
543
|
+
color: deepPurpleColorPalette['grey.3'],
|
|
544
|
+
backgroundColor: deepPurpleColorPalette['grey.1']
|
|
641
545
|
},
|
|
642
546
|
large: {
|
|
643
|
-
borderRadius:
|
|
547
|
+
borderRadius: 8,
|
|
644
548
|
size: largeAvatarSize,
|
|
645
549
|
iconSize: largeAvatarIconSize
|
|
646
550
|
}
|
|
@@ -653,7 +557,7 @@ const bottomSheet = {
|
|
|
653
557
|
padding: spacing * 4
|
|
654
558
|
},
|
|
655
559
|
handle: {
|
|
656
|
-
backgroundColor:
|
|
560
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
657
561
|
}
|
|
658
562
|
};
|
|
659
563
|
|
|
@@ -721,9 +625,9 @@ const button = {
|
|
|
721
625
|
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
722
626
|
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
723
627
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
724
|
-
color:
|
|
725
|
-
hoverColor:
|
|
726
|
-
activeColor:
|
|
628
|
+
color: deepPurpleColorPalette.white,
|
|
629
|
+
hoverColor: deepPurpleColorPalette.white,
|
|
630
|
+
activeColor: deepPurpleColorPalette.white
|
|
727
631
|
}
|
|
728
632
|
},
|
|
729
633
|
primary: {
|
|
@@ -736,11 +640,11 @@ const button = {
|
|
|
736
640
|
ghost: {
|
|
737
641
|
backgroundColor: colors.uiBackgroundLight,
|
|
738
642
|
pressedBackgroundColor: colors.uiBackground,
|
|
739
|
-
hoverBackgroundColor:
|
|
643
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
740
644
|
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
741
645
|
color: colors.primary,
|
|
742
|
-
hoverColor:
|
|
743
|
-
activeColor:
|
|
646
|
+
hoverColor: deepPurpleColorPalette['beige.2'],
|
|
647
|
+
activeColor: deepPurpleColorPalette['beige.2']
|
|
744
648
|
}
|
|
745
649
|
},
|
|
746
650
|
dark: {
|
|
@@ -753,19 +657,19 @@ const button = {
|
|
|
753
657
|
},
|
|
754
658
|
danger: {
|
|
755
659
|
default: {
|
|
756
|
-
backgroundColor:
|
|
757
|
-
pressedBackgroundColor:
|
|
758
|
-
hoverBackgroundColor:
|
|
759
|
-
focusBorderColor:
|
|
660
|
+
backgroundColor: deepPurpleColorPalette['red.1'],
|
|
661
|
+
pressedBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
662
|
+
hoverBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
663
|
+
focusBorderColor: deepPurpleColorPalette['red.2']
|
|
760
664
|
},
|
|
761
665
|
ghost: {
|
|
762
666
|
backgroundColor: colors.uiBackgroundLight,
|
|
763
667
|
pressedBackgroundColor: colors.uiBackground,
|
|
764
|
-
hoverBackgroundColor:
|
|
668
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
765
669
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
766
|
-
color:
|
|
767
|
-
hoverColor:
|
|
768
|
-
activeColor:
|
|
670
|
+
color: deepPurpleColorPalette['red.6'],
|
|
671
|
+
hoverColor: deepPurpleColorPalette['red.6'],
|
|
672
|
+
activeColor: deepPurpleColorPalette['red.6']
|
|
769
673
|
}
|
|
770
674
|
},
|
|
771
675
|
subtle: {
|
|
@@ -806,14 +710,14 @@ const button = {
|
|
|
806
710
|
backgroundColor: colors.disabled,
|
|
807
711
|
pressedBackgroundColor: colors.disabled,
|
|
808
712
|
hoverBackgroundColor: colors.disabled,
|
|
809
|
-
focusBorderColor:
|
|
810
|
-
borderColor:
|
|
713
|
+
focusBorderColor: deepPurpleColorPalette['beige.2'],
|
|
714
|
+
borderColor: deepPurpleColorPalette['beige.2']
|
|
811
715
|
}
|
|
812
716
|
}
|
|
813
717
|
};
|
|
814
718
|
|
|
815
719
|
const buttonBadge = {
|
|
816
|
-
backgroundColor:
|
|
720
|
+
backgroundColor: deepPurpleColorPalette['red.6'],
|
|
817
721
|
dimensions: {
|
|
818
722
|
withBadge: {
|
|
819
723
|
width: 10,
|
|
@@ -842,7 +746,7 @@ const card = {
|
|
|
842
746
|
borderColor: colors.separator
|
|
843
747
|
},
|
|
844
748
|
subtle: {
|
|
845
|
-
backgroundColor:
|
|
749
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
846
750
|
borderColor: colors.separator
|
|
847
751
|
}
|
|
848
752
|
};
|
|
@@ -902,17 +806,17 @@ const choices = {
|
|
|
902
806
|
small: 24
|
|
903
807
|
},
|
|
904
808
|
backgroundColor: {
|
|
905
|
-
default:
|
|
809
|
+
default: deepPurpleColorPalette['beige.1'],
|
|
906
810
|
disabled: colors.disabled,
|
|
907
811
|
selected: colors.primary,
|
|
908
|
-
pressed:
|
|
909
|
-
hover:
|
|
910
|
-
hoverWhenSelected:
|
|
812
|
+
pressed: deepPurpleColorPalette['deepPurple.7'],
|
|
813
|
+
hover: deepPurpleColorPalette['beige.2'],
|
|
814
|
+
hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
|
|
911
815
|
},
|
|
912
816
|
disabled: {
|
|
913
817
|
border: {
|
|
914
818
|
width: 2,
|
|
915
|
-
color:
|
|
819
|
+
color: deepPurpleColorPalette['beige.2']
|
|
916
820
|
}
|
|
917
821
|
},
|
|
918
822
|
transition: {
|
|
@@ -977,19 +881,19 @@ const autocomplete = {
|
|
|
977
881
|
backgroundColor: colors.white
|
|
978
882
|
},
|
|
979
883
|
hovered: {
|
|
980
|
-
backgroundColor:
|
|
884
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
981
885
|
},
|
|
982
886
|
focused: {
|
|
983
|
-
backgroundColor:
|
|
887
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
984
888
|
},
|
|
985
889
|
selected: {
|
|
986
|
-
backgroundColor:
|
|
890
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
987
891
|
},
|
|
988
892
|
highlighted: {
|
|
989
|
-
backgroundColor:
|
|
893
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
990
894
|
},
|
|
991
895
|
pressed: {
|
|
992
|
-
backgroundColor:
|
|
896
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
993
897
|
}
|
|
994
898
|
},
|
|
995
899
|
optionsContainer: {
|
|
@@ -1057,37 +961,37 @@ const datePicker = {
|
|
|
1057
961
|
|
|
1058
962
|
const inputStatesStyle = {
|
|
1059
963
|
default: {
|
|
1060
|
-
backgroundColor:
|
|
1061
|
-
borderColor:
|
|
1062
|
-
color:
|
|
964
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
965
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
966
|
+
color: deepPurpleColorPalette.black
|
|
1063
967
|
},
|
|
1064
968
|
pending: {
|
|
1065
|
-
backgroundColor:
|
|
1066
|
-
borderColor:
|
|
1067
|
-
color:
|
|
969
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
970
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
971
|
+
color: deepPurpleColorPalette.black
|
|
1068
972
|
},
|
|
1069
973
|
valid: {
|
|
1070
|
-
backgroundColor:
|
|
1071
|
-
borderColor:
|
|
1072
|
-
color:
|
|
974
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
975
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
976
|
+
color: deepPurpleColorPalette.black
|
|
1073
977
|
},
|
|
1074
978
|
hover: {
|
|
1075
|
-
backgroundColor:
|
|
1076
|
-
borderColor:
|
|
1077
|
-
color:
|
|
979
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
980
|
+
borderColor: deepPurpleColorPalette['beige.4'],
|
|
981
|
+
color: deepPurpleColorPalette.black
|
|
1078
982
|
},
|
|
1079
983
|
focus: {
|
|
1080
|
-
borderColor:
|
|
1081
|
-
color:
|
|
984
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
985
|
+
color: deepPurpleColorPalette.black
|
|
1082
986
|
},
|
|
1083
987
|
disabled: {
|
|
1084
|
-
backgroundColor:
|
|
1085
|
-
borderColor:
|
|
1086
|
-
color:
|
|
988
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
989
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
990
|
+
color: deepPurpleColorPalette['grey.3']
|
|
1087
991
|
},
|
|
1088
992
|
invalid: {
|
|
1089
|
-
borderColor:
|
|
1090
|
-
color:
|
|
993
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
994
|
+
color: deepPurpleColorPalette.black
|
|
1091
995
|
}
|
|
1092
996
|
};
|
|
1093
997
|
const webAnimationDuration = '200ms';
|
|
@@ -1096,11 +1000,11 @@ const webAnimationProperties = ['border-color', 'background-color'];
|
|
|
1096
1000
|
const input = {
|
|
1097
1001
|
minHeight: 40,
|
|
1098
1002
|
color: {
|
|
1099
|
-
selection:
|
|
1100
|
-
placeholder:
|
|
1003
|
+
selection: deepPurpleColorPalette['deepPurple.8'],
|
|
1004
|
+
placeholder: deepPurpleColorPalette['beige.6']
|
|
1101
1005
|
},
|
|
1102
1006
|
borderWidth: 1,
|
|
1103
|
-
borderRadius:
|
|
1007
|
+
borderRadius: 4,
|
|
1104
1008
|
icon: {
|
|
1105
1009
|
size: 20
|
|
1106
1010
|
},
|
|
@@ -1137,7 +1041,7 @@ const inputTag = {
|
|
|
1137
1041
|
labelColor: colors.uiBackgroundLight
|
|
1138
1042
|
},
|
|
1139
1043
|
default: {
|
|
1140
|
-
backgroundColor:
|
|
1044
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1141
1045
|
labelColor: colors.black
|
|
1142
1046
|
},
|
|
1143
1047
|
borderRadius: 10,
|
|
@@ -1147,9 +1051,9 @@ const inputTag = {
|
|
|
1147
1051
|
const radio = {
|
|
1148
1052
|
size: 24,
|
|
1149
1053
|
unchecked: {
|
|
1150
|
-
borderWidth:
|
|
1054
|
+
borderWidth: 1,
|
|
1151
1055
|
backgroundColor: colors.uiBackgroundLight,
|
|
1152
|
-
borderColor:
|
|
1056
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1153
1057
|
},
|
|
1154
1058
|
checked: {
|
|
1155
1059
|
backgroundColor: colors.primary,
|
|
@@ -1166,8 +1070,9 @@ const radio = {
|
|
|
1166
1070
|
borderColor: colors.primary
|
|
1167
1071
|
},
|
|
1168
1072
|
disabled: {
|
|
1169
|
-
backgroundColor:
|
|
1170
|
-
borderColor: colors.
|
|
1073
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1074
|
+
borderColor: colors.transparent,
|
|
1075
|
+
innerBackgroundColor: deepPurpleColorPalette['grey.1']
|
|
1171
1076
|
},
|
|
1172
1077
|
transition: {
|
|
1173
1078
|
duration: '200ms',
|
|
@@ -1178,14 +1083,19 @@ const radio = {
|
|
|
1178
1083
|
const radioButtonGroup = {
|
|
1179
1084
|
item: {
|
|
1180
1085
|
minHeight: 40,
|
|
1181
|
-
borderWidth:
|
|
1182
|
-
borderRadius:
|
|
1086
|
+
borderWidth: 1,
|
|
1087
|
+
borderRadius: 4,
|
|
1088
|
+
font: {
|
|
1089
|
+
color: {
|
|
1090
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1183
1093
|
borderColor: {
|
|
1184
1094
|
default: colors.separator,
|
|
1185
1095
|
hover: colors.primary,
|
|
1186
1096
|
pressed: colors.primary,
|
|
1187
1097
|
active: colors.primary,
|
|
1188
|
-
disabled: colors.
|
|
1098
|
+
disabled: colors.disabled
|
|
1189
1099
|
},
|
|
1190
1100
|
backgroundColor: {
|
|
1191
1101
|
default: colors.uiBackgroundLight,
|
|
@@ -1226,17 +1136,17 @@ const toggle = {
|
|
|
1226
1136
|
medium: 50,
|
|
1227
1137
|
large: 66
|
|
1228
1138
|
},
|
|
1229
|
-
labelColor:
|
|
1139
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1230
1140
|
backgroundColor: {
|
|
1231
|
-
checked:
|
|
1232
|
-
unchecked:
|
|
1141
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1142
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1233
1143
|
},
|
|
1234
1144
|
border: {
|
|
1235
1145
|
color: 'transparent',
|
|
1236
1146
|
width: 1
|
|
1237
1147
|
},
|
|
1238
1148
|
circle: {
|
|
1239
|
-
backgroundColor:
|
|
1149
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1240
1150
|
width: {
|
|
1241
1151
|
medium: 18,
|
|
1242
1152
|
large: 24
|
|
@@ -1264,17 +1174,17 @@ const toggle = {
|
|
|
1264
1174
|
medium: 50,
|
|
1265
1175
|
large: 66
|
|
1266
1176
|
},
|
|
1267
|
-
labelColor:
|
|
1177
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1268
1178
|
backgroundColor: {
|
|
1269
|
-
checked:
|
|
1270
|
-
unchecked:
|
|
1179
|
+
checked: deepPurpleColorPalette['deepPurple.7'],
|
|
1180
|
+
unchecked: deepPurpleColorPalette['beige.4']
|
|
1271
1181
|
},
|
|
1272
1182
|
border: {
|
|
1273
1183
|
color: 'transparent',
|
|
1274
1184
|
width: 1
|
|
1275
1185
|
},
|
|
1276
1186
|
circle: {
|
|
1277
|
-
backgroundColor:
|
|
1187
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1278
1188
|
width: {
|
|
1279
1189
|
medium: 18,
|
|
1280
1190
|
large: 24
|
|
@@ -1302,17 +1212,17 @@ const toggle = {
|
|
|
1302
1212
|
medium: 50,
|
|
1303
1213
|
large: 66
|
|
1304
1214
|
},
|
|
1305
|
-
labelColor:
|
|
1215
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1306
1216
|
backgroundColor: {
|
|
1307
|
-
checked:
|
|
1308
|
-
unchecked:
|
|
1217
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1218
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1309
1219
|
},
|
|
1310
1220
|
border: {
|
|
1311
|
-
color:
|
|
1221
|
+
color: deepPurpleColorPalette.white,
|
|
1312
1222
|
width: 1
|
|
1313
1223
|
},
|
|
1314
1224
|
circle: {
|
|
1315
|
-
backgroundColor:
|
|
1225
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1316
1226
|
width: {
|
|
1317
1227
|
medium: 18,
|
|
1318
1228
|
large: 24
|
|
@@ -1327,7 +1237,7 @@ const toggle = {
|
|
|
1327
1237
|
}
|
|
1328
1238
|
},
|
|
1329
1239
|
wrapperBorder: {
|
|
1330
|
-
color:
|
|
1240
|
+
color: deepPurpleColorPalette.black,
|
|
1331
1241
|
width: 1
|
|
1332
1242
|
}
|
|
1333
1243
|
},
|
|
@@ -1340,17 +1250,17 @@ const toggle = {
|
|
|
1340
1250
|
medium: 50,
|
|
1341
1251
|
large: 66
|
|
1342
1252
|
},
|
|
1343
|
-
labelColor:
|
|
1253
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1344
1254
|
backgroundColor: {
|
|
1345
|
-
checked:
|
|
1346
|
-
unchecked:
|
|
1255
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1256
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1347
1257
|
},
|
|
1348
1258
|
border: {
|
|
1349
|
-
color:
|
|
1259
|
+
color: deepPurpleColorPalette.white,
|
|
1350
1260
|
width: 1
|
|
1351
1261
|
},
|
|
1352
1262
|
circle: {
|
|
1353
|
-
backgroundColor:
|
|
1263
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1354
1264
|
width: {
|
|
1355
1265
|
medium: 18,
|
|
1356
1266
|
large: 24
|
|
@@ -1365,7 +1275,7 @@ const toggle = {
|
|
|
1365
1275
|
}
|
|
1366
1276
|
},
|
|
1367
1277
|
wrapperBorder: {
|
|
1368
|
-
color:
|
|
1278
|
+
color: deepPurpleColorPalette.black,
|
|
1369
1279
|
width: 1
|
|
1370
1280
|
}
|
|
1371
1281
|
}
|
|
@@ -1380,17 +1290,17 @@ const toggle = {
|
|
|
1380
1290
|
medium: 50,
|
|
1381
1291
|
large: 66
|
|
1382
1292
|
},
|
|
1383
|
-
labelColor:
|
|
1293
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1384
1294
|
backgroundColor: {
|
|
1385
|
-
checked:
|
|
1386
|
-
unchecked:
|
|
1295
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1296
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1387
1297
|
},
|
|
1388
1298
|
border: {
|
|
1389
1299
|
color: 'transparent',
|
|
1390
1300
|
width: 1
|
|
1391
1301
|
},
|
|
1392
1302
|
circle: {
|
|
1393
|
-
backgroundColor:
|
|
1303
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1394
1304
|
width: {
|
|
1395
1305
|
medium: 18,
|
|
1396
1306
|
large: 24
|
|
@@ -1418,17 +1328,17 @@ const toggle = {
|
|
|
1418
1328
|
medium: 50,
|
|
1419
1329
|
large: 66
|
|
1420
1330
|
},
|
|
1421
|
-
labelColor:
|
|
1331
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1422
1332
|
backgroundColor: {
|
|
1423
|
-
checked:
|
|
1424
|
-
unchecked:
|
|
1333
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1334
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1425
1335
|
},
|
|
1426
1336
|
border: {
|
|
1427
1337
|
color: 'transparent',
|
|
1428
1338
|
width: 1
|
|
1429
1339
|
},
|
|
1430
1340
|
circle: {
|
|
1431
|
-
backgroundColor:
|
|
1341
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1432
1342
|
width: {
|
|
1433
1343
|
medium: 18,
|
|
1434
1344
|
large: 24
|
|
@@ -1456,17 +1366,17 @@ const toggle = {
|
|
|
1456
1366
|
medium: 50,
|
|
1457
1367
|
large: 66
|
|
1458
1368
|
},
|
|
1459
|
-
labelColor:
|
|
1369
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1460
1370
|
backgroundColor: {
|
|
1461
|
-
checked:
|
|
1462
|
-
unchecked:
|
|
1371
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1372
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1463
1373
|
},
|
|
1464
1374
|
border: {
|
|
1465
1375
|
color: 'transparent',
|
|
1466
1376
|
width: 1
|
|
1467
1377
|
},
|
|
1468
1378
|
circle: {
|
|
1469
|
-
backgroundColor:
|
|
1379
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1470
1380
|
width: {
|
|
1471
1381
|
medium: 18,
|
|
1472
1382
|
large: 24
|
|
@@ -1481,7 +1391,7 @@ const toggle = {
|
|
|
1481
1391
|
}
|
|
1482
1392
|
},
|
|
1483
1393
|
wrapperBorder: {
|
|
1484
|
-
color:
|
|
1394
|
+
color: deepPurpleColorPalette.black,
|
|
1485
1395
|
width: 1
|
|
1486
1396
|
}
|
|
1487
1397
|
},
|
|
@@ -1494,17 +1404,17 @@ const toggle = {
|
|
|
1494
1404
|
medium: 50,
|
|
1495
1405
|
large: 66
|
|
1496
1406
|
},
|
|
1497
|
-
labelColor:
|
|
1407
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1498
1408
|
backgroundColor: {
|
|
1499
|
-
checked:
|
|
1500
|
-
unchecked:
|
|
1409
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1410
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1501
1411
|
},
|
|
1502
1412
|
border: {
|
|
1503
1413
|
color: 'transparent',
|
|
1504
1414
|
width: 1
|
|
1505
1415
|
},
|
|
1506
1416
|
circle: {
|
|
1507
|
-
backgroundColor:
|
|
1417
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1508
1418
|
width: {
|
|
1509
1419
|
medium: 18,
|
|
1510
1420
|
large: 24
|
|
@@ -1519,7 +1429,7 @@ const toggle = {
|
|
|
1519
1429
|
}
|
|
1520
1430
|
},
|
|
1521
1431
|
wrapperBorder: {
|
|
1522
|
-
color:
|
|
1432
|
+
color: deepPurpleColorPalette.black,
|
|
1523
1433
|
width: 1
|
|
1524
1434
|
}
|
|
1525
1435
|
}
|
|
@@ -1536,17 +1446,17 @@ const toggle = {
|
|
|
1536
1446
|
medium: 50,
|
|
1537
1447
|
large: 66
|
|
1538
1448
|
},
|
|
1539
|
-
labelColor:
|
|
1449
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1540
1450
|
backgroundColor: {
|
|
1541
|
-
checked:
|
|
1542
|
-
unchecked:
|
|
1451
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1452
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1543
1453
|
},
|
|
1544
1454
|
border: {
|
|
1545
1455
|
color: 'transparent',
|
|
1546
1456
|
width: 1
|
|
1547
1457
|
},
|
|
1548
1458
|
circle: {
|
|
1549
|
-
backgroundColor:
|
|
1459
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1550
1460
|
width: {
|
|
1551
1461
|
medium: 18,
|
|
1552
1462
|
large: 24
|
|
@@ -1574,17 +1484,17 @@ const toggle = {
|
|
|
1574
1484
|
medium: 50,
|
|
1575
1485
|
large: 66
|
|
1576
1486
|
},
|
|
1577
|
-
labelColor:
|
|
1487
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1578
1488
|
backgroundColor: {
|
|
1579
|
-
checked:
|
|
1580
|
-
unchecked:
|
|
1489
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1490
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1581
1491
|
},
|
|
1582
1492
|
border: {
|
|
1583
1493
|
color: 'transparent',
|
|
1584
1494
|
width: 1
|
|
1585
1495
|
},
|
|
1586
1496
|
circle: {
|
|
1587
|
-
backgroundColor:
|
|
1497
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1588
1498
|
width: {
|
|
1589
1499
|
medium: 18,
|
|
1590
1500
|
large: 24
|
|
@@ -1612,17 +1522,17 @@ const toggle = {
|
|
|
1612
1522
|
medium: 50,
|
|
1613
1523
|
large: 66
|
|
1614
1524
|
},
|
|
1615
|
-
labelColor:
|
|
1525
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1616
1526
|
backgroundColor: {
|
|
1617
|
-
checked:
|
|
1618
|
-
unchecked:
|
|
1527
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1528
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1619
1529
|
},
|
|
1620
1530
|
border: {
|
|
1621
|
-
color:
|
|
1531
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1622
1532
|
width: 1
|
|
1623
1533
|
},
|
|
1624
1534
|
circle: {
|
|
1625
|
-
backgroundColor:
|
|
1535
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1626
1536
|
width: {
|
|
1627
1537
|
medium: 18,
|
|
1628
1538
|
large: 24
|
|
@@ -1637,7 +1547,7 @@ const toggle = {
|
|
|
1637
1547
|
}
|
|
1638
1548
|
},
|
|
1639
1549
|
wrapperBorder: {
|
|
1640
|
-
color:
|
|
1550
|
+
color: deepPurpleColorPalette.white,
|
|
1641
1551
|
width: 1
|
|
1642
1552
|
}
|
|
1643
1553
|
},
|
|
@@ -1650,17 +1560,17 @@ const toggle = {
|
|
|
1650
1560
|
medium: 50,
|
|
1651
1561
|
large: 66
|
|
1652
1562
|
},
|
|
1653
|
-
labelColor:
|
|
1563
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1654
1564
|
backgroundColor: {
|
|
1655
|
-
checked:
|
|
1656
|
-
unchecked:
|
|
1565
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1566
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1657
1567
|
},
|
|
1658
1568
|
border: {
|
|
1659
|
-
color:
|
|
1569
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1660
1570
|
width: 1
|
|
1661
1571
|
},
|
|
1662
1572
|
circle: {
|
|
1663
|
-
backgroundColor:
|
|
1573
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1664
1574
|
width: {
|
|
1665
1575
|
medium: 18,
|
|
1666
1576
|
large: 24
|
|
@@ -1675,7 +1585,7 @@ const toggle = {
|
|
|
1675
1585
|
}
|
|
1676
1586
|
},
|
|
1677
1587
|
wrapperBorder: {
|
|
1678
|
-
color:
|
|
1588
|
+
color: deepPurpleColorPalette.white,
|
|
1679
1589
|
width: 1
|
|
1680
1590
|
}
|
|
1681
1591
|
}
|
|
@@ -1690,17 +1600,17 @@ const toggle = {
|
|
|
1690
1600
|
medium: 50,
|
|
1691
1601
|
large: 66
|
|
1692
1602
|
},
|
|
1693
|
-
labelColor:
|
|
1603
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1694
1604
|
backgroundColor: {
|
|
1695
|
-
checked:
|
|
1696
|
-
unchecked:
|
|
1605
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1606
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1697
1607
|
},
|
|
1698
1608
|
border: {
|
|
1699
1609
|
color: 'transparent',
|
|
1700
1610
|
width: 1
|
|
1701
1611
|
},
|
|
1702
1612
|
circle: {
|
|
1703
|
-
backgroundColor:
|
|
1613
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1704
1614
|
width: {
|
|
1705
1615
|
medium: 18,
|
|
1706
1616
|
large: 24
|
|
@@ -1728,17 +1638,17 @@ const toggle = {
|
|
|
1728
1638
|
medium: 50,
|
|
1729
1639
|
large: 66
|
|
1730
1640
|
},
|
|
1731
|
-
labelColor:
|
|
1641
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1732
1642
|
backgroundColor: {
|
|
1733
|
-
checked:
|
|
1734
|
-
unchecked:
|
|
1643
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1644
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1735
1645
|
},
|
|
1736
1646
|
border: {
|
|
1737
1647
|
color: 'transparent',
|
|
1738
1648
|
width: 1
|
|
1739
1649
|
},
|
|
1740
1650
|
circle: {
|
|
1741
|
-
backgroundColor:
|
|
1651
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1742
1652
|
width: {
|
|
1743
1653
|
medium: 18,
|
|
1744
1654
|
large: 24
|
|
@@ -1766,17 +1676,17 @@ const toggle = {
|
|
|
1766
1676
|
medium: 50,
|
|
1767
1677
|
large: 66
|
|
1768
1678
|
},
|
|
1769
|
-
labelColor:
|
|
1679
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1770
1680
|
backgroundColor: {
|
|
1771
|
-
checked:
|
|
1772
|
-
unchecked:
|
|
1681
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1682
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1773
1683
|
},
|
|
1774
1684
|
border: {
|
|
1775
|
-
color:
|
|
1685
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1776
1686
|
width: 1
|
|
1777
1687
|
},
|
|
1778
1688
|
circle: {
|
|
1779
|
-
backgroundColor:
|
|
1689
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1780
1690
|
width: {
|
|
1781
1691
|
medium: 18,
|
|
1782
1692
|
large: 24
|
|
@@ -1791,7 +1701,7 @@ const toggle = {
|
|
|
1791
1701
|
}
|
|
1792
1702
|
},
|
|
1793
1703
|
wrapperBorder: {
|
|
1794
|
-
color:
|
|
1704
|
+
color: deepPurpleColorPalette.white,
|
|
1795
1705
|
width: 1
|
|
1796
1706
|
}
|
|
1797
1707
|
},
|
|
@@ -1804,17 +1714,17 @@ const toggle = {
|
|
|
1804
1714
|
medium: 50,
|
|
1805
1715
|
large: 66
|
|
1806
1716
|
},
|
|
1807
|
-
labelColor:
|
|
1717
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1808
1718
|
backgroundColor: {
|
|
1809
|
-
checked:
|
|
1810
|
-
unchecked:
|
|
1719
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1720
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1811
1721
|
},
|
|
1812
1722
|
border: {
|
|
1813
|
-
color:
|
|
1723
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1814
1724
|
width: 1
|
|
1815
1725
|
},
|
|
1816
1726
|
circle: {
|
|
1817
|
-
backgroundColor:
|
|
1727
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1818
1728
|
width: {
|
|
1819
1729
|
medium: 18,
|
|
1820
1730
|
large: 24
|
|
@@ -1829,7 +1739,7 @@ const toggle = {
|
|
|
1829
1739
|
}
|
|
1830
1740
|
},
|
|
1831
1741
|
wrapperBorder: {
|
|
1832
|
-
color:
|
|
1742
|
+
color: deepPurpleColorPalette.white,
|
|
1833
1743
|
width: 1
|
|
1834
1744
|
}
|
|
1835
1745
|
}
|
|
@@ -1891,50 +1801,50 @@ const highlight = {
|
|
|
1891
1801
|
},
|
|
1892
1802
|
primary: {
|
|
1893
1803
|
default: {
|
|
1894
|
-
backgroundColor:
|
|
1804
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1895
1805
|
},
|
|
1896
1806
|
hover: {
|
|
1897
|
-
backgroundColor:
|
|
1807
|
+
backgroundColor: deepPurpleColorPalette['beige.4']
|
|
1898
1808
|
}
|
|
1899
1809
|
},
|
|
1900
1810
|
secondary: {
|
|
1901
1811
|
default: {
|
|
1902
|
-
backgroundColor:
|
|
1812
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1903
1813
|
},
|
|
1904
1814
|
hover: {
|
|
1905
|
-
backgroundColor:
|
|
1815
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
1906
1816
|
}
|
|
1907
1817
|
},
|
|
1908
1818
|
ghost: {
|
|
1909
1819
|
default: {
|
|
1910
|
-
backgroundColor:
|
|
1820
|
+
backgroundColor: deepPurpleColorPalette.white
|
|
1911
1821
|
},
|
|
1912
1822
|
hover: {
|
|
1913
|
-
backgroundColor:
|
|
1823
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1914
1824
|
}
|
|
1915
1825
|
},
|
|
1916
1826
|
dark: {
|
|
1917
1827
|
default: {
|
|
1918
|
-
backgroundColor:
|
|
1828
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1919
1829
|
},
|
|
1920
1830
|
hover: {
|
|
1921
|
-
backgroundColor:
|
|
1831
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1922
1832
|
}
|
|
1923
1833
|
},
|
|
1924
1834
|
success: {
|
|
1925
1835
|
default: {
|
|
1926
|
-
backgroundColor:
|
|
1836
|
+
backgroundColor: deepPurpleColorPalette['green.1']
|
|
1927
1837
|
},
|
|
1928
1838
|
hover: {
|
|
1929
|
-
backgroundColor:
|
|
1839
|
+
backgroundColor: deepPurpleColorPalette['green.2']
|
|
1930
1840
|
}
|
|
1931
1841
|
},
|
|
1932
1842
|
warning: {
|
|
1933
1843
|
default: {
|
|
1934
|
-
backgroundColor:
|
|
1844
|
+
backgroundColor: deepPurpleColorPalette['yellow.1']
|
|
1935
1845
|
},
|
|
1936
1846
|
hover: {
|
|
1937
|
-
backgroundColor:
|
|
1847
|
+
backgroundColor: deepPurpleColorPalette['yellow.2']
|
|
1938
1848
|
}
|
|
1939
1849
|
},
|
|
1940
1850
|
padding: {
|
|
@@ -1974,14 +1884,6 @@ const icon = {
|
|
|
1974
1884
|
header4: createTypographyIconSizeConfig(18, 24),
|
|
1975
1885
|
// also known as xxsmall
|
|
1976
1886
|
header5: createTypographyIconSizeConfig(18, 18),
|
|
1977
|
-
'header-impact-xxl': createTypographyIconSizeConfig(56, 56),
|
|
1978
|
-
'header-impact-xl': createTypographyIconSizeConfig(48, 48),
|
|
1979
|
-
'header-impact-l': createTypographyIconSizeConfig(40, 40),
|
|
1980
|
-
'header-impact-m': createTypographyIconSizeConfig(32, 32),
|
|
1981
|
-
'header-impact-s': createTypographyIconSizeConfig(24, 24),
|
|
1982
|
-
'header-impact-xs': createTypographyIconSizeConfig(18, 18),
|
|
1983
|
-
'header-impact-xxs': createTypographyIconSizeConfig(16, 16),
|
|
1984
|
-
'header-impact-xxxs': createTypographyIconSizeConfig(14, 14),
|
|
1985
1887
|
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1986
1888
|
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1987
1889
|
body: createTypographyIconSizeConfig(16, 16),
|
|
@@ -2026,7 +1928,7 @@ const iconButton = {
|
|
|
2026
1928
|
pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
|
|
2027
1929
|
},
|
|
2028
1930
|
primary: {
|
|
2029
|
-
pressedBackgroundColor:
|
|
1931
|
+
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
2030
1932
|
},
|
|
2031
1933
|
'primary-plain': {
|
|
2032
1934
|
pressedBackgroundColor: colors.primaryLight,
|
|
@@ -2101,149 +2003,198 @@ const pageLoader = {
|
|
|
2101
2003
|
}
|
|
2102
2004
|
};
|
|
2103
2005
|
|
|
2104
|
-
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
2105
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
2106
|
-
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
2107
|
-
baseAndSmall: {
|
|
2108
|
-
fontSize: baseAndSmallFontSize,
|
|
2109
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
2110
|
-
},
|
|
2111
|
-
mediumAndWide: {
|
|
2112
|
-
fontSize: mediumAndWideFontSize,
|
|
2113
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
2114
|
-
}
|
|
2115
|
-
});
|
|
2116
|
-
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
2117
|
-
const config = {
|
|
2118
|
-
fontSize,
|
|
2119
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
2120
|
-
};
|
|
2121
|
-
return {
|
|
2122
|
-
baseAndSmall: config,
|
|
2123
|
-
mediumAndWide: config
|
|
2124
|
-
};
|
|
2125
|
-
};
|
|
2126
2006
|
const typography = {
|
|
2127
2007
|
colors: {
|
|
2128
2008
|
black: colors.black,
|
|
2129
2009
|
'black-anthracite': colors.blackAnthracite,
|
|
2130
|
-
'black-disabled':
|
|
2131
|
-
'black-light':
|
|
2010
|
+
'black-disabled': deepPurpleColorPalette['grey.3'],
|
|
2011
|
+
'black-light': deepPurpleColorPalette['grey.5'],
|
|
2132
2012
|
white: colors.white,
|
|
2133
2013
|
'white-light': colors.white,
|
|
2134
2014
|
primary: colors.primary,
|
|
2135
2015
|
'primary-light': colors.primaryLight,
|
|
2136
2016
|
accent: colors.accent,
|
|
2137
2017
|
success: colors.success,
|
|
2138
|
-
danger:
|
|
2018
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
2139
2019
|
warning: colors.warning
|
|
2140
2020
|
},
|
|
2141
2021
|
types: {
|
|
2142
2022
|
headings: {
|
|
2143
2023
|
fontFamily: {
|
|
2144
2024
|
native: {
|
|
2145
|
-
regular: '
|
|
2146
|
-
|
|
2025
|
+
regular: 'GTStandardRegular',
|
|
2026
|
+
semibold: 'GTStandardSemibold',
|
|
2027
|
+
bold: 'GTStandardBold'
|
|
2147
2028
|
},
|
|
2148
2029
|
web: {
|
|
2149
|
-
regular: '
|
|
2150
|
-
|
|
2030
|
+
regular: 'GTStandard',
|
|
2031
|
+
semibold: 'GTStandard',
|
|
2032
|
+
bold: 'GTStandard'
|
|
2151
2033
|
}
|
|
2152
2034
|
},
|
|
2153
2035
|
fontWeight: {
|
|
2154
|
-
regular:
|
|
2036
|
+
regular: 500,
|
|
2037
|
+
semibold: 600,
|
|
2155
2038
|
bold: 700
|
|
2156
2039
|
},
|
|
2157
2040
|
fontStyle: 'normal',
|
|
2158
2041
|
configs: {
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
'heading-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2042
|
+
'heading-xxl': {
|
|
2043
|
+
fontSize: 56,
|
|
2044
|
+
lineHeight: 64,
|
|
2045
|
+
allowedFontWeights: ['semibold']
|
|
2046
|
+
},
|
|
2047
|
+
'heading-xl': {
|
|
2048
|
+
fontSize: 48,
|
|
2049
|
+
lineHeight: 56,
|
|
2050
|
+
allowedFontWeights: ['semibold']
|
|
2051
|
+
},
|
|
2052
|
+
'heading-l': {
|
|
2053
|
+
fontSize: 40,
|
|
2054
|
+
lineHeight: 48,
|
|
2055
|
+
allowedFontWeights: ['semibold']
|
|
2056
|
+
},
|
|
2057
|
+
'heading-m': {
|
|
2058
|
+
fontSize: 28,
|
|
2059
|
+
lineHeight: 32,
|
|
2060
|
+
allowedFontWeights: ['semibold']
|
|
2061
|
+
},
|
|
2062
|
+
'heading-s': {
|
|
2063
|
+
fontSize: 18,
|
|
2064
|
+
lineHeight: 20,
|
|
2065
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2066
|
+
},
|
|
2067
|
+
'heading-xs': {
|
|
2068
|
+
fontSize: 16,
|
|
2069
|
+
lineHeight: 18,
|
|
2070
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2071
|
+
}
|
|
2173
2072
|
}
|
|
2174
2073
|
},
|
|
2175
|
-
|
|
2074
|
+
bodies: {
|
|
2176
2075
|
fontFamily: {
|
|
2177
2076
|
native: {
|
|
2178
|
-
regular: '
|
|
2179
|
-
bold: '
|
|
2077
|
+
regular: 'GTStandardRegular',
|
|
2078
|
+
bold: 'GTStandardBold'
|
|
2180
2079
|
},
|
|
2181
2080
|
web: {
|
|
2182
|
-
regular: '
|
|
2183
|
-
bold: '
|
|
2081
|
+
regular: 'GTStandard',
|
|
2082
|
+
bold: 'GTStandard'
|
|
2184
2083
|
}
|
|
2185
2084
|
},
|
|
2186
|
-
fontWeight:
|
|
2187
|
-
|
|
2085
|
+
fontWeight: {
|
|
2086
|
+
regular: 500,
|
|
2087
|
+
bold: 700
|
|
2088
|
+
},
|
|
2089
|
+
fontStyle: {
|
|
2090
|
+
regular: 'normal',
|
|
2091
|
+
bold: 'normal'
|
|
2092
|
+
},
|
|
2188
2093
|
configs: {
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
'
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
'
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
'
|
|
2205
|
-
|
|
2206
|
-
|
|
2094
|
+
'body-xl': {
|
|
2095
|
+
fontSize: 24,
|
|
2096
|
+
lineHeight: 32,
|
|
2097
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2098
|
+
},
|
|
2099
|
+
'body-l': {
|
|
2100
|
+
fontSize: 18,
|
|
2101
|
+
lineHeight: 26,
|
|
2102
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2103
|
+
},
|
|
2104
|
+
'body-m': {
|
|
2105
|
+
fontSize: 16,
|
|
2106
|
+
lineHeight: 24,
|
|
2107
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2108
|
+
},
|
|
2109
|
+
'body-s': {
|
|
2110
|
+
fontSize: 14,
|
|
2111
|
+
lineHeight: 20,
|
|
2112
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2113
|
+
},
|
|
2114
|
+
'body-xs': {
|
|
2115
|
+
fontSize: 12,
|
|
2116
|
+
lineHeight: 16,
|
|
2117
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2118
|
+
}
|
|
2207
2119
|
}
|
|
2208
2120
|
},
|
|
2209
|
-
|
|
2121
|
+
labels: {
|
|
2210
2122
|
fontFamily: {
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
bold: 'Moderat'
|
|
2123
|
+
native: {
|
|
2124
|
+
semibold: 'GTStandardSemibold'
|
|
2214
2125
|
},
|
|
2126
|
+
web: {
|
|
2127
|
+
semibold: 'GTStandard'
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
fontWeight: {
|
|
2131
|
+
semibold: 600
|
|
2132
|
+
},
|
|
2133
|
+
fontStyle: 'normal',
|
|
2134
|
+
configs: {
|
|
2135
|
+
'label-large': {
|
|
2136
|
+
fontSize: 16,
|
|
2137
|
+
lineHeight: 24,
|
|
2138
|
+
allowedFontWeights: ['semibold']
|
|
2139
|
+
},
|
|
2140
|
+
'label-medium': {
|
|
2141
|
+
fontSize: 14,
|
|
2142
|
+
lineHeight: 20,
|
|
2143
|
+
allowedFontWeights: ['semibold']
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
contentCaps: {
|
|
2148
|
+
fontFamily: {
|
|
2215
2149
|
native: {
|
|
2216
|
-
|
|
2217
|
-
|
|
2150
|
+
bold: 'GTStandardNarrowBold'
|
|
2151
|
+
},
|
|
2152
|
+
web: {
|
|
2153
|
+
bold: 'GTStandardNarrow'
|
|
2218
2154
|
}
|
|
2219
2155
|
},
|
|
2220
2156
|
fontWeight: {
|
|
2221
|
-
regular: 400,
|
|
2222
2157
|
bold: 700
|
|
2223
2158
|
},
|
|
2224
|
-
fontStyle:
|
|
2225
|
-
regular: 'normal',
|
|
2226
|
-
bold: 'normal'
|
|
2227
|
-
},
|
|
2159
|
+
fontStyle: 'normal',
|
|
2228
2160
|
configs: {
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
'
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
'
|
|
2240
|
-
|
|
2161
|
+
'content-caps-xxxl': {
|
|
2162
|
+
fontSize: 40,
|
|
2163
|
+
lineHeight: 40,
|
|
2164
|
+
allowedFontWeights: ['bold']
|
|
2165
|
+
},
|
|
2166
|
+
'content-caps-xxl': {
|
|
2167
|
+
fontSize: 32,
|
|
2168
|
+
lineHeight: 40,
|
|
2169
|
+
allowedFontWeights: ['bold']
|
|
2170
|
+
},
|
|
2171
|
+
'content-caps-xl': {
|
|
2172
|
+
fontSize: 24,
|
|
2173
|
+
lineHeight: 28,
|
|
2174
|
+
allowedFontWeights: ['bold']
|
|
2175
|
+
},
|
|
2176
|
+
'content-caps-l': {
|
|
2177
|
+
fontSize: 18,
|
|
2178
|
+
lineHeight: 20,
|
|
2179
|
+
allowedFontWeights: ['bold']
|
|
2180
|
+
},
|
|
2181
|
+
'content-caps-m': {
|
|
2182
|
+
fontSize: 16,
|
|
2183
|
+
lineHeight: 18,
|
|
2184
|
+
allowedFontWeights: ['bold']
|
|
2185
|
+
},
|
|
2186
|
+
'content-caps-s': {
|
|
2187
|
+
fontSize: 14,
|
|
2188
|
+
lineHeight: 16,
|
|
2189
|
+
allowedFontWeights: ['bold']
|
|
2190
|
+
},
|
|
2191
|
+
'content-caps-xs': {
|
|
2192
|
+
fontSize: 12,
|
|
2193
|
+
lineHeight: 14,
|
|
2194
|
+
allowedFontWeights: ['bold']
|
|
2195
|
+
}
|
|
2241
2196
|
}
|
|
2242
2197
|
}
|
|
2243
|
-
},
|
|
2244
|
-
link: {
|
|
2245
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
2246
|
-
disabledColor: colors.blackDisabled
|
|
2247
2198
|
}
|
|
2248
2199
|
};
|
|
2249
2200
|
|
|
@@ -2252,7 +2203,7 @@ const picker = {
|
|
|
2252
2203
|
ios: {
|
|
2253
2204
|
default: {
|
|
2254
2205
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
2255
|
-
...typography.types.bodies.configs
|
|
2206
|
+
...typography.types.bodies.configs['body-m'],
|
|
2256
2207
|
fontSize: 16,
|
|
2257
2208
|
color: typography.colors['black-light'],
|
|
2258
2209
|
// Default height is hard coded in module because of iOS constraint (https://github.com/react-native-picker/picker/blob/abd5f9076baa3ef2277ea7e711fa5823683c110e/js/PickerIOS.ios.js#L156)
|
|
@@ -2285,19 +2236,19 @@ const picker = {
|
|
|
2285
2236
|
backgroundColor: colors.transparent
|
|
2286
2237
|
},
|
|
2287
2238
|
hovered: {
|
|
2288
|
-
backgroundColor:
|
|
2239
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2289
2240
|
},
|
|
2290
2241
|
focused: {
|
|
2291
|
-
backgroundColor:
|
|
2242
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2292
2243
|
},
|
|
2293
2244
|
selected: {
|
|
2294
|
-
backgroundColor:
|
|
2245
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2295
2246
|
},
|
|
2296
2247
|
highlighted: {
|
|
2297
|
-
backgroundColor:
|
|
2248
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2298
2249
|
},
|
|
2299
2250
|
pressed: {
|
|
2300
|
-
backgroundColor:
|
|
2251
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
2301
2252
|
}
|
|
2302
2253
|
}
|
|
2303
2254
|
},
|
|
@@ -2381,8 +2332,8 @@ const shadows = {
|
|
|
2381
2332
|
}
|
|
2382
2333
|
};
|
|
2383
2334
|
|
|
2384
|
-
const skeletonBackgroundColor =
|
|
2385
|
-
const skeletonFlareColor =
|
|
2335
|
+
const skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
|
|
2336
|
+
const skeletonFlareColor = deepPurpleColorPalette['beige.3'];
|
|
2386
2337
|
const skeleton = {
|
|
2387
2338
|
backgroundColor: skeletonBackgroundColor,
|
|
2388
2339
|
flareColor: skeletonFlareColor,
|
|
@@ -2405,20 +2356,6 @@ const skeleton = {
|
|
|
2405
2356
|
|
|
2406
2357
|
const tag = {
|
|
2407
2358
|
borderRadius: 16,
|
|
2408
|
-
variant: {
|
|
2409
|
-
contrast: {
|
|
2410
|
-
borderWidth: 0
|
|
2411
|
-
},
|
|
2412
|
-
fill: {
|
|
2413
|
-
borderWidth: 0
|
|
2414
|
-
},
|
|
2415
|
-
outline: {
|
|
2416
|
-
borderWidth: 1
|
|
2417
|
-
},
|
|
2418
|
-
subtle: {
|
|
2419
|
-
borderWidth: 0
|
|
2420
|
-
}
|
|
2421
|
-
},
|
|
2422
2359
|
icon: {
|
|
2423
2360
|
small: 16,
|
|
2424
2361
|
medium: 16,
|
|
@@ -2494,14 +2431,14 @@ const verticalSteps = {
|
|
|
2494
2431
|
},
|
|
2495
2432
|
done: {
|
|
2496
2433
|
icon: {
|
|
2497
|
-
backgroundColor:
|
|
2498
|
-
textColor: colors.
|
|
2434
|
+
backgroundColor: colors.primary,
|
|
2435
|
+
textColor: colors.white
|
|
2499
2436
|
}
|
|
2500
2437
|
},
|
|
2501
2438
|
default: {
|
|
2502
2439
|
icon: {
|
|
2503
2440
|
backgroundColor: colors.disabled,
|
|
2504
|
-
textColor:
|
|
2441
|
+
textColor: deepPurpleColorPalette['grey.3']
|
|
2505
2442
|
}
|
|
2506
2443
|
}
|
|
2507
2444
|
};
|
|
@@ -2535,7 +2472,7 @@ const theme = {
|
|
|
2535
2472
|
getSpacing: multiplier => spacing * multiplier,
|
|
2536
2473
|
colors,
|
|
2537
2474
|
palettes: {
|
|
2538
|
-
|
|
2475
|
+
deepPurple: deepPurpleColorPalette
|
|
2539
2476
|
},
|
|
2540
2477
|
avatar,
|
|
2541
2478
|
breakpoints,
|
|
@@ -2952,11 +2889,13 @@ function getTypographyColorValue(colorName) {
|
|
|
2952
2889
|
return colorName;
|
|
2953
2890
|
}
|
|
2954
2891
|
|
|
2955
|
-
const isTypeHeadings = type => type.startsWith('
|
|
2956
|
-
const
|
|
2892
|
+
const isTypeHeadings = type => type.startsWith('heading');
|
|
2893
|
+
const isTypeLabels = type => type.startsWith('label');
|
|
2894
|
+
const isTypeContentCaps = type => type.startsWith('content-caps');
|
|
2957
2895
|
const getTypographyFamily = type => {
|
|
2958
|
-
if (isTypeHeadingsImpact(type)) return 'headings-impact';
|
|
2959
2896
|
if (isTypeHeadings(type)) return 'headings';
|
|
2897
|
+
if (isTypeLabels(type)) return 'labels';
|
|
2898
|
+
if (isTypeContentCaps(type)) return 'contentCaps';
|
|
2960
2899
|
return 'bodies';
|
|
2961
2900
|
};
|
|
2962
2901
|
const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) => {
|
|
@@ -2978,9 +2917,6 @@ const TypographyDefaultColorContext = /*#__PURE__*/React.createContext(undefined
|
|
|
2978
2917
|
function useTypographyDefaultColor() {
|
|
2979
2918
|
return React.useContext(TypographyDefaultColorContext);
|
|
2980
2919
|
}
|
|
2981
|
-
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
2982
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
2983
|
-
}
|
|
2984
2920
|
|
|
2985
2921
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
2986
2922
|
// & {
|
|
@@ -2997,11 +2933,88 @@ function createNativeBaseFontSize(type) {
|
|
|
2997
2933
|
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
2998
2934
|
const value = typeWithMediumForced[typeName];
|
|
2999
2935
|
if (value) {
|
|
3000
|
-
fontSizeForNativeBase[typeName] =
|
|
2936
|
+
fontSizeForNativeBase[typeName] = value;
|
|
3001
2937
|
}
|
|
3002
2938
|
});
|
|
3003
2939
|
return fontSizeForNativeBase;
|
|
3004
2940
|
}
|
|
2941
|
+
function ThrowErrorIfInvalidVariant(variant, value, fontWeight) {
|
|
2942
|
+
if (process.env.NODE_ENV !== 'production' && variant && variant !== fontWeight) {
|
|
2943
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}" only "${fontWeight}" is allowed.`);
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
function getTypographyWeights(typographyFamily) {
|
|
2947
|
+
const boldTypoTypes = new Set();
|
|
2948
|
+
const semiboldTypoTypes = new Set();
|
|
2949
|
+
const regularTypoTypes = new Set();
|
|
2950
|
+
const typographyConfig = typography.types[typographyFamily].configs;
|
|
2951
|
+
Object.keys(typographyConfig).forEach(typographyType => {
|
|
2952
|
+
const {
|
|
2953
|
+
allowedFontWeights
|
|
2954
|
+
} = typographyConfig[typographyType];
|
|
2955
|
+
if (allowedFontWeights.includes('bold')) {
|
|
2956
|
+
boldTypoTypes.add(typographyType);
|
|
2957
|
+
}
|
|
2958
|
+
if (allowedFontWeights.includes('semibold')) {
|
|
2959
|
+
semiboldTypoTypes.add(typographyType);
|
|
2960
|
+
}
|
|
2961
|
+
if (allowedFontWeights.includes('regular')) {
|
|
2962
|
+
regularTypoTypes.add(typographyType);
|
|
2963
|
+
}
|
|
2964
|
+
});
|
|
2965
|
+
return {
|
|
2966
|
+
boldTypoTypes,
|
|
2967
|
+
semiboldTypoTypes,
|
|
2968
|
+
regularTypoTypes
|
|
2969
|
+
};
|
|
2970
|
+
}
|
|
2971
|
+
function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
2972
|
+
const {
|
|
2973
|
+
boldTypoTypes,
|
|
2974
|
+
semiboldTypoTypes,
|
|
2975
|
+
regularTypoTypes
|
|
2976
|
+
} = getTypographyWeights(typographyFamily || 'bodies');
|
|
2977
|
+
const webFontWeight = {};
|
|
2978
|
+
const nativeFontFamily = {};
|
|
2979
|
+
const breakpoints = [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE];
|
|
2980
|
+
breakpoints.forEach(typeName => {
|
|
2981
|
+
const value = type[typeName];
|
|
2982
|
+
if (!value) return;
|
|
2983
|
+
const inBold = boldTypoTypes.has(value);
|
|
2984
|
+
const inSemi = semiboldTypoTypes.has(value);
|
|
2985
|
+
const inRegular = regularTypoTypes.has(value);
|
|
2986
|
+
const presenceCount = [inBold, inSemi, inRegular].filter(Boolean).length;
|
|
2987
|
+
let resolvedVariant;
|
|
2988
|
+
if (presenceCount > 1) {
|
|
2989
|
+
// if present in multiple weight
|
|
2990
|
+
|
|
2991
|
+
if (process.env.NODE_ENV !== 'production' && variant && !(variant === 'bold' && inBold || variant === 'semibold' && inSemi || variant === 'regular' && inRegular)) {
|
|
2992
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}". Only ${inBold ? '"bold"' : ' '}${inSemi ? '"semibold"' : ' '}${inRegular ? '"regular"' : ' '}" is allowed.`);
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
// always fallback on regular if no variant specified
|
|
2996
|
+
resolvedVariant = variant || 'regular';
|
|
2997
|
+
} else if (inBold) {
|
|
2998
|
+
// bold
|
|
2999
|
+
ThrowErrorIfInvalidVariant(variant, value, 'bold');
|
|
3000
|
+
resolvedVariant = 'bold';
|
|
3001
|
+
} else if (inSemi) {
|
|
3002
|
+
// semibold
|
|
3003
|
+
ThrowErrorIfInvalidVariant(variant, value, 'semibold');
|
|
3004
|
+
resolvedVariant = 'semibold';
|
|
3005
|
+
} else {
|
|
3006
|
+
// regular
|
|
3007
|
+
ThrowErrorIfInvalidVariant(variant, value, 'regular');
|
|
3008
|
+
resolvedVariant = 'regular';
|
|
3009
|
+
}
|
|
3010
|
+
webFontWeight[typeName] = resolvedVariant;
|
|
3011
|
+
nativeFontFamily[typeName] = `${typographyFamily}.${resolvedVariant}`;
|
|
3012
|
+
});
|
|
3013
|
+
return {
|
|
3014
|
+
webFontWeight,
|
|
3015
|
+
nativeFontFamily
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3005
3018
|
function Typography({
|
|
3006
3019
|
accessibilityRole,
|
|
3007
3020
|
base: legacyBase,
|
|
@@ -3018,21 +3031,26 @@ function Typography({
|
|
|
3018
3031
|
},
|
|
3019
3032
|
variant,
|
|
3020
3033
|
color,
|
|
3034
|
+
underline,
|
|
3021
3035
|
...otherProps
|
|
3022
3036
|
}) {
|
|
3023
3037
|
const sx = nativeBase.useSx();
|
|
3024
3038
|
const typographyFamilyInContext = React.useContext(TypographyFamilyContext);
|
|
3025
3039
|
const defaultColor = useTypographyDefaultColor();
|
|
3026
3040
|
const hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3027
|
-
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body';
|
|
3041
|
+
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body-m';
|
|
3028
3042
|
const typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3029
|
-
|
|
3030
|
-
// force bold for headings, default to regular for bodies
|
|
3031
|
-
const nonNullableVariant = variant ?? (typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular');
|
|
3032
3043
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
3033
3044
|
...type,
|
|
3034
3045
|
base: baseOrDefaultToBody
|
|
3035
3046
|
});
|
|
3047
|
+
const {
|
|
3048
|
+
webFontWeight,
|
|
3049
|
+
nativeFontFamily
|
|
3050
|
+
} = getUniversalFontWeight({
|
|
3051
|
+
...type,
|
|
3052
|
+
base: baseOrDefaultToBody
|
|
3053
|
+
}, variant, typographyFamily);
|
|
3036
3054
|
const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
3037
3055
|
const currentColorValue = getTypographyColorValue(currentColor);
|
|
3038
3056
|
const colorStyles = sx({
|
|
@@ -3050,10 +3068,17 @@ function Typography({
|
|
|
3050
3068
|
accessibilityRole: accessibilityRole || undefined,
|
|
3051
3069
|
fontSize: fontSizeForNativeBase,
|
|
3052
3070
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
3053
|
-
fontWeight:
|
|
3054
|
-
fontFamily:
|
|
3071
|
+
fontWeight: webFontWeight,
|
|
3072
|
+
fontFamily: nativeFontFamily,
|
|
3073
|
+
borderBottomWidth: underline ? 1 : undefined,
|
|
3074
|
+
borderBottomColor: underline ? currentColorValue : undefined,
|
|
3075
|
+
textTransform: typographyFamily === 'contentCaps' ? 'uppercase' : undefined,
|
|
3055
3076
|
...colorStyles,
|
|
3056
|
-
...otherProps
|
|
3077
|
+
...otherProps,
|
|
3078
|
+
// The property text-underline-offset is not on native.
|
|
3079
|
+
// To add an underline with an offset, we use a custom borderBottomWidth and color.
|
|
3080
|
+
// and we set underline to undefined to avoid a double underline
|
|
3081
|
+
underline: undefined
|
|
3057
3082
|
});
|
|
3058
3083
|
const content = baseOrDefaultToBody ? /*#__PURE__*/jsxRuntime.jsx(TypographyFamilyContext.Provider, {
|
|
3059
3084
|
value: typographyFamily,
|
|
@@ -3103,17 +3128,6 @@ Typography.Header4 = createHeading(4);
|
|
|
3103
3128
|
Typography.Header5 = createHeading(5);
|
|
3104
3129
|
Typography.Header6 = createHeading(6);
|
|
3105
3130
|
|
|
3106
|
-
/** @deprecated use Typography.Header1 */
|
|
3107
|
-
Typography.h1 = createHeading(1, 'header1');
|
|
3108
|
-
/** @deprecated use Typography.Header2 */
|
|
3109
|
-
Typography.h2 = createHeading(2, 'header2');
|
|
3110
|
-
/** @deprecated use Typography.Header3 */
|
|
3111
|
-
Typography.h3 = createHeading(3, 'header3');
|
|
3112
|
-
/** @deprecated use Typography.Header4 */
|
|
3113
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
3114
|
-
/** @deprecated use Typography.Header6 */
|
|
3115
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
3116
|
-
|
|
3117
3131
|
function ButtonBadge({
|
|
3118
3132
|
withBadge,
|
|
3119
3133
|
badgeCount
|
|
@@ -3311,7 +3325,7 @@ function ButtonContentChildren({
|
|
|
3311
3325
|
textAlign: "center",
|
|
3312
3326
|
_android: sharedNativeStyle,
|
|
3313
3327
|
_ios: sharedNativeStyle,
|
|
3314
|
-
base: "body",
|
|
3328
|
+
base: "body-m",
|
|
3315
3329
|
variant: "bold",
|
|
3316
3330
|
color: color,
|
|
3317
3331
|
children: children
|
|
@@ -3837,7 +3851,7 @@ function AvatarContent({
|
|
|
3837
3851
|
};
|
|
3838
3852
|
if (firstname && lastname) {
|
|
3839
3853
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
3840
|
-
base: sizeVariant === 'large' ? 'body-
|
|
3854
|
+
base: sizeVariant === 'large' ? 'body-l' : 'body-s',
|
|
3841
3855
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3842
3856
|
color: getFontColor(),
|
|
3843
3857
|
children: getInitials(firstname, lastname)
|
|
@@ -5109,7 +5123,7 @@ const InputText = /*#__PURE__*/React.forwardRef(({
|
|
|
5109
5123
|
}, ref) => {
|
|
5110
5124
|
const theme = useTheme();
|
|
5111
5125
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5112
|
-
base: 'body'
|
|
5126
|
+
base: 'body-m'
|
|
5113
5127
|
});
|
|
5114
5128
|
const shouldHandleSingleLineOnIOS = reactNative.Platform.OS === 'ios' && !multiline;
|
|
5115
5129
|
return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
@@ -6160,7 +6174,7 @@ function ModalTitle({
|
|
|
6160
6174
|
}) {
|
|
6161
6175
|
return /*#__PURE__*/jsxRuntime.jsx(CardModal.Header, {
|
|
6162
6176
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6163
|
-
base: "body",
|
|
6177
|
+
base: "body-m",
|
|
6164
6178
|
variant: "bold",
|
|
6165
6179
|
children: children
|
|
6166
6180
|
})
|
|
@@ -6474,7 +6488,7 @@ function BottomSheetActionsItem({
|
|
|
6474
6488
|
withPadding: true,
|
|
6475
6489
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6476
6490
|
variant: "bold",
|
|
6477
|
-
base: "body",
|
|
6491
|
+
base: "body-m",
|
|
6478
6492
|
children: title
|
|
6479
6493
|
})
|
|
6480
6494
|
})
|
|
@@ -7034,7 +7048,7 @@ function InputFeedback({
|
|
|
7034
7048
|
children
|
|
7035
7049
|
}) {
|
|
7036
7050
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7037
|
-
base: "body-
|
|
7051
|
+
base: "body-s",
|
|
7038
7052
|
color: getColorFromState(state),
|
|
7039
7053
|
testID: testID,
|
|
7040
7054
|
children: children
|
|
@@ -7195,7 +7209,7 @@ function InputTag({
|
|
|
7195
7209
|
color: "black"
|
|
7196
7210
|
})
|
|
7197
7211
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7198
|
-
base: "body-
|
|
7212
|
+
base: "body-s",
|
|
7199
7213
|
color: "black",
|
|
7200
7214
|
children: children
|
|
7201
7215
|
})]
|
|
@@ -7209,7 +7223,7 @@ function Label({
|
|
|
7209
7223
|
}) {
|
|
7210
7224
|
const isWeb = reactNative.Platform.OS === 'web';
|
|
7211
7225
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7212
|
-
base: "body",
|
|
7226
|
+
base: "body-m",
|
|
7213
7227
|
id: isWeb ? undefined : id,
|
|
7214
7228
|
children: isWeb ? /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
7215
7229
|
id: id,
|
|
@@ -7220,7 +7234,8 @@ function Label({
|
|
|
7220
7234
|
}
|
|
7221
7235
|
|
|
7222
7236
|
function InnerCircle({
|
|
7223
|
-
isChecked
|
|
7237
|
+
isChecked,
|
|
7238
|
+
isDisabled
|
|
7224
7239
|
}) {
|
|
7225
7240
|
const theme = useTheme();
|
|
7226
7241
|
const sharedTransform = [{
|
|
@@ -7230,7 +7245,7 @@ function InnerCircle({
|
|
|
7230
7245
|
width: "kitt.forms.radio.innerCircle.size",
|
|
7231
7246
|
height: "kitt.forms.radio.innerCircle.size",
|
|
7232
7247
|
borderRadius: "kitt.forms.radio.innerCircle.borderRadius",
|
|
7233
|
-
backgroundColor:
|
|
7248
|
+
backgroundColor: isDisabled ? 'kitt.forms.radio.disabled.innerBackgroundColor' : 'kitt.forms.radio.innerCircle.backgroundColor',
|
|
7234
7249
|
_web: {
|
|
7235
7250
|
style: {
|
|
7236
7251
|
transform: `scale(${isChecked ? 1 : 0}))`,
|
|
@@ -7365,12 +7380,13 @@ function Radio({
|
|
|
7365
7380
|
isFocused: isFocused,
|
|
7366
7381
|
isPressed: isPressed,
|
|
7367
7382
|
children: /*#__PURE__*/jsxRuntime.jsx(InnerCircle, {
|
|
7368
|
-
isChecked: checked
|
|
7383
|
+
isChecked: checked,
|
|
7384
|
+
isDisabled: disabled
|
|
7369
7385
|
})
|
|
7370
7386
|
}), children ? /*#__PURE__*/jsxRuntime.jsx(Typography.SetDefaultColor, {
|
|
7371
7387
|
value: disabled ? 'black-light' : 'black',
|
|
7372
7388
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7373
|
-
base: "body",
|
|
7389
|
+
base: "body-m",
|
|
7374
7390
|
children: children
|
|
7375
7391
|
})
|
|
7376
7392
|
}) : null]
|
|
@@ -7492,7 +7508,7 @@ function getCurrentTextColor({
|
|
|
7492
7508
|
isHovered,
|
|
7493
7509
|
isFocused
|
|
7494
7510
|
}) {
|
|
7495
|
-
if (isDisabled) return '
|
|
7511
|
+
if (isDisabled) return 'kitt.forms.radioButtonGroup.font.disabled.color';
|
|
7496
7512
|
if (isSelected) return 'white';
|
|
7497
7513
|
if (isPressed) return 'white';
|
|
7498
7514
|
if (isFocused) return 'white';
|
|
@@ -7664,7 +7680,7 @@ const TextArea = /*#__PURE__*/React.forwardRef(({
|
|
|
7664
7680
|
marginTop: "kitt.1",
|
|
7665
7681
|
children: [helper ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7666
7682
|
base: "body-s",
|
|
7667
|
-
color:
|
|
7683
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7668
7684
|
children: helper
|
|
7669
7685
|
}) : null, shouldDisplayLimit ? /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
7670
7686
|
style: limitContainerAnimatedStyle,
|
|
@@ -7674,14 +7690,14 @@ const TextArea = /*#__PURE__*/React.forwardRef(({
|
|
|
7674
7690
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
7675
7691
|
base: "body-xs",
|
|
7676
7692
|
variant: "bold",
|
|
7677
|
-
color:
|
|
7693
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7678
7694
|
children: [props.value?.length || 0, "/", limit]
|
|
7679
7695
|
}), /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
7680
7696
|
style: checkIconAnimatedStyle,
|
|
7681
7697
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
7682
7698
|
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.CheckCircleFillIcon, {}),
|
|
7683
7699
|
size: 13,
|
|
7684
|
-
color:
|
|
7700
|
+
color: deepPurpleColorPalette['grey.5']
|
|
7685
7701
|
})
|
|
7686
7702
|
})]
|
|
7687
7703
|
})
|
|
@@ -7789,7 +7805,7 @@ function ToggleAnimated({
|
|
|
7789
7805
|
}
|
|
7790
7806
|
|
|
7791
7807
|
const getLabelTypographyType = size => {
|
|
7792
|
-
return size === 'medium' ? 'body' : 'body-
|
|
7808
|
+
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7793
7809
|
};
|
|
7794
7810
|
function Toggle({
|
|
7795
7811
|
isDisabled = false,
|
|
@@ -8356,7 +8372,7 @@ function Highlight({
|
|
|
8356
8372
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8357
8373
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8358
8374
|
variant: "bold",
|
|
8359
|
-
base: "body",
|
|
8375
|
+
base: "body-m",
|
|
8360
8376
|
ellipsizeMode: "clip",
|
|
8361
8377
|
children: title
|
|
8362
8378
|
})
|
|
@@ -8392,7 +8408,7 @@ function Highlight({
|
|
|
8392
8408
|
width: "100%",
|
|
8393
8409
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8394
8410
|
variant: "bold",
|
|
8395
|
-
base: "body",
|
|
8411
|
+
base: "body-m",
|
|
8396
8412
|
ellipsizeMode: "clip",
|
|
8397
8413
|
children: title
|
|
8398
8414
|
})
|
|
@@ -8695,8 +8711,8 @@ function InfoCard({
|
|
|
8695
8711
|
flexShrink: 1,
|
|
8696
8712
|
flexBasis: "auto",
|
|
8697
8713
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8698
|
-
base: "body-
|
|
8699
|
-
medium: "body",
|
|
8714
|
+
base: "body-s",
|
|
8715
|
+
medium: "body-m",
|
|
8700
8716
|
style: {
|
|
8701
8717
|
userSelect: 'none'
|
|
8702
8718
|
},
|
|
@@ -9022,7 +9038,7 @@ function BaseMessage({
|
|
|
9022
9038
|
flexGrow: 1,
|
|
9023
9039
|
flexShrink: 1,
|
|
9024
9040
|
textAlign: centeredText ? 'center' : 'left',
|
|
9025
|
-
base: "body",
|
|
9041
|
+
base: "body-m",
|
|
9026
9042
|
color: color,
|
|
9027
9043
|
children: children
|
|
9028
9044
|
})]
|
|
@@ -9305,6 +9321,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9305
9321
|
item: {
|
|
9306
9322
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
9307
9323
|
backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
|
|
9324
|
+
},
|
|
9325
|
+
font: {
|
|
9326
|
+
disabled: {
|
|
9327
|
+
color: theme.forms.radioButtonGroup.item.font.color.disabled
|
|
9328
|
+
}
|
|
9308
9329
|
}
|
|
9309
9330
|
},
|
|
9310
9331
|
checkbox: {
|
|
@@ -9619,7 +9640,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9619
9640
|
},
|
|
9620
9641
|
disabled: {
|
|
9621
9642
|
backgroundColor: theme.forms.radio.disabled.backgroundColor,
|
|
9622
|
-
borderColor: theme.forms.radio.disabled.borderColor
|
|
9643
|
+
borderColor: theme.forms.radio.disabled.borderColor,
|
|
9644
|
+
innerBackgroundColor: theme.forms.radio.disabled.innerBackgroundColor
|
|
9623
9645
|
},
|
|
9624
9646
|
default: {
|
|
9625
9647
|
backgroundColor: theme.forms.radio.unchecked.backgroundColor,
|
|
@@ -10174,22 +10196,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10174
10196
|
},
|
|
10175
10197
|
listItem: {
|
|
10176
10198
|
borderWidth: theme.listItem.borderWidth
|
|
10177
|
-
},
|
|
10178
|
-
tag: {
|
|
10179
|
-
variant: {
|
|
10180
|
-
subtle: {
|
|
10181
|
-
borderWidth: theme.tag.variant.subtle.borderWidth
|
|
10182
|
-
},
|
|
10183
|
-
fill: {
|
|
10184
|
-
borderWidth: theme.tag.variant.fill.borderWidth
|
|
10185
|
-
},
|
|
10186
|
-
outline: {
|
|
10187
|
-
borderWidth: theme.tag.variant.outline.borderWidth
|
|
10188
|
-
},
|
|
10189
|
-
contrast: {
|
|
10190
|
-
borderWidth: theme.tag.variant.contrast.borderWidth
|
|
10191
|
-
}
|
|
10192
|
-
}
|
|
10193
10199
|
}
|
|
10194
10200
|
},
|
|
10195
10201
|
app: appTheme?.borderWidths
|
|
@@ -10816,196 +10822,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10816
10822
|
...appBreakpoints
|
|
10817
10823
|
},
|
|
10818
10824
|
fontSizes: {
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
/* latest */
|
|
10840
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize}px`,
|
|
10841
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize}px`,
|
|
10842
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize}px`,
|
|
10843
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize}px`,
|
|
10844
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize}px`,
|
|
10845
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize}px`,
|
|
10846
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize}px`,
|
|
10847
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize}px`,
|
|
10848
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize}px`,
|
|
10849
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize}px`,
|
|
10850
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize}px`,
|
|
10851
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize}px`,
|
|
10852
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize}px`,
|
|
10853
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize}px`,
|
|
10854
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize}px`,
|
|
10855
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize}px`,
|
|
10856
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize}px`,
|
|
10857
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize}px`,
|
|
10858
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize}px`,
|
|
10859
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize}px`
|
|
10860
|
-
},
|
|
10861
|
-
mediumAndWide: {
|
|
10862
|
-
/* legacy */
|
|
10863
|
-
header1: `${theme.typography.types.headings.configs.header1.mediumAndWide.fontSize}px`,
|
|
10864
|
-
header2: `${theme.typography.types.headings.configs.header2.mediumAndWide.fontSize}px`,
|
|
10865
|
-
header3: `${theme.typography.types.headings.configs.header3.mediumAndWide.fontSize}px`,
|
|
10866
|
-
header4: `${theme.typography.types.headings.configs.header4.mediumAndWide.fontSize}px`,
|
|
10867
|
-
header5: `${theme.typography.types.headings.configs.header5.mediumAndWide.fontSize}px`,
|
|
10868
|
-
'body-large': `${theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize}px`,
|
|
10869
|
-
'body-medium': `${theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize}px`,
|
|
10870
|
-
body: `${theme.typography.types.bodies.configs.body.mediumAndWide.fontSize}px`,
|
|
10871
|
-
'body-small': `${theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize}px`,
|
|
10872
|
-
'body-xsmall': `${theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize}px`,
|
|
10873
|
-
'header-impact-xxl': `${theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10874
|
-
'header-impact-xl': `${theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10875
|
-
'header-impact-l': `${theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize}px`,
|
|
10876
|
-
'header-impact-m': `${theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize}px`,
|
|
10877
|
-
'header-impact-s': `${theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize}px`,
|
|
10878
|
-
'header-impact-xs': `${theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10879
|
-
'header-impact-xxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10880
|
-
'header-impact-xxxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10881
|
-
/* latest */
|
|
10882
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10883
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10884
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize}px`,
|
|
10885
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize}px`,
|
|
10886
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize}px`,
|
|
10887
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10888
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10889
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10890
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize}px`,
|
|
10891
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize}px`,
|
|
10892
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize}px`,
|
|
10893
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize}px`,
|
|
10894
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize}px`,
|
|
10895
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize}px`,
|
|
10896
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize}px`,
|
|
10897
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize}px`,
|
|
10898
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize}px`,
|
|
10899
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize}px`,
|
|
10900
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize}px`,
|
|
10901
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize}px`
|
|
10902
|
-
}
|
|
10825
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].fontSize}px`,
|
|
10826
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].fontSize}px`,
|
|
10827
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].fontSize}px`,
|
|
10828
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10829
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10830
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10831
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10832
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10833
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
10834
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].fontSize}px`,
|
|
10835
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].fontSize}px`,
|
|
10836
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].fontSize}px`,
|
|
10837
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].fontSize}px`,
|
|
10838
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize}px`,
|
|
10839
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize}px`,
|
|
10840
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize}px`,
|
|
10841
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].fontSize}px`,
|
|
10842
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].fontSize}px`,
|
|
10843
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].fontSize}px`,
|
|
10844
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].fontSize}px`
|
|
10903
10845
|
},
|
|
10904
10846
|
lineHeights: {
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
/* latest */
|
|
10926
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight}px`,
|
|
10927
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight}px`,
|
|
10928
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight}px`,
|
|
10929
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight}px`,
|
|
10930
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight}px`,
|
|
10931
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight}px`,
|
|
10932
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight}px`,
|
|
10933
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight}px`,
|
|
10934
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight}px`,
|
|
10935
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight}px`,
|
|
10936
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight}px`,
|
|
10937
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight}px`,
|
|
10938
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight}px`,
|
|
10939
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight}px`,
|
|
10940
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight}px`,
|
|
10941
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight}px`,
|
|
10942
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight}px`,
|
|
10943
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight}px`,
|
|
10944
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight}px`,
|
|
10945
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight}px`
|
|
10946
|
-
},
|
|
10947
|
-
mediumAndWide: {
|
|
10948
|
-
/* legacy */
|
|
10949
|
-
header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
|
|
10950
|
-
header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
|
|
10951
|
-
header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
|
|
10952
|
-
header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
|
|
10953
|
-
header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
|
|
10954
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
10955
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
10956
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
10957
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
10958
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
|
|
10959
|
-
'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
|
|
10960
|
-
'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
|
|
10961
|
-
'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
|
|
10962
|
-
'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
|
|
10963
|
-
'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
|
|
10964
|
-
'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
|
|
10965
|
-
'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
|
|
10966
|
-
'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
|
|
10967
|
-
/* latest */
|
|
10968
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight}px`,
|
|
10969
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight}px`,
|
|
10970
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight}px`,
|
|
10971
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight}px`,
|
|
10972
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight}px`,
|
|
10973
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight}px`,
|
|
10974
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight}px`,
|
|
10975
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight}px`,
|
|
10976
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight}px`,
|
|
10977
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight}px`,
|
|
10978
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight}px`,
|
|
10979
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight}px`,
|
|
10980
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight}px`,
|
|
10981
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight}px`,
|
|
10982
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight}px`,
|
|
10983
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight}px`,
|
|
10984
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight}px`,
|
|
10985
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight}px`,
|
|
10986
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight}px`,
|
|
10987
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight}px`
|
|
10988
|
-
}
|
|
10847
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].lineHeight}px`,
|
|
10848
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].lineHeight}px`,
|
|
10849
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].lineHeight}px`,
|
|
10850
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10851
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10852
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10853
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10854
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10855
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
10856
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].lineHeight}px`,
|
|
10857
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].lineHeight}px`,
|
|
10858
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].lineHeight}px`,
|
|
10859
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].lineHeight}px`,
|
|
10860
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight}px`,
|
|
10861
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight}px`,
|
|
10862
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight}px`,
|
|
10863
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].lineHeight}px`,
|
|
10864
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].lineHeight}px`,
|
|
10865
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].lineHeight}px`,
|
|
10866
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].lineHeight}px`
|
|
10989
10867
|
},
|
|
10990
10868
|
fontWeights: {
|
|
10991
10869
|
headings: {
|
|
10992
10870
|
regular: theme.typography.types.headings.fontWeight.regular,
|
|
10993
10871
|
bold: theme.typography.types.headings.fontWeight.bold
|
|
10994
10872
|
},
|
|
10995
|
-
'headings-impact': {
|
|
10996
|
-
regular: theme.typography.types['headings-impact'].fontWeight,
|
|
10997
|
-
bold: theme.typography.types['headings-impact'].fontWeight
|
|
10998
|
-
},
|
|
10999
10873
|
bodies: {
|
|
11000
10874
|
regular: theme.typography.types.bodies.fontWeight.regular,
|
|
11001
10875
|
// TODO [https://ornikar.atlassian.net/browse/CME-767] This quick fix should be replaced by a 700 in every case, and native font weights should be handled by expo-fonts
|
|
11002
10876
|
bold: reactNative.Platform.OS === 'android' ? 400 : theme.typography.types.bodies.fontWeight.bold
|
|
10877
|
+
},
|
|
10878
|
+
labels: {
|
|
10879
|
+
semibold: theme.typography.types.labels.fontWeight.semibold
|
|
10880
|
+
},
|
|
10881
|
+
contentCaps: {
|
|
10882
|
+
bold: theme.typography.types.contentCaps.fontWeight.bold
|
|
11003
10883
|
}
|
|
11004
10884
|
},
|
|
11005
10885
|
fonts: {
|
|
11006
10886
|
headings: reactNative.Platform.OS === 'web' ? theme.typography.types.headings.fontFamily.web : theme.typography.types.headings.fontFamily.native,
|
|
11007
|
-
|
|
11008
|
-
|
|
10887
|
+
bodies: reactNative.Platform.OS === 'web' ? theme.typography.types.bodies.fontFamily.web : theme.typography.types.bodies.fontFamily.native,
|
|
10888
|
+
labels: reactNative.Platform.OS === 'web' ? theme.typography.types.labels.fontFamily.web : theme.typography.types.labels.fontFamily.native,
|
|
10889
|
+
contentCaps: reactNative.Platform.OS === 'web' ? theme.typography.types.contentCaps.fontFamily.web : theme.typography.types.contentCaps.fontFamily.native
|
|
11009
10890
|
},
|
|
11010
10891
|
shadows: {
|
|
11011
10892
|
kitt: {
|
|
@@ -11500,7 +11381,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11500
11381
|
_disabled: {
|
|
11501
11382
|
placeholderTextColor: theme.forms.input.states.disabled.color,
|
|
11502
11383
|
color: theme.forms.input.states.disabled.color,
|
|
11503
|
-
borderColor: theme.forms.input.states.disabled.
|
|
11384
|
+
borderColor: theme.forms.input.states.disabled.backgroundColor,
|
|
11504
11385
|
bg: theme.forms.input.states.disabled.backgroundColor
|
|
11505
11386
|
}
|
|
11506
11387
|
}
|
|
@@ -11530,7 +11411,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11530
11411
|
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
11531
11412
|
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
11532
11413
|
fontSize: undefined,
|
|
11533
|
-
lineHeight: theme.typography.types.bodies.configs
|
|
11414
|
+
lineHeight: theme.typography.types.bodies.configs['body-m'].lineHeight
|
|
11534
11415
|
}
|
|
11535
11416
|
}
|
|
11536
11417
|
}
|
|
@@ -11944,7 +11825,7 @@ function PickerOption({
|
|
|
11944
11825
|
}) {
|
|
11945
11826
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
11946
11827
|
testID: testID,
|
|
11947
|
-
base: "body",
|
|
11828
|
+
base: "body-m",
|
|
11948
11829
|
children: typeof children === 'function' ? children({
|
|
11949
11830
|
isHighlighted,
|
|
11950
11831
|
isSelected
|
|
@@ -12084,7 +11965,7 @@ function Picker({
|
|
|
12084
11965
|
onPress: handleClose
|
|
12085
11966
|
}),
|
|
12086
11967
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12087
|
-
base: "body",
|
|
11968
|
+
base: "body-m",
|
|
12088
11969
|
variant: "bold",
|
|
12089
11970
|
children: title
|
|
12090
11971
|
})
|
|
@@ -12175,8 +12056,9 @@ function SegmentedProgressBar({
|
|
|
12175
12056
|
colorVariant = 'primary',
|
|
12176
12057
|
withCurrentInProgress
|
|
12177
12058
|
}) {
|
|
12059
|
+
const kittTheme = useKittTheme();
|
|
12178
12060
|
const height = size === 'small' ? 'kitt.2' : 'kitt.4';
|
|
12179
|
-
const fillColor = colorVariant === 'validated' ?
|
|
12061
|
+
const fillColor = colorVariant === 'validated' ? kittTheme.kitt.palettes.deepPurple['green.6'] : kittTheme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
12180
12062
|
const steps = [...Array.from({
|
|
12181
12063
|
length: stepsCount
|
|
12182
12064
|
}).keys()];
|
|
@@ -12187,13 +12069,13 @@ function SegmentedProgressBar({
|
|
|
12187
12069
|
overflow: "hidden",
|
|
12188
12070
|
children: steps.map(stepNumber => {
|
|
12189
12071
|
const isSegmentCurrentInProgress = withCurrentInProgress && stepNumber === currentStep - 1;
|
|
12190
|
-
const color = stepNumber < currentStep ? fillColor :
|
|
12072
|
+
const color = stepNumber < currentStep ? fillColor : kittTheme.kitt.palettes.deepPurple['beige.1'];
|
|
12191
12073
|
return /*#__PURE__*/jsxRuntime.jsx(nativeBase.View, {
|
|
12192
12074
|
height: "100%",
|
|
12193
12075
|
flexGrow: 1,
|
|
12194
12076
|
flexShrink: 1,
|
|
12195
12077
|
flexBasis: 0,
|
|
12196
|
-
backgroundColor: isSegmentCurrentInProgress ?
|
|
12078
|
+
backgroundColor: isSegmentCurrentInProgress ? kittTheme.kitt.palettes.deepPurple['deepPurple.5'] : color,
|
|
12197
12079
|
borderRadius: 2,
|
|
12198
12080
|
overflow: "hidden",
|
|
12199
12081
|
alignItems: "center",
|
|
@@ -12554,9 +12436,9 @@ const getBackgroundColorFromBlockColor = (theme, color = 'transparent') => {
|
|
|
12554
12436
|
case 'white':
|
|
12555
12437
|
return '#ffffff';
|
|
12556
12438
|
case 'light':
|
|
12557
|
-
return theme.kitt.palettes.
|
|
12439
|
+
return theme.kitt.palettes.deepPurple['beige.1'];
|
|
12558
12440
|
case 'primary':
|
|
12559
|
-
return theme.kitt.palettes.
|
|
12441
|
+
return theme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
12560
12442
|
default:
|
|
12561
12443
|
return 'transparent';
|
|
12562
12444
|
}
|
|
@@ -12606,8 +12488,7 @@ function StoryTitle({
|
|
|
12606
12488
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12607
12489
|
marginBottom: 30,
|
|
12608
12490
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header1, {
|
|
12609
|
-
|
|
12610
|
-
base: "header1",
|
|
12491
|
+
base: "heading-xl",
|
|
12611
12492
|
color: useStoryBlockColor(color),
|
|
12612
12493
|
numberOfLines: numberOfLines,
|
|
12613
12494
|
children: children
|
|
@@ -12622,8 +12503,7 @@ function StoryTitleLevel2({
|
|
|
12622
12503
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12623
12504
|
marginBottom: 30,
|
|
12624
12505
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header2, {
|
|
12625
|
-
|
|
12626
|
-
base: "header2",
|
|
12506
|
+
base: "heading-l",
|
|
12627
12507
|
color: useStoryBlockColor(color),
|
|
12628
12508
|
numberOfLines: numberOfLines,
|
|
12629
12509
|
children: children
|
|
@@ -12639,9 +12519,7 @@ function StoryTitleLevel3({
|
|
|
12639
12519
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12640
12520
|
marginBottom: 10,
|
|
12641
12521
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header3, {
|
|
12642
|
-
|
|
12643
|
-
base: "header3",
|
|
12644
|
-
medium: "header4",
|
|
12522
|
+
base: "heading-m",
|
|
12645
12523
|
color: useStoryBlockColor(color),
|
|
12646
12524
|
numberOfLines: numberOfLines,
|
|
12647
12525
|
children: children
|
|
@@ -12657,9 +12535,7 @@ function StoryTitleLevel4({
|
|
|
12657
12535
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12658
12536
|
marginBottom: 10,
|
|
12659
12537
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
12660
|
-
|
|
12661
|
-
base: "header4",
|
|
12662
|
-
medium: "header5",
|
|
12538
|
+
base: "heading-s",
|
|
12663
12539
|
color: useStoryBlockColor(color),
|
|
12664
12540
|
numberOfLines: numberOfLines,
|
|
12665
12541
|
children: children
|
|
@@ -12851,15 +12727,15 @@ function useTabBarItemColor(color, isActive) {
|
|
|
12851
12727
|
switch (color) {
|
|
12852
12728
|
case 'black':
|
|
12853
12729
|
{
|
|
12854
|
-
return isActive ? kittTheme.
|
|
12730
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
12855
12731
|
}
|
|
12856
12732
|
case 'white':
|
|
12857
12733
|
{
|
|
12858
|
-
return kittTheme.palettes.
|
|
12734
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
|
|
12859
12735
|
}
|
|
12860
12736
|
default:
|
|
12861
12737
|
{
|
|
12862
|
-
return isActive ? kittTheme.
|
|
12738
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
12863
12739
|
}
|
|
12864
12740
|
}
|
|
12865
12741
|
}
|
|
@@ -12870,15 +12746,15 @@ function useTabBarIndicatorColor(color, isActive) {
|
|
|
12870
12746
|
switch (color) {
|
|
12871
12747
|
case 'black':
|
|
12872
12748
|
{
|
|
12873
|
-
return isActive ? kittTheme.
|
|
12749
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12874
12750
|
}
|
|
12875
12751
|
case 'white':
|
|
12876
12752
|
{
|
|
12877
|
-
return isActive ? kittTheme.palettes.
|
|
12753
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
12878
12754
|
}
|
|
12879
12755
|
default:
|
|
12880
12756
|
{
|
|
12881
|
-
return isActive ? kittTheme.
|
|
12757
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12882
12758
|
}
|
|
12883
12759
|
}
|
|
12884
12760
|
}
|
|
@@ -12946,7 +12822,7 @@ function TabBar({
|
|
|
12946
12822
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
12947
12823
|
minWidth: '100%',
|
|
12948
12824
|
borderBottomWidth: 1,
|
|
12949
|
-
borderBottomColor: kittTheme.palettes.
|
|
12825
|
+
borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
|
|
12950
12826
|
});
|
|
12951
12827
|
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
12952
12828
|
horizontal: true,
|
|
@@ -12986,36 +12862,39 @@ const getTypography = size => {
|
|
|
12986
12862
|
return 'body-m';
|
|
12987
12863
|
}
|
|
12988
12864
|
};
|
|
12989
|
-
const typeToColor$1 = (color, type) => {
|
|
12990
|
-
if (color) return color;
|
|
12991
|
-
switch (type) {
|
|
12992
|
-
case 'primary':
|
|
12993
|
-
return 'violine';
|
|
12994
|
-
case 'warn':
|
|
12995
|
-
return 'sun';
|
|
12996
|
-
case 'danger':
|
|
12997
|
-
return 'coral';
|
|
12998
|
-
case 'default':
|
|
12999
|
-
default:
|
|
13000
|
-
return 'eggshell';
|
|
13001
|
-
}
|
|
13002
|
-
};
|
|
13003
12865
|
function Tag({
|
|
13004
12866
|
label,
|
|
13005
12867
|
icon,
|
|
13006
|
-
color,
|
|
13007
|
-
type,
|
|
12868
|
+
color = 'beige',
|
|
13008
12869
|
size = 'medium',
|
|
13009
|
-
|
|
13010
|
-
withWhiteBorder = false
|
|
12870
|
+
withWhiteBorder
|
|
13011
12871
|
}) {
|
|
13012
12872
|
const kittTheme = useKittTheme();
|
|
13013
|
-
const
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
12873
|
+
const colorMatching = {
|
|
12874
|
+
beige: {
|
|
12875
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.2'],
|
|
12876
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
12877
|
+
},
|
|
12878
|
+
yellow: {
|
|
12879
|
+
background: kittTheme.kitt.palettes.deepPurple['yellow.6'],
|
|
12880
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.9']
|
|
12881
|
+
},
|
|
12882
|
+
red: {
|
|
12883
|
+
background: kittTheme.kitt.palettes.deepPurple['red.6'],
|
|
12884
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12885
|
+
},
|
|
12886
|
+
blue: {
|
|
12887
|
+
background: kittTheme.kitt.palettes.deepPurple['blue.6'],
|
|
12888
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12889
|
+
},
|
|
12890
|
+
green: {
|
|
12891
|
+
background: kittTheme.kitt.palettes.deepPurple['green.6'],
|
|
12892
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12893
|
+
},
|
|
12894
|
+
deepPurple: {
|
|
12895
|
+
background: kittTheme.kitt.palettes.deepPurple['deepPurple.8'],
|
|
12896
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
13017
12897
|
}
|
|
13018
|
-
return 'black';
|
|
13019
12898
|
};
|
|
13020
12899
|
return /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
13021
12900
|
alignSelf: "flex-start",
|
|
@@ -13023,31 +12902,21 @@ function Tag({
|
|
|
13023
12902
|
height: `kitt.tag.${size}.height`,
|
|
13024
12903
|
paddingLeft: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingLeft`,
|
|
13025
12904
|
paddingRight: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingRight`,
|
|
13026
|
-
backgroundColor:
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
}
|
|
13030
|
-
if (variant === 'contrast') {
|
|
13031
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.9`];
|
|
13032
|
-
}
|
|
13033
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.4`];
|
|
13034
|
-
})() : 'kitt.transparent',
|
|
13035
|
-
borderColor: withWhiteBorder ? 'kitt.white' : (() => {
|
|
13036
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.6`];
|
|
13037
|
-
})(),
|
|
13038
|
-
borderWidth: withWhiteBorder ? 1 : `kitt.tag.variant.${variant}.borderWidth`,
|
|
12905
|
+
backgroundColor: colorMatching[color].background,
|
|
12906
|
+
borderWidth: withWhiteBorder ? 1 : 0,
|
|
12907
|
+
borderColor: withWhiteBorder ? 'kitt.white' : undefined,
|
|
13039
12908
|
space: "kitt.1",
|
|
13040
12909
|
alignItems: "center",
|
|
13041
12910
|
maxWidth: "100%",
|
|
13042
12911
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
13043
12912
|
icon: icon,
|
|
13044
12913
|
size: `kitt.tag.${size}.iconSize`,
|
|
13045
|
-
color:
|
|
12914
|
+
color: colorMatching[color].font
|
|
13046
12915
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13047
12916
|
flexShrink: 1,
|
|
13048
12917
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13049
12918
|
base: getTypography(size),
|
|
13050
|
-
color:
|
|
12919
|
+
color: colorMatching[color].font,
|
|
13051
12920
|
numberOfLines: 1,
|
|
13052
12921
|
ellipsizeMode: "tail",
|
|
13053
12922
|
children: label
|
|
@@ -13266,7 +13135,7 @@ function ToastContent({
|
|
|
13266
13135
|
flexGrow: 1,
|
|
13267
13136
|
flexShrink: 1,
|
|
13268
13137
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13269
|
-
base: "heading-
|
|
13138
|
+
base: "heading-xs",
|
|
13270
13139
|
color: "white",
|
|
13271
13140
|
children: title
|
|
13272
13141
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -13282,7 +13151,7 @@ function ToastContent({
|
|
|
13282
13151
|
borderColor: "white",
|
|
13283
13152
|
onPress: onPress,
|
|
13284
13153
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13285
|
-
base: "heading-
|
|
13154
|
+
base: "heading-xs",
|
|
13286
13155
|
color: "white",
|
|
13287
13156
|
children: actionLabel
|
|
13288
13157
|
})
|
|
@@ -13295,9 +13164,9 @@ const typeToColor = type => {
|
|
|
13295
13164
|
case 'success':
|
|
13296
13165
|
return 'green';
|
|
13297
13166
|
case 'danger':
|
|
13298
|
-
return '
|
|
13167
|
+
return 'red';
|
|
13299
13168
|
case 'warning':
|
|
13300
|
-
return '
|
|
13169
|
+
return 'yellow';
|
|
13301
13170
|
default:
|
|
13302
13171
|
return 'blue';
|
|
13303
13172
|
}
|
|
@@ -13355,7 +13224,7 @@ function ToastComponent({
|
|
|
13355
13224
|
}, [handleHideToast, outro, width, toastTimeout]);
|
|
13356
13225
|
return /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
13357
13226
|
alignSelf: stretch ? 'flex-start' : 'auto',
|
|
13358
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
13227
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple['grey.9'],
|
|
13359
13228
|
borderRadius: "kitt.2",
|
|
13360
13229
|
maxWidth: {
|
|
13361
13230
|
base: '100%',
|
|
@@ -13369,7 +13238,7 @@ function ToastComponent({
|
|
|
13369
13238
|
children: [/*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
13370
13239
|
icon: icon,
|
|
13371
13240
|
size: "kitt.5",
|
|
13372
|
-
color: kittTheme.kitt.palettes.
|
|
13241
|
+
color: kittTheme.kitt.palettes.deepPurple[`${color}.6`]
|
|
13373
13242
|
}), /*#__PURE__*/jsxRuntime.jsx(ToastContent, {
|
|
13374
13243
|
title: title,
|
|
13375
13244
|
description: description,
|
|
@@ -13387,7 +13256,7 @@ function ToastComponent({
|
|
|
13387
13256
|
}) : null]
|
|
13388
13257
|
}), outro === 'timer' ? /*#__PURE__*/jsxRuntime.jsx(AnimatedView$1, {
|
|
13389
13258
|
alignSelf: "flex-end",
|
|
13390
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
13259
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple[`${color}.6`],
|
|
13391
13260
|
height: "kitt.1",
|
|
13392
13261
|
style: animatedStyle
|
|
13393
13262
|
}) : null]
|
|
@@ -13444,7 +13313,7 @@ function TooltipContent({
|
|
|
13444
13313
|
paddingY: "kitt.tooltip.verticalPadding",
|
|
13445
13314
|
paddingX: "kitt.tooltip.horizontalPadding",
|
|
13446
13315
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13447
|
-
base: "body-
|
|
13316
|
+
base: "body-s",
|
|
13448
13317
|
color: "white-light",
|
|
13449
13318
|
children: children
|
|
13450
13319
|
})
|
|
@@ -13647,12 +13516,12 @@ function calcSizesFromType(type, theme) {
|
|
|
13647
13516
|
medium: type.medium || type.small || type.base
|
|
13648
13517
|
};
|
|
13649
13518
|
const size = {
|
|
13650
|
-
base: getTypographyTypeConfig(type.base ?? 'body', theme).
|
|
13519
|
+
base: getTypographyTypeConfig(type.base ?? 'body-m', theme).fontSize
|
|
13651
13520
|
};
|
|
13652
13521
|
[KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
13653
13522
|
const value = typeWithMediumForced[typeName];
|
|
13654
13523
|
if (value) {
|
|
13655
|
-
size[typeName] = getTypographyTypeConfig(value, theme)
|
|
13524
|
+
size[typeName] = getTypographyTypeConfig(value, theme).fontSize;
|
|
13656
13525
|
}
|
|
13657
13526
|
});
|
|
13658
13527
|
const marginLeft = {};
|
|
@@ -13979,7 +13848,7 @@ function BorderlessStep({
|
|
|
13979
13848
|
width: 2,
|
|
13980
13849
|
borderRadius: 2,
|
|
13981
13850
|
position: "absolute",
|
|
13982
|
-
backgroundColor: "kitt.
|
|
13851
|
+
backgroundColor: "kitt.accent",
|
|
13983
13852
|
overflow: "hidden",
|
|
13984
13853
|
children: isNextDone ? /*#__PURE__*/jsxRuntime.jsx(AnimatedView, {
|
|
13985
13854
|
style: progressBarAnimatedStyles,
|
|
@@ -14061,7 +13930,7 @@ function Step({
|
|
|
14061
13930
|
state: state,
|
|
14062
13931
|
index: index
|
|
14063
13932
|
}), !isLast ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
14064
|
-
backgroundColor: shouldDisableNextLink ? 'kitt.
|
|
13933
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.accent' : 'kitt.primary',
|
|
14065
13934
|
width: 1,
|
|
14066
13935
|
position: "absolute",
|
|
14067
13936
|
top: 46,
|