@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
package/dist/index.es.js
CHANGED
|
@@ -54,117 +54,81 @@ var createColorScale = function (colorScale) {
|
|
|
54
54
|
return colorScale;
|
|
55
55
|
};
|
|
56
56
|
var colorScales = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
6: '#bab8ae',
|
|
64
|
-
7: '#aeaba3',
|
|
65
|
-
8: '#9c9a92',
|
|
66
|
-
9: '#8e8c83',
|
|
67
|
-
10: '#74726a',
|
|
68
|
-
11: '#3e3d3a',
|
|
69
|
-
12: '#282826'
|
|
57
|
+
deepPurple: createColorScale({
|
|
58
|
+
5: '#936C93',
|
|
59
|
+
6: '#7A587A',
|
|
60
|
+
7: '#6E4D6E',
|
|
61
|
+
8: '#563B56',
|
|
62
|
+
9: '#452F45'
|
|
70
63
|
}),
|
|
71
|
-
|
|
72
|
-
1: '#
|
|
73
|
-
2: '#
|
|
74
|
-
3: '#
|
|
75
|
-
4: '#
|
|
76
|
-
5: '#
|
|
77
|
-
6: '#
|
|
78
|
-
7: '#9180ff',
|
|
79
|
-
8: '#7b66ff',
|
|
80
|
-
9: '#624af7',
|
|
81
|
-
10: '#5139e1',
|
|
82
|
-
11: '#3a26b5',
|
|
83
|
-
12: '#0a0428'
|
|
64
|
+
beige: createColorScale({
|
|
65
|
+
1: '#F7F4EE',
|
|
66
|
+
2: '#F1ECE4',
|
|
67
|
+
3: '#EAE3D6',
|
|
68
|
+
4: '#E5DCCA',
|
|
69
|
+
5: '#DDD0B8',
|
|
70
|
+
6: '#C1B59F'
|
|
84
71
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
72
|
+
lightning: createColorScale({
|
|
73
|
+
5: '#FFF500',
|
|
74
|
+
7: '#43390A'
|
|
75
|
+
}),
|
|
76
|
+
rainbow: createColorScale({
|
|
77
|
+
pink: '#E4A4F9',
|
|
78
|
+
brick: '#951D12',
|
|
79
|
+
orange: '#DB6E2E',
|
|
80
|
+
gold: '#9A7600',
|
|
81
|
+
sun: '#EFD346',
|
|
82
|
+
'green-pine': '#1C5D47',
|
|
83
|
+
'green-grass': '#4DA00A',
|
|
84
|
+
'green-apple': '#DEF985',
|
|
85
|
+
'blue-electric': '#2850C4',
|
|
86
|
+
'blue-sky': '#B2F0FD'
|
|
87
|
+
}),
|
|
88
|
+
grey: createColorScale({
|
|
89
|
+
0: '#ffffff',
|
|
90
|
+
1: '#ECECEC',
|
|
91
|
+
2: '#CDCED0',
|
|
92
|
+
3: '#A8A8A8',
|
|
93
|
+
5: '#838383',
|
|
94
|
+
7: '#505050',
|
|
95
|
+
9: '#101010'
|
|
98
96
|
}),
|
|
99
97
|
blue: createColorScale({
|
|
100
|
-
1: '#
|
|
101
|
-
2: '#
|
|
102
|
-
|
|
103
|
-
4: '#d4e0ff',
|
|
104
|
-
5: '#baceff',
|
|
105
|
-
6: '#a1bbff',
|
|
106
|
-
7: '#87a9ff',
|
|
107
|
-
8: '#6e96ff',
|
|
108
|
-
9: '#5383ff',
|
|
109
|
-
10: '#4170eb',
|
|
110
|
-
11: '#0e4381',
|
|
111
|
-
12: '#061c36'
|
|
98
|
+
1: '#E9F4FC',
|
|
99
|
+
2: '#BCDFF6',
|
|
100
|
+
6: '#1772AB'
|
|
112
101
|
}),
|
|
113
|
-
|
|
114
|
-
1: '#
|
|
115
|
-
2: '#
|
|
116
|
-
|
|
117
|
-
4: '#f0c7d4',
|
|
118
|
-
5: '#f0afc4',
|
|
119
|
-
6: '#f097b3',
|
|
120
|
-
7: '#f07fa3',
|
|
121
|
-
8: '#d95d84',
|
|
122
|
-
9: '#cf2a60',
|
|
123
|
-
10: '#c12558',
|
|
124
|
-
11: '#61192e',
|
|
125
|
-
12: '#29040f'
|
|
102
|
+
green: createColorScale({
|
|
103
|
+
1: '#ECFEDD',
|
|
104
|
+
2: '#DBFAC1',
|
|
105
|
+
6: '#438D06'
|
|
126
106
|
}),
|
|
127
|
-
|
|
128
|
-
1: '#
|
|
129
|
-
2: '#
|
|
130
|
-
|
|
131
|
-
4: '#ffcfcf',
|
|
132
|
-
5: '#ffb5b5',
|
|
133
|
-
6: '#ff9c9c',
|
|
134
|
-
7: '#f57d7d',
|
|
135
|
-
8: '#eb6565',
|
|
136
|
-
9: '#e55050',
|
|
137
|
-
10: '#da3d3d',
|
|
138
|
-
11: '#8a2b1e',
|
|
139
|
-
12: '#330c07'
|
|
107
|
+
yellow: createColorScale({
|
|
108
|
+
1: '#FDF8E7',
|
|
109
|
+
2: '#FAEBB8',
|
|
110
|
+
6: '#EFC11F'
|
|
140
111
|
}),
|
|
141
|
-
|
|
142
|
-
1: '#
|
|
143
|
-
2: '#
|
|
144
|
-
|
|
145
|
-
4: '#ffefc4',
|
|
146
|
-
5: '#ffe8ab',
|
|
147
|
-
6: '#ffe191',
|
|
148
|
-
7: '#ffda78',
|
|
149
|
-
8: '#ffd35e',
|
|
150
|
-
9: '#fdc32d',
|
|
151
|
-
10: '#f3a40c',
|
|
152
|
-
11: '#9f5600',
|
|
153
|
-
12: '#341c00'
|
|
112
|
+
red: createColorScale({
|
|
113
|
+
1: '#FDE4E3',
|
|
114
|
+
2: '#FAB8B8',
|
|
115
|
+
6: '#F14847'
|
|
154
116
|
}),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
117
|
+
'beige-alpha': createColorScale({
|
|
118
|
+
'25': '#C1B59F40',
|
|
119
|
+
'40': '#C1B59F66',
|
|
120
|
+
'50': '#C1B59F80'
|
|
121
|
+
}),
|
|
122
|
+
'grey-alpha': createColorScale({
|
|
123
|
+
'25': '#10101040',
|
|
124
|
+
'35': '#10101059',
|
|
125
|
+
'50': '#10101080'
|
|
126
|
+
}),
|
|
127
|
+
'white-alpha': createColorScale({
|
|
128
|
+
'10': '#FFFFFF1A',
|
|
129
|
+
'20': '#FFFFFF33',
|
|
130
|
+
'80': '#FFFFFFCC',
|
|
131
|
+
'90': '#FFFFFFE5'
|
|
168
132
|
})
|
|
169
133
|
};
|
|
170
134
|
var transformColorScalesToTokens = function () {
|
|
@@ -180,89 +144,43 @@ var transformColorScalesToTokens = function () {
|
|
|
180
144
|
});
|
|
181
145
|
}));
|
|
182
146
|
};
|
|
183
|
-
var
|
|
184
|
-
/** @deprecated use violine.9 instead */
|
|
185
|
-
lateOcean: colorScales.violine[9],
|
|
186
|
-
/** @deprecated use violine.8 instead */
|
|
187
|
-
lateOceanLight1: colorScales.violine[8],
|
|
188
|
-
/** @deprecated use violine.6 instead */
|
|
189
|
-
lateOceanLight2: colorScales.violine[6],
|
|
190
|
-
/** @deprecated use lavender.6 instead */
|
|
191
|
-
lateOceanLight3: colorScales.lavender[6],
|
|
192
|
-
/** @deprecated use violine.12 instead */
|
|
193
|
-
lateOceanDark1: colorScales.violine[12],
|
|
194
|
-
/** @deprecated use lavender.5 instead */
|
|
195
|
-
warmEmbrace: colorScales.lavender[5],
|
|
196
|
-
/** @deprecated use lavender.3 instead */
|
|
197
|
-
warmEmbraceLight1: colorScales.lavender[3],
|
|
147
|
+
var deepPurpleColorPalette = _objectSpread(_objectSpread({}, transformColorScalesToTokens()), {}, {
|
|
198
148
|
white: '#FFFFFF',
|
|
199
149
|
black: '#000000',
|
|
200
|
-
|
|
201
|
-
black1000: '#000000',
|
|
202
|
-
/** @deprecated use eggshell.11 instead */
|
|
203
|
-
black800: colorScales.eggshell[11],
|
|
204
|
-
/** @deprecated use eggshell.10 instead */
|
|
205
|
-
black555: colorScales.eggshell[10],
|
|
206
|
-
/** @deprecated use eggshell.7 instead */
|
|
207
|
-
black400: colorScales.eggshell[7],
|
|
208
|
-
/** @deprecated use eggshell.4 instead */
|
|
209
|
-
black200: colorScales.eggshell[4],
|
|
210
|
-
/** @deprecated use eggshell.3 instead */
|
|
211
|
-
black100: colorScales.eggshell[3],
|
|
212
|
-
/** @deprecated use eggshell.2 instead */
|
|
213
|
-
black50: colorScales.eggshell[2],
|
|
214
|
-
/** @deprecated use eggshell.1 instead */
|
|
215
|
-
black25: colorScales.eggshell[1],
|
|
216
|
-
/** @deprecated use green.8 instead */
|
|
217
|
-
viride: colorScales.green[8],
|
|
218
|
-
/** @deprecated use coral.7 instead */
|
|
219
|
-
englishVermillon: colorScales.coral[7],
|
|
220
|
-
/** @deprecated use sun.8 instead */
|
|
221
|
-
goldCrayola: colorScales.sun[8],
|
|
222
|
-
/** @deprecated use blue.8 instead */
|
|
223
|
-
aero: colorScales.blue[8],
|
|
224
|
-
/** @deprecated use eggshell.1 instead */
|
|
225
|
-
seaShell: colorScales.eggshell[1],
|
|
226
|
-
transparent: 'transparent',
|
|
227
|
-
/** @deprecated use violine.4 instead */
|
|
228
|
-
moonPurple: colorScales.violine[4],
|
|
229
|
-
/** @deprecated use violine.2 instead */
|
|
230
|
-
moonPurpleLight1: colorScales.violine[2]
|
|
150
|
+
transparent: 'transparent'
|
|
231
151
|
});
|
|
232
152
|
|
|
233
153
|
var colors = {
|
|
234
|
-
primary:
|
|
235
|
-
primaryLight:
|
|
236
|
-
accent:
|
|
237
|
-
accentLight:
|
|
238
|
-
success:
|
|
239
|
-
correct:
|
|
240
|
-
danger:
|
|
241
|
-
info:
|
|
242
|
-
warning:
|
|
243
|
-
separator:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
transparent: lateOceanColorPalette.transparent,
|
|
253
|
-
disabled: lateOceanColorPalette['eggshell.2'],
|
|
154
|
+
primary: deepPurpleColorPalette['deepPurple.8'],
|
|
155
|
+
primaryLight: deepPurpleColorPalette['deepPurple.8'],
|
|
156
|
+
accent: deepPurpleColorPalette['beige.1'],
|
|
157
|
+
accentLight: deepPurpleColorPalette['beige.1'],
|
|
158
|
+
success: deepPurpleColorPalette['green.6'],
|
|
159
|
+
correct: deepPurpleColorPalette['green.6'],
|
|
160
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
161
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
162
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
163
|
+
separator: deepPurpleColorPalette['beige.3'],
|
|
164
|
+
white: deepPurpleColorPalette['grey.0'],
|
|
165
|
+
black: deepPurpleColorPalette['grey.9'],
|
|
166
|
+
blackLight: deepPurpleColorPalette['grey.5'],
|
|
167
|
+
blackAnthracite: deepPurpleColorPalette['grey.7'],
|
|
168
|
+
uiBackground: deepPurpleColorPalette['beige.1'],
|
|
169
|
+
uiBackgroundLight: deepPurpleColorPalette['grey.0'],
|
|
170
|
+
transparent: deepPurpleColorPalette.transparent,
|
|
171
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
254
172
|
overlay: {
|
|
255
|
-
dark: '
|
|
256
|
-
light: '
|
|
173
|
+
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
174
|
+
light: deepPurpleColorPalette['white-alpha.80']
|
|
257
175
|
}
|
|
258
176
|
};
|
|
259
177
|
|
|
260
178
|
var actionCard = {
|
|
261
|
-
borderRadius:
|
|
179
|
+
borderRadius: 8,
|
|
262
180
|
primary: {
|
|
263
181
|
"default": {
|
|
264
182
|
backgroundColor: colors.uiBackgroundLight,
|
|
265
|
-
borderColor:
|
|
183
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
266
184
|
borderWidth: 1,
|
|
267
185
|
shadow: {
|
|
268
186
|
color: '',
|
|
@@ -274,8 +192,8 @@ var actionCard = {
|
|
|
274
192
|
translateY: 0
|
|
275
193
|
},
|
|
276
194
|
hovered: {
|
|
277
|
-
backgroundColor:
|
|
278
|
-
borderColor:
|
|
195
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
196
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
279
197
|
borderWidth: 1,
|
|
280
198
|
shadow: {
|
|
281
199
|
color: '',
|
|
@@ -287,8 +205,8 @@ var actionCard = {
|
|
|
287
205
|
translateY: 0
|
|
288
206
|
},
|
|
289
207
|
disabled: {
|
|
290
|
-
backgroundColor:
|
|
291
|
-
borderColor:
|
|
208
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
209
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
292
210
|
borderWidth: 1,
|
|
293
211
|
shadow: {
|
|
294
212
|
color: '',
|
|
@@ -300,8 +218,8 @@ var actionCard = {
|
|
|
300
218
|
translateY: 0
|
|
301
219
|
},
|
|
302
220
|
focused: {
|
|
303
|
-
backgroundColor:
|
|
304
|
-
borderColor:
|
|
221
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
222
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
305
223
|
borderWidth: 1,
|
|
306
224
|
shadow: {
|
|
307
225
|
color: '',
|
|
@@ -313,8 +231,8 @@ var actionCard = {
|
|
|
313
231
|
translateY: 0
|
|
314
232
|
},
|
|
315
233
|
pressed: {
|
|
316
|
-
backgroundColor:
|
|
317
|
-
borderColor:
|
|
234
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
235
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
318
236
|
borderWidth: 1,
|
|
319
237
|
shadow: {
|
|
320
238
|
color: '',
|
|
@@ -329,10 +247,10 @@ var actionCard = {
|
|
|
329
247
|
'primary-border-soft': {
|
|
330
248
|
"default": {
|
|
331
249
|
backgroundColor: colors.uiBackgroundLight,
|
|
332
|
-
borderColor:
|
|
250
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
333
251
|
borderWidth: 1,
|
|
334
252
|
shadow: {
|
|
335
|
-
color:
|
|
253
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
336
254
|
offsetX: 0,
|
|
337
255
|
offsetY: 4,
|
|
338
256
|
opacity: 1,
|
|
@@ -341,11 +259,11 @@ var actionCard = {
|
|
|
341
259
|
translateY: 0
|
|
342
260
|
},
|
|
343
261
|
hovered: {
|
|
344
|
-
backgroundColor:
|
|
345
|
-
borderColor:
|
|
262
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
263
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
346
264
|
borderWidth: 1,
|
|
347
265
|
shadow: {
|
|
348
|
-
color:
|
|
266
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
349
267
|
offsetX: 0,
|
|
350
268
|
offsetY: 4,
|
|
351
269
|
opacity: 1,
|
|
@@ -354,8 +272,8 @@ var actionCard = {
|
|
|
354
272
|
translateY: 0
|
|
355
273
|
},
|
|
356
274
|
disabled: {
|
|
357
|
-
backgroundColor:
|
|
358
|
-
borderColor:
|
|
275
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
276
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
359
277
|
borderWidth: 1,
|
|
360
278
|
shadow: {
|
|
361
279
|
color: '',
|
|
@@ -367,11 +285,11 @@ var actionCard = {
|
|
|
367
285
|
translateY: 0
|
|
368
286
|
},
|
|
369
287
|
focused: {
|
|
370
|
-
backgroundColor:
|
|
371
|
-
borderColor:
|
|
288
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
289
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
372
290
|
borderWidth: 1,
|
|
373
291
|
shadow: {
|
|
374
|
-
color:
|
|
292
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
375
293
|
offsetX: 0,
|
|
376
294
|
offsetY: 4,
|
|
377
295
|
opacity: 1,
|
|
@@ -380,8 +298,8 @@ var actionCard = {
|
|
|
380
298
|
translateY: 0
|
|
381
299
|
},
|
|
382
300
|
pressed: {
|
|
383
|
-
backgroundColor:
|
|
384
|
-
borderColor:
|
|
301
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
302
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
385
303
|
borderWidth: 1,
|
|
386
304
|
shadow: {
|
|
387
305
|
color: '',
|
|
@@ -396,10 +314,10 @@ var actionCard = {
|
|
|
396
314
|
'primary-border-hard': {
|
|
397
315
|
"default": {
|
|
398
316
|
backgroundColor: colors.uiBackgroundLight,
|
|
399
|
-
borderColor:
|
|
317
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
400
318
|
borderWidth: 1,
|
|
401
319
|
shadow: {
|
|
402
|
-
color:
|
|
320
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
403
321
|
offsetX: 0,
|
|
404
322
|
offsetY: 4,
|
|
405
323
|
opacity: 1,
|
|
@@ -408,11 +326,11 @@ var actionCard = {
|
|
|
408
326
|
translateY: 0
|
|
409
327
|
},
|
|
410
328
|
hovered: {
|
|
411
|
-
backgroundColor:
|
|
412
|
-
borderColor:
|
|
329
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
330
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
413
331
|
borderWidth: 1,
|
|
414
332
|
shadow: {
|
|
415
|
-
color:
|
|
333
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
416
334
|
offsetX: 0,
|
|
417
335
|
offsetY: 4,
|
|
418
336
|
opacity: 1,
|
|
@@ -421,8 +339,8 @@ var actionCard = {
|
|
|
421
339
|
translateY: 0
|
|
422
340
|
},
|
|
423
341
|
disabled: {
|
|
424
|
-
backgroundColor:
|
|
425
|
-
borderColor:
|
|
342
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
343
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
426
344
|
borderWidth: 1,
|
|
427
345
|
shadow: {
|
|
428
346
|
color: '',
|
|
@@ -434,11 +352,11 @@ var actionCard = {
|
|
|
434
352
|
translateY: 0
|
|
435
353
|
},
|
|
436
354
|
focused: {
|
|
437
|
-
backgroundColor:
|
|
438
|
-
borderColor:
|
|
355
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
356
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
439
357
|
borderWidth: 1,
|
|
440
358
|
shadow: {
|
|
441
|
-
color:
|
|
359
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
442
360
|
offsetX: 0,
|
|
443
361
|
offsetY: 4,
|
|
444
362
|
opacity: 1,
|
|
@@ -447,8 +365,8 @@ var actionCard = {
|
|
|
447
365
|
translateY: 0
|
|
448
366
|
},
|
|
449
367
|
pressed: {
|
|
450
|
-
backgroundColor:
|
|
451
|
-
borderColor:
|
|
368
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
369
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
452
370
|
borderWidth: 1,
|
|
453
371
|
shadow: {
|
|
454
372
|
color: '',
|
|
@@ -462,8 +380,8 @@ var actionCard = {
|
|
|
462
380
|
},
|
|
463
381
|
secondary: {
|
|
464
382
|
"default": {
|
|
465
|
-
backgroundColor:
|
|
466
|
-
borderColor:
|
|
383
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
384
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
467
385
|
borderWidth: 0,
|
|
468
386
|
shadow: {
|
|
469
387
|
color: '',
|
|
@@ -475,8 +393,8 @@ var actionCard = {
|
|
|
475
393
|
translateY: 0
|
|
476
394
|
},
|
|
477
395
|
disabled: {
|
|
478
|
-
backgroundColor:
|
|
479
|
-
borderColor:
|
|
396
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
397
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
480
398
|
borderWidth: 1,
|
|
481
399
|
shadow: {
|
|
482
400
|
color: '',
|
|
@@ -488,8 +406,8 @@ var actionCard = {
|
|
|
488
406
|
translateY: 0
|
|
489
407
|
},
|
|
490
408
|
hovered: {
|
|
491
|
-
backgroundColor:
|
|
492
|
-
borderColor:
|
|
409
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
410
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
493
411
|
borderWidth: 0,
|
|
494
412
|
shadow: {
|
|
495
413
|
color: '',
|
|
@@ -501,8 +419,8 @@ var actionCard = {
|
|
|
501
419
|
translateY: 0
|
|
502
420
|
},
|
|
503
421
|
focused: {
|
|
504
|
-
backgroundColor:
|
|
505
|
-
borderColor:
|
|
422
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
423
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
506
424
|
borderWidth: 0,
|
|
507
425
|
shadow: {
|
|
508
426
|
color: '',
|
|
@@ -514,8 +432,8 @@ var actionCard = {
|
|
|
514
432
|
translateY: 0
|
|
515
433
|
},
|
|
516
434
|
pressed: {
|
|
517
|
-
backgroundColor:
|
|
518
|
-
borderColor:
|
|
435
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
436
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
519
437
|
borderWidth: 0,
|
|
520
438
|
shadow: {
|
|
521
439
|
color: '',
|
|
@@ -529,11 +447,11 @@ var actionCard = {
|
|
|
529
447
|
},
|
|
530
448
|
highlight: {
|
|
531
449
|
"default": {
|
|
532
|
-
backgroundColor:
|
|
533
|
-
borderColor:
|
|
450
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
451
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
534
452
|
borderWidth: 1,
|
|
535
453
|
shadow: {
|
|
536
|
-
color:
|
|
454
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
537
455
|
offsetX: 0,
|
|
538
456
|
offsetY: 4,
|
|
539
457
|
opacity: 1,
|
|
@@ -542,8 +460,8 @@ var actionCard = {
|
|
|
542
460
|
translateY: 0
|
|
543
461
|
},
|
|
544
462
|
disabled: {
|
|
545
|
-
backgroundColor:
|
|
546
|
-
borderColor:
|
|
463
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
464
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
547
465
|
borderWidth: 1,
|
|
548
466
|
shadow: {
|
|
549
467
|
color: '',
|
|
@@ -555,11 +473,11 @@ var actionCard = {
|
|
|
555
473
|
translateY: 0
|
|
556
474
|
},
|
|
557
475
|
hovered: {
|
|
558
|
-
backgroundColor: hex2rgba(
|
|
559
|
-
borderColor:
|
|
476
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
477
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
560
478
|
borderWidth: 1,
|
|
561
479
|
shadow: {
|
|
562
|
-
color:
|
|
480
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
563
481
|
offsetX: 0,
|
|
564
482
|
offsetY: 4,
|
|
565
483
|
opacity: 1,
|
|
@@ -568,11 +486,11 @@ var actionCard = {
|
|
|
568
486
|
translateY: 0
|
|
569
487
|
},
|
|
570
488
|
focused: {
|
|
571
|
-
backgroundColor: hex2rgba(
|
|
572
|
-
borderColor:
|
|
489
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
490
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
573
491
|
borderWidth: 1,
|
|
574
492
|
shadow: {
|
|
575
|
-
color:
|
|
493
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
576
494
|
offsetX: 0,
|
|
577
495
|
offsetY: 4,
|
|
578
496
|
opacity: 1,
|
|
@@ -581,8 +499,8 @@ var actionCard = {
|
|
|
581
499
|
translateY: 0
|
|
582
500
|
},
|
|
583
501
|
pressed: {
|
|
584
|
-
backgroundColor: hex2rgba(
|
|
585
|
-
borderColor:
|
|
502
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
503
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
586
504
|
borderWidth: 1,
|
|
587
505
|
shadow: {
|
|
588
506
|
color: '',
|
|
@@ -600,42 +518,28 @@ var defaultAvatarSize = 40;
|
|
|
600
518
|
var defaultAvatarIconSize = 20;
|
|
601
519
|
var largeAvatarSize = 120;
|
|
602
520
|
var largeAvatarIconSize = 30;
|
|
603
|
-
|
|
604
|
-
// export interface AvatarThemeBackgroundColorVariant {
|
|
605
|
-
// default: string;
|
|
606
|
-
// light: string;
|
|
607
|
-
// dark: string;
|
|
608
|
-
// disabled: string;
|
|
609
|
-
// }
|
|
610
|
-
|
|
611
|
-
// export interface AvatarThemeColorVariant {
|
|
612
|
-
// default: string;
|
|
613
|
-
// light: string;
|
|
614
|
-
// disabled: string;
|
|
615
|
-
// }
|
|
616
|
-
|
|
617
521
|
var avatar = {
|
|
618
|
-
borderRadius:
|
|
522
|
+
borderRadius: 4,
|
|
619
523
|
size: defaultAvatarSize,
|
|
620
524
|
iconSize: defaultAvatarIconSize,
|
|
621
525
|
"default": {
|
|
622
|
-
color:
|
|
623
|
-
backgroundColor:
|
|
526
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
527
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
624
528
|
},
|
|
625
529
|
light: {
|
|
626
|
-
color:
|
|
627
|
-
backgroundColor:
|
|
530
|
+
color: deepPurpleColorPalette['beige.6'],
|
|
531
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
628
532
|
},
|
|
629
533
|
dark: {
|
|
630
|
-
color:
|
|
631
|
-
backgroundColor:
|
|
534
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
535
|
+
backgroundColor: deepPurpleColorPalette['grey.9']
|
|
632
536
|
},
|
|
633
537
|
disabled: {
|
|
634
|
-
color:
|
|
635
|
-
backgroundColor:
|
|
538
|
+
color: deepPurpleColorPalette['grey.3'],
|
|
539
|
+
backgroundColor: deepPurpleColorPalette['grey.1']
|
|
636
540
|
},
|
|
637
541
|
large: {
|
|
638
|
-
borderRadius:
|
|
542
|
+
borderRadius: 8,
|
|
639
543
|
size: largeAvatarSize,
|
|
640
544
|
iconSize: largeAvatarIconSize
|
|
641
545
|
}
|
|
@@ -648,7 +552,7 @@ var bottomSheet = {
|
|
|
648
552
|
padding: spacing * 4
|
|
649
553
|
},
|
|
650
554
|
handle: {
|
|
651
|
-
backgroundColor:
|
|
555
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
652
556
|
}
|
|
653
557
|
};
|
|
654
558
|
|
|
@@ -716,9 +620,9 @@ var button = {
|
|
|
716
620
|
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
717
621
|
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
718
622
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
719
|
-
color:
|
|
720
|
-
hoverColor:
|
|
721
|
-
activeColor:
|
|
623
|
+
color: deepPurpleColorPalette.white,
|
|
624
|
+
hoverColor: deepPurpleColorPalette.white,
|
|
625
|
+
activeColor: deepPurpleColorPalette.white
|
|
722
626
|
}
|
|
723
627
|
},
|
|
724
628
|
primary: {
|
|
@@ -731,11 +635,11 @@ var button = {
|
|
|
731
635
|
ghost: {
|
|
732
636
|
backgroundColor: colors.uiBackgroundLight,
|
|
733
637
|
pressedBackgroundColor: colors.uiBackground,
|
|
734
|
-
hoverBackgroundColor:
|
|
638
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
735
639
|
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
736
640
|
color: colors.primary,
|
|
737
|
-
hoverColor:
|
|
738
|
-
activeColor:
|
|
641
|
+
hoverColor: deepPurpleColorPalette['beige.2'],
|
|
642
|
+
activeColor: deepPurpleColorPalette['beige.2']
|
|
739
643
|
}
|
|
740
644
|
},
|
|
741
645
|
dark: {
|
|
@@ -748,19 +652,19 @@ var button = {
|
|
|
748
652
|
},
|
|
749
653
|
danger: {
|
|
750
654
|
"default": {
|
|
751
|
-
backgroundColor:
|
|
752
|
-
pressedBackgroundColor:
|
|
753
|
-
hoverBackgroundColor:
|
|
754
|
-
focusBorderColor:
|
|
655
|
+
backgroundColor: deepPurpleColorPalette['red.1'],
|
|
656
|
+
pressedBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
657
|
+
hoverBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
658
|
+
focusBorderColor: deepPurpleColorPalette['red.2']
|
|
755
659
|
},
|
|
756
660
|
ghost: {
|
|
757
661
|
backgroundColor: colors.uiBackgroundLight,
|
|
758
662
|
pressedBackgroundColor: colors.uiBackground,
|
|
759
|
-
hoverBackgroundColor:
|
|
663
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
760
664
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
761
|
-
color:
|
|
762
|
-
hoverColor:
|
|
763
|
-
activeColor:
|
|
665
|
+
color: deepPurpleColorPalette['red.6'],
|
|
666
|
+
hoverColor: deepPurpleColorPalette['red.6'],
|
|
667
|
+
activeColor: deepPurpleColorPalette['red.6']
|
|
764
668
|
}
|
|
765
669
|
},
|
|
766
670
|
subtle: {
|
|
@@ -801,14 +705,14 @@ var button = {
|
|
|
801
705
|
backgroundColor: colors.disabled,
|
|
802
706
|
pressedBackgroundColor: colors.disabled,
|
|
803
707
|
hoverBackgroundColor: colors.disabled,
|
|
804
|
-
focusBorderColor:
|
|
805
|
-
borderColor:
|
|
708
|
+
focusBorderColor: deepPurpleColorPalette['beige.2'],
|
|
709
|
+
borderColor: deepPurpleColorPalette['beige.2']
|
|
806
710
|
}
|
|
807
711
|
}
|
|
808
712
|
};
|
|
809
713
|
|
|
810
714
|
var buttonBadge = {
|
|
811
|
-
backgroundColor:
|
|
715
|
+
backgroundColor: deepPurpleColorPalette['red.6'],
|
|
812
716
|
dimensions: {
|
|
813
717
|
withBadge: {
|
|
814
718
|
width: 10,
|
|
@@ -837,7 +741,7 @@ var card = {
|
|
|
837
741
|
borderColor: colors.separator
|
|
838
742
|
},
|
|
839
743
|
subtle: {
|
|
840
|
-
backgroundColor:
|
|
744
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
841
745
|
borderColor: colors.separator
|
|
842
746
|
}
|
|
843
747
|
};
|
|
@@ -897,17 +801,17 @@ var choices = {
|
|
|
897
801
|
small: 24
|
|
898
802
|
},
|
|
899
803
|
backgroundColor: {
|
|
900
|
-
"default":
|
|
804
|
+
"default": deepPurpleColorPalette['beige.1'],
|
|
901
805
|
disabled: colors.disabled,
|
|
902
806
|
selected: colors.primary,
|
|
903
|
-
pressed:
|
|
904
|
-
hover:
|
|
905
|
-
hoverWhenSelected:
|
|
807
|
+
pressed: deepPurpleColorPalette['deepPurple.7'],
|
|
808
|
+
hover: deepPurpleColorPalette['beige.2'],
|
|
809
|
+
hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
|
|
906
810
|
},
|
|
907
811
|
disabled: {
|
|
908
812
|
border: {
|
|
909
813
|
width: 2,
|
|
910
|
-
color:
|
|
814
|
+
color: deepPurpleColorPalette['beige.2']
|
|
911
815
|
}
|
|
912
816
|
},
|
|
913
817
|
transition: {
|
|
@@ -972,19 +876,19 @@ var autocomplete = {
|
|
|
972
876
|
backgroundColor: colors.white
|
|
973
877
|
},
|
|
974
878
|
hovered: {
|
|
975
|
-
backgroundColor:
|
|
879
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
976
880
|
},
|
|
977
881
|
focused: {
|
|
978
|
-
backgroundColor:
|
|
882
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
979
883
|
},
|
|
980
884
|
selected: {
|
|
981
|
-
backgroundColor:
|
|
885
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
982
886
|
},
|
|
983
887
|
highlighted: {
|
|
984
|
-
backgroundColor:
|
|
888
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
985
889
|
},
|
|
986
890
|
pressed: {
|
|
987
|
-
backgroundColor:
|
|
891
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
988
892
|
}
|
|
989
893
|
},
|
|
990
894
|
optionsContainer: {
|
|
@@ -1052,37 +956,37 @@ var datePicker = {
|
|
|
1052
956
|
|
|
1053
957
|
var inputStatesStyle = {
|
|
1054
958
|
"default": {
|
|
1055
|
-
backgroundColor:
|
|
1056
|
-
borderColor:
|
|
1057
|
-
color:
|
|
959
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
960
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
961
|
+
color: deepPurpleColorPalette.black
|
|
1058
962
|
},
|
|
1059
963
|
pending: {
|
|
1060
|
-
backgroundColor:
|
|
1061
|
-
borderColor:
|
|
1062
|
-
color:
|
|
964
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
965
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
966
|
+
color: deepPurpleColorPalette.black
|
|
1063
967
|
},
|
|
1064
968
|
valid: {
|
|
1065
|
-
backgroundColor:
|
|
1066
|
-
borderColor:
|
|
1067
|
-
color:
|
|
969
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
970
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
971
|
+
color: deepPurpleColorPalette.black
|
|
1068
972
|
},
|
|
1069
973
|
hover: {
|
|
1070
|
-
backgroundColor:
|
|
1071
|
-
borderColor:
|
|
1072
|
-
color:
|
|
974
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
975
|
+
borderColor: deepPurpleColorPalette['beige.4'],
|
|
976
|
+
color: deepPurpleColorPalette.black
|
|
1073
977
|
},
|
|
1074
978
|
focus: {
|
|
1075
|
-
borderColor:
|
|
1076
|
-
color:
|
|
979
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
980
|
+
color: deepPurpleColorPalette.black
|
|
1077
981
|
},
|
|
1078
982
|
disabled: {
|
|
1079
|
-
backgroundColor:
|
|
1080
|
-
borderColor:
|
|
1081
|
-
color:
|
|
983
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
984
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
985
|
+
color: deepPurpleColorPalette['grey.3']
|
|
1082
986
|
},
|
|
1083
987
|
invalid: {
|
|
1084
|
-
borderColor:
|
|
1085
|
-
color:
|
|
988
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
989
|
+
color: deepPurpleColorPalette.black
|
|
1086
990
|
}
|
|
1087
991
|
};
|
|
1088
992
|
var webAnimationDuration = '200ms';
|
|
@@ -1091,11 +995,11 @@ var webAnimationProperties = ['border-color', 'background-color'];
|
|
|
1091
995
|
var input = {
|
|
1092
996
|
minHeight: 40,
|
|
1093
997
|
color: {
|
|
1094
|
-
selection:
|
|
1095
|
-
placeholder:
|
|
998
|
+
selection: deepPurpleColorPalette['deepPurple.8'],
|
|
999
|
+
placeholder: deepPurpleColorPalette['beige.6']
|
|
1096
1000
|
},
|
|
1097
1001
|
borderWidth: 1,
|
|
1098
|
-
borderRadius:
|
|
1002
|
+
borderRadius: 4,
|
|
1099
1003
|
icon: {
|
|
1100
1004
|
size: 20
|
|
1101
1005
|
},
|
|
@@ -1132,7 +1036,7 @@ var inputTag = {
|
|
|
1132
1036
|
labelColor: colors.uiBackgroundLight
|
|
1133
1037
|
},
|
|
1134
1038
|
"default": {
|
|
1135
|
-
backgroundColor:
|
|
1039
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1136
1040
|
labelColor: colors.black
|
|
1137
1041
|
},
|
|
1138
1042
|
borderRadius: 10,
|
|
@@ -1142,9 +1046,9 @@ var inputTag = {
|
|
|
1142
1046
|
var radio = {
|
|
1143
1047
|
size: 24,
|
|
1144
1048
|
unchecked: {
|
|
1145
|
-
borderWidth:
|
|
1049
|
+
borderWidth: 1,
|
|
1146
1050
|
backgroundColor: colors.uiBackgroundLight,
|
|
1147
|
-
borderColor:
|
|
1051
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1148
1052
|
},
|
|
1149
1053
|
checked: {
|
|
1150
1054
|
backgroundColor: colors.primary,
|
|
@@ -1161,8 +1065,9 @@ var radio = {
|
|
|
1161
1065
|
borderColor: colors.primary
|
|
1162
1066
|
},
|
|
1163
1067
|
disabled: {
|
|
1164
|
-
backgroundColor:
|
|
1165
|
-
borderColor: colors.
|
|
1068
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1069
|
+
borderColor: colors.transparent,
|
|
1070
|
+
innerBackgroundColor: deepPurpleColorPalette['grey.1']
|
|
1166
1071
|
},
|
|
1167
1072
|
transition: {
|
|
1168
1073
|
duration: '200ms',
|
|
@@ -1173,14 +1078,19 @@ var radio = {
|
|
|
1173
1078
|
var radioButtonGroup = {
|
|
1174
1079
|
item: {
|
|
1175
1080
|
minHeight: 40,
|
|
1176
|
-
borderWidth:
|
|
1177
|
-
borderRadius:
|
|
1081
|
+
borderWidth: 1,
|
|
1082
|
+
borderRadius: 4,
|
|
1083
|
+
font: {
|
|
1084
|
+
color: {
|
|
1085
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1178
1088
|
borderColor: {
|
|
1179
1089
|
"default": colors.separator,
|
|
1180
1090
|
hover: colors.primary,
|
|
1181
1091
|
pressed: colors.primary,
|
|
1182
1092
|
active: colors.primary,
|
|
1183
|
-
disabled: colors.
|
|
1093
|
+
disabled: colors.disabled
|
|
1184
1094
|
},
|
|
1185
1095
|
backgroundColor: {
|
|
1186
1096
|
"default": colors.uiBackgroundLight,
|
|
@@ -1221,17 +1131,17 @@ var toggle = {
|
|
|
1221
1131
|
medium: 50,
|
|
1222
1132
|
large: 66
|
|
1223
1133
|
},
|
|
1224
|
-
labelColor:
|
|
1134
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1225
1135
|
backgroundColor: {
|
|
1226
|
-
checked:
|
|
1227
|
-
unchecked:
|
|
1136
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1137
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1228
1138
|
},
|
|
1229
1139
|
border: {
|
|
1230
1140
|
color: 'transparent',
|
|
1231
1141
|
width: 1
|
|
1232
1142
|
},
|
|
1233
1143
|
circle: {
|
|
1234
|
-
backgroundColor:
|
|
1144
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1235
1145
|
width: {
|
|
1236
1146
|
medium: 18,
|
|
1237
1147
|
large: 24
|
|
@@ -1259,17 +1169,17 @@ var toggle = {
|
|
|
1259
1169
|
medium: 50,
|
|
1260
1170
|
large: 66
|
|
1261
1171
|
},
|
|
1262
|
-
labelColor:
|
|
1172
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1263
1173
|
backgroundColor: {
|
|
1264
|
-
checked:
|
|
1265
|
-
unchecked:
|
|
1174
|
+
checked: deepPurpleColorPalette['deepPurple.7'],
|
|
1175
|
+
unchecked: deepPurpleColorPalette['beige.4']
|
|
1266
1176
|
},
|
|
1267
1177
|
border: {
|
|
1268
1178
|
color: 'transparent',
|
|
1269
1179
|
width: 1
|
|
1270
1180
|
},
|
|
1271
1181
|
circle: {
|
|
1272
|
-
backgroundColor:
|
|
1182
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1273
1183
|
width: {
|
|
1274
1184
|
medium: 18,
|
|
1275
1185
|
large: 24
|
|
@@ -1297,17 +1207,17 @@ var toggle = {
|
|
|
1297
1207
|
medium: 50,
|
|
1298
1208
|
large: 66
|
|
1299
1209
|
},
|
|
1300
|
-
labelColor:
|
|
1210
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1301
1211
|
backgroundColor: {
|
|
1302
|
-
checked:
|
|
1303
|
-
unchecked:
|
|
1212
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1213
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1304
1214
|
},
|
|
1305
1215
|
border: {
|
|
1306
|
-
color:
|
|
1216
|
+
color: deepPurpleColorPalette.white,
|
|
1307
1217
|
width: 1
|
|
1308
1218
|
},
|
|
1309
1219
|
circle: {
|
|
1310
|
-
backgroundColor:
|
|
1220
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1311
1221
|
width: {
|
|
1312
1222
|
medium: 18,
|
|
1313
1223
|
large: 24
|
|
@@ -1322,7 +1232,7 @@ var toggle = {
|
|
|
1322
1232
|
}
|
|
1323
1233
|
},
|
|
1324
1234
|
wrapperBorder: {
|
|
1325
|
-
color:
|
|
1235
|
+
color: deepPurpleColorPalette.black,
|
|
1326
1236
|
width: 1
|
|
1327
1237
|
}
|
|
1328
1238
|
},
|
|
@@ -1335,17 +1245,17 @@ var toggle = {
|
|
|
1335
1245
|
medium: 50,
|
|
1336
1246
|
large: 66
|
|
1337
1247
|
},
|
|
1338
|
-
labelColor:
|
|
1248
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1339
1249
|
backgroundColor: {
|
|
1340
|
-
checked:
|
|
1341
|
-
unchecked:
|
|
1250
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1251
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1342
1252
|
},
|
|
1343
1253
|
border: {
|
|
1344
|
-
color:
|
|
1254
|
+
color: deepPurpleColorPalette.white,
|
|
1345
1255
|
width: 1
|
|
1346
1256
|
},
|
|
1347
1257
|
circle: {
|
|
1348
|
-
backgroundColor:
|
|
1258
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1349
1259
|
width: {
|
|
1350
1260
|
medium: 18,
|
|
1351
1261
|
large: 24
|
|
@@ -1360,7 +1270,7 @@ var toggle = {
|
|
|
1360
1270
|
}
|
|
1361
1271
|
},
|
|
1362
1272
|
wrapperBorder: {
|
|
1363
|
-
color:
|
|
1273
|
+
color: deepPurpleColorPalette.black,
|
|
1364
1274
|
width: 1
|
|
1365
1275
|
}
|
|
1366
1276
|
}
|
|
@@ -1375,17 +1285,17 @@ var toggle = {
|
|
|
1375
1285
|
medium: 50,
|
|
1376
1286
|
large: 66
|
|
1377
1287
|
},
|
|
1378
|
-
labelColor:
|
|
1288
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1379
1289
|
backgroundColor: {
|
|
1380
|
-
checked:
|
|
1381
|
-
unchecked:
|
|
1290
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1291
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1382
1292
|
},
|
|
1383
1293
|
border: {
|
|
1384
1294
|
color: 'transparent',
|
|
1385
1295
|
width: 1
|
|
1386
1296
|
},
|
|
1387
1297
|
circle: {
|
|
1388
|
-
backgroundColor:
|
|
1298
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1389
1299
|
width: {
|
|
1390
1300
|
medium: 18,
|
|
1391
1301
|
large: 24
|
|
@@ -1413,17 +1323,17 @@ var toggle = {
|
|
|
1413
1323
|
medium: 50,
|
|
1414
1324
|
large: 66
|
|
1415
1325
|
},
|
|
1416
|
-
labelColor:
|
|
1326
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1417
1327
|
backgroundColor: {
|
|
1418
|
-
checked:
|
|
1419
|
-
unchecked:
|
|
1328
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1329
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1420
1330
|
},
|
|
1421
1331
|
border: {
|
|
1422
1332
|
color: 'transparent',
|
|
1423
1333
|
width: 1
|
|
1424
1334
|
},
|
|
1425
1335
|
circle: {
|
|
1426
|
-
backgroundColor:
|
|
1336
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1427
1337
|
width: {
|
|
1428
1338
|
medium: 18,
|
|
1429
1339
|
large: 24
|
|
@@ -1451,17 +1361,17 @@ var toggle = {
|
|
|
1451
1361
|
medium: 50,
|
|
1452
1362
|
large: 66
|
|
1453
1363
|
},
|
|
1454
|
-
labelColor:
|
|
1364
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1455
1365
|
backgroundColor: {
|
|
1456
|
-
checked:
|
|
1457
|
-
unchecked:
|
|
1366
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1367
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1458
1368
|
},
|
|
1459
1369
|
border: {
|
|
1460
1370
|
color: 'transparent',
|
|
1461
1371
|
width: 1
|
|
1462
1372
|
},
|
|
1463
1373
|
circle: {
|
|
1464
|
-
backgroundColor:
|
|
1374
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1465
1375
|
width: {
|
|
1466
1376
|
medium: 18,
|
|
1467
1377
|
large: 24
|
|
@@ -1476,7 +1386,7 @@ var toggle = {
|
|
|
1476
1386
|
}
|
|
1477
1387
|
},
|
|
1478
1388
|
wrapperBorder: {
|
|
1479
|
-
color:
|
|
1389
|
+
color: deepPurpleColorPalette.black,
|
|
1480
1390
|
width: 1
|
|
1481
1391
|
}
|
|
1482
1392
|
},
|
|
@@ -1489,17 +1399,17 @@ var toggle = {
|
|
|
1489
1399
|
medium: 50,
|
|
1490
1400
|
large: 66
|
|
1491
1401
|
},
|
|
1492
|
-
labelColor:
|
|
1402
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1493
1403
|
backgroundColor: {
|
|
1494
|
-
checked:
|
|
1495
|
-
unchecked:
|
|
1404
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1405
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1496
1406
|
},
|
|
1497
1407
|
border: {
|
|
1498
1408
|
color: 'transparent',
|
|
1499
1409
|
width: 1
|
|
1500
1410
|
},
|
|
1501
1411
|
circle: {
|
|
1502
|
-
backgroundColor:
|
|
1412
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1503
1413
|
width: {
|
|
1504
1414
|
medium: 18,
|
|
1505
1415
|
large: 24
|
|
@@ -1514,7 +1424,7 @@ var toggle = {
|
|
|
1514
1424
|
}
|
|
1515
1425
|
},
|
|
1516
1426
|
wrapperBorder: {
|
|
1517
|
-
color:
|
|
1427
|
+
color: deepPurpleColorPalette.black,
|
|
1518
1428
|
width: 1
|
|
1519
1429
|
}
|
|
1520
1430
|
}
|
|
@@ -1531,17 +1441,17 @@ var toggle = {
|
|
|
1531
1441
|
medium: 50,
|
|
1532
1442
|
large: 66
|
|
1533
1443
|
},
|
|
1534
|
-
labelColor:
|
|
1444
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1535
1445
|
backgroundColor: {
|
|
1536
|
-
checked:
|
|
1537
|
-
unchecked:
|
|
1446
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1447
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1538
1448
|
},
|
|
1539
1449
|
border: {
|
|
1540
1450
|
color: 'transparent',
|
|
1541
1451
|
width: 1
|
|
1542
1452
|
},
|
|
1543
1453
|
circle: {
|
|
1544
|
-
backgroundColor:
|
|
1454
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1545
1455
|
width: {
|
|
1546
1456
|
medium: 18,
|
|
1547
1457
|
large: 24
|
|
@@ -1569,17 +1479,17 @@ var toggle = {
|
|
|
1569
1479
|
medium: 50,
|
|
1570
1480
|
large: 66
|
|
1571
1481
|
},
|
|
1572
|
-
labelColor:
|
|
1482
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1573
1483
|
backgroundColor: {
|
|
1574
|
-
checked:
|
|
1575
|
-
unchecked:
|
|
1484
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1485
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1576
1486
|
},
|
|
1577
1487
|
border: {
|
|
1578
1488
|
color: 'transparent',
|
|
1579
1489
|
width: 1
|
|
1580
1490
|
},
|
|
1581
1491
|
circle: {
|
|
1582
|
-
backgroundColor:
|
|
1492
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1583
1493
|
width: {
|
|
1584
1494
|
medium: 18,
|
|
1585
1495
|
large: 24
|
|
@@ -1607,17 +1517,17 @@ var toggle = {
|
|
|
1607
1517
|
medium: 50,
|
|
1608
1518
|
large: 66
|
|
1609
1519
|
},
|
|
1610
|
-
labelColor:
|
|
1520
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1611
1521
|
backgroundColor: {
|
|
1612
|
-
checked:
|
|
1613
|
-
unchecked:
|
|
1522
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1523
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1614
1524
|
},
|
|
1615
1525
|
border: {
|
|
1616
|
-
color:
|
|
1526
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1617
1527
|
width: 1
|
|
1618
1528
|
},
|
|
1619
1529
|
circle: {
|
|
1620
|
-
backgroundColor:
|
|
1530
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1621
1531
|
width: {
|
|
1622
1532
|
medium: 18,
|
|
1623
1533
|
large: 24
|
|
@@ -1632,7 +1542,7 @@ var toggle = {
|
|
|
1632
1542
|
}
|
|
1633
1543
|
},
|
|
1634
1544
|
wrapperBorder: {
|
|
1635
|
-
color:
|
|
1545
|
+
color: deepPurpleColorPalette.white,
|
|
1636
1546
|
width: 1
|
|
1637
1547
|
}
|
|
1638
1548
|
},
|
|
@@ -1645,17 +1555,17 @@ var toggle = {
|
|
|
1645
1555
|
medium: 50,
|
|
1646
1556
|
large: 66
|
|
1647
1557
|
},
|
|
1648
|
-
labelColor:
|
|
1558
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1649
1559
|
backgroundColor: {
|
|
1650
|
-
checked:
|
|
1651
|
-
unchecked:
|
|
1560
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1561
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1652
1562
|
},
|
|
1653
1563
|
border: {
|
|
1654
|
-
color:
|
|
1564
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1655
1565
|
width: 1
|
|
1656
1566
|
},
|
|
1657
1567
|
circle: {
|
|
1658
|
-
backgroundColor:
|
|
1568
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1659
1569
|
width: {
|
|
1660
1570
|
medium: 18,
|
|
1661
1571
|
large: 24
|
|
@@ -1670,7 +1580,7 @@ var toggle = {
|
|
|
1670
1580
|
}
|
|
1671
1581
|
},
|
|
1672
1582
|
wrapperBorder: {
|
|
1673
|
-
color:
|
|
1583
|
+
color: deepPurpleColorPalette.white,
|
|
1674
1584
|
width: 1
|
|
1675
1585
|
}
|
|
1676
1586
|
}
|
|
@@ -1685,17 +1595,17 @@ var toggle = {
|
|
|
1685
1595
|
medium: 50,
|
|
1686
1596
|
large: 66
|
|
1687
1597
|
},
|
|
1688
|
-
labelColor:
|
|
1598
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1689
1599
|
backgroundColor: {
|
|
1690
|
-
checked:
|
|
1691
|
-
unchecked:
|
|
1600
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1601
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1692
1602
|
},
|
|
1693
1603
|
border: {
|
|
1694
1604
|
color: 'transparent',
|
|
1695
1605
|
width: 1
|
|
1696
1606
|
},
|
|
1697
1607
|
circle: {
|
|
1698
|
-
backgroundColor:
|
|
1608
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1699
1609
|
width: {
|
|
1700
1610
|
medium: 18,
|
|
1701
1611
|
large: 24
|
|
@@ -1723,17 +1633,17 @@ var toggle = {
|
|
|
1723
1633
|
medium: 50,
|
|
1724
1634
|
large: 66
|
|
1725
1635
|
},
|
|
1726
|
-
labelColor:
|
|
1636
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1727
1637
|
backgroundColor: {
|
|
1728
|
-
checked:
|
|
1729
|
-
unchecked:
|
|
1638
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1639
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1730
1640
|
},
|
|
1731
1641
|
border: {
|
|
1732
1642
|
color: 'transparent',
|
|
1733
1643
|
width: 1
|
|
1734
1644
|
},
|
|
1735
1645
|
circle: {
|
|
1736
|
-
backgroundColor:
|
|
1646
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1737
1647
|
width: {
|
|
1738
1648
|
medium: 18,
|
|
1739
1649
|
large: 24
|
|
@@ -1761,17 +1671,17 @@ var toggle = {
|
|
|
1761
1671
|
medium: 50,
|
|
1762
1672
|
large: 66
|
|
1763
1673
|
},
|
|
1764
|
-
labelColor:
|
|
1674
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1765
1675
|
backgroundColor: {
|
|
1766
|
-
checked:
|
|
1767
|
-
unchecked:
|
|
1676
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1677
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1768
1678
|
},
|
|
1769
1679
|
border: {
|
|
1770
|
-
color:
|
|
1680
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1771
1681
|
width: 1
|
|
1772
1682
|
},
|
|
1773
1683
|
circle: {
|
|
1774
|
-
backgroundColor:
|
|
1684
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1775
1685
|
width: {
|
|
1776
1686
|
medium: 18,
|
|
1777
1687
|
large: 24
|
|
@@ -1786,7 +1696,7 @@ var toggle = {
|
|
|
1786
1696
|
}
|
|
1787
1697
|
},
|
|
1788
1698
|
wrapperBorder: {
|
|
1789
|
-
color:
|
|
1699
|
+
color: deepPurpleColorPalette.white,
|
|
1790
1700
|
width: 1
|
|
1791
1701
|
}
|
|
1792
1702
|
},
|
|
@@ -1799,17 +1709,17 @@ var toggle = {
|
|
|
1799
1709
|
medium: 50,
|
|
1800
1710
|
large: 66
|
|
1801
1711
|
},
|
|
1802
|
-
labelColor:
|
|
1712
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1803
1713
|
backgroundColor: {
|
|
1804
|
-
checked:
|
|
1805
|
-
unchecked:
|
|
1714
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1715
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1806
1716
|
},
|
|
1807
1717
|
border: {
|
|
1808
|
-
color:
|
|
1718
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1809
1719
|
width: 1
|
|
1810
1720
|
},
|
|
1811
1721
|
circle: {
|
|
1812
|
-
backgroundColor:
|
|
1722
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1813
1723
|
width: {
|
|
1814
1724
|
medium: 18,
|
|
1815
1725
|
large: 24
|
|
@@ -1824,7 +1734,7 @@ var toggle = {
|
|
|
1824
1734
|
}
|
|
1825
1735
|
},
|
|
1826
1736
|
wrapperBorder: {
|
|
1827
|
-
color:
|
|
1737
|
+
color: deepPurpleColorPalette.white,
|
|
1828
1738
|
width: 1
|
|
1829
1739
|
}
|
|
1830
1740
|
}
|
|
@@ -1886,50 +1796,50 @@ var highlight = {
|
|
|
1886
1796
|
},
|
|
1887
1797
|
primary: {
|
|
1888
1798
|
"default": {
|
|
1889
|
-
backgroundColor:
|
|
1799
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1890
1800
|
},
|
|
1891
1801
|
hover: {
|
|
1892
|
-
backgroundColor:
|
|
1802
|
+
backgroundColor: deepPurpleColorPalette['beige.4']
|
|
1893
1803
|
}
|
|
1894
1804
|
},
|
|
1895
1805
|
secondary: {
|
|
1896
1806
|
"default": {
|
|
1897
|
-
backgroundColor:
|
|
1807
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1898
1808
|
},
|
|
1899
1809
|
hover: {
|
|
1900
|
-
backgroundColor:
|
|
1810
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
1901
1811
|
}
|
|
1902
1812
|
},
|
|
1903
1813
|
ghost: {
|
|
1904
1814
|
"default": {
|
|
1905
|
-
backgroundColor:
|
|
1815
|
+
backgroundColor: deepPurpleColorPalette.white
|
|
1906
1816
|
},
|
|
1907
1817
|
hover: {
|
|
1908
|
-
backgroundColor:
|
|
1818
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1909
1819
|
}
|
|
1910
1820
|
},
|
|
1911
1821
|
dark: {
|
|
1912
1822
|
"default": {
|
|
1913
|
-
backgroundColor:
|
|
1823
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1914
1824
|
},
|
|
1915
1825
|
hover: {
|
|
1916
|
-
backgroundColor:
|
|
1826
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1917
1827
|
}
|
|
1918
1828
|
},
|
|
1919
1829
|
success: {
|
|
1920
1830
|
"default": {
|
|
1921
|
-
backgroundColor:
|
|
1831
|
+
backgroundColor: deepPurpleColorPalette['green.1']
|
|
1922
1832
|
},
|
|
1923
1833
|
hover: {
|
|
1924
|
-
backgroundColor:
|
|
1834
|
+
backgroundColor: deepPurpleColorPalette['green.2']
|
|
1925
1835
|
}
|
|
1926
1836
|
},
|
|
1927
1837
|
warning: {
|
|
1928
1838
|
"default": {
|
|
1929
|
-
backgroundColor:
|
|
1839
|
+
backgroundColor: deepPurpleColorPalette['yellow.1']
|
|
1930
1840
|
},
|
|
1931
1841
|
hover: {
|
|
1932
|
-
backgroundColor:
|
|
1842
|
+
backgroundColor: deepPurpleColorPalette['yellow.2']
|
|
1933
1843
|
}
|
|
1934
1844
|
},
|
|
1935
1845
|
padding: {
|
|
@@ -1969,14 +1879,6 @@ var icon = {
|
|
|
1969
1879
|
header4: createTypographyIconSizeConfig(18, 24),
|
|
1970
1880
|
// also known as xxsmall
|
|
1971
1881
|
header5: createTypographyIconSizeConfig(18, 18),
|
|
1972
|
-
'header-impact-xxl': createTypographyIconSizeConfig(56, 56),
|
|
1973
|
-
'header-impact-xl': createTypographyIconSizeConfig(48, 48),
|
|
1974
|
-
'header-impact-l': createTypographyIconSizeConfig(40, 40),
|
|
1975
|
-
'header-impact-m': createTypographyIconSizeConfig(32, 32),
|
|
1976
|
-
'header-impact-s': createTypographyIconSizeConfig(24, 24),
|
|
1977
|
-
'header-impact-xs': createTypographyIconSizeConfig(18, 18),
|
|
1978
|
-
'header-impact-xxs': createTypographyIconSizeConfig(16, 16),
|
|
1979
|
-
'header-impact-xxxs': createTypographyIconSizeConfig(14, 14),
|
|
1980
1882
|
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1981
1883
|
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1982
1884
|
body: createTypographyIconSizeConfig(16, 16),
|
|
@@ -2021,7 +1923,7 @@ var iconButton = {
|
|
|
2021
1923
|
pressedBackgroundColor: button["default"].ghost.pressedBackgroundColor
|
|
2022
1924
|
},
|
|
2023
1925
|
primary: {
|
|
2024
|
-
pressedBackgroundColor:
|
|
1926
|
+
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
2025
1927
|
},
|
|
2026
1928
|
'primary-plain': {
|
|
2027
1929
|
pressedBackgroundColor: colors.primaryLight,
|
|
@@ -2096,155 +1998,198 @@ var pageLoader = {
|
|
|
2096
1998
|
}
|
|
2097
1999
|
};
|
|
2098
2000
|
|
|
2099
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2100
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
2101
|
-
};
|
|
2102
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
2103
|
-
var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
|
|
2104
|
-
var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
|
|
2105
|
-
var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
|
|
2106
|
-
return {
|
|
2107
|
-
baseAndSmall: {
|
|
2108
|
-
fontSize: baseAndSmallFontSize,
|
|
2109
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
2110
|
-
},
|
|
2111
|
-
mediumAndWide: {
|
|
2112
|
-
fontSize: mediumAndWideFontSize,
|
|
2113
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
2114
|
-
}
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
2118
|
-
var config = {
|
|
2119
|
-
fontSize: fontSize,
|
|
2120
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
2121
|
-
};
|
|
2122
|
-
return {
|
|
2123
|
-
baseAndSmall: config,
|
|
2124
|
-
mediumAndWide: config
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
2001
|
var typography = {
|
|
2128
2002
|
colors: {
|
|
2129
2003
|
black: colors.black,
|
|
2130
2004
|
'black-anthracite': colors.blackAnthracite,
|
|
2131
|
-
'black-disabled':
|
|
2132
|
-
'black-light':
|
|
2005
|
+
'black-disabled': deepPurpleColorPalette['grey.3'],
|
|
2006
|
+
'black-light': deepPurpleColorPalette['grey.5'],
|
|
2133
2007
|
white: colors.white,
|
|
2134
2008
|
'white-light': colors.white,
|
|
2135
2009
|
primary: colors.primary,
|
|
2136
2010
|
'primary-light': colors.primaryLight,
|
|
2137
2011
|
accent: colors.accent,
|
|
2138
2012
|
success: colors.success,
|
|
2139
|
-
danger:
|
|
2013
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
2140
2014
|
warning: colors.warning
|
|
2141
2015
|
},
|
|
2142
2016
|
types: {
|
|
2143
2017
|
headings: {
|
|
2144
2018
|
fontFamily: {
|
|
2145
2019
|
"native": {
|
|
2146
|
-
regular: '
|
|
2147
|
-
|
|
2020
|
+
regular: 'GTStandardRegular',
|
|
2021
|
+
semibold: 'GTStandardSemibold',
|
|
2022
|
+
bold: 'GTStandardBold'
|
|
2148
2023
|
},
|
|
2149
2024
|
web: {
|
|
2150
|
-
regular: '
|
|
2151
|
-
|
|
2025
|
+
regular: 'GTStandard',
|
|
2026
|
+
semibold: 'GTStandard',
|
|
2027
|
+
bold: 'GTStandard'
|
|
2152
2028
|
}
|
|
2153
2029
|
},
|
|
2154
2030
|
fontWeight: {
|
|
2155
|
-
regular:
|
|
2031
|
+
regular: 500,
|
|
2032
|
+
semibold: 600,
|
|
2156
2033
|
bold: 700
|
|
2157
2034
|
},
|
|
2158
2035
|
fontStyle: 'normal',
|
|
2159
2036
|
configs: {
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
'heading-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2037
|
+
'heading-xxl': {
|
|
2038
|
+
fontSize: 56,
|
|
2039
|
+
lineHeight: 64,
|
|
2040
|
+
allowedFontWeights: ['semibold']
|
|
2041
|
+
},
|
|
2042
|
+
'heading-xl': {
|
|
2043
|
+
fontSize: 48,
|
|
2044
|
+
lineHeight: 56,
|
|
2045
|
+
allowedFontWeights: ['semibold']
|
|
2046
|
+
},
|
|
2047
|
+
'heading-l': {
|
|
2048
|
+
fontSize: 40,
|
|
2049
|
+
lineHeight: 48,
|
|
2050
|
+
allowedFontWeights: ['semibold']
|
|
2051
|
+
},
|
|
2052
|
+
'heading-m': {
|
|
2053
|
+
fontSize: 28,
|
|
2054
|
+
lineHeight: 32,
|
|
2055
|
+
allowedFontWeights: ['semibold']
|
|
2056
|
+
},
|
|
2057
|
+
'heading-s': {
|
|
2058
|
+
fontSize: 18,
|
|
2059
|
+
lineHeight: 20,
|
|
2060
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2061
|
+
},
|
|
2062
|
+
'heading-xs': {
|
|
2063
|
+
fontSize: 16,
|
|
2064
|
+
lineHeight: 18,
|
|
2065
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2066
|
+
}
|
|
2174
2067
|
}
|
|
2175
2068
|
},
|
|
2176
|
-
|
|
2069
|
+
bodies: {
|
|
2177
2070
|
fontFamily: {
|
|
2178
2071
|
"native": {
|
|
2179
|
-
regular: '
|
|
2180
|
-
bold: '
|
|
2072
|
+
regular: 'GTStandardRegular',
|
|
2073
|
+
bold: 'GTStandardBold'
|
|
2181
2074
|
},
|
|
2182
2075
|
web: {
|
|
2183
|
-
regular: '
|
|
2184
|
-
bold: '
|
|
2076
|
+
regular: 'GTStandard',
|
|
2077
|
+
bold: 'GTStandard'
|
|
2185
2078
|
}
|
|
2186
2079
|
},
|
|
2187
|
-
fontWeight:
|
|
2188
|
-
|
|
2080
|
+
fontWeight: {
|
|
2081
|
+
regular: 500,
|
|
2082
|
+
bold: 700
|
|
2083
|
+
},
|
|
2084
|
+
fontStyle: {
|
|
2085
|
+
regular: 'normal',
|
|
2086
|
+
bold: 'normal'
|
|
2087
|
+
},
|
|
2189
2088
|
configs: {
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
'
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
'
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
'
|
|
2206
|
-
|
|
2207
|
-
|
|
2089
|
+
'body-xl': {
|
|
2090
|
+
fontSize: 24,
|
|
2091
|
+
lineHeight: 32,
|
|
2092
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2093
|
+
},
|
|
2094
|
+
'body-l': {
|
|
2095
|
+
fontSize: 18,
|
|
2096
|
+
lineHeight: 26,
|
|
2097
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2098
|
+
},
|
|
2099
|
+
'body-m': {
|
|
2100
|
+
fontSize: 16,
|
|
2101
|
+
lineHeight: 24,
|
|
2102
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2103
|
+
},
|
|
2104
|
+
'body-s': {
|
|
2105
|
+
fontSize: 14,
|
|
2106
|
+
lineHeight: 20,
|
|
2107
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2108
|
+
},
|
|
2109
|
+
'body-xs': {
|
|
2110
|
+
fontSize: 12,
|
|
2111
|
+
lineHeight: 16,
|
|
2112
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2113
|
+
}
|
|
2208
2114
|
}
|
|
2209
2115
|
},
|
|
2210
|
-
|
|
2116
|
+
labels: {
|
|
2211
2117
|
fontFamily: {
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
bold: 'Moderat'
|
|
2118
|
+
"native": {
|
|
2119
|
+
semibold: 'GTStandardSemibold'
|
|
2215
2120
|
},
|
|
2121
|
+
web: {
|
|
2122
|
+
semibold: 'GTStandard'
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
fontWeight: {
|
|
2126
|
+
semibold: 600
|
|
2127
|
+
},
|
|
2128
|
+
fontStyle: 'normal',
|
|
2129
|
+
configs: {
|
|
2130
|
+
'label-large': {
|
|
2131
|
+
fontSize: 16,
|
|
2132
|
+
lineHeight: 24,
|
|
2133
|
+
allowedFontWeights: ['semibold']
|
|
2134
|
+
},
|
|
2135
|
+
'label-medium': {
|
|
2136
|
+
fontSize: 14,
|
|
2137
|
+
lineHeight: 20,
|
|
2138
|
+
allowedFontWeights: ['semibold']
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2142
|
+
contentCaps: {
|
|
2143
|
+
fontFamily: {
|
|
2216
2144
|
"native": {
|
|
2217
|
-
|
|
2218
|
-
|
|
2145
|
+
bold: 'GTStandardNarrowBold'
|
|
2146
|
+
},
|
|
2147
|
+
web: {
|
|
2148
|
+
bold: 'GTStandardNarrow'
|
|
2219
2149
|
}
|
|
2220
2150
|
},
|
|
2221
2151
|
fontWeight: {
|
|
2222
|
-
regular: 400,
|
|
2223
2152
|
bold: 700
|
|
2224
2153
|
},
|
|
2225
|
-
fontStyle:
|
|
2226
|
-
regular: 'normal',
|
|
2227
|
-
bold: 'normal'
|
|
2228
|
-
},
|
|
2154
|
+
fontStyle: 'normal',
|
|
2229
2155
|
configs: {
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
'
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
'
|
|
2241
|
-
|
|
2156
|
+
'content-caps-xxxl': {
|
|
2157
|
+
fontSize: 40,
|
|
2158
|
+
lineHeight: 40,
|
|
2159
|
+
allowedFontWeights: ['bold']
|
|
2160
|
+
},
|
|
2161
|
+
'content-caps-xxl': {
|
|
2162
|
+
fontSize: 32,
|
|
2163
|
+
lineHeight: 40,
|
|
2164
|
+
allowedFontWeights: ['bold']
|
|
2165
|
+
},
|
|
2166
|
+
'content-caps-xl': {
|
|
2167
|
+
fontSize: 24,
|
|
2168
|
+
lineHeight: 28,
|
|
2169
|
+
allowedFontWeights: ['bold']
|
|
2170
|
+
},
|
|
2171
|
+
'content-caps-l': {
|
|
2172
|
+
fontSize: 18,
|
|
2173
|
+
lineHeight: 20,
|
|
2174
|
+
allowedFontWeights: ['bold']
|
|
2175
|
+
},
|
|
2176
|
+
'content-caps-m': {
|
|
2177
|
+
fontSize: 16,
|
|
2178
|
+
lineHeight: 18,
|
|
2179
|
+
allowedFontWeights: ['bold']
|
|
2180
|
+
},
|
|
2181
|
+
'content-caps-s': {
|
|
2182
|
+
fontSize: 14,
|
|
2183
|
+
lineHeight: 16,
|
|
2184
|
+
allowedFontWeights: ['bold']
|
|
2185
|
+
},
|
|
2186
|
+
'content-caps-xs': {
|
|
2187
|
+
fontSize: 12,
|
|
2188
|
+
lineHeight: 14,
|
|
2189
|
+
allowedFontWeights: ['bold']
|
|
2190
|
+
}
|
|
2242
2191
|
}
|
|
2243
2192
|
}
|
|
2244
|
-
},
|
|
2245
|
-
link: {
|
|
2246
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
2247
|
-
disabledColor: colors.blackDisabled
|
|
2248
2193
|
}
|
|
2249
2194
|
};
|
|
2250
2195
|
|
|
@@ -2253,7 +2198,7 @@ var picker = {
|
|
|
2253
2198
|
ios: {
|
|
2254
2199
|
"default": _objectSpread(_objectSpread({
|
|
2255
2200
|
fontFamily: typography.types.bodies.fontFamily["native"].regular
|
|
2256
|
-
}, typography.types.bodies.configs
|
|
2201
|
+
}, typography.types.bodies.configs['body-m']), {}, {
|
|
2257
2202
|
fontSize: 16,
|
|
2258
2203
|
color: typography.colors['black-light'],
|
|
2259
2204
|
// 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)
|
|
@@ -2286,19 +2231,19 @@ var picker = {
|
|
|
2286
2231
|
backgroundColor: colors.transparent
|
|
2287
2232
|
},
|
|
2288
2233
|
hovered: {
|
|
2289
|
-
backgroundColor:
|
|
2234
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2290
2235
|
},
|
|
2291
2236
|
focused: {
|
|
2292
|
-
backgroundColor:
|
|
2237
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2293
2238
|
},
|
|
2294
2239
|
selected: {
|
|
2295
|
-
backgroundColor:
|
|
2240
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2296
2241
|
},
|
|
2297
2242
|
highlighted: {
|
|
2298
|
-
backgroundColor:
|
|
2243
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2299
2244
|
},
|
|
2300
2245
|
pressed: {
|
|
2301
|
-
backgroundColor:
|
|
2246
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
2302
2247
|
}
|
|
2303
2248
|
}
|
|
2304
2249
|
},
|
|
@@ -2382,8 +2327,8 @@ var shadows = {
|
|
|
2382
2327
|
}
|
|
2383
2328
|
};
|
|
2384
2329
|
|
|
2385
|
-
var skeletonBackgroundColor =
|
|
2386
|
-
var skeletonFlareColor =
|
|
2330
|
+
var skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
|
|
2331
|
+
var skeletonFlareColor = deepPurpleColorPalette['beige.3'];
|
|
2387
2332
|
var skeleton = {
|
|
2388
2333
|
backgroundColor: skeletonBackgroundColor,
|
|
2389
2334
|
flareColor: skeletonFlareColor,
|
|
@@ -2406,20 +2351,6 @@ var skeleton = {
|
|
|
2406
2351
|
|
|
2407
2352
|
var tag = {
|
|
2408
2353
|
borderRadius: 16,
|
|
2409
|
-
variant: {
|
|
2410
|
-
contrast: {
|
|
2411
|
-
borderWidth: 0
|
|
2412
|
-
},
|
|
2413
|
-
fill: {
|
|
2414
|
-
borderWidth: 0
|
|
2415
|
-
},
|
|
2416
|
-
outline: {
|
|
2417
|
-
borderWidth: 1
|
|
2418
|
-
},
|
|
2419
|
-
subtle: {
|
|
2420
|
-
borderWidth: 0
|
|
2421
|
-
}
|
|
2422
|
-
},
|
|
2423
2354
|
icon: {
|
|
2424
2355
|
small: 16,
|
|
2425
2356
|
medium: 16,
|
|
@@ -2495,14 +2426,14 @@ var verticalSteps = {
|
|
|
2495
2426
|
},
|
|
2496
2427
|
done: {
|
|
2497
2428
|
icon: {
|
|
2498
|
-
backgroundColor:
|
|
2499
|
-
textColor: colors.
|
|
2429
|
+
backgroundColor: colors.primary,
|
|
2430
|
+
textColor: colors.white
|
|
2500
2431
|
}
|
|
2501
2432
|
},
|
|
2502
2433
|
"default": {
|
|
2503
2434
|
icon: {
|
|
2504
2435
|
backgroundColor: colors.disabled,
|
|
2505
|
-
textColor:
|
|
2436
|
+
textColor: deepPurpleColorPalette['grey.3']
|
|
2506
2437
|
}
|
|
2507
2438
|
}
|
|
2508
2439
|
};
|
|
@@ -2538,7 +2469,7 @@ var theme = {
|
|
|
2538
2469
|
},
|
|
2539
2470
|
colors: colors,
|
|
2540
2471
|
palettes: {
|
|
2541
|
-
|
|
2472
|
+
deepPurple: deepPurpleColorPalette
|
|
2542
2473
|
},
|
|
2543
2474
|
avatar: avatar,
|
|
2544
2475
|
breakpoints: breakpoints,
|
|
@@ -2964,14 +2895,18 @@ function getTypographyColorValue(colorName) {
|
|
|
2964
2895
|
}
|
|
2965
2896
|
|
|
2966
2897
|
var isTypeHeadings = function (type) {
|
|
2967
|
-
return type.startsWith('
|
|
2898
|
+
return type.startsWith('heading');
|
|
2899
|
+
};
|
|
2900
|
+
var isTypeLabels = function (type) {
|
|
2901
|
+
return type.startsWith('label');
|
|
2968
2902
|
};
|
|
2969
|
-
var
|
|
2970
|
-
return type.startsWith('
|
|
2903
|
+
var isTypeContentCaps = function (type) {
|
|
2904
|
+
return type.startsWith('content-caps');
|
|
2971
2905
|
};
|
|
2972
2906
|
var getTypographyFamily = function (type) {
|
|
2973
|
-
if (isTypeHeadingsImpact(type)) return 'headings-impact';
|
|
2974
2907
|
if (isTypeHeadings(type)) return 'headings';
|
|
2908
|
+
if (isTypeLabels(type)) return 'labels';
|
|
2909
|
+
if (isTypeContentCaps(type)) return 'contentCaps';
|
|
2975
2910
|
return 'bodies';
|
|
2976
2911
|
};
|
|
2977
2912
|
var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInContext) {
|
|
@@ -2980,7 +2915,7 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
|
|
|
2980
2915
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
2981
2916
|
};
|
|
2982
2917
|
|
|
2983
|
-
var _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2918
|
+
var _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color", "underline"];
|
|
2984
2919
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
2985
2920
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
2986
2921
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -2994,9 +2929,6 @@ var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
|
|
|
2994
2929
|
function useTypographyDefaultColor() {
|
|
2995
2930
|
return useContext(TypographyDefaultColorContext);
|
|
2996
2931
|
}
|
|
2997
|
-
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
2998
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
2999
|
-
}
|
|
3000
2932
|
|
|
3001
2933
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
3002
2934
|
// & {
|
|
@@ -3012,42 +2944,120 @@ function createNativeBaseFontSize(type) {
|
|
|
3012
2944
|
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
|
|
3013
2945
|
var value = typeWithMediumForced[typeName];
|
|
3014
2946
|
if (value) {
|
|
3015
|
-
fontSizeForNativeBase[typeName] =
|
|
2947
|
+
fontSizeForNativeBase[typeName] = value;
|
|
3016
2948
|
}
|
|
3017
2949
|
});
|
|
3018
2950
|
return fontSizeForNativeBase;
|
|
3019
2951
|
}
|
|
3020
|
-
function
|
|
2952
|
+
function ThrowErrorIfInvalidVariant(variant, value, fontWeight) {
|
|
2953
|
+
if (process.env.NODE_ENV !== 'production' && variant && variant !== fontWeight) {
|
|
2954
|
+
throw new Error("Invalid variant \"".concat(variant, "\" for value \"").concat(value, "\" only \"").concat(fontWeight, "\" is allowed."));
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
function getTypographyWeights(typographyFamily) {
|
|
2958
|
+
var boldTypoTypes = new Set();
|
|
2959
|
+
var semiboldTypoTypes = new Set();
|
|
2960
|
+
var regularTypoTypes = new Set();
|
|
2961
|
+
var typographyConfig = typography.types[typographyFamily].configs;
|
|
2962
|
+
Object.keys(typographyConfig).forEach(function (typographyType) {
|
|
2963
|
+
var _ref = typographyConfig[typographyType],
|
|
2964
|
+
allowedFontWeights = _ref.allowedFontWeights;
|
|
2965
|
+
if (allowedFontWeights.includes('bold')) {
|
|
2966
|
+
boldTypoTypes.add(typographyType);
|
|
2967
|
+
}
|
|
2968
|
+
if (allowedFontWeights.includes('semibold')) {
|
|
2969
|
+
semiboldTypoTypes.add(typographyType);
|
|
2970
|
+
}
|
|
2971
|
+
if (allowedFontWeights.includes('regular')) {
|
|
2972
|
+
regularTypoTypes.add(typographyType);
|
|
2973
|
+
}
|
|
2974
|
+
});
|
|
2975
|
+
return {
|
|
2976
|
+
boldTypoTypes: boldTypoTypes,
|
|
2977
|
+
semiboldTypoTypes: semiboldTypoTypes,
|
|
2978
|
+
regularTypoTypes: regularTypoTypes
|
|
2979
|
+
};
|
|
2980
|
+
}
|
|
2981
|
+
function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
2982
|
+
var _getTypographyWeights = getTypographyWeights(typographyFamily || 'bodies'),
|
|
2983
|
+
boldTypoTypes = _getTypographyWeights.boldTypoTypes,
|
|
2984
|
+
semiboldTypoTypes = _getTypographyWeights.semiboldTypoTypes,
|
|
2985
|
+
regularTypoTypes = _getTypographyWeights.regularTypoTypes;
|
|
2986
|
+
var webFontWeight = {};
|
|
2987
|
+
var nativeFontFamily = {};
|
|
2988
|
+
var breakpoints = [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE];
|
|
2989
|
+
breakpoints.forEach(function (typeName) {
|
|
2990
|
+
var value = type[typeName];
|
|
2991
|
+
if (!value) return;
|
|
2992
|
+
var inBold = boldTypoTypes.has(value);
|
|
2993
|
+
var inSemi = semiboldTypoTypes.has(value);
|
|
2994
|
+
var inRegular = regularTypoTypes.has(value);
|
|
2995
|
+
var presenceCount = [inBold, inSemi, inRegular].filter(Boolean).length;
|
|
2996
|
+
var resolvedVariant;
|
|
2997
|
+
if (presenceCount > 1) {
|
|
2998
|
+
// if present in multiple weight
|
|
2999
|
+
|
|
3000
|
+
if (process.env.NODE_ENV !== 'production' && variant && !(variant === 'bold' && inBold || variant === 'semibold' && inSemi || variant === 'regular' && inRegular)) {
|
|
3001
|
+
throw new Error("Invalid variant \"".concat(variant, "\" for value \"").concat(value, "\". Only ").concat(inBold ? '"bold"' : ' ').concat(inSemi ? '"semibold"' : ' ').concat(inRegular ? '"regular"' : ' ', "\" is allowed."));
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
// always fallback on regular if no variant specified
|
|
3005
|
+
resolvedVariant = variant || 'regular';
|
|
3006
|
+
} else if (inBold) {
|
|
3007
|
+
// bold
|
|
3008
|
+
ThrowErrorIfInvalidVariant(variant, value, 'bold');
|
|
3009
|
+
resolvedVariant = 'bold';
|
|
3010
|
+
} else if (inSemi) {
|
|
3011
|
+
// semibold
|
|
3012
|
+
ThrowErrorIfInvalidVariant(variant, value, 'semibold');
|
|
3013
|
+
resolvedVariant = 'semibold';
|
|
3014
|
+
} else {
|
|
3015
|
+
// regular
|
|
3016
|
+
ThrowErrorIfInvalidVariant(variant, value, 'regular');
|
|
3017
|
+
resolvedVariant = 'regular';
|
|
3018
|
+
}
|
|
3019
|
+
webFontWeight[typeName] = resolvedVariant;
|
|
3020
|
+
nativeFontFamily[typeName] = "".concat(typographyFamily, ".").concat(resolvedVariant);
|
|
3021
|
+
});
|
|
3022
|
+
return {
|
|
3023
|
+
webFontWeight: webFontWeight,
|
|
3024
|
+
nativeFontFamily: nativeFontFamily
|
|
3025
|
+
};
|
|
3026
|
+
}
|
|
3027
|
+
function Typography(_ref2) {
|
|
3021
3028
|
var _type$base;
|
|
3022
|
-
var accessibilityRole =
|
|
3023
|
-
legacyBase =
|
|
3024
|
-
legacySmall =
|
|
3025
|
-
legacyMedium =
|
|
3026
|
-
legacyLarge =
|
|
3027
|
-
legacyWide =
|
|
3028
|
-
|
|
3029
|
-
type =
|
|
3029
|
+
var accessibilityRole = _ref2.accessibilityRole,
|
|
3030
|
+
legacyBase = _ref2.base,
|
|
3031
|
+
legacySmall = _ref2.small,
|
|
3032
|
+
legacyMedium = _ref2.medium,
|
|
3033
|
+
legacyLarge = _ref2.large,
|
|
3034
|
+
legacyWide = _ref2.wide,
|
|
3035
|
+
_ref2$type = _ref2.type,
|
|
3036
|
+
type = _ref2$type === void 0 ? {
|
|
3030
3037
|
base: legacyBase,
|
|
3031
3038
|
small: legacySmall,
|
|
3032
3039
|
medium: legacyMedium,
|
|
3033
3040
|
large: legacyLarge,
|
|
3034
3041
|
wide: legacyWide
|
|
3035
|
-
} :
|
|
3036
|
-
variant =
|
|
3037
|
-
color =
|
|
3038
|
-
|
|
3042
|
+
} : _ref2$type,
|
|
3043
|
+
variant = _ref2.variant,
|
|
3044
|
+
color = _ref2.color,
|
|
3045
|
+
underline = _ref2.underline,
|
|
3046
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$S);
|
|
3039
3047
|
var sx = useSx();
|
|
3040
3048
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3041
3049
|
var defaultColor = useTypographyDefaultColor();
|
|
3042
3050
|
var hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3043
|
-
var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body';
|
|
3051
|
+
var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body-m';
|
|
3044
3052
|
var typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3045
|
-
|
|
3046
|
-
// force bold for headings, default to regular for bodies
|
|
3047
|
-
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular';
|
|
3048
3053
|
var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
|
|
3049
3054
|
base: baseOrDefaultToBody
|
|
3050
3055
|
}));
|
|
3056
|
+
var _getUniversalFontWeig = getUniversalFontWeight(_objectSpread(_objectSpread({}, type), {}, {
|
|
3057
|
+
base: baseOrDefaultToBody
|
|
3058
|
+
}), variant, typographyFamily),
|
|
3059
|
+
webFontWeight = _getUniversalFontWeig.webFontWeight,
|
|
3060
|
+
nativeFontFamily = _getUniversalFontWeig.nativeFontFamily;
|
|
3051
3061
|
var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
3052
3062
|
var currentColorValue = getTypographyColorValue(currentColor);
|
|
3053
3063
|
var colorStyles = sx({
|
|
@@ -3055,22 +3065,30 @@ function Typography(_ref) {
|
|
|
3055
3065
|
textDecorationColor: currentColorValue
|
|
3056
3066
|
});
|
|
3057
3067
|
if (process.env.NODE_ENV !== 'production') {
|
|
3058
|
-
Object.entries(type).forEach(function (
|
|
3059
|
-
var
|
|
3060
|
-
key =
|
|
3061
|
-
value =
|
|
3068
|
+
Object.entries(type).forEach(function (_ref3) {
|
|
3069
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
3070
|
+
key = _ref4[0],
|
|
3071
|
+
value = _ref4[1];
|
|
3062
3072
|
if (value && getTypographyFamily(value) !== typographyFamily) {
|
|
3063
3073
|
throw new Error("Invalid value for \"".concat(key, "\": \"").concat(value, "\" is ").concat(typographyFamily, ". Don't mix families."));
|
|
3064
3074
|
}
|
|
3065
3075
|
});
|
|
3066
3076
|
}
|
|
3067
|
-
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
3077
|
+
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread(_objectSpread({
|
|
3068
3078
|
accessibilityRole: accessibilityRole || undefined,
|
|
3069
3079
|
fontSize: fontSizeForNativeBase,
|
|
3070
3080
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
3071
|
-
fontWeight:
|
|
3072
|
-
fontFamily:
|
|
3073
|
-
|
|
3081
|
+
fontWeight: webFontWeight,
|
|
3082
|
+
fontFamily: nativeFontFamily,
|
|
3083
|
+
borderBottomWidth: underline ? 1 : undefined,
|
|
3084
|
+
borderBottomColor: underline ? currentColorValue : undefined,
|
|
3085
|
+
textTransform: typographyFamily === 'contentCaps' ? 'uppercase' : undefined
|
|
3086
|
+
}, colorStyles), otherProps), {}, {
|
|
3087
|
+
// The property text-underline-offset is not on native.
|
|
3088
|
+
// To add an underline with an offset, we use a custom borderBottomWidth and color.
|
|
3089
|
+
// and we set underline to undefined to avoid a double underline
|
|
3090
|
+
underline: undefined
|
|
3091
|
+
}));
|
|
3074
3092
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(TypographyFamilyContext.Provider, {
|
|
3075
3093
|
value: typographyFamily,
|
|
3076
3094
|
children: /*#__PURE__*/jsx(TypographyTypeContext.Provider, {
|
|
@@ -3117,17 +3135,6 @@ Typography.Header4 = createHeading(4);
|
|
|
3117
3135
|
Typography.Header5 = createHeading(5);
|
|
3118
3136
|
Typography.Header6 = createHeading(6);
|
|
3119
3137
|
|
|
3120
|
-
/** @deprecated use Typography.Header1 */
|
|
3121
|
-
Typography.h1 = createHeading(1, 'header1');
|
|
3122
|
-
/** @deprecated use Typography.Header2 */
|
|
3123
|
-
Typography.h2 = createHeading(2, 'header2');
|
|
3124
|
-
/** @deprecated use Typography.Header3 */
|
|
3125
|
-
Typography.h3 = createHeading(3, 'header3');
|
|
3126
|
-
/** @deprecated use Typography.Header4 */
|
|
3127
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
3128
|
-
/** @deprecated use Typography.Header6 */
|
|
3129
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
3130
|
-
|
|
3131
3138
|
function ButtonBadge(_ref) {
|
|
3132
3139
|
var withBadge = _ref.withBadge,
|
|
3133
3140
|
badgeCount = _ref.badgeCount;
|
|
@@ -3315,7 +3322,7 @@ function ButtonContentChildren(_ref2) {
|
|
|
3315
3322
|
textAlign: "center",
|
|
3316
3323
|
_android: sharedNativeStyle,
|
|
3317
3324
|
_ios: sharedNativeStyle,
|
|
3318
|
-
base: "body",
|
|
3325
|
+
base: "body-m",
|
|
3319
3326
|
variant: "bold",
|
|
3320
3327
|
color: color,
|
|
3321
3328
|
children: children
|
|
@@ -3855,7 +3862,7 @@ function AvatarContent(_ref) {
|
|
|
3855
3862
|
};
|
|
3856
3863
|
if (firstname && lastname) {
|
|
3857
3864
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
3858
|
-
base: sizeVariant === 'large' ? 'body-
|
|
3865
|
+
base: sizeVariant === 'large' ? 'body-l' : 'body-s',
|
|
3859
3866
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3860
3867
|
color: getFontColor(),
|
|
3861
3868
|
children: getInitials(firstname, lastname)
|
|
@@ -5210,7 +5217,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5210
5217
|
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5211
5218
|
var theme = useTheme();
|
|
5212
5219
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5213
|
-
base: 'body'
|
|
5220
|
+
base: 'body-m'
|
|
5214
5221
|
});
|
|
5215
5222
|
var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5216
5223
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
@@ -6250,7 +6257,7 @@ function ModalTitle(_ref) {
|
|
|
6250
6257
|
var children = _ref.children;
|
|
6251
6258
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
6252
6259
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6253
|
-
base: "body",
|
|
6260
|
+
base: "body-m",
|
|
6254
6261
|
variant: "bold",
|
|
6255
6262
|
children: children
|
|
6256
6263
|
})
|
|
@@ -6615,7 +6622,7 @@ function BottomSheetActionsItem(_ref) {
|
|
|
6615
6622
|
withPadding: true,
|
|
6616
6623
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6617
6624
|
variant: "bold",
|
|
6618
|
-
base: "body",
|
|
6625
|
+
base: "body-m",
|
|
6619
6626
|
children: title
|
|
6620
6627
|
})
|
|
6621
6628
|
})
|
|
@@ -7282,7 +7289,7 @@ function InputFeedback(_ref) {
|
|
|
7282
7289
|
testID = _ref.testID,
|
|
7283
7290
|
children = _ref.children;
|
|
7284
7291
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
7285
|
-
base: "body-
|
|
7292
|
+
base: "body-s",
|
|
7286
7293
|
color: getColorFromState(state),
|
|
7287
7294
|
testID: testID,
|
|
7288
7295
|
children: children
|
|
@@ -7444,7 +7451,7 @@ function InputTag(_ref) {
|
|
|
7444
7451
|
color: "black"
|
|
7445
7452
|
})
|
|
7446
7453
|
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
7447
|
-
base: "body-
|
|
7454
|
+
base: "body-s",
|
|
7448
7455
|
color: "black",
|
|
7449
7456
|
children: children
|
|
7450
7457
|
})]
|
|
@@ -7457,7 +7464,7 @@ function Label(_ref) {
|
|
|
7457
7464
|
children = _ref.children;
|
|
7458
7465
|
var isWeb = Platform.OS === 'web';
|
|
7459
7466
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
7460
|
-
base: "body",
|
|
7467
|
+
base: "body-m",
|
|
7461
7468
|
id: isWeb ? undefined : id,
|
|
7462
7469
|
children: isWeb ? /*#__PURE__*/jsx("label", {
|
|
7463
7470
|
id: id,
|
|
@@ -7468,7 +7475,8 @@ function Label(_ref) {
|
|
|
7468
7475
|
}
|
|
7469
7476
|
|
|
7470
7477
|
function InnerCircle(_ref) {
|
|
7471
|
-
var isChecked = _ref.isChecked
|
|
7478
|
+
var isChecked = _ref.isChecked,
|
|
7479
|
+
isDisabled = _ref.isDisabled;
|
|
7472
7480
|
var theme = useTheme();
|
|
7473
7481
|
var sharedTransform = [{
|
|
7474
7482
|
scale: isChecked ? 1 : 0
|
|
@@ -7477,7 +7485,7 @@ function InnerCircle(_ref) {
|
|
|
7477
7485
|
width: "kitt.forms.radio.innerCircle.size",
|
|
7478
7486
|
height: "kitt.forms.radio.innerCircle.size",
|
|
7479
7487
|
borderRadius: "kitt.forms.radio.innerCircle.borderRadius",
|
|
7480
|
-
backgroundColor:
|
|
7488
|
+
backgroundColor: isDisabled ? 'kitt.forms.radio.disabled.innerBackgroundColor' : 'kitt.forms.radio.innerCircle.backgroundColor',
|
|
7481
7489
|
_web: {
|
|
7482
7490
|
style: {
|
|
7483
7491
|
transform: "scale(".concat(isChecked ? 1 : 0, "))"),
|
|
@@ -7608,12 +7616,13 @@ function Radio(_ref, ref) {
|
|
|
7608
7616
|
isFocused: isFocused,
|
|
7609
7617
|
isPressed: isPressed,
|
|
7610
7618
|
children: /*#__PURE__*/jsx(InnerCircle, {
|
|
7611
|
-
isChecked: checked
|
|
7619
|
+
isChecked: checked,
|
|
7620
|
+
isDisabled: disabled
|
|
7612
7621
|
})
|
|
7613
7622
|
}), _children ? /*#__PURE__*/jsx(Typography.SetDefaultColor, {
|
|
7614
7623
|
value: disabled ? 'black-light' : 'black',
|
|
7615
7624
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7616
|
-
base: "body",
|
|
7625
|
+
base: "body-m",
|
|
7617
7626
|
children: _children
|
|
7618
7627
|
})
|
|
7619
7628
|
}) : null]
|
|
@@ -7730,7 +7739,7 @@ function getCurrentTextColor(_ref) {
|
|
|
7730
7739
|
isPressed = _ref.isPressed,
|
|
7731
7740
|
isHovered = _ref.isHovered,
|
|
7732
7741
|
isFocused = _ref.isFocused;
|
|
7733
|
-
if (isDisabled) return '
|
|
7742
|
+
if (isDisabled) return 'kitt.forms.radioButtonGroup.font.disabled.color';
|
|
7734
7743
|
if (isSelected) return 'white';
|
|
7735
7744
|
if (isPressed) return 'white';
|
|
7736
7745
|
if (isFocused) return 'white';
|
|
@@ -7907,7 +7916,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7907
7916
|
marginTop: "kitt.1",
|
|
7908
7917
|
children: [helper ? /*#__PURE__*/jsx(Typography.Text, {
|
|
7909
7918
|
base: "body-s",
|
|
7910
|
-
color:
|
|
7919
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7911
7920
|
children: helper
|
|
7912
7921
|
}) : null, shouldDisplayLimit ? /*#__PURE__*/jsx(Animated.View, {
|
|
7913
7922
|
style: limitContainerAnimatedStyle,
|
|
@@ -7917,14 +7926,14 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7917
7926
|
children: [/*#__PURE__*/jsxs(Typography.Text, {
|
|
7918
7927
|
base: "body-xs",
|
|
7919
7928
|
variant: "bold",
|
|
7920
|
-
color:
|
|
7929
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7921
7930
|
children: [((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.length) || 0, "/", limit]
|
|
7922
7931
|
}), /*#__PURE__*/jsx(Animated.View, {
|
|
7923
7932
|
style: checkIconAnimatedStyle,
|
|
7924
7933
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7925
7934
|
icon: /*#__PURE__*/jsx(CheckCircleFillIcon, {}),
|
|
7926
7935
|
size: 13,
|
|
7927
|
-
color:
|
|
7936
|
+
color: deepPurpleColorPalette['grey.5']
|
|
7928
7937
|
})
|
|
7929
7938
|
})]
|
|
7930
7939
|
})
|
|
@@ -8032,7 +8041,7 @@ function ToggleAnimated(_ref) {
|
|
|
8032
8041
|
|
|
8033
8042
|
var _excluded$h = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8034
8043
|
var getLabelTypographyType = function (size) {
|
|
8035
|
-
return size === 'medium' ? 'body' : 'body-
|
|
8044
|
+
return size === 'medium' ? 'body-m' : 'body-l';
|
|
8036
8045
|
};
|
|
8037
8046
|
function Toggle(_ref) {
|
|
8038
8047
|
var _ref$isDisabled = _ref.isDisabled,
|
|
@@ -8616,7 +8625,7 @@ function Highlight(_ref) {
|
|
|
8616
8625
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8617
8626
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8618
8627
|
variant: "bold",
|
|
8619
|
-
base: "body",
|
|
8628
|
+
base: "body-m",
|
|
8620
8629
|
ellipsizeMode: "clip",
|
|
8621
8630
|
children: title
|
|
8622
8631
|
})
|
|
@@ -8651,7 +8660,7 @@ function Highlight(_ref) {
|
|
|
8651
8660
|
width: "100%",
|
|
8652
8661
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8653
8662
|
variant: "bold",
|
|
8654
|
-
base: "body",
|
|
8663
|
+
base: "body-m",
|
|
8655
8664
|
ellipsizeMode: "clip",
|
|
8656
8665
|
children: title
|
|
8657
8666
|
})
|
|
@@ -8948,8 +8957,8 @@ function InfoCard(_ref) {
|
|
|
8948
8957
|
flexShrink: 1,
|
|
8949
8958
|
flexBasis: "auto",
|
|
8950
8959
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8951
|
-
base: "body-
|
|
8952
|
-
medium: "body",
|
|
8960
|
+
base: "body-s",
|
|
8961
|
+
medium: "body-m",
|
|
8953
8962
|
style: {
|
|
8954
8963
|
userSelect: 'none'
|
|
8955
8964
|
},
|
|
@@ -9279,7 +9288,7 @@ function BaseMessage(_ref) {
|
|
|
9279
9288
|
flexGrow: 1,
|
|
9280
9289
|
flexShrink: 1,
|
|
9281
9290
|
textAlign: centeredText ? 'center' : 'left',
|
|
9282
|
-
base: "body",
|
|
9291
|
+
base: "body-m",
|
|
9283
9292
|
color: color,
|
|
9284
9293
|
children: children
|
|
9285
9294
|
})]
|
|
@@ -9563,6 +9572,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9563
9572
|
item: {
|
|
9564
9573
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
9565
9574
|
backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
|
|
9575
|
+
},
|
|
9576
|
+
font: {
|
|
9577
|
+
disabled: {
|
|
9578
|
+
color: theme.forms.radioButtonGroup.item.font.color.disabled
|
|
9579
|
+
}
|
|
9566
9580
|
}
|
|
9567
9581
|
},
|
|
9568
9582
|
checkbox: {
|
|
@@ -9877,7 +9891,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9877
9891
|
},
|
|
9878
9892
|
disabled: {
|
|
9879
9893
|
backgroundColor: theme.forms.radio.disabled.backgroundColor,
|
|
9880
|
-
borderColor: theme.forms.radio.disabled.borderColor
|
|
9894
|
+
borderColor: theme.forms.radio.disabled.borderColor,
|
|
9895
|
+
innerBackgroundColor: theme.forms.radio.disabled.innerBackgroundColor
|
|
9881
9896
|
},
|
|
9882
9897
|
"default": {
|
|
9883
9898
|
backgroundColor: theme.forms.radio.unchecked.backgroundColor,
|
|
@@ -10431,22 +10446,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10431
10446
|
},
|
|
10432
10447
|
listItem: {
|
|
10433
10448
|
borderWidth: theme.listItem.borderWidth
|
|
10434
|
-
},
|
|
10435
|
-
tag: {
|
|
10436
|
-
variant: {
|
|
10437
|
-
subtle: {
|
|
10438
|
-
borderWidth: theme.tag.variant.subtle.borderWidth
|
|
10439
|
-
},
|
|
10440
|
-
fill: {
|
|
10441
|
-
borderWidth: theme.tag.variant.fill.borderWidth
|
|
10442
|
-
},
|
|
10443
|
-
outline: {
|
|
10444
|
-
borderWidth: theme.tag.variant.outline.borderWidth
|
|
10445
|
-
},
|
|
10446
|
-
contrast: {
|
|
10447
|
-
borderWidth: theme.tag.variant.contrast.borderWidth
|
|
10448
|
-
}
|
|
10449
|
-
}
|
|
10450
10449
|
}
|
|
10451
10450
|
},
|
|
10452
10451
|
app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
|
|
@@ -11065,196 +11064,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11065
11064
|
'2xl': Number.MAX_SAFE_INTEGER
|
|
11066
11065
|
}, appBreakpoints),
|
|
11067
11066
|
fontSizes: {
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
/* latest */
|
|
11089
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize, "px"),
|
|
11090
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize, "px"),
|
|
11091
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize, "px"),
|
|
11092
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize, "px"),
|
|
11093
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize, "px"),
|
|
11094
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize, "px"),
|
|
11095
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize, "px"),
|
|
11096
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize, "px"),
|
|
11097
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize, "px"),
|
|
11098
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize, "px"),
|
|
11099
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize, "px"),
|
|
11100
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize, "px"),
|
|
11101
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize, "px"),
|
|
11102
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize, "px"),
|
|
11103
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize, "px"),
|
|
11104
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize, "px"),
|
|
11105
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize, "px"),
|
|
11106
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize, "px"),
|
|
11107
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize, "px"),
|
|
11108
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize, "px")
|
|
11109
|
-
},
|
|
11110
|
-
mediumAndWide: {
|
|
11111
|
-
/* legacy */
|
|
11112
|
-
header1: "".concat(theme.typography.types.headings.configs.header1.mediumAndWide.fontSize, "px"),
|
|
11113
|
-
header2: "".concat(theme.typography.types.headings.configs.header2.mediumAndWide.fontSize, "px"),
|
|
11114
|
-
header3: "".concat(theme.typography.types.headings.configs.header3.mediumAndWide.fontSize, "px"),
|
|
11115
|
-
header4: "".concat(theme.typography.types.headings.configs.header4.mediumAndWide.fontSize, "px"),
|
|
11116
|
-
header5: "".concat(theme.typography.types.headings.configs.header5.mediumAndWide.fontSize, "px"),
|
|
11117
|
-
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
|
|
11118
|
-
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
|
|
11119
|
-
body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
|
|
11120
|
-
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
|
|
11121
|
-
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px"),
|
|
11122
|
-
'header-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize, "px"),
|
|
11123
|
-
'header-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize, "px"),
|
|
11124
|
-
'header-impact-l': "".concat(theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize, "px"),
|
|
11125
|
-
'header-impact-m': "".concat(theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize, "px"),
|
|
11126
|
-
'header-impact-s': "".concat(theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize, "px"),
|
|
11127
|
-
'header-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize, "px"),
|
|
11128
|
-
'header-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize, "px"),
|
|
11129
|
-
'header-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize, "px"),
|
|
11130
|
-
/* latest */
|
|
11131
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize, "px"),
|
|
11132
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize, "px"),
|
|
11133
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize, "px"),
|
|
11134
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize, "px"),
|
|
11135
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize, "px"),
|
|
11136
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize, "px"),
|
|
11137
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize, "px"),
|
|
11138
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize, "px"),
|
|
11139
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize, "px"),
|
|
11140
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize, "px"),
|
|
11141
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize, "px"),
|
|
11142
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize, "px"),
|
|
11143
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize, "px"),
|
|
11144
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize, "px"),
|
|
11145
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize, "px"),
|
|
11146
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize, "px"),
|
|
11147
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize, "px"),
|
|
11148
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize, "px"),
|
|
11149
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize, "px"),
|
|
11150
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize, "px")
|
|
11151
|
-
}
|
|
11067
|
+
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].fontSize, "px"),
|
|
11068
|
+
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].fontSize, "px"),
|
|
11069
|
+
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].fontSize, "px"),
|
|
11070
|
+
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
11071
|
+
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
11072
|
+
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
11073
|
+
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
11074
|
+
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
11075
|
+
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
11076
|
+
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].fontSize, "px"),
|
|
11077
|
+
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].fontSize, "px"),
|
|
11078
|
+
'label-large': "".concat(theme.typography.types.labels.configs['label-large'].fontSize, "px"),
|
|
11079
|
+
'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].fontSize, "px"),
|
|
11080
|
+
'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize, "px"),
|
|
11081
|
+
'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize, "px"),
|
|
11082
|
+
'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize, "px"),
|
|
11083
|
+
'content-caps-l': "".concat(theme.typography.types.contentCaps.configs['content-caps-l'].fontSize, "px"),
|
|
11084
|
+
'content-caps-m': "".concat(theme.typography.types.contentCaps.configs['content-caps-m'].fontSize, "px"),
|
|
11085
|
+
'content-caps-s': "".concat(theme.typography.types.contentCaps.configs['content-caps-s'].fontSize, "px"),
|
|
11086
|
+
'content-caps-xs': "".concat(theme.typography.types.contentCaps.configs['content-caps-xs'].fontSize, "px")
|
|
11152
11087
|
},
|
|
11153
11088
|
lineHeights: {
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
/* latest */
|
|
11175
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight, "px"),
|
|
11176
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight, "px"),
|
|
11177
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight, "px"),
|
|
11178
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight, "px"),
|
|
11179
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight, "px"),
|
|
11180
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight, "px"),
|
|
11181
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight, "px"),
|
|
11182
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight, "px"),
|
|
11183
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight, "px"),
|
|
11184
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight, "px"),
|
|
11185
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight, "px"),
|
|
11186
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight, "px"),
|
|
11187
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight, "px"),
|
|
11188
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight, "px"),
|
|
11189
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight, "px"),
|
|
11190
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight, "px"),
|
|
11191
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight, "px"),
|
|
11192
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight, "px"),
|
|
11193
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight, "px"),
|
|
11194
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight, "px")
|
|
11195
|
-
},
|
|
11196
|
-
mediumAndWide: {
|
|
11197
|
-
/* legacy */
|
|
11198
|
-
header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
|
|
11199
|
-
header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
|
|
11200
|
-
header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
|
|
11201
|
-
header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
|
|
11202
|
-
header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
|
|
11203
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
11204
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
11205
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
11206
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
11207
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
|
|
11208
|
-
'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
|
|
11209
|
-
'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
|
|
11210
|
-
'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
|
|
11211
|
-
'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
|
|
11212
|
-
'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
|
|
11213
|
-
'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
|
|
11214
|
-
'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
|
|
11215
|
-
'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
|
|
11216
|
-
/* latest */
|
|
11217
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight, "px"),
|
|
11218
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight, "px"),
|
|
11219
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight, "px"),
|
|
11220
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight, "px"),
|
|
11221
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight, "px"),
|
|
11222
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight, "px"),
|
|
11223
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight, "px"),
|
|
11224
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight, "px"),
|
|
11225
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight, "px"),
|
|
11226
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight, "px"),
|
|
11227
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight, "px"),
|
|
11228
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight, "px"),
|
|
11229
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight, "px"),
|
|
11230
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight, "px"),
|
|
11231
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight, "px"),
|
|
11232
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight, "px"),
|
|
11233
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight, "px"),
|
|
11234
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight, "px"),
|
|
11235
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight, "px"),
|
|
11236
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight, "px")
|
|
11237
|
-
}
|
|
11089
|
+
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].lineHeight, "px"),
|
|
11090
|
+
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].lineHeight, "px"),
|
|
11091
|
+
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].lineHeight, "px"),
|
|
11092
|
+
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
11093
|
+
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
11094
|
+
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
11095
|
+
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
11096
|
+
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
11097
|
+
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
11098
|
+
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].lineHeight, "px"),
|
|
11099
|
+
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].lineHeight, "px"),
|
|
11100
|
+
'label-large': "".concat(theme.typography.types.labels.configs['label-large'].lineHeight, "px"),
|
|
11101
|
+
'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].lineHeight, "px"),
|
|
11102
|
+
'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight, "px"),
|
|
11103
|
+
'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight, "px"),
|
|
11104
|
+
'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight, "px"),
|
|
11105
|
+
'content-caps-l': "".concat(theme.typography.types.contentCaps.configs['content-caps-l'].lineHeight, "px"),
|
|
11106
|
+
'content-caps-m': "".concat(theme.typography.types.contentCaps.configs['content-caps-m'].lineHeight, "px"),
|
|
11107
|
+
'content-caps-s': "".concat(theme.typography.types.contentCaps.configs['content-caps-s'].lineHeight, "px"),
|
|
11108
|
+
'content-caps-xs': "".concat(theme.typography.types.contentCaps.configs['content-caps-xs'].lineHeight, "px")
|
|
11238
11109
|
},
|
|
11239
11110
|
fontWeights: {
|
|
11240
11111
|
headings: {
|
|
11241
11112
|
regular: theme.typography.types.headings.fontWeight.regular,
|
|
11242
11113
|
bold: theme.typography.types.headings.fontWeight.bold
|
|
11243
11114
|
},
|
|
11244
|
-
'headings-impact': {
|
|
11245
|
-
regular: theme.typography.types['headings-impact'].fontWeight,
|
|
11246
|
-
bold: theme.typography.types['headings-impact'].fontWeight
|
|
11247
|
-
},
|
|
11248
11115
|
bodies: {
|
|
11249
11116
|
regular: theme.typography.types.bodies.fontWeight.regular,
|
|
11250
11117
|
// 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
|
|
11251
11118
|
bold: Platform.OS === 'android' ? 400 : theme.typography.types.bodies.fontWeight.bold
|
|
11119
|
+
},
|
|
11120
|
+
labels: {
|
|
11121
|
+
semibold: theme.typography.types.labels.fontWeight.semibold
|
|
11122
|
+
},
|
|
11123
|
+
contentCaps: {
|
|
11124
|
+
bold: theme.typography.types.contentCaps.fontWeight.bold
|
|
11252
11125
|
}
|
|
11253
11126
|
},
|
|
11254
11127
|
fonts: {
|
|
11255
11128
|
headings: Platform.OS === 'web' ? theme.typography.types.headings.fontFamily.web : theme.typography.types.headings.fontFamily["native"],
|
|
11256
|
-
|
|
11257
|
-
|
|
11129
|
+
bodies: Platform.OS === 'web' ? theme.typography.types.bodies.fontFamily.web : theme.typography.types.bodies.fontFamily["native"],
|
|
11130
|
+
labels: Platform.OS === 'web' ? theme.typography.types.labels.fontFamily.web : theme.typography.types.labels.fontFamily["native"],
|
|
11131
|
+
contentCaps: Platform.OS === 'web' ? theme.typography.types.contentCaps.fontFamily.web : theme.typography.types.contentCaps.fontFamily["native"]
|
|
11258
11132
|
},
|
|
11259
11133
|
shadows: {
|
|
11260
11134
|
kitt: {
|
|
@@ -11749,7 +11623,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11749
11623
|
_disabled: {
|
|
11750
11624
|
placeholderTextColor: theme.forms.input.states.disabled.color,
|
|
11751
11625
|
color: theme.forms.input.states.disabled.color,
|
|
11752
|
-
borderColor: theme.forms.input.states.disabled.
|
|
11626
|
+
borderColor: theme.forms.input.states.disabled.backgroundColor,
|
|
11753
11627
|
bg: theme.forms.input.states.disabled.backgroundColor
|
|
11754
11628
|
}
|
|
11755
11629
|
}
|
|
@@ -11779,7 +11653,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11779
11653
|
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
11780
11654
|
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
11781
11655
|
fontSize: undefined,
|
|
11782
|
-
lineHeight: theme.typography.types.bodies.configs
|
|
11656
|
+
lineHeight: theme.typography.types.bodies.configs['body-m'].lineHeight
|
|
11783
11657
|
}
|
|
11784
11658
|
}
|
|
11785
11659
|
}
|
|
@@ -12186,7 +12060,7 @@ function PickerOption(_ref) {
|
|
|
12186
12060
|
isSelected = _ref.isSelected;
|
|
12187
12061
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
12188
12062
|
testID: testID,
|
|
12189
|
-
base: "body",
|
|
12063
|
+
base: "body-m",
|
|
12190
12064
|
children: typeof children === 'function' ? children({
|
|
12191
12065
|
isHighlighted: isHighlighted,
|
|
12192
12066
|
isSelected: isSelected
|
|
@@ -12327,7 +12201,7 @@ function Picker(_ref) {
|
|
|
12327
12201
|
onPress: handleClose
|
|
12328
12202
|
}),
|
|
12329
12203
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12330
|
-
base: "body",
|
|
12204
|
+
base: "body-m",
|
|
12331
12205
|
variant: "bold",
|
|
12332
12206
|
children: title
|
|
12333
12207
|
})
|
|
@@ -12423,8 +12297,9 @@ function SegmentedProgressBar(_ref) {
|
|
|
12423
12297
|
_ref$colorVariant = _ref.colorVariant,
|
|
12424
12298
|
colorVariant = _ref$colorVariant === void 0 ? 'primary' : _ref$colorVariant,
|
|
12425
12299
|
withCurrentInProgress = _ref.withCurrentInProgress;
|
|
12300
|
+
var kittTheme = useKittTheme();
|
|
12426
12301
|
var height = size === 'small' ? 'kitt.2' : 'kitt.4';
|
|
12427
|
-
var fillColor = colorVariant === 'validated' ?
|
|
12302
|
+
var fillColor = colorVariant === 'validated' ? kittTheme.kitt.palettes.deepPurple['green.6'] : kittTheme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
12428
12303
|
var steps = _toConsumableArray(Array.from({
|
|
12429
12304
|
length: stepsCount
|
|
12430
12305
|
}).keys());
|
|
@@ -12435,13 +12310,13 @@ function SegmentedProgressBar(_ref) {
|
|
|
12435
12310
|
overflow: "hidden",
|
|
12436
12311
|
children: steps.map(function (stepNumber) {
|
|
12437
12312
|
var isSegmentCurrentInProgress = withCurrentInProgress && stepNumber === currentStep - 1;
|
|
12438
|
-
var color = stepNumber < currentStep ? fillColor :
|
|
12313
|
+
var color = stepNumber < currentStep ? fillColor : kittTheme.kitt.palettes.deepPurple['beige.1'];
|
|
12439
12314
|
return /*#__PURE__*/jsx(View$1, {
|
|
12440
12315
|
height: "100%",
|
|
12441
12316
|
flexGrow: 1,
|
|
12442
12317
|
flexShrink: 1,
|
|
12443
12318
|
flexBasis: 0,
|
|
12444
|
-
backgroundColor: isSegmentCurrentInProgress ?
|
|
12319
|
+
backgroundColor: isSegmentCurrentInProgress ? kittTheme.kitt.palettes.deepPurple['deepPurple.5'] : color,
|
|
12445
12320
|
borderRadius: 2,
|
|
12446
12321
|
overflow: "hidden",
|
|
12447
12322
|
alignItems: "center",
|
|
@@ -12815,9 +12690,9 @@ var getBackgroundColorFromBlockColor = function (theme) {
|
|
|
12815
12690
|
case 'white':
|
|
12816
12691
|
return '#ffffff';
|
|
12817
12692
|
case 'light':
|
|
12818
|
-
return theme.kitt.palettes.
|
|
12693
|
+
return theme.kitt.palettes.deepPurple['beige.1'];
|
|
12819
12694
|
case 'primary':
|
|
12820
|
-
return theme.kitt.palettes.
|
|
12695
|
+
return theme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
12821
12696
|
default:
|
|
12822
12697
|
return 'transparent';
|
|
12823
12698
|
}
|
|
@@ -12866,8 +12741,7 @@ function StoryTitle(_ref) {
|
|
|
12866
12741
|
return /*#__PURE__*/jsx(View, {
|
|
12867
12742
|
marginBottom: 30,
|
|
12868
12743
|
children: /*#__PURE__*/jsx(Typography.Header1, {
|
|
12869
|
-
|
|
12870
|
-
base: "header1",
|
|
12744
|
+
base: "heading-xl",
|
|
12871
12745
|
color: useStoryBlockColor(color),
|
|
12872
12746
|
numberOfLines: numberOfLines,
|
|
12873
12747
|
children: children
|
|
@@ -12881,8 +12755,7 @@ function StoryTitleLevel2(_ref2) {
|
|
|
12881
12755
|
return /*#__PURE__*/jsx(View, {
|
|
12882
12756
|
marginBottom: 30,
|
|
12883
12757
|
children: /*#__PURE__*/jsx(Typography.Header2, {
|
|
12884
|
-
|
|
12885
|
-
base: "header2",
|
|
12758
|
+
base: "heading-l",
|
|
12886
12759
|
color: useStoryBlockColor(color),
|
|
12887
12760
|
numberOfLines: numberOfLines,
|
|
12888
12761
|
children: children
|
|
@@ -12897,9 +12770,7 @@ function StoryTitleLevel3(_ref3) {
|
|
|
12897
12770
|
return /*#__PURE__*/jsx(View, {
|
|
12898
12771
|
marginBottom: 10,
|
|
12899
12772
|
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
12900
|
-
|
|
12901
|
-
base: "header3",
|
|
12902
|
-
medium: "header4",
|
|
12773
|
+
base: "heading-m",
|
|
12903
12774
|
color: useStoryBlockColor(color),
|
|
12904
12775
|
numberOfLines: numberOfLines,
|
|
12905
12776
|
children: children
|
|
@@ -12914,9 +12785,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
12914
12785
|
return /*#__PURE__*/jsx(View, {
|
|
12915
12786
|
marginBottom: 10,
|
|
12916
12787
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
12917
|
-
|
|
12918
|
-
base: "header4",
|
|
12919
|
-
medium: "header5",
|
|
12788
|
+
base: "heading-s",
|
|
12920
12789
|
color: useStoryBlockColor(color),
|
|
12921
12790
|
numberOfLines: numberOfLines,
|
|
12922
12791
|
children: children
|
|
@@ -13096,15 +12965,15 @@ function useTabBarItemColor(color, isActive) {
|
|
|
13096
12965
|
switch (color) {
|
|
13097
12966
|
case 'black':
|
|
13098
12967
|
{
|
|
13099
|
-
return isActive ? kittTheme.
|
|
12968
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
13100
12969
|
}
|
|
13101
12970
|
case 'white':
|
|
13102
12971
|
{
|
|
13103
|
-
return kittTheme.palettes.
|
|
12972
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
|
|
13104
12973
|
}
|
|
13105
12974
|
default:
|
|
13106
12975
|
{
|
|
13107
|
-
return isActive ? kittTheme.
|
|
12976
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
13108
12977
|
}
|
|
13109
12978
|
}
|
|
13110
12979
|
}
|
|
@@ -13114,15 +12983,15 @@ function useTabBarIndicatorColor(color, isActive) {
|
|
|
13114
12983
|
switch (color) {
|
|
13115
12984
|
case 'black':
|
|
13116
12985
|
{
|
|
13117
|
-
return isActive ? kittTheme.
|
|
12986
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
13118
12987
|
}
|
|
13119
12988
|
case 'white':
|
|
13120
12989
|
{
|
|
13121
|
-
return isActive ? kittTheme.palettes.
|
|
12990
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
13122
12991
|
}
|
|
13123
12992
|
default:
|
|
13124
12993
|
{
|
|
13125
|
-
return isActive ? kittTheme.
|
|
12994
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
13126
12995
|
}
|
|
13127
12996
|
}
|
|
13128
12997
|
}
|
|
@@ -13195,7 +13064,7 @@ function TabBar(_ref) {
|
|
|
13195
13064
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
13196
13065
|
minWidth: '100%',
|
|
13197
13066
|
borderBottomWidth: 1,
|
|
13198
|
-
borderBottomColor: kittTheme.palettes.
|
|
13067
|
+
borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
|
|
13199
13068
|
});
|
|
13200
13069
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
13201
13070
|
horizontal: true,
|
|
@@ -13236,38 +13105,40 @@ var getTypography = function (size) {
|
|
|
13236
13105
|
return 'body-m';
|
|
13237
13106
|
}
|
|
13238
13107
|
};
|
|
13239
|
-
var typeToColor$1 = function (color, type) {
|
|
13240
|
-
if (color) return color;
|
|
13241
|
-
switch (type) {
|
|
13242
|
-
case 'primary':
|
|
13243
|
-
return 'violine';
|
|
13244
|
-
case 'warn':
|
|
13245
|
-
return 'sun';
|
|
13246
|
-
case 'danger':
|
|
13247
|
-
return 'coral';
|
|
13248
|
-
case 'default':
|
|
13249
|
-
default:
|
|
13250
|
-
return 'eggshell';
|
|
13251
|
-
}
|
|
13252
|
-
};
|
|
13253
13108
|
function Tag(_ref) {
|
|
13254
13109
|
var label = _ref.label,
|
|
13255
13110
|
icon = _ref.icon,
|
|
13256
|
-
color = _ref.color,
|
|
13257
|
-
|
|
13111
|
+
_ref$color = _ref.color,
|
|
13112
|
+
color = _ref$color === void 0 ? 'beige' : _ref$color,
|
|
13258
13113
|
_ref$size = _ref.size,
|
|
13259
13114
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
13260
|
-
|
|
13261
|
-
variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
|
|
13262
|
-
_ref$withWhiteBorder = _ref.withWhiteBorder,
|
|
13263
|
-
withWhiteBorder = _ref$withWhiteBorder === void 0 ? false : _ref$withWhiteBorder;
|
|
13115
|
+
withWhiteBorder = _ref.withWhiteBorder;
|
|
13264
13116
|
var kittTheme = useKittTheme();
|
|
13265
|
-
var
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13117
|
+
var colorMatching = {
|
|
13118
|
+
beige: {
|
|
13119
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.2'],
|
|
13120
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
13121
|
+
},
|
|
13122
|
+
yellow: {
|
|
13123
|
+
background: kittTheme.kitt.palettes.deepPurple['yellow.6'],
|
|
13124
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.9']
|
|
13125
|
+
},
|
|
13126
|
+
red: {
|
|
13127
|
+
background: kittTheme.kitt.palettes.deepPurple['red.6'],
|
|
13128
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
13129
|
+
},
|
|
13130
|
+
blue: {
|
|
13131
|
+
background: kittTheme.kitt.palettes.deepPurple['blue.6'],
|
|
13132
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
13133
|
+
},
|
|
13134
|
+
green: {
|
|
13135
|
+
background: kittTheme.kitt.palettes.deepPurple['green.6'],
|
|
13136
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
13137
|
+
},
|
|
13138
|
+
deepPurple: {
|
|
13139
|
+
background: kittTheme.kitt.palettes.deepPurple['deepPurple.8'],
|
|
13140
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
13269
13141
|
}
|
|
13270
|
-
return 'black';
|
|
13271
13142
|
};
|
|
13272
13143
|
return /*#__PURE__*/jsxs(HStack, {
|
|
13273
13144
|
alignSelf: "flex-start",
|
|
@@ -13275,31 +13146,21 @@ function Tag(_ref) {
|
|
|
13275
13146
|
height: "kitt.tag.".concat(size, ".height"),
|
|
13276
13147
|
paddingLeft: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingLeft"),
|
|
13277
13148
|
paddingRight: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingRight"),
|
|
13278
|
-
backgroundColor:
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
}
|
|
13282
|
-
if (variant === 'contrast') {
|
|
13283
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".9")];
|
|
13284
|
-
}
|
|
13285
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".4")];
|
|
13286
|
-
}() : 'kitt.transparent',
|
|
13287
|
-
borderColor: withWhiteBorder ? 'kitt.white' : function getBorderColor() {
|
|
13288
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".6")];
|
|
13289
|
-
}(),
|
|
13290
|
-
borderWidth: withWhiteBorder ? 1 : "kitt.tag.variant.".concat(variant, ".borderWidth"),
|
|
13149
|
+
backgroundColor: colorMatching[color].background,
|
|
13150
|
+
borderWidth: withWhiteBorder ? 1 : 0,
|
|
13151
|
+
borderColor: withWhiteBorder ? 'kitt.white' : undefined,
|
|
13291
13152
|
space: "kitt.1",
|
|
13292
13153
|
alignItems: "center",
|
|
13293
13154
|
maxWidth: "100%",
|
|
13294
13155
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
13295
13156
|
icon: icon,
|
|
13296
13157
|
size: "kitt.tag.".concat(size, ".iconSize"),
|
|
13297
|
-
color:
|
|
13158
|
+
color: colorMatching[color].font
|
|
13298
13159
|
}) : null, /*#__PURE__*/jsx(View, {
|
|
13299
13160
|
flexShrink: 1,
|
|
13300
13161
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13301
13162
|
base: getTypography(size),
|
|
13302
|
-
color:
|
|
13163
|
+
color: colorMatching[color].font,
|
|
13303
13164
|
numberOfLines: 1,
|
|
13304
13165
|
ellipsizeMode: "tail",
|
|
13305
13166
|
children: label
|
|
@@ -13532,7 +13393,7 @@ function ToastContent(_ref) {
|
|
|
13532
13393
|
flexGrow: 1,
|
|
13533
13394
|
flexShrink: 1,
|
|
13534
13395
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13535
|
-
base: "heading-
|
|
13396
|
+
base: "heading-xs",
|
|
13536
13397
|
color: "white",
|
|
13537
13398
|
children: title
|
|
13538
13399
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13548,7 +13409,7 @@ function ToastContent(_ref) {
|
|
|
13548
13409
|
borderColor: "white",
|
|
13549
13410
|
onPress: onPress,
|
|
13550
13411
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13551
|
-
base: "heading-
|
|
13412
|
+
base: "heading-xs",
|
|
13552
13413
|
color: "white",
|
|
13553
13414
|
children: actionLabel
|
|
13554
13415
|
})
|
|
@@ -13561,9 +13422,9 @@ var typeToColor = function (type) {
|
|
|
13561
13422
|
case 'success':
|
|
13562
13423
|
return 'green';
|
|
13563
13424
|
case 'danger':
|
|
13564
|
-
return '
|
|
13425
|
+
return 'red';
|
|
13565
13426
|
case 'warning':
|
|
13566
|
-
return '
|
|
13427
|
+
return 'yellow';
|
|
13567
13428
|
default:
|
|
13568
13429
|
return 'blue';
|
|
13569
13430
|
}
|
|
@@ -13624,7 +13485,7 @@ function ToastComponent(_ref) {
|
|
|
13624
13485
|
}, [handleHideToast, outro, width, toastTimeout]);
|
|
13625
13486
|
return /*#__PURE__*/jsxs(View, {
|
|
13626
13487
|
alignSelf: stretch ? 'flex-start' : 'auto',
|
|
13627
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
13488
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple['grey.9'],
|
|
13628
13489
|
borderRadius: "kitt.2",
|
|
13629
13490
|
maxWidth: {
|
|
13630
13491
|
base: '100%',
|
|
@@ -13638,7 +13499,7 @@ function ToastComponent(_ref) {
|
|
|
13638
13499
|
children: [/*#__PURE__*/jsx(TypographyIcon, {
|
|
13639
13500
|
icon: icon,
|
|
13640
13501
|
size: "kitt.5",
|
|
13641
|
-
color: kittTheme.kitt.palettes.
|
|
13502
|
+
color: kittTheme.kitt.palettes.deepPurple["".concat(color, ".6")]
|
|
13642
13503
|
}), /*#__PURE__*/jsx(ToastContent, {
|
|
13643
13504
|
title: title,
|
|
13644
13505
|
description: description,
|
|
@@ -13656,7 +13517,7 @@ function ToastComponent(_ref) {
|
|
|
13656
13517
|
}) : null]
|
|
13657
13518
|
}), outro === 'timer' ? /*#__PURE__*/jsx(AnimatedView$1, {
|
|
13658
13519
|
alignSelf: "flex-end",
|
|
13659
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
13520
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple["".concat(color, ".6")],
|
|
13660
13521
|
height: "kitt.1",
|
|
13661
13522
|
style: animatedStyle
|
|
13662
13523
|
}) : null]
|
|
@@ -13713,7 +13574,7 @@ function TooltipContent(_ref) {
|
|
|
13713
13574
|
paddingY: "kitt.tooltip.verticalPadding",
|
|
13714
13575
|
paddingX: "kitt.tooltip.horizontalPadding",
|
|
13715
13576
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13716
|
-
base: "body-
|
|
13577
|
+
base: "body-s",
|
|
13717
13578
|
color: "white-light",
|
|
13718
13579
|
children: children
|
|
13719
13580
|
})
|
|
@@ -13922,12 +13783,12 @@ function calcSizesFromType(type, theme) {
|
|
|
13922
13783
|
medium: type.medium || type.small || type.base
|
|
13923
13784
|
});
|
|
13924
13785
|
var size = {
|
|
13925
|
-
base: getTypographyTypeConfig((_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body', theme).
|
|
13786
|
+
base: getTypographyTypeConfig((_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body-m', theme).fontSize
|
|
13926
13787
|
};
|
|
13927
13788
|
[KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
|
|
13928
13789
|
var value = typeWithMediumForced[typeName];
|
|
13929
13790
|
if (value) {
|
|
13930
|
-
size[typeName] = getTypographyTypeConfig(value, theme)
|
|
13791
|
+
size[typeName] = getTypographyTypeConfig(value, theme).fontSize;
|
|
13931
13792
|
}
|
|
13932
13793
|
});
|
|
13933
13794
|
var marginLeft = {};
|
|
@@ -14251,7 +14112,7 @@ function BorderlessStep(_ref) {
|
|
|
14251
14112
|
width: 2,
|
|
14252
14113
|
borderRadius: 2,
|
|
14253
14114
|
position: "absolute",
|
|
14254
|
-
backgroundColor: "kitt.
|
|
14115
|
+
backgroundColor: "kitt.accent",
|
|
14255
14116
|
overflow: "hidden",
|
|
14256
14117
|
children: isNextDone ? /*#__PURE__*/jsx(AnimatedView, {
|
|
14257
14118
|
style: progressBarAnimatedStyles,
|
|
@@ -14336,7 +14197,7 @@ function Step(_ref) {
|
|
|
14336
14197
|
state: state,
|
|
14337
14198
|
index: index
|
|
14338
14199
|
}), !isLast ? /*#__PURE__*/jsx(View, {
|
|
14339
|
-
backgroundColor: shouldDisableNextLink ? 'kitt.
|
|
14200
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.accent' : 'kitt.primary',
|
|
14340
14201
|
width: 1,
|
|
14341
14202
|
position: "absolute",
|
|
14342
14203
|
top: 46,
|