@ornikar/kitt-universal 26.3.1-late-ocean.ccf14ae912d02bfa0c8d62c4652911eb457e71b0.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 +18 -3
- 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 +59 -980
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.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 +719 -849
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +719 -849
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +716 -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 +713 -843
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +716 -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 +713 -843
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +736 -874
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +733 -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 +25 -25
- 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.web.js
CHANGED
|
@@ -50,117 +50,81 @@ var createColorScale = function (colorScale) {
|
|
|
50
50
|
return colorScale;
|
|
51
51
|
};
|
|
52
52
|
var colorScales = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
6: '#bab8ae',
|
|
60
|
-
7: '#aeaba3',
|
|
61
|
-
8: '#9c9a92',
|
|
62
|
-
9: '#8e8c83',
|
|
63
|
-
10: '#74726a',
|
|
64
|
-
11: '#3e3d3a',
|
|
65
|
-
12: '#282826'
|
|
53
|
+
deepPurple: createColorScale({
|
|
54
|
+
5: '#936C93',
|
|
55
|
+
6: '#7A587A',
|
|
56
|
+
7: '#6E4D6E',
|
|
57
|
+
8: '#563B56',
|
|
58
|
+
9: '#452F45'
|
|
66
59
|
}),
|
|
67
|
-
|
|
68
|
-
1: '#
|
|
69
|
-
2: '#
|
|
70
|
-
3: '#
|
|
71
|
-
4: '#
|
|
72
|
-
5: '#
|
|
73
|
-
6: '#
|
|
74
|
-
7: '#9180ff',
|
|
75
|
-
8: '#7b66ff',
|
|
76
|
-
9: '#624af7',
|
|
77
|
-
10: '#5139e1',
|
|
78
|
-
11: '#3a26b5',
|
|
79
|
-
12: '#0a0428'
|
|
60
|
+
beige: createColorScale({
|
|
61
|
+
1: '#F7F4EE',
|
|
62
|
+
2: '#F1ECE4',
|
|
63
|
+
3: '#EAE3D6',
|
|
64
|
+
4: '#E5DCCA',
|
|
65
|
+
5: '#DDD0B8',
|
|
66
|
+
6: '#C1B59F'
|
|
80
67
|
}),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
68
|
+
lightning: createColorScale({
|
|
69
|
+
5: '#FFF500',
|
|
70
|
+
7: '#43390A'
|
|
71
|
+
}),
|
|
72
|
+
rainbow: createColorScale({
|
|
73
|
+
pink: '#E4A4F9',
|
|
74
|
+
brick: '#951D12',
|
|
75
|
+
orange: '#DB6E2E',
|
|
76
|
+
gold: '#9A7600',
|
|
77
|
+
sun: '#EFD346',
|
|
78
|
+
'green-pine': '#1C5D47',
|
|
79
|
+
'green-grass': '#4DA00A',
|
|
80
|
+
'green-apple': '#DEF985',
|
|
81
|
+
'blue-electric': '#2850C4',
|
|
82
|
+
'blue-sky': '#B2F0FD'
|
|
83
|
+
}),
|
|
84
|
+
grey: createColorScale({
|
|
85
|
+
0: '#ffffff',
|
|
86
|
+
1: '#ECECEC',
|
|
87
|
+
2: '#CDCED0',
|
|
88
|
+
3: '#A8A8A8',
|
|
89
|
+
5: '#838383',
|
|
90
|
+
7: '#505050',
|
|
91
|
+
9: '#101010'
|
|
94
92
|
}),
|
|
95
93
|
blue: createColorScale({
|
|
96
|
-
1: '#
|
|
97
|
-
2: '#
|
|
98
|
-
|
|
99
|
-
4: '#d4e0ff',
|
|
100
|
-
5: '#baceff',
|
|
101
|
-
6: '#a1bbff',
|
|
102
|
-
7: '#87a9ff',
|
|
103
|
-
8: '#6e96ff',
|
|
104
|
-
9: '#5383ff',
|
|
105
|
-
10: '#4170eb',
|
|
106
|
-
11: '#0e4381',
|
|
107
|
-
12: '#061c36'
|
|
94
|
+
1: '#E9F4FC',
|
|
95
|
+
2: '#BCDFF6',
|
|
96
|
+
6: '#1772AB'
|
|
108
97
|
}),
|
|
109
|
-
|
|
110
|
-
1: '#
|
|
111
|
-
2: '#
|
|
112
|
-
|
|
113
|
-
4: '#f0c7d4',
|
|
114
|
-
5: '#f0afc4',
|
|
115
|
-
6: '#f097b3',
|
|
116
|
-
7: '#f07fa3',
|
|
117
|
-
8: '#d95d84',
|
|
118
|
-
9: '#cf2a60',
|
|
119
|
-
10: '#c12558',
|
|
120
|
-
11: '#61192e',
|
|
121
|
-
12: '#29040f'
|
|
98
|
+
green: createColorScale({
|
|
99
|
+
1: '#ECFEDD',
|
|
100
|
+
2: '#DBFAC1',
|
|
101
|
+
6: '#438D06'
|
|
122
102
|
}),
|
|
123
|
-
|
|
124
|
-
1: '#
|
|
125
|
-
2: '#
|
|
126
|
-
|
|
127
|
-
4: '#ffcfcf',
|
|
128
|
-
5: '#ffb5b5',
|
|
129
|
-
6: '#ff9c9c',
|
|
130
|
-
7: '#f57d7d',
|
|
131
|
-
8: '#eb6565',
|
|
132
|
-
9: '#e55050',
|
|
133
|
-
10: '#da3d3d',
|
|
134
|
-
11: '#8a2b1e',
|
|
135
|
-
12: '#330c07'
|
|
103
|
+
yellow: createColorScale({
|
|
104
|
+
1: '#FDF8E7',
|
|
105
|
+
2: '#FAEBB8',
|
|
106
|
+
6: '#EFC11F'
|
|
136
107
|
}),
|
|
137
|
-
|
|
138
|
-
1: '#
|
|
139
|
-
2: '#
|
|
140
|
-
|
|
141
|
-
4: '#ffefc4',
|
|
142
|
-
5: '#ffe8ab',
|
|
143
|
-
6: '#ffe191',
|
|
144
|
-
7: '#ffda78',
|
|
145
|
-
8: '#ffd35e',
|
|
146
|
-
9: '#fdc32d',
|
|
147
|
-
10: '#f3a40c',
|
|
148
|
-
11: '#9f5600',
|
|
149
|
-
12: '#341c00'
|
|
108
|
+
red: createColorScale({
|
|
109
|
+
1: '#FDE4E3',
|
|
110
|
+
2: '#FAB8B8',
|
|
111
|
+
6: '#F14847'
|
|
150
112
|
}),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
113
|
+
'beige-alpha': createColorScale({
|
|
114
|
+
'25': '#C1B59F40',
|
|
115
|
+
'40': '#C1B59F66',
|
|
116
|
+
'50': '#C1B59F80'
|
|
117
|
+
}),
|
|
118
|
+
'grey-alpha': createColorScale({
|
|
119
|
+
'25': '#10101040',
|
|
120
|
+
'35': '#10101059',
|
|
121
|
+
'50': '#10101080'
|
|
122
|
+
}),
|
|
123
|
+
'white-alpha': createColorScale({
|
|
124
|
+
'10': '#FFFFFF1A',
|
|
125
|
+
'20': '#FFFFFF33',
|
|
126
|
+
'80': '#FFFFFFCC',
|
|
127
|
+
'90': '#FFFFFFE5'
|
|
164
128
|
})
|
|
165
129
|
};
|
|
166
130
|
var transformColorScalesToTokens = function () {
|
|
@@ -176,89 +140,43 @@ var transformColorScalesToTokens = function () {
|
|
|
176
140
|
});
|
|
177
141
|
}));
|
|
178
142
|
};
|
|
179
|
-
var
|
|
180
|
-
/** @deprecated use violine.9 instead */
|
|
181
|
-
lateOcean: colorScales.violine[9],
|
|
182
|
-
/** @deprecated use violine.8 instead */
|
|
183
|
-
lateOceanLight1: colorScales.violine[8],
|
|
184
|
-
/** @deprecated use violine.6 instead */
|
|
185
|
-
lateOceanLight2: colorScales.violine[6],
|
|
186
|
-
/** @deprecated use lavender.6 instead */
|
|
187
|
-
lateOceanLight3: colorScales.lavender[6],
|
|
188
|
-
/** @deprecated use violine.12 instead */
|
|
189
|
-
lateOceanDark1: colorScales.violine[12],
|
|
190
|
-
/** @deprecated use lavender.5 instead */
|
|
191
|
-
warmEmbrace: colorScales.lavender[5],
|
|
192
|
-
/** @deprecated use lavender.3 instead */
|
|
193
|
-
warmEmbraceLight1: colorScales.lavender[3],
|
|
143
|
+
var deepPurpleColorPalette = _objectSpread(_objectSpread({}, transformColorScalesToTokens()), {}, {
|
|
194
144
|
white: '#FFFFFF',
|
|
195
145
|
black: '#000000',
|
|
196
|
-
|
|
197
|
-
black1000: '#000000',
|
|
198
|
-
/** @deprecated use eggshell.11 instead */
|
|
199
|
-
black800: colorScales.eggshell[11],
|
|
200
|
-
/** @deprecated use eggshell.10 instead */
|
|
201
|
-
black555: colorScales.eggshell[10],
|
|
202
|
-
/** @deprecated use eggshell.7 instead */
|
|
203
|
-
black400: colorScales.eggshell[7],
|
|
204
|
-
/** @deprecated use eggshell.4 instead */
|
|
205
|
-
black200: colorScales.eggshell[4],
|
|
206
|
-
/** @deprecated use eggshell.3 instead */
|
|
207
|
-
black100: colorScales.eggshell[3],
|
|
208
|
-
/** @deprecated use eggshell.2 instead */
|
|
209
|
-
black50: colorScales.eggshell[2],
|
|
210
|
-
/** @deprecated use eggshell.1 instead */
|
|
211
|
-
black25: colorScales.eggshell[1],
|
|
212
|
-
/** @deprecated use green.8 instead */
|
|
213
|
-
viride: colorScales.green[8],
|
|
214
|
-
/** @deprecated use coral.7 instead */
|
|
215
|
-
englishVermillon: colorScales.coral[7],
|
|
216
|
-
/** @deprecated use sun.8 instead */
|
|
217
|
-
goldCrayola: colorScales.sun[8],
|
|
218
|
-
/** @deprecated use blue.8 instead */
|
|
219
|
-
aero: colorScales.blue[8],
|
|
220
|
-
/** @deprecated use eggshell.1 instead */
|
|
221
|
-
seaShell: colorScales.eggshell[1],
|
|
222
|
-
transparent: 'transparent',
|
|
223
|
-
/** @deprecated use violine.4 instead */
|
|
224
|
-
moonPurple: colorScales.violine[4],
|
|
225
|
-
/** @deprecated use violine.2 instead */
|
|
226
|
-
moonPurpleLight1: colorScales.violine[2]
|
|
146
|
+
transparent: 'transparent'
|
|
227
147
|
});
|
|
228
148
|
|
|
229
149
|
var colors = {
|
|
230
|
-
primary:
|
|
231
|
-
primaryLight:
|
|
232
|
-
accent:
|
|
233
|
-
accentLight:
|
|
234
|
-
success:
|
|
235
|
-
correct:
|
|
236
|
-
danger:
|
|
237
|
-
info:
|
|
238
|
-
warning:
|
|
239
|
-
separator:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
transparent: lateOceanColorPalette.transparent,
|
|
249
|
-
disabled: lateOceanColorPalette['eggshell.2'],
|
|
150
|
+
primary: deepPurpleColorPalette['deepPurple.8'],
|
|
151
|
+
primaryLight: deepPurpleColorPalette['deepPurple.8'],
|
|
152
|
+
accent: deepPurpleColorPalette['beige.1'],
|
|
153
|
+
accentLight: deepPurpleColorPalette['beige.1'],
|
|
154
|
+
success: deepPurpleColorPalette['green.6'],
|
|
155
|
+
correct: deepPurpleColorPalette['green.6'],
|
|
156
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
157
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
158
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
159
|
+
separator: deepPurpleColorPalette['beige.3'],
|
|
160
|
+
white: deepPurpleColorPalette['grey.0'],
|
|
161
|
+
black: deepPurpleColorPalette['grey.9'],
|
|
162
|
+
blackLight: deepPurpleColorPalette['grey.5'],
|
|
163
|
+
blackAnthracite: deepPurpleColorPalette['grey.7'],
|
|
164
|
+
uiBackground: deepPurpleColorPalette['beige.1'],
|
|
165
|
+
uiBackgroundLight: deepPurpleColorPalette['grey.0'],
|
|
166
|
+
transparent: deepPurpleColorPalette.transparent,
|
|
167
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
250
168
|
overlay: {
|
|
251
|
-
dark: '
|
|
252
|
-
light: '
|
|
169
|
+
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
170
|
+
light: deepPurpleColorPalette['white-alpha.80']
|
|
253
171
|
}
|
|
254
172
|
};
|
|
255
173
|
|
|
256
174
|
var actionCard = {
|
|
257
|
-
borderRadius:
|
|
175
|
+
borderRadius: 8,
|
|
258
176
|
primary: {
|
|
259
177
|
"default": {
|
|
260
178
|
backgroundColor: colors.uiBackgroundLight,
|
|
261
|
-
borderColor:
|
|
179
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
262
180
|
borderWidth: 1,
|
|
263
181
|
shadow: {
|
|
264
182
|
color: '',
|
|
@@ -270,8 +188,8 @@ var actionCard = {
|
|
|
270
188
|
translateY: 0
|
|
271
189
|
},
|
|
272
190
|
hovered: {
|
|
273
|
-
backgroundColor:
|
|
274
|
-
borderColor:
|
|
191
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
192
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
275
193
|
borderWidth: 1,
|
|
276
194
|
shadow: {
|
|
277
195
|
color: '',
|
|
@@ -283,8 +201,8 @@ var actionCard = {
|
|
|
283
201
|
translateY: 0
|
|
284
202
|
},
|
|
285
203
|
disabled: {
|
|
286
|
-
backgroundColor:
|
|
287
|
-
borderColor:
|
|
204
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
205
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
288
206
|
borderWidth: 1,
|
|
289
207
|
shadow: {
|
|
290
208
|
color: '',
|
|
@@ -296,8 +214,8 @@ var actionCard = {
|
|
|
296
214
|
translateY: 0
|
|
297
215
|
},
|
|
298
216
|
focused: {
|
|
299
|
-
backgroundColor:
|
|
300
|
-
borderColor:
|
|
217
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
218
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
301
219
|
borderWidth: 1,
|
|
302
220
|
shadow: {
|
|
303
221
|
color: '',
|
|
@@ -309,8 +227,8 @@ var actionCard = {
|
|
|
309
227
|
translateY: 0
|
|
310
228
|
},
|
|
311
229
|
pressed: {
|
|
312
|
-
backgroundColor:
|
|
313
|
-
borderColor:
|
|
230
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
231
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
314
232
|
borderWidth: 1,
|
|
315
233
|
shadow: {
|
|
316
234
|
color: '',
|
|
@@ -325,10 +243,10 @@ var actionCard = {
|
|
|
325
243
|
'primary-border-soft': {
|
|
326
244
|
"default": {
|
|
327
245
|
backgroundColor: colors.uiBackgroundLight,
|
|
328
|
-
borderColor:
|
|
246
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
329
247
|
borderWidth: 1,
|
|
330
248
|
shadow: {
|
|
331
|
-
color:
|
|
249
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
332
250
|
offsetX: 0,
|
|
333
251
|
offsetY: 4,
|
|
334
252
|
opacity: 1,
|
|
@@ -337,11 +255,11 @@ var actionCard = {
|
|
|
337
255
|
translateY: 0
|
|
338
256
|
},
|
|
339
257
|
hovered: {
|
|
340
|
-
backgroundColor:
|
|
341
|
-
borderColor:
|
|
258
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
259
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
342
260
|
borderWidth: 1,
|
|
343
261
|
shadow: {
|
|
344
|
-
color:
|
|
262
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
345
263
|
offsetX: 0,
|
|
346
264
|
offsetY: 4,
|
|
347
265
|
opacity: 1,
|
|
@@ -350,8 +268,8 @@ var actionCard = {
|
|
|
350
268
|
translateY: 0
|
|
351
269
|
},
|
|
352
270
|
disabled: {
|
|
353
|
-
backgroundColor:
|
|
354
|
-
borderColor:
|
|
271
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
272
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
355
273
|
borderWidth: 1,
|
|
356
274
|
shadow: {
|
|
357
275
|
color: '',
|
|
@@ -363,11 +281,11 @@ var actionCard = {
|
|
|
363
281
|
translateY: 0
|
|
364
282
|
},
|
|
365
283
|
focused: {
|
|
366
|
-
backgroundColor:
|
|
367
|
-
borderColor:
|
|
284
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
285
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
368
286
|
borderWidth: 1,
|
|
369
287
|
shadow: {
|
|
370
|
-
color:
|
|
288
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
371
289
|
offsetX: 0,
|
|
372
290
|
offsetY: 4,
|
|
373
291
|
opacity: 1,
|
|
@@ -376,8 +294,8 @@ var actionCard = {
|
|
|
376
294
|
translateY: 0
|
|
377
295
|
},
|
|
378
296
|
pressed: {
|
|
379
|
-
backgroundColor:
|
|
380
|
-
borderColor:
|
|
297
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
298
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
381
299
|
borderWidth: 1,
|
|
382
300
|
shadow: {
|
|
383
301
|
color: '',
|
|
@@ -392,10 +310,10 @@ var actionCard = {
|
|
|
392
310
|
'primary-border-hard': {
|
|
393
311
|
"default": {
|
|
394
312
|
backgroundColor: colors.uiBackgroundLight,
|
|
395
|
-
borderColor:
|
|
313
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
396
314
|
borderWidth: 1,
|
|
397
315
|
shadow: {
|
|
398
|
-
color:
|
|
316
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
399
317
|
offsetX: 0,
|
|
400
318
|
offsetY: 4,
|
|
401
319
|
opacity: 1,
|
|
@@ -404,11 +322,11 @@ var actionCard = {
|
|
|
404
322
|
translateY: 0
|
|
405
323
|
},
|
|
406
324
|
hovered: {
|
|
407
|
-
backgroundColor:
|
|
408
|
-
borderColor:
|
|
325
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
326
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
409
327
|
borderWidth: 1,
|
|
410
328
|
shadow: {
|
|
411
|
-
color:
|
|
329
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
412
330
|
offsetX: 0,
|
|
413
331
|
offsetY: 4,
|
|
414
332
|
opacity: 1,
|
|
@@ -417,8 +335,8 @@ var actionCard = {
|
|
|
417
335
|
translateY: 0
|
|
418
336
|
},
|
|
419
337
|
disabled: {
|
|
420
|
-
backgroundColor:
|
|
421
|
-
borderColor:
|
|
338
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
339
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
422
340
|
borderWidth: 1,
|
|
423
341
|
shadow: {
|
|
424
342
|
color: '',
|
|
@@ -430,11 +348,11 @@ var actionCard = {
|
|
|
430
348
|
translateY: 0
|
|
431
349
|
},
|
|
432
350
|
focused: {
|
|
433
|
-
backgroundColor:
|
|
434
|
-
borderColor:
|
|
351
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
352
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
435
353
|
borderWidth: 1,
|
|
436
354
|
shadow: {
|
|
437
|
-
color:
|
|
355
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
438
356
|
offsetX: 0,
|
|
439
357
|
offsetY: 4,
|
|
440
358
|
opacity: 1,
|
|
@@ -443,8 +361,8 @@ var actionCard = {
|
|
|
443
361
|
translateY: 0
|
|
444
362
|
},
|
|
445
363
|
pressed: {
|
|
446
|
-
backgroundColor:
|
|
447
|
-
borderColor:
|
|
364
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
365
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
448
366
|
borderWidth: 1,
|
|
449
367
|
shadow: {
|
|
450
368
|
color: '',
|
|
@@ -458,8 +376,8 @@ var actionCard = {
|
|
|
458
376
|
},
|
|
459
377
|
secondary: {
|
|
460
378
|
"default": {
|
|
461
|
-
backgroundColor:
|
|
462
|
-
borderColor:
|
|
379
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
380
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
463
381
|
borderWidth: 0,
|
|
464
382
|
shadow: {
|
|
465
383
|
color: '',
|
|
@@ -471,8 +389,8 @@ var actionCard = {
|
|
|
471
389
|
translateY: 0
|
|
472
390
|
},
|
|
473
391
|
disabled: {
|
|
474
|
-
backgroundColor:
|
|
475
|
-
borderColor:
|
|
392
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
393
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
476
394
|
borderWidth: 1,
|
|
477
395
|
shadow: {
|
|
478
396
|
color: '',
|
|
@@ -484,8 +402,8 @@ var actionCard = {
|
|
|
484
402
|
translateY: 0
|
|
485
403
|
},
|
|
486
404
|
hovered: {
|
|
487
|
-
backgroundColor:
|
|
488
|
-
borderColor:
|
|
405
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
406
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
489
407
|
borderWidth: 0,
|
|
490
408
|
shadow: {
|
|
491
409
|
color: '',
|
|
@@ -497,8 +415,8 @@ var actionCard = {
|
|
|
497
415
|
translateY: 0
|
|
498
416
|
},
|
|
499
417
|
focused: {
|
|
500
|
-
backgroundColor:
|
|
501
|
-
borderColor:
|
|
418
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
419
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
502
420
|
borderWidth: 0,
|
|
503
421
|
shadow: {
|
|
504
422
|
color: '',
|
|
@@ -510,8 +428,8 @@ var actionCard = {
|
|
|
510
428
|
translateY: 0
|
|
511
429
|
},
|
|
512
430
|
pressed: {
|
|
513
|
-
backgroundColor:
|
|
514
|
-
borderColor:
|
|
431
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
432
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
515
433
|
borderWidth: 0,
|
|
516
434
|
shadow: {
|
|
517
435
|
color: '',
|
|
@@ -525,11 +443,11 @@ var actionCard = {
|
|
|
525
443
|
},
|
|
526
444
|
highlight: {
|
|
527
445
|
"default": {
|
|
528
|
-
backgroundColor:
|
|
529
|
-
borderColor:
|
|
446
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
447
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
530
448
|
borderWidth: 1,
|
|
531
449
|
shadow: {
|
|
532
|
-
color:
|
|
450
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
533
451
|
offsetX: 0,
|
|
534
452
|
offsetY: 4,
|
|
535
453
|
opacity: 1,
|
|
@@ -538,8 +456,8 @@ var actionCard = {
|
|
|
538
456
|
translateY: 0
|
|
539
457
|
},
|
|
540
458
|
disabled: {
|
|
541
|
-
backgroundColor:
|
|
542
|
-
borderColor:
|
|
459
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
460
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
543
461
|
borderWidth: 1,
|
|
544
462
|
shadow: {
|
|
545
463
|
color: '',
|
|
@@ -551,11 +469,11 @@ var actionCard = {
|
|
|
551
469
|
translateY: 0
|
|
552
470
|
},
|
|
553
471
|
hovered: {
|
|
554
|
-
backgroundColor: hex2rgba(
|
|
555
|
-
borderColor:
|
|
472
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
473
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
556
474
|
borderWidth: 1,
|
|
557
475
|
shadow: {
|
|
558
|
-
color:
|
|
476
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
559
477
|
offsetX: 0,
|
|
560
478
|
offsetY: 4,
|
|
561
479
|
opacity: 1,
|
|
@@ -564,11 +482,11 @@ var actionCard = {
|
|
|
564
482
|
translateY: 0
|
|
565
483
|
},
|
|
566
484
|
focused: {
|
|
567
|
-
backgroundColor: hex2rgba(
|
|
568
|
-
borderColor:
|
|
485
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
486
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
569
487
|
borderWidth: 1,
|
|
570
488
|
shadow: {
|
|
571
|
-
color:
|
|
489
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
572
490
|
offsetX: 0,
|
|
573
491
|
offsetY: 4,
|
|
574
492
|
opacity: 1,
|
|
@@ -577,8 +495,8 @@ var actionCard = {
|
|
|
577
495
|
translateY: 0
|
|
578
496
|
},
|
|
579
497
|
pressed: {
|
|
580
|
-
backgroundColor: hex2rgba(
|
|
581
|
-
borderColor:
|
|
498
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
499
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
582
500
|
borderWidth: 1,
|
|
583
501
|
shadow: {
|
|
584
502
|
color: '',
|
|
@@ -596,42 +514,28 @@ var defaultAvatarSize = 40;
|
|
|
596
514
|
var defaultAvatarIconSize = 20;
|
|
597
515
|
var largeAvatarSize = 120;
|
|
598
516
|
var largeAvatarIconSize = 30;
|
|
599
|
-
|
|
600
|
-
// export interface AvatarThemeBackgroundColorVariant {
|
|
601
|
-
// default: string;
|
|
602
|
-
// light: string;
|
|
603
|
-
// dark: string;
|
|
604
|
-
// disabled: string;
|
|
605
|
-
// }
|
|
606
|
-
|
|
607
|
-
// export interface AvatarThemeColorVariant {
|
|
608
|
-
// default: string;
|
|
609
|
-
// light: string;
|
|
610
|
-
// disabled: string;
|
|
611
|
-
// }
|
|
612
|
-
|
|
613
517
|
var avatar = {
|
|
614
|
-
borderRadius:
|
|
518
|
+
borderRadius: 4,
|
|
615
519
|
size: defaultAvatarSize,
|
|
616
520
|
iconSize: defaultAvatarIconSize,
|
|
617
521
|
"default": {
|
|
618
|
-
color:
|
|
619
|
-
backgroundColor:
|
|
522
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
523
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
620
524
|
},
|
|
621
525
|
light: {
|
|
622
|
-
color:
|
|
623
|
-
backgroundColor:
|
|
526
|
+
color: deepPurpleColorPalette['beige.6'],
|
|
527
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
624
528
|
},
|
|
625
529
|
dark: {
|
|
626
|
-
color:
|
|
627
|
-
backgroundColor:
|
|
530
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
531
|
+
backgroundColor: deepPurpleColorPalette['grey.9']
|
|
628
532
|
},
|
|
629
533
|
disabled: {
|
|
630
|
-
color:
|
|
631
|
-
backgroundColor:
|
|
534
|
+
color: deepPurpleColorPalette['grey.3'],
|
|
535
|
+
backgroundColor: deepPurpleColorPalette['grey.1']
|
|
632
536
|
},
|
|
633
537
|
large: {
|
|
634
|
-
borderRadius:
|
|
538
|
+
borderRadius: 8,
|
|
635
539
|
size: largeAvatarSize,
|
|
636
540
|
iconSize: largeAvatarIconSize
|
|
637
541
|
}
|
|
@@ -644,7 +548,7 @@ var bottomSheet = {
|
|
|
644
548
|
padding: spacing * 4
|
|
645
549
|
},
|
|
646
550
|
handle: {
|
|
647
|
-
backgroundColor:
|
|
551
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
648
552
|
}
|
|
649
553
|
};
|
|
650
554
|
|
|
@@ -712,9 +616,9 @@ var button = {
|
|
|
712
616
|
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
713
617
|
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
714
618
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
715
|
-
color:
|
|
716
|
-
hoverColor:
|
|
717
|
-
activeColor:
|
|
619
|
+
color: deepPurpleColorPalette.white,
|
|
620
|
+
hoverColor: deepPurpleColorPalette.white,
|
|
621
|
+
activeColor: deepPurpleColorPalette.white
|
|
718
622
|
}
|
|
719
623
|
},
|
|
720
624
|
primary: {
|
|
@@ -727,11 +631,11 @@ var button = {
|
|
|
727
631
|
ghost: {
|
|
728
632
|
backgroundColor: colors.uiBackgroundLight,
|
|
729
633
|
pressedBackgroundColor: colors.uiBackground,
|
|
730
|
-
hoverBackgroundColor:
|
|
634
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
731
635
|
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
732
636
|
color: colors.primary,
|
|
733
|
-
hoverColor:
|
|
734
|
-
activeColor:
|
|
637
|
+
hoverColor: deepPurpleColorPalette['beige.2'],
|
|
638
|
+
activeColor: deepPurpleColorPalette['beige.2']
|
|
735
639
|
}
|
|
736
640
|
},
|
|
737
641
|
dark: {
|
|
@@ -744,19 +648,19 @@ var button = {
|
|
|
744
648
|
},
|
|
745
649
|
danger: {
|
|
746
650
|
"default": {
|
|
747
|
-
backgroundColor:
|
|
748
|
-
pressedBackgroundColor:
|
|
749
|
-
hoverBackgroundColor:
|
|
750
|
-
focusBorderColor:
|
|
651
|
+
backgroundColor: deepPurpleColorPalette['red.1'],
|
|
652
|
+
pressedBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
653
|
+
hoverBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
654
|
+
focusBorderColor: deepPurpleColorPalette['red.2']
|
|
751
655
|
},
|
|
752
656
|
ghost: {
|
|
753
657
|
backgroundColor: colors.uiBackgroundLight,
|
|
754
658
|
pressedBackgroundColor: colors.uiBackground,
|
|
755
|
-
hoverBackgroundColor:
|
|
659
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
756
660
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
757
|
-
color:
|
|
758
|
-
hoverColor:
|
|
759
|
-
activeColor:
|
|
661
|
+
color: deepPurpleColorPalette['red.6'],
|
|
662
|
+
hoverColor: deepPurpleColorPalette['red.6'],
|
|
663
|
+
activeColor: deepPurpleColorPalette['red.6']
|
|
760
664
|
}
|
|
761
665
|
},
|
|
762
666
|
subtle: {
|
|
@@ -797,14 +701,14 @@ var button = {
|
|
|
797
701
|
backgroundColor: colors.disabled,
|
|
798
702
|
pressedBackgroundColor: colors.disabled,
|
|
799
703
|
hoverBackgroundColor: colors.disabled,
|
|
800
|
-
focusBorderColor:
|
|
801
|
-
borderColor:
|
|
704
|
+
focusBorderColor: deepPurpleColorPalette['beige.2'],
|
|
705
|
+
borderColor: deepPurpleColorPalette['beige.2']
|
|
802
706
|
}
|
|
803
707
|
}
|
|
804
708
|
};
|
|
805
709
|
|
|
806
710
|
var buttonBadge = {
|
|
807
|
-
backgroundColor:
|
|
711
|
+
backgroundColor: deepPurpleColorPalette['red.6'],
|
|
808
712
|
dimensions: {
|
|
809
713
|
withBadge: {
|
|
810
714
|
width: 10,
|
|
@@ -833,7 +737,7 @@ var card = {
|
|
|
833
737
|
borderColor: colors.separator
|
|
834
738
|
},
|
|
835
739
|
subtle: {
|
|
836
|
-
backgroundColor:
|
|
740
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
837
741
|
borderColor: colors.separator
|
|
838
742
|
}
|
|
839
743
|
};
|
|
@@ -893,17 +797,17 @@ var choices = {
|
|
|
893
797
|
small: 24
|
|
894
798
|
},
|
|
895
799
|
backgroundColor: {
|
|
896
|
-
"default":
|
|
800
|
+
"default": deepPurpleColorPalette['beige.1'],
|
|
897
801
|
disabled: colors.disabled,
|
|
898
802
|
selected: colors.primary,
|
|
899
|
-
pressed:
|
|
900
|
-
hover:
|
|
901
|
-
hoverWhenSelected:
|
|
803
|
+
pressed: deepPurpleColorPalette['deepPurple.7'],
|
|
804
|
+
hover: deepPurpleColorPalette['beige.2'],
|
|
805
|
+
hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
|
|
902
806
|
},
|
|
903
807
|
disabled: {
|
|
904
808
|
border: {
|
|
905
809
|
width: 2,
|
|
906
|
-
color:
|
|
810
|
+
color: deepPurpleColorPalette['beige.2']
|
|
907
811
|
}
|
|
908
812
|
},
|
|
909
813
|
transition: {
|
|
@@ -968,19 +872,19 @@ var autocomplete = {
|
|
|
968
872
|
backgroundColor: colors.white
|
|
969
873
|
},
|
|
970
874
|
hovered: {
|
|
971
|
-
backgroundColor:
|
|
875
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
972
876
|
},
|
|
973
877
|
focused: {
|
|
974
|
-
backgroundColor:
|
|
878
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
975
879
|
},
|
|
976
880
|
selected: {
|
|
977
|
-
backgroundColor:
|
|
881
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
978
882
|
},
|
|
979
883
|
highlighted: {
|
|
980
|
-
backgroundColor:
|
|
884
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
981
885
|
},
|
|
982
886
|
pressed: {
|
|
983
|
-
backgroundColor:
|
|
887
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
984
888
|
}
|
|
985
889
|
},
|
|
986
890
|
optionsContainer: {
|
|
@@ -1048,37 +952,37 @@ var datePicker = {
|
|
|
1048
952
|
|
|
1049
953
|
var inputStatesStyle = {
|
|
1050
954
|
"default": {
|
|
1051
|
-
backgroundColor:
|
|
1052
|
-
borderColor:
|
|
1053
|
-
color:
|
|
955
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
956
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
957
|
+
color: deepPurpleColorPalette.black
|
|
1054
958
|
},
|
|
1055
959
|
pending: {
|
|
1056
|
-
backgroundColor:
|
|
1057
|
-
borderColor:
|
|
1058
|
-
color:
|
|
960
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
961
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
962
|
+
color: deepPurpleColorPalette.black
|
|
1059
963
|
},
|
|
1060
964
|
valid: {
|
|
1061
|
-
backgroundColor:
|
|
1062
|
-
borderColor:
|
|
1063
|
-
color:
|
|
965
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
966
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
967
|
+
color: deepPurpleColorPalette.black
|
|
1064
968
|
},
|
|
1065
969
|
hover: {
|
|
1066
|
-
backgroundColor:
|
|
1067
|
-
borderColor:
|
|
1068
|
-
color:
|
|
970
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
971
|
+
borderColor: deepPurpleColorPalette['beige.4'],
|
|
972
|
+
color: deepPurpleColorPalette.black
|
|
1069
973
|
},
|
|
1070
974
|
focus: {
|
|
1071
|
-
borderColor:
|
|
1072
|
-
color:
|
|
975
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
976
|
+
color: deepPurpleColorPalette.black
|
|
1073
977
|
},
|
|
1074
978
|
disabled: {
|
|
1075
|
-
backgroundColor:
|
|
1076
|
-
borderColor:
|
|
1077
|
-
color:
|
|
979
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
980
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
981
|
+
color: deepPurpleColorPalette['grey.3']
|
|
1078
982
|
},
|
|
1079
983
|
invalid: {
|
|
1080
|
-
borderColor:
|
|
1081
|
-
color:
|
|
984
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
985
|
+
color: deepPurpleColorPalette.black
|
|
1082
986
|
}
|
|
1083
987
|
};
|
|
1084
988
|
var webAnimationDuration = '200ms';
|
|
@@ -1087,11 +991,11 @@ var webAnimationProperties = ['border-color', 'background-color'];
|
|
|
1087
991
|
var input = {
|
|
1088
992
|
minHeight: 40,
|
|
1089
993
|
color: {
|
|
1090
|
-
selection:
|
|
1091
|
-
placeholder:
|
|
994
|
+
selection: deepPurpleColorPalette['deepPurple.8'],
|
|
995
|
+
placeholder: deepPurpleColorPalette['beige.6']
|
|
1092
996
|
},
|
|
1093
997
|
borderWidth: 1,
|
|
1094
|
-
borderRadius:
|
|
998
|
+
borderRadius: 4,
|
|
1095
999
|
icon: {
|
|
1096
1000
|
size: 20
|
|
1097
1001
|
},
|
|
@@ -1128,7 +1032,7 @@ var inputTag = {
|
|
|
1128
1032
|
labelColor: colors.uiBackgroundLight
|
|
1129
1033
|
},
|
|
1130
1034
|
"default": {
|
|
1131
|
-
backgroundColor:
|
|
1035
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1132
1036
|
labelColor: colors.black
|
|
1133
1037
|
},
|
|
1134
1038
|
borderRadius: 10,
|
|
@@ -1138,9 +1042,9 @@ var inputTag = {
|
|
|
1138
1042
|
var radio = {
|
|
1139
1043
|
size: 24,
|
|
1140
1044
|
unchecked: {
|
|
1141
|
-
borderWidth:
|
|
1045
|
+
borderWidth: 1,
|
|
1142
1046
|
backgroundColor: colors.uiBackgroundLight,
|
|
1143
|
-
borderColor:
|
|
1047
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1144
1048
|
},
|
|
1145
1049
|
checked: {
|
|
1146
1050
|
backgroundColor: colors.primary,
|
|
@@ -1157,8 +1061,9 @@ var radio = {
|
|
|
1157
1061
|
borderColor: colors.primary
|
|
1158
1062
|
},
|
|
1159
1063
|
disabled: {
|
|
1160
|
-
backgroundColor:
|
|
1161
|
-
borderColor: colors.
|
|
1064
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1065
|
+
borderColor: colors.transparent,
|
|
1066
|
+
innerBackgroundColor: deepPurpleColorPalette['grey.1']
|
|
1162
1067
|
},
|
|
1163
1068
|
transition: {
|
|
1164
1069
|
duration: '200ms',
|
|
@@ -1169,14 +1074,19 @@ var radio = {
|
|
|
1169
1074
|
var radioButtonGroup = {
|
|
1170
1075
|
item: {
|
|
1171
1076
|
minHeight: 40,
|
|
1172
|
-
borderWidth:
|
|
1173
|
-
borderRadius:
|
|
1077
|
+
borderWidth: 1,
|
|
1078
|
+
borderRadius: 4,
|
|
1079
|
+
font: {
|
|
1080
|
+
color: {
|
|
1081
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1174
1084
|
borderColor: {
|
|
1175
1085
|
"default": colors.separator,
|
|
1176
1086
|
hover: colors.primary,
|
|
1177
1087
|
pressed: colors.primary,
|
|
1178
1088
|
active: colors.primary,
|
|
1179
|
-
disabled: colors.
|
|
1089
|
+
disabled: colors.disabled
|
|
1180
1090
|
},
|
|
1181
1091
|
backgroundColor: {
|
|
1182
1092
|
"default": colors.uiBackgroundLight,
|
|
@@ -1217,17 +1127,17 @@ var toggle = {
|
|
|
1217
1127
|
medium: 50,
|
|
1218
1128
|
large: 66
|
|
1219
1129
|
},
|
|
1220
|
-
labelColor:
|
|
1130
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1221
1131
|
backgroundColor: {
|
|
1222
|
-
checked:
|
|
1223
|
-
unchecked:
|
|
1132
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1133
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1224
1134
|
},
|
|
1225
1135
|
border: {
|
|
1226
1136
|
color: 'transparent',
|
|
1227
1137
|
width: 1
|
|
1228
1138
|
},
|
|
1229
1139
|
circle: {
|
|
1230
|
-
backgroundColor:
|
|
1140
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1231
1141
|
width: {
|
|
1232
1142
|
medium: 18,
|
|
1233
1143
|
large: 24
|
|
@@ -1255,17 +1165,17 @@ var toggle = {
|
|
|
1255
1165
|
medium: 50,
|
|
1256
1166
|
large: 66
|
|
1257
1167
|
},
|
|
1258
|
-
labelColor:
|
|
1168
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1259
1169
|
backgroundColor: {
|
|
1260
|
-
checked:
|
|
1261
|
-
unchecked:
|
|
1170
|
+
checked: deepPurpleColorPalette['deepPurple.7'],
|
|
1171
|
+
unchecked: deepPurpleColorPalette['beige.4']
|
|
1262
1172
|
},
|
|
1263
1173
|
border: {
|
|
1264
1174
|
color: 'transparent',
|
|
1265
1175
|
width: 1
|
|
1266
1176
|
},
|
|
1267
1177
|
circle: {
|
|
1268
|
-
backgroundColor:
|
|
1178
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1269
1179
|
width: {
|
|
1270
1180
|
medium: 18,
|
|
1271
1181
|
large: 24
|
|
@@ -1293,17 +1203,17 @@ var toggle = {
|
|
|
1293
1203
|
medium: 50,
|
|
1294
1204
|
large: 66
|
|
1295
1205
|
},
|
|
1296
|
-
labelColor:
|
|
1206
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1297
1207
|
backgroundColor: {
|
|
1298
|
-
checked:
|
|
1299
|
-
unchecked:
|
|
1208
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1209
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1300
1210
|
},
|
|
1301
1211
|
border: {
|
|
1302
|
-
color:
|
|
1212
|
+
color: deepPurpleColorPalette.white,
|
|
1303
1213
|
width: 1
|
|
1304
1214
|
},
|
|
1305
1215
|
circle: {
|
|
1306
|
-
backgroundColor:
|
|
1216
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1307
1217
|
width: {
|
|
1308
1218
|
medium: 18,
|
|
1309
1219
|
large: 24
|
|
@@ -1318,7 +1228,7 @@ var toggle = {
|
|
|
1318
1228
|
}
|
|
1319
1229
|
},
|
|
1320
1230
|
wrapperBorder: {
|
|
1321
|
-
color:
|
|
1231
|
+
color: deepPurpleColorPalette.black,
|
|
1322
1232
|
width: 1
|
|
1323
1233
|
}
|
|
1324
1234
|
},
|
|
@@ -1331,17 +1241,17 @@ var toggle = {
|
|
|
1331
1241
|
medium: 50,
|
|
1332
1242
|
large: 66
|
|
1333
1243
|
},
|
|
1334
|
-
labelColor:
|
|
1244
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1335
1245
|
backgroundColor: {
|
|
1336
|
-
checked:
|
|
1337
|
-
unchecked:
|
|
1246
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1247
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1338
1248
|
},
|
|
1339
1249
|
border: {
|
|
1340
|
-
color:
|
|
1250
|
+
color: deepPurpleColorPalette.white,
|
|
1341
1251
|
width: 1
|
|
1342
1252
|
},
|
|
1343
1253
|
circle: {
|
|
1344
|
-
backgroundColor:
|
|
1254
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1345
1255
|
width: {
|
|
1346
1256
|
medium: 18,
|
|
1347
1257
|
large: 24
|
|
@@ -1356,7 +1266,7 @@ var toggle = {
|
|
|
1356
1266
|
}
|
|
1357
1267
|
},
|
|
1358
1268
|
wrapperBorder: {
|
|
1359
|
-
color:
|
|
1269
|
+
color: deepPurpleColorPalette.black,
|
|
1360
1270
|
width: 1
|
|
1361
1271
|
}
|
|
1362
1272
|
}
|
|
@@ -1371,17 +1281,17 @@ var toggle = {
|
|
|
1371
1281
|
medium: 50,
|
|
1372
1282
|
large: 66
|
|
1373
1283
|
},
|
|
1374
|
-
labelColor:
|
|
1284
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1375
1285
|
backgroundColor: {
|
|
1376
|
-
checked:
|
|
1377
|
-
unchecked:
|
|
1286
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1287
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1378
1288
|
},
|
|
1379
1289
|
border: {
|
|
1380
1290
|
color: 'transparent',
|
|
1381
1291
|
width: 1
|
|
1382
1292
|
},
|
|
1383
1293
|
circle: {
|
|
1384
|
-
backgroundColor:
|
|
1294
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1385
1295
|
width: {
|
|
1386
1296
|
medium: 18,
|
|
1387
1297
|
large: 24
|
|
@@ -1409,17 +1319,17 @@ var toggle = {
|
|
|
1409
1319
|
medium: 50,
|
|
1410
1320
|
large: 66
|
|
1411
1321
|
},
|
|
1412
|
-
labelColor:
|
|
1322
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1413
1323
|
backgroundColor: {
|
|
1414
|
-
checked:
|
|
1415
|
-
unchecked:
|
|
1324
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1325
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1416
1326
|
},
|
|
1417
1327
|
border: {
|
|
1418
1328
|
color: 'transparent',
|
|
1419
1329
|
width: 1
|
|
1420
1330
|
},
|
|
1421
1331
|
circle: {
|
|
1422
|
-
backgroundColor:
|
|
1332
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1423
1333
|
width: {
|
|
1424
1334
|
medium: 18,
|
|
1425
1335
|
large: 24
|
|
@@ -1447,17 +1357,17 @@ var toggle = {
|
|
|
1447
1357
|
medium: 50,
|
|
1448
1358
|
large: 66
|
|
1449
1359
|
},
|
|
1450
|
-
labelColor:
|
|
1360
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1451
1361
|
backgroundColor: {
|
|
1452
|
-
checked:
|
|
1453
|
-
unchecked:
|
|
1362
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1363
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1454
1364
|
},
|
|
1455
1365
|
border: {
|
|
1456
1366
|
color: 'transparent',
|
|
1457
1367
|
width: 1
|
|
1458
1368
|
},
|
|
1459
1369
|
circle: {
|
|
1460
|
-
backgroundColor:
|
|
1370
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1461
1371
|
width: {
|
|
1462
1372
|
medium: 18,
|
|
1463
1373
|
large: 24
|
|
@@ -1472,7 +1382,7 @@ var toggle = {
|
|
|
1472
1382
|
}
|
|
1473
1383
|
},
|
|
1474
1384
|
wrapperBorder: {
|
|
1475
|
-
color:
|
|
1385
|
+
color: deepPurpleColorPalette.black,
|
|
1476
1386
|
width: 1
|
|
1477
1387
|
}
|
|
1478
1388
|
},
|
|
@@ -1485,17 +1395,17 @@ var toggle = {
|
|
|
1485
1395
|
medium: 50,
|
|
1486
1396
|
large: 66
|
|
1487
1397
|
},
|
|
1488
|
-
labelColor:
|
|
1398
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1489
1399
|
backgroundColor: {
|
|
1490
|
-
checked:
|
|
1491
|
-
unchecked:
|
|
1400
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1401
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1492
1402
|
},
|
|
1493
1403
|
border: {
|
|
1494
1404
|
color: 'transparent',
|
|
1495
1405
|
width: 1
|
|
1496
1406
|
},
|
|
1497
1407
|
circle: {
|
|
1498
|
-
backgroundColor:
|
|
1408
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1499
1409
|
width: {
|
|
1500
1410
|
medium: 18,
|
|
1501
1411
|
large: 24
|
|
@@ -1510,7 +1420,7 @@ var toggle = {
|
|
|
1510
1420
|
}
|
|
1511
1421
|
},
|
|
1512
1422
|
wrapperBorder: {
|
|
1513
|
-
color:
|
|
1423
|
+
color: deepPurpleColorPalette.black,
|
|
1514
1424
|
width: 1
|
|
1515
1425
|
}
|
|
1516
1426
|
}
|
|
@@ -1527,17 +1437,17 @@ var toggle = {
|
|
|
1527
1437
|
medium: 50,
|
|
1528
1438
|
large: 66
|
|
1529
1439
|
},
|
|
1530
|
-
labelColor:
|
|
1440
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1531
1441
|
backgroundColor: {
|
|
1532
|
-
checked:
|
|
1533
|
-
unchecked:
|
|
1442
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1443
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1534
1444
|
},
|
|
1535
1445
|
border: {
|
|
1536
1446
|
color: 'transparent',
|
|
1537
1447
|
width: 1
|
|
1538
1448
|
},
|
|
1539
1449
|
circle: {
|
|
1540
|
-
backgroundColor:
|
|
1450
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1541
1451
|
width: {
|
|
1542
1452
|
medium: 18,
|
|
1543
1453
|
large: 24
|
|
@@ -1565,17 +1475,17 @@ var toggle = {
|
|
|
1565
1475
|
medium: 50,
|
|
1566
1476
|
large: 66
|
|
1567
1477
|
},
|
|
1568
|
-
labelColor:
|
|
1478
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1569
1479
|
backgroundColor: {
|
|
1570
|
-
checked:
|
|
1571
|
-
unchecked:
|
|
1480
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1481
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1572
1482
|
},
|
|
1573
1483
|
border: {
|
|
1574
1484
|
color: 'transparent',
|
|
1575
1485
|
width: 1
|
|
1576
1486
|
},
|
|
1577
1487
|
circle: {
|
|
1578
|
-
backgroundColor:
|
|
1488
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1579
1489
|
width: {
|
|
1580
1490
|
medium: 18,
|
|
1581
1491
|
large: 24
|
|
@@ -1603,17 +1513,17 @@ var toggle = {
|
|
|
1603
1513
|
medium: 50,
|
|
1604
1514
|
large: 66
|
|
1605
1515
|
},
|
|
1606
|
-
labelColor:
|
|
1516
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1607
1517
|
backgroundColor: {
|
|
1608
|
-
checked:
|
|
1609
|
-
unchecked:
|
|
1518
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1519
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1610
1520
|
},
|
|
1611
1521
|
border: {
|
|
1612
|
-
color:
|
|
1522
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1613
1523
|
width: 1
|
|
1614
1524
|
},
|
|
1615
1525
|
circle: {
|
|
1616
|
-
backgroundColor:
|
|
1526
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1617
1527
|
width: {
|
|
1618
1528
|
medium: 18,
|
|
1619
1529
|
large: 24
|
|
@@ -1628,7 +1538,7 @@ var toggle = {
|
|
|
1628
1538
|
}
|
|
1629
1539
|
},
|
|
1630
1540
|
wrapperBorder: {
|
|
1631
|
-
color:
|
|
1541
|
+
color: deepPurpleColorPalette.white,
|
|
1632
1542
|
width: 1
|
|
1633
1543
|
}
|
|
1634
1544
|
},
|
|
@@ -1641,17 +1551,17 @@ var toggle = {
|
|
|
1641
1551
|
medium: 50,
|
|
1642
1552
|
large: 66
|
|
1643
1553
|
},
|
|
1644
|
-
labelColor:
|
|
1554
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1645
1555
|
backgroundColor: {
|
|
1646
|
-
checked:
|
|
1647
|
-
unchecked:
|
|
1556
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1557
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1648
1558
|
},
|
|
1649
1559
|
border: {
|
|
1650
|
-
color:
|
|
1560
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1651
1561
|
width: 1
|
|
1652
1562
|
},
|
|
1653
1563
|
circle: {
|
|
1654
|
-
backgroundColor:
|
|
1564
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1655
1565
|
width: {
|
|
1656
1566
|
medium: 18,
|
|
1657
1567
|
large: 24
|
|
@@ -1666,7 +1576,7 @@ var toggle = {
|
|
|
1666
1576
|
}
|
|
1667
1577
|
},
|
|
1668
1578
|
wrapperBorder: {
|
|
1669
|
-
color:
|
|
1579
|
+
color: deepPurpleColorPalette.white,
|
|
1670
1580
|
width: 1
|
|
1671
1581
|
}
|
|
1672
1582
|
}
|
|
@@ -1681,17 +1591,17 @@ var toggle = {
|
|
|
1681
1591
|
medium: 50,
|
|
1682
1592
|
large: 66
|
|
1683
1593
|
},
|
|
1684
|
-
labelColor:
|
|
1594
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1685
1595
|
backgroundColor: {
|
|
1686
|
-
checked:
|
|
1687
|
-
unchecked:
|
|
1596
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1597
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1688
1598
|
},
|
|
1689
1599
|
border: {
|
|
1690
1600
|
color: 'transparent',
|
|
1691
1601
|
width: 1
|
|
1692
1602
|
},
|
|
1693
1603
|
circle: {
|
|
1694
|
-
backgroundColor:
|
|
1604
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1695
1605
|
width: {
|
|
1696
1606
|
medium: 18,
|
|
1697
1607
|
large: 24
|
|
@@ -1719,17 +1629,17 @@ var toggle = {
|
|
|
1719
1629
|
medium: 50,
|
|
1720
1630
|
large: 66
|
|
1721
1631
|
},
|
|
1722
|
-
labelColor:
|
|
1632
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1723
1633
|
backgroundColor: {
|
|
1724
|
-
checked:
|
|
1725
|
-
unchecked:
|
|
1634
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1635
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1726
1636
|
},
|
|
1727
1637
|
border: {
|
|
1728
1638
|
color: 'transparent',
|
|
1729
1639
|
width: 1
|
|
1730
1640
|
},
|
|
1731
1641
|
circle: {
|
|
1732
|
-
backgroundColor:
|
|
1642
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1733
1643
|
width: {
|
|
1734
1644
|
medium: 18,
|
|
1735
1645
|
large: 24
|
|
@@ -1757,17 +1667,17 @@ var toggle = {
|
|
|
1757
1667
|
medium: 50,
|
|
1758
1668
|
large: 66
|
|
1759
1669
|
},
|
|
1760
|
-
labelColor:
|
|
1670
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1761
1671
|
backgroundColor: {
|
|
1762
|
-
checked:
|
|
1763
|
-
unchecked:
|
|
1672
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1673
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1764
1674
|
},
|
|
1765
1675
|
border: {
|
|
1766
|
-
color:
|
|
1676
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1767
1677
|
width: 1
|
|
1768
1678
|
},
|
|
1769
1679
|
circle: {
|
|
1770
|
-
backgroundColor:
|
|
1680
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1771
1681
|
width: {
|
|
1772
1682
|
medium: 18,
|
|
1773
1683
|
large: 24
|
|
@@ -1782,7 +1692,7 @@ var toggle = {
|
|
|
1782
1692
|
}
|
|
1783
1693
|
},
|
|
1784
1694
|
wrapperBorder: {
|
|
1785
|
-
color:
|
|
1695
|
+
color: deepPurpleColorPalette.white,
|
|
1786
1696
|
width: 1
|
|
1787
1697
|
}
|
|
1788
1698
|
},
|
|
@@ -1795,17 +1705,17 @@ var toggle = {
|
|
|
1795
1705
|
medium: 50,
|
|
1796
1706
|
large: 66
|
|
1797
1707
|
},
|
|
1798
|
-
labelColor:
|
|
1708
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1799
1709
|
backgroundColor: {
|
|
1800
|
-
checked:
|
|
1801
|
-
unchecked:
|
|
1710
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1711
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1802
1712
|
},
|
|
1803
1713
|
border: {
|
|
1804
|
-
color:
|
|
1714
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1805
1715
|
width: 1
|
|
1806
1716
|
},
|
|
1807
1717
|
circle: {
|
|
1808
|
-
backgroundColor:
|
|
1718
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1809
1719
|
width: {
|
|
1810
1720
|
medium: 18,
|
|
1811
1721
|
large: 24
|
|
@@ -1820,7 +1730,7 @@ var toggle = {
|
|
|
1820
1730
|
}
|
|
1821
1731
|
},
|
|
1822
1732
|
wrapperBorder: {
|
|
1823
|
-
color:
|
|
1733
|
+
color: deepPurpleColorPalette.white,
|
|
1824
1734
|
width: 1
|
|
1825
1735
|
}
|
|
1826
1736
|
}
|
|
@@ -1882,50 +1792,50 @@ var highlight = {
|
|
|
1882
1792
|
},
|
|
1883
1793
|
primary: {
|
|
1884
1794
|
"default": {
|
|
1885
|
-
backgroundColor:
|
|
1795
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1886
1796
|
},
|
|
1887
1797
|
hover: {
|
|
1888
|
-
backgroundColor:
|
|
1798
|
+
backgroundColor: deepPurpleColorPalette['beige.4']
|
|
1889
1799
|
}
|
|
1890
1800
|
},
|
|
1891
1801
|
secondary: {
|
|
1892
1802
|
"default": {
|
|
1893
|
-
backgroundColor:
|
|
1803
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1894
1804
|
},
|
|
1895
1805
|
hover: {
|
|
1896
|
-
backgroundColor:
|
|
1806
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
1897
1807
|
}
|
|
1898
1808
|
},
|
|
1899
1809
|
ghost: {
|
|
1900
1810
|
"default": {
|
|
1901
|
-
backgroundColor:
|
|
1811
|
+
backgroundColor: deepPurpleColorPalette.white
|
|
1902
1812
|
},
|
|
1903
1813
|
hover: {
|
|
1904
|
-
backgroundColor:
|
|
1814
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1905
1815
|
}
|
|
1906
1816
|
},
|
|
1907
1817
|
dark: {
|
|
1908
1818
|
"default": {
|
|
1909
|
-
backgroundColor:
|
|
1819
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1910
1820
|
},
|
|
1911
1821
|
hover: {
|
|
1912
|
-
backgroundColor:
|
|
1822
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1913
1823
|
}
|
|
1914
1824
|
},
|
|
1915
1825
|
success: {
|
|
1916
1826
|
"default": {
|
|
1917
|
-
backgroundColor:
|
|
1827
|
+
backgroundColor: deepPurpleColorPalette['green.1']
|
|
1918
1828
|
},
|
|
1919
1829
|
hover: {
|
|
1920
|
-
backgroundColor:
|
|
1830
|
+
backgroundColor: deepPurpleColorPalette['green.2']
|
|
1921
1831
|
}
|
|
1922
1832
|
},
|
|
1923
1833
|
warning: {
|
|
1924
1834
|
"default": {
|
|
1925
|
-
backgroundColor:
|
|
1835
|
+
backgroundColor: deepPurpleColorPalette['yellow.1']
|
|
1926
1836
|
},
|
|
1927
1837
|
hover: {
|
|
1928
|
-
backgroundColor:
|
|
1838
|
+
backgroundColor: deepPurpleColorPalette['yellow.2']
|
|
1929
1839
|
}
|
|
1930
1840
|
},
|
|
1931
1841
|
padding: {
|
|
@@ -1965,14 +1875,6 @@ var icon = {
|
|
|
1965
1875
|
header4: createTypographyIconSizeConfig(18, 24),
|
|
1966
1876
|
// also known as xxsmall
|
|
1967
1877
|
header5: createTypographyIconSizeConfig(18, 18),
|
|
1968
|
-
'header-impact-xxl': createTypographyIconSizeConfig(56, 56),
|
|
1969
|
-
'header-impact-xl': createTypographyIconSizeConfig(48, 48),
|
|
1970
|
-
'header-impact-l': createTypographyIconSizeConfig(40, 40),
|
|
1971
|
-
'header-impact-m': createTypographyIconSizeConfig(32, 32),
|
|
1972
|
-
'header-impact-s': createTypographyIconSizeConfig(24, 24),
|
|
1973
|
-
'header-impact-xs': createTypographyIconSizeConfig(18, 18),
|
|
1974
|
-
'header-impact-xxs': createTypographyIconSizeConfig(16, 16),
|
|
1975
|
-
'header-impact-xxxs': createTypographyIconSizeConfig(14, 14),
|
|
1976
1878
|
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1977
1879
|
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1978
1880
|
body: createTypographyIconSizeConfig(16, 16),
|
|
@@ -2017,7 +1919,7 @@ var iconButton = {
|
|
|
2017
1919
|
pressedBackgroundColor: button["default"].ghost.pressedBackgroundColor
|
|
2018
1920
|
},
|
|
2019
1921
|
primary: {
|
|
2020
|
-
pressedBackgroundColor:
|
|
1922
|
+
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
2021
1923
|
},
|
|
2022
1924
|
'primary-plain': {
|
|
2023
1925
|
pressedBackgroundColor: colors.primaryLight,
|
|
@@ -2092,155 +1994,198 @@ var pageLoader = {
|
|
|
2092
1994
|
}
|
|
2093
1995
|
};
|
|
2094
1996
|
|
|
2095
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2096
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
2097
|
-
};
|
|
2098
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
2099
|
-
var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
|
|
2100
|
-
var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
|
|
2101
|
-
var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
|
|
2102
|
-
return {
|
|
2103
|
-
baseAndSmall: {
|
|
2104
|
-
fontSize: baseAndSmallFontSize,
|
|
2105
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
2106
|
-
},
|
|
2107
|
-
mediumAndWide: {
|
|
2108
|
-
fontSize: mediumAndWideFontSize,
|
|
2109
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
2110
|
-
}
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
|
|
2114
|
-
var config = {
|
|
2115
|
-
fontSize: fontSize,
|
|
2116
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
2117
|
-
};
|
|
2118
|
-
return {
|
|
2119
|
-
baseAndSmall: config,
|
|
2120
|
-
mediumAndWide: config
|
|
2121
|
-
};
|
|
2122
|
-
};
|
|
2123
1997
|
var typography = {
|
|
2124
1998
|
colors: {
|
|
2125
1999
|
black: colors.black,
|
|
2126
2000
|
'black-anthracite': colors.blackAnthracite,
|
|
2127
|
-
'black-disabled':
|
|
2128
|
-
'black-light':
|
|
2001
|
+
'black-disabled': deepPurpleColorPalette['grey.3'],
|
|
2002
|
+
'black-light': deepPurpleColorPalette['grey.5'],
|
|
2129
2003
|
white: colors.white,
|
|
2130
2004
|
'white-light': colors.white,
|
|
2131
2005
|
primary: colors.primary,
|
|
2132
2006
|
'primary-light': colors.primaryLight,
|
|
2133
2007
|
accent: colors.accent,
|
|
2134
2008
|
success: colors.success,
|
|
2135
|
-
danger:
|
|
2009
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
2136
2010
|
warning: colors.warning
|
|
2137
2011
|
},
|
|
2138
2012
|
types: {
|
|
2139
2013
|
headings: {
|
|
2140
2014
|
fontFamily: {
|
|
2141
2015
|
"native": {
|
|
2142
|
-
regular: '
|
|
2143
|
-
|
|
2016
|
+
regular: 'GTStandardRegular',
|
|
2017
|
+
semibold: 'GTStandardSemibold',
|
|
2018
|
+
bold: 'GTStandardBold'
|
|
2144
2019
|
},
|
|
2145
2020
|
web: {
|
|
2146
|
-
regular: '
|
|
2147
|
-
|
|
2021
|
+
regular: 'GTStandard',
|
|
2022
|
+
semibold: 'GTStandard',
|
|
2023
|
+
bold: 'GTStandard'
|
|
2148
2024
|
}
|
|
2149
2025
|
},
|
|
2150
2026
|
fontWeight: {
|
|
2151
|
-
regular:
|
|
2027
|
+
regular: 500,
|
|
2028
|
+
semibold: 600,
|
|
2152
2029
|
bold: 700
|
|
2153
2030
|
},
|
|
2154
2031
|
fontStyle: 'normal',
|
|
2155
2032
|
configs: {
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
'heading-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2033
|
+
'heading-xxl': {
|
|
2034
|
+
fontSize: 56,
|
|
2035
|
+
lineHeight: 64,
|
|
2036
|
+
allowedFontWeights: ['semibold']
|
|
2037
|
+
},
|
|
2038
|
+
'heading-xl': {
|
|
2039
|
+
fontSize: 48,
|
|
2040
|
+
lineHeight: 56,
|
|
2041
|
+
allowedFontWeights: ['semibold']
|
|
2042
|
+
},
|
|
2043
|
+
'heading-l': {
|
|
2044
|
+
fontSize: 40,
|
|
2045
|
+
lineHeight: 48,
|
|
2046
|
+
allowedFontWeights: ['semibold']
|
|
2047
|
+
},
|
|
2048
|
+
'heading-m': {
|
|
2049
|
+
fontSize: 28,
|
|
2050
|
+
lineHeight: 32,
|
|
2051
|
+
allowedFontWeights: ['semibold']
|
|
2052
|
+
},
|
|
2053
|
+
'heading-s': {
|
|
2054
|
+
fontSize: 18,
|
|
2055
|
+
lineHeight: 20,
|
|
2056
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2057
|
+
},
|
|
2058
|
+
'heading-xs': {
|
|
2059
|
+
fontSize: 16,
|
|
2060
|
+
lineHeight: 18,
|
|
2061
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2062
|
+
}
|
|
2170
2063
|
}
|
|
2171
2064
|
},
|
|
2172
|
-
|
|
2065
|
+
bodies: {
|
|
2173
2066
|
fontFamily: {
|
|
2174
2067
|
"native": {
|
|
2175
|
-
regular: '
|
|
2176
|
-
bold: '
|
|
2068
|
+
regular: 'GTStandardRegular',
|
|
2069
|
+
bold: 'GTStandardBold'
|
|
2177
2070
|
},
|
|
2178
2071
|
web: {
|
|
2179
|
-
regular: '
|
|
2180
|
-
bold: '
|
|
2072
|
+
regular: 'GTStandard',
|
|
2073
|
+
bold: 'GTStandard'
|
|
2181
2074
|
}
|
|
2182
2075
|
},
|
|
2183
|
-
fontWeight:
|
|
2184
|
-
|
|
2076
|
+
fontWeight: {
|
|
2077
|
+
regular: 500,
|
|
2078
|
+
bold: 700
|
|
2079
|
+
},
|
|
2080
|
+
fontStyle: {
|
|
2081
|
+
regular: 'normal',
|
|
2082
|
+
bold: 'normal'
|
|
2083
|
+
},
|
|
2185
2084
|
configs: {
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
'
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
'
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
'
|
|
2202
|
-
|
|
2203
|
-
|
|
2085
|
+
'body-xl': {
|
|
2086
|
+
fontSize: 24,
|
|
2087
|
+
lineHeight: 32,
|
|
2088
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2089
|
+
},
|
|
2090
|
+
'body-l': {
|
|
2091
|
+
fontSize: 18,
|
|
2092
|
+
lineHeight: 26,
|
|
2093
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2094
|
+
},
|
|
2095
|
+
'body-m': {
|
|
2096
|
+
fontSize: 16,
|
|
2097
|
+
lineHeight: 24,
|
|
2098
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2099
|
+
},
|
|
2100
|
+
'body-s': {
|
|
2101
|
+
fontSize: 14,
|
|
2102
|
+
lineHeight: 20,
|
|
2103
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2104
|
+
},
|
|
2105
|
+
'body-xs': {
|
|
2106
|
+
fontSize: 12,
|
|
2107
|
+
lineHeight: 16,
|
|
2108
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2109
|
+
}
|
|
2204
2110
|
}
|
|
2205
2111
|
},
|
|
2206
|
-
|
|
2112
|
+
labels: {
|
|
2207
2113
|
fontFamily: {
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
bold: 'Moderat'
|
|
2114
|
+
"native": {
|
|
2115
|
+
semibold: 'GTStandardSemibold'
|
|
2211
2116
|
},
|
|
2117
|
+
web: {
|
|
2118
|
+
semibold: 'GTStandard'
|
|
2119
|
+
}
|
|
2120
|
+
},
|
|
2121
|
+
fontWeight: {
|
|
2122
|
+
semibold: 600
|
|
2123
|
+
},
|
|
2124
|
+
fontStyle: 'normal',
|
|
2125
|
+
configs: {
|
|
2126
|
+
'label-large': {
|
|
2127
|
+
fontSize: 16,
|
|
2128
|
+
lineHeight: 24,
|
|
2129
|
+
allowedFontWeights: ['semibold']
|
|
2130
|
+
},
|
|
2131
|
+
'label-medium': {
|
|
2132
|
+
fontSize: 14,
|
|
2133
|
+
lineHeight: 20,
|
|
2134
|
+
allowedFontWeights: ['semibold']
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
contentCaps: {
|
|
2139
|
+
fontFamily: {
|
|
2212
2140
|
"native": {
|
|
2213
|
-
|
|
2214
|
-
|
|
2141
|
+
bold: 'GTStandardNarrowBold'
|
|
2142
|
+
},
|
|
2143
|
+
web: {
|
|
2144
|
+
bold: 'GTStandardNarrow'
|
|
2215
2145
|
}
|
|
2216
2146
|
},
|
|
2217
2147
|
fontWeight: {
|
|
2218
|
-
regular: 400,
|
|
2219
2148
|
bold: 700
|
|
2220
2149
|
},
|
|
2221
|
-
fontStyle:
|
|
2222
|
-
regular: 'normal',
|
|
2223
|
-
bold: 'normal'
|
|
2224
|
-
},
|
|
2150
|
+
fontStyle: 'normal',
|
|
2225
2151
|
configs: {
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
'
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
'
|
|
2237
|
-
|
|
2152
|
+
'content-caps-xxxl': {
|
|
2153
|
+
fontSize: 40,
|
|
2154
|
+
lineHeight: 40,
|
|
2155
|
+
allowedFontWeights: ['bold']
|
|
2156
|
+
},
|
|
2157
|
+
'content-caps-xxl': {
|
|
2158
|
+
fontSize: 32,
|
|
2159
|
+
lineHeight: 40,
|
|
2160
|
+
allowedFontWeights: ['bold']
|
|
2161
|
+
},
|
|
2162
|
+
'content-caps-xl': {
|
|
2163
|
+
fontSize: 24,
|
|
2164
|
+
lineHeight: 28,
|
|
2165
|
+
allowedFontWeights: ['bold']
|
|
2166
|
+
},
|
|
2167
|
+
'content-caps-l': {
|
|
2168
|
+
fontSize: 18,
|
|
2169
|
+
lineHeight: 20,
|
|
2170
|
+
allowedFontWeights: ['bold']
|
|
2171
|
+
},
|
|
2172
|
+
'content-caps-m': {
|
|
2173
|
+
fontSize: 16,
|
|
2174
|
+
lineHeight: 18,
|
|
2175
|
+
allowedFontWeights: ['bold']
|
|
2176
|
+
},
|
|
2177
|
+
'content-caps-s': {
|
|
2178
|
+
fontSize: 14,
|
|
2179
|
+
lineHeight: 16,
|
|
2180
|
+
allowedFontWeights: ['bold']
|
|
2181
|
+
},
|
|
2182
|
+
'content-caps-xs': {
|
|
2183
|
+
fontSize: 12,
|
|
2184
|
+
lineHeight: 14,
|
|
2185
|
+
allowedFontWeights: ['bold']
|
|
2186
|
+
}
|
|
2238
2187
|
}
|
|
2239
2188
|
}
|
|
2240
|
-
},
|
|
2241
|
-
link: {
|
|
2242
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
2243
|
-
disabledColor: colors.blackDisabled
|
|
2244
2189
|
}
|
|
2245
2190
|
};
|
|
2246
2191
|
|
|
@@ -2249,7 +2194,7 @@ var picker = {
|
|
|
2249
2194
|
ios: {
|
|
2250
2195
|
"default": _objectSpread(_objectSpread({
|
|
2251
2196
|
fontFamily: typography.types.bodies.fontFamily["native"].regular
|
|
2252
|
-
}, typography.types.bodies.configs
|
|
2197
|
+
}, typography.types.bodies.configs['body-m']), {}, {
|
|
2253
2198
|
fontSize: 16,
|
|
2254
2199
|
color: typography.colors['black-light'],
|
|
2255
2200
|
// 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)
|
|
@@ -2282,19 +2227,19 @@ var picker = {
|
|
|
2282
2227
|
backgroundColor: colors.transparent
|
|
2283
2228
|
},
|
|
2284
2229
|
hovered: {
|
|
2285
|
-
backgroundColor:
|
|
2230
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2286
2231
|
},
|
|
2287
2232
|
focused: {
|
|
2288
|
-
backgroundColor:
|
|
2233
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2289
2234
|
},
|
|
2290
2235
|
selected: {
|
|
2291
|
-
backgroundColor:
|
|
2236
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2292
2237
|
},
|
|
2293
2238
|
highlighted: {
|
|
2294
|
-
backgroundColor:
|
|
2239
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2295
2240
|
},
|
|
2296
2241
|
pressed: {
|
|
2297
|
-
backgroundColor:
|
|
2242
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
2298
2243
|
}
|
|
2299
2244
|
}
|
|
2300
2245
|
},
|
|
@@ -2378,8 +2323,8 @@ var shadows = {
|
|
|
2378
2323
|
}
|
|
2379
2324
|
};
|
|
2380
2325
|
|
|
2381
|
-
var skeletonBackgroundColor =
|
|
2382
|
-
var skeletonFlareColor =
|
|
2326
|
+
var skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
|
|
2327
|
+
var skeletonFlareColor = deepPurpleColorPalette['beige.3'];
|
|
2383
2328
|
var skeleton$1 = {
|
|
2384
2329
|
backgroundColor: skeletonBackgroundColor,
|
|
2385
2330
|
flareColor: skeletonFlareColor,
|
|
@@ -2402,20 +2347,6 @@ var skeleton$1 = {
|
|
|
2402
2347
|
|
|
2403
2348
|
var tag = {
|
|
2404
2349
|
borderRadius: 16,
|
|
2405
|
-
variant: {
|
|
2406
|
-
contrast: {
|
|
2407
|
-
borderWidth: 0
|
|
2408
|
-
},
|
|
2409
|
-
fill: {
|
|
2410
|
-
borderWidth: 0
|
|
2411
|
-
},
|
|
2412
|
-
outline: {
|
|
2413
|
-
borderWidth: 1
|
|
2414
|
-
},
|
|
2415
|
-
subtle: {
|
|
2416
|
-
borderWidth: 0
|
|
2417
|
-
}
|
|
2418
|
-
},
|
|
2419
2350
|
icon: {
|
|
2420
2351
|
small: 16,
|
|
2421
2352
|
medium: 16,
|
|
@@ -2491,14 +2422,14 @@ var verticalSteps = {
|
|
|
2491
2422
|
},
|
|
2492
2423
|
done: {
|
|
2493
2424
|
icon: {
|
|
2494
|
-
backgroundColor:
|
|
2495
|
-
textColor: colors.
|
|
2425
|
+
backgroundColor: colors.primary,
|
|
2426
|
+
textColor: colors.white
|
|
2496
2427
|
}
|
|
2497
2428
|
},
|
|
2498
2429
|
"default": {
|
|
2499
2430
|
icon: {
|
|
2500
2431
|
backgroundColor: colors.disabled,
|
|
2501
|
-
textColor:
|
|
2432
|
+
textColor: deepPurpleColorPalette['grey.3']
|
|
2502
2433
|
}
|
|
2503
2434
|
}
|
|
2504
2435
|
};
|
|
@@ -2534,7 +2465,7 @@ var theme = {
|
|
|
2534
2465
|
},
|
|
2535
2466
|
colors: colors,
|
|
2536
2467
|
palettes: {
|
|
2537
|
-
|
|
2468
|
+
deepPurple: deepPurpleColorPalette
|
|
2538
2469
|
},
|
|
2539
2470
|
avatar: avatar,
|
|
2540
2471
|
breakpoints: breakpoints,
|
|
@@ -3001,14 +2932,18 @@ function getTypographyColorValue(colorName) {
|
|
|
3001
2932
|
}
|
|
3002
2933
|
|
|
3003
2934
|
var isTypeHeadings = function (type) {
|
|
3004
|
-
return type.startsWith('
|
|
2935
|
+
return type.startsWith('heading');
|
|
2936
|
+
};
|
|
2937
|
+
var isTypeLabels = function (type) {
|
|
2938
|
+
return type.startsWith('label');
|
|
3005
2939
|
};
|
|
3006
|
-
var
|
|
3007
|
-
return type.startsWith('
|
|
2940
|
+
var isTypeContentCaps = function (type) {
|
|
2941
|
+
return type.startsWith('content-caps');
|
|
3008
2942
|
};
|
|
3009
2943
|
var getTypographyFamily = function (type) {
|
|
3010
|
-
if (isTypeHeadingsImpact(type)) return 'headings-impact';
|
|
3011
2944
|
if (isTypeHeadings(type)) return 'headings';
|
|
2945
|
+
if (isTypeLabels(type)) return 'labels';
|
|
2946
|
+
if (isTypeContentCaps(type)) return 'contentCaps';
|
|
3012
2947
|
return 'bodies';
|
|
3013
2948
|
};
|
|
3014
2949
|
var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInContext) {
|
|
@@ -3017,7 +2952,7 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
|
|
|
3017
2952
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
3018
2953
|
};
|
|
3019
2954
|
|
|
3020
|
-
var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2955
|
+
var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color", "underline"];
|
|
3021
2956
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3022
2957
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3023
2958
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3031,9 +2966,6 @@ var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
|
|
|
3031
2966
|
function useTypographyDefaultColor() {
|
|
3032
2967
|
return useContext(TypographyDefaultColorContext);
|
|
3033
2968
|
}
|
|
3034
|
-
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
3035
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
3036
|
-
}
|
|
3037
2969
|
|
|
3038
2970
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
3039
2971
|
// & {
|
|
@@ -3049,42 +2981,120 @@ function createNativeBaseFontSize(type) {
|
|
|
3049
2981
|
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
|
|
3050
2982
|
var value = typeWithMediumForced[typeName];
|
|
3051
2983
|
if (value) {
|
|
3052
|
-
fontSizeForNativeBase[typeName] =
|
|
2984
|
+
fontSizeForNativeBase[typeName] = value;
|
|
3053
2985
|
}
|
|
3054
2986
|
});
|
|
3055
2987
|
return fontSizeForNativeBase;
|
|
3056
2988
|
}
|
|
3057
|
-
function
|
|
2989
|
+
function ThrowErrorIfInvalidVariant(variant, value, fontWeight) {
|
|
2990
|
+
if (process.env.NODE_ENV !== 'production' && variant && variant !== fontWeight) {
|
|
2991
|
+
throw new Error("Invalid variant \"".concat(variant, "\" for value \"").concat(value, "\" only \"").concat(fontWeight, "\" is allowed."));
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
function getTypographyWeights(typographyFamily) {
|
|
2995
|
+
var boldTypoTypes = new Set();
|
|
2996
|
+
var semiboldTypoTypes = new Set();
|
|
2997
|
+
var regularTypoTypes = new Set();
|
|
2998
|
+
var typographyConfig = typography.types[typographyFamily].configs;
|
|
2999
|
+
Object.keys(typographyConfig).forEach(function (typographyType) {
|
|
3000
|
+
var _ref = typographyConfig[typographyType],
|
|
3001
|
+
allowedFontWeights = _ref.allowedFontWeights;
|
|
3002
|
+
if (allowedFontWeights.includes('bold')) {
|
|
3003
|
+
boldTypoTypes.add(typographyType);
|
|
3004
|
+
}
|
|
3005
|
+
if (allowedFontWeights.includes('semibold')) {
|
|
3006
|
+
semiboldTypoTypes.add(typographyType);
|
|
3007
|
+
}
|
|
3008
|
+
if (allowedFontWeights.includes('regular')) {
|
|
3009
|
+
regularTypoTypes.add(typographyType);
|
|
3010
|
+
}
|
|
3011
|
+
});
|
|
3012
|
+
return {
|
|
3013
|
+
boldTypoTypes: boldTypoTypes,
|
|
3014
|
+
semiboldTypoTypes: semiboldTypoTypes,
|
|
3015
|
+
regularTypoTypes: regularTypoTypes
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
3019
|
+
var _getTypographyWeights = getTypographyWeights(typographyFamily || 'bodies'),
|
|
3020
|
+
boldTypoTypes = _getTypographyWeights.boldTypoTypes,
|
|
3021
|
+
semiboldTypoTypes = _getTypographyWeights.semiboldTypoTypes,
|
|
3022
|
+
regularTypoTypes = _getTypographyWeights.regularTypoTypes;
|
|
3023
|
+
var webFontWeight = {};
|
|
3024
|
+
var nativeFontFamily = {};
|
|
3025
|
+
var breakpoints = [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE];
|
|
3026
|
+
breakpoints.forEach(function (typeName) {
|
|
3027
|
+
var value = type[typeName];
|
|
3028
|
+
if (!value) return;
|
|
3029
|
+
var inBold = boldTypoTypes.has(value);
|
|
3030
|
+
var inSemi = semiboldTypoTypes.has(value);
|
|
3031
|
+
var inRegular = regularTypoTypes.has(value);
|
|
3032
|
+
var presenceCount = [inBold, inSemi, inRegular].filter(Boolean).length;
|
|
3033
|
+
var resolvedVariant;
|
|
3034
|
+
if (presenceCount > 1) {
|
|
3035
|
+
// if present in multiple weight
|
|
3036
|
+
|
|
3037
|
+
if (process.env.NODE_ENV !== 'production' && variant && !(variant === 'bold' && inBold || variant === 'semibold' && inSemi || variant === 'regular' && inRegular)) {
|
|
3038
|
+
throw new Error("Invalid variant \"".concat(variant, "\" for value \"").concat(value, "\". Only ").concat(inBold ? '"bold"' : ' ').concat(inSemi ? '"semibold"' : ' ').concat(inRegular ? '"regular"' : ' ', "\" is allowed."));
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
// always fallback on regular if no variant specified
|
|
3042
|
+
resolvedVariant = variant || 'regular';
|
|
3043
|
+
} else if (inBold) {
|
|
3044
|
+
// bold
|
|
3045
|
+
ThrowErrorIfInvalidVariant(variant, value, 'bold');
|
|
3046
|
+
resolvedVariant = 'bold';
|
|
3047
|
+
} else if (inSemi) {
|
|
3048
|
+
// semibold
|
|
3049
|
+
ThrowErrorIfInvalidVariant(variant, value, 'semibold');
|
|
3050
|
+
resolvedVariant = 'semibold';
|
|
3051
|
+
} else {
|
|
3052
|
+
// regular
|
|
3053
|
+
ThrowErrorIfInvalidVariant(variant, value, 'regular');
|
|
3054
|
+
resolvedVariant = 'regular';
|
|
3055
|
+
}
|
|
3056
|
+
webFontWeight[typeName] = resolvedVariant;
|
|
3057
|
+
nativeFontFamily[typeName] = "".concat(typographyFamily, ".").concat(resolvedVariant);
|
|
3058
|
+
});
|
|
3059
|
+
return {
|
|
3060
|
+
webFontWeight: webFontWeight,
|
|
3061
|
+
nativeFontFamily: nativeFontFamily
|
|
3062
|
+
};
|
|
3063
|
+
}
|
|
3064
|
+
function Typography(_ref2) {
|
|
3058
3065
|
var _type$base;
|
|
3059
|
-
var accessibilityRole =
|
|
3060
|
-
legacyBase =
|
|
3061
|
-
legacySmall =
|
|
3062
|
-
legacyMedium =
|
|
3063
|
-
legacyLarge =
|
|
3064
|
-
legacyWide =
|
|
3065
|
-
|
|
3066
|
-
type =
|
|
3066
|
+
var accessibilityRole = _ref2.accessibilityRole,
|
|
3067
|
+
legacyBase = _ref2.base,
|
|
3068
|
+
legacySmall = _ref2.small,
|
|
3069
|
+
legacyMedium = _ref2.medium,
|
|
3070
|
+
legacyLarge = _ref2.large,
|
|
3071
|
+
legacyWide = _ref2.wide,
|
|
3072
|
+
_ref2$type = _ref2.type,
|
|
3073
|
+
type = _ref2$type === void 0 ? {
|
|
3067
3074
|
base: legacyBase,
|
|
3068
3075
|
small: legacySmall,
|
|
3069
3076
|
medium: legacyMedium,
|
|
3070
3077
|
large: legacyLarge,
|
|
3071
3078
|
wide: legacyWide
|
|
3072
|
-
} :
|
|
3073
|
-
variant =
|
|
3074
|
-
color =
|
|
3075
|
-
|
|
3079
|
+
} : _ref2$type,
|
|
3080
|
+
variant = _ref2.variant,
|
|
3081
|
+
color = _ref2.color,
|
|
3082
|
+
underline = _ref2.underline,
|
|
3083
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$R);
|
|
3076
3084
|
var sx = useSx();
|
|
3077
3085
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3078
3086
|
var defaultColor = useTypographyDefaultColor();
|
|
3079
3087
|
var hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3080
|
-
var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body';
|
|
3088
|
+
var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body-m';
|
|
3081
3089
|
var typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3082
|
-
|
|
3083
|
-
// force bold for headings, default to regular for bodies
|
|
3084
|
-
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular';
|
|
3085
3090
|
var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
|
|
3086
3091
|
base: baseOrDefaultToBody
|
|
3087
3092
|
}));
|
|
3093
|
+
var _getUniversalFontWeig = getUniversalFontWeight(_objectSpread(_objectSpread({}, type), {}, {
|
|
3094
|
+
base: baseOrDefaultToBody
|
|
3095
|
+
}), variant, typographyFamily),
|
|
3096
|
+
webFontWeight = _getUniversalFontWeig.webFontWeight,
|
|
3097
|
+
nativeFontFamily = _getUniversalFontWeig.nativeFontFamily;
|
|
3088
3098
|
var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
3089
3099
|
var currentColorValue = getTypographyColorValue(currentColor);
|
|
3090
3100
|
var colorStyles = sx({
|
|
@@ -3092,22 +3102,30 @@ function Typography(_ref) {
|
|
|
3092
3102
|
textDecorationColor: currentColorValue
|
|
3093
3103
|
});
|
|
3094
3104
|
if (process.env.NODE_ENV !== 'production') {
|
|
3095
|
-
Object.entries(type).forEach(function (
|
|
3096
|
-
var
|
|
3097
|
-
key =
|
|
3098
|
-
value =
|
|
3105
|
+
Object.entries(type).forEach(function (_ref3) {
|
|
3106
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
3107
|
+
key = _ref4[0],
|
|
3108
|
+
value = _ref4[1];
|
|
3099
3109
|
if (value && getTypographyFamily(value) !== typographyFamily) {
|
|
3100
3110
|
throw new Error("Invalid value for \"".concat(key, "\": \"").concat(value, "\" is ").concat(typographyFamily, ". Don't mix families."));
|
|
3101
3111
|
}
|
|
3102
3112
|
});
|
|
3103
3113
|
}
|
|
3104
|
-
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
3114
|
+
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread(_objectSpread({
|
|
3105
3115
|
accessibilityRole: accessibilityRole || undefined,
|
|
3106
3116
|
fontSize: fontSizeForNativeBase,
|
|
3107
3117
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
3108
|
-
fontWeight:
|
|
3109
|
-
fontFamily:
|
|
3110
|
-
|
|
3118
|
+
fontWeight: webFontWeight,
|
|
3119
|
+
fontFamily: nativeFontFamily,
|
|
3120
|
+
borderBottomWidth: underline ? 1 : undefined,
|
|
3121
|
+
borderBottomColor: underline ? currentColorValue : undefined,
|
|
3122
|
+
textTransform: typographyFamily === 'contentCaps' ? 'uppercase' : undefined
|
|
3123
|
+
}, colorStyles), otherProps), {}, {
|
|
3124
|
+
// The property text-underline-offset is not on native.
|
|
3125
|
+
// To add an underline with an offset, we use a custom borderBottomWidth and color.
|
|
3126
|
+
// and we set underline to undefined to avoid a double underline
|
|
3127
|
+
underline: undefined
|
|
3128
|
+
}));
|
|
3111
3129
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(TypographyFamilyContext.Provider, {
|
|
3112
3130
|
value: typographyFamily,
|
|
3113
3131
|
children: /*#__PURE__*/jsx(TypographyTypeContext.Provider, {
|
|
@@ -3154,17 +3172,6 @@ Typography.Header4 = createHeading(4);
|
|
|
3154
3172
|
Typography.Header5 = createHeading(5);
|
|
3155
3173
|
Typography.Header6 = createHeading(6);
|
|
3156
3174
|
|
|
3157
|
-
/** @deprecated use Typography.Header1 */
|
|
3158
|
-
Typography.h1 = createHeading(1, 'header1');
|
|
3159
|
-
/** @deprecated use Typography.Header2 */
|
|
3160
|
-
Typography.h2 = createHeading(2, 'header2');
|
|
3161
|
-
/** @deprecated use Typography.Header3 */
|
|
3162
|
-
Typography.h3 = createHeading(3, 'header3');
|
|
3163
|
-
/** @deprecated use Typography.Header4 */
|
|
3164
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
3165
|
-
/** @deprecated use Typography.Header6 */
|
|
3166
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
3167
|
-
|
|
3168
3175
|
function ButtonBadge(_ref) {
|
|
3169
3176
|
var withBadge = _ref.withBadge,
|
|
3170
3177
|
badgeCount = _ref.badgeCount;
|
|
@@ -3352,7 +3359,7 @@ function ButtonContentChildren(_ref2) {
|
|
|
3352
3359
|
textAlign: "center",
|
|
3353
3360
|
_android: sharedNativeStyle,
|
|
3354
3361
|
_ios: sharedNativeStyle,
|
|
3355
|
-
base: "body",
|
|
3362
|
+
base: "body-m",
|
|
3356
3363
|
variant: "bold",
|
|
3357
3364
|
color: color,
|
|
3358
3365
|
children: children
|
|
@@ -3828,7 +3835,7 @@ function AvatarContent(_ref) {
|
|
|
3828
3835
|
};
|
|
3829
3836
|
if (firstname && lastname) {
|
|
3830
3837
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
3831
|
-
base: sizeVariant === 'large' ? 'body-
|
|
3838
|
+
base: sizeVariant === 'large' ? 'body-l' : 'body-s',
|
|
3832
3839
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3833
3840
|
color: getFontColor(),
|
|
3834
3841
|
children: getInitials(firstname, lastname)
|
|
@@ -4923,7 +4930,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4923
4930
|
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
4924
4931
|
var theme = useTheme();
|
|
4925
4932
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
4926
|
-
base: 'body'
|
|
4933
|
+
base: 'body-m'
|
|
4927
4934
|
});
|
|
4928
4935
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
4929
4936
|
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
@@ -6443,7 +6450,7 @@ function InputFeedback(_ref) {
|
|
|
6443
6450
|
testID = _ref.testID,
|
|
6444
6451
|
children = _ref.children;
|
|
6445
6452
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
6446
|
-
base: "body-
|
|
6453
|
+
base: "body-s",
|
|
6447
6454
|
color: getColorFromState(state),
|
|
6448
6455
|
testID: testID,
|
|
6449
6456
|
children: children
|
|
@@ -6605,7 +6612,7 @@ function InputTag(_ref) {
|
|
|
6605
6612
|
color: "black"
|
|
6606
6613
|
})
|
|
6607
6614
|
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
6608
|
-
base: "body-
|
|
6615
|
+
base: "body-s",
|
|
6609
6616
|
color: "black",
|
|
6610
6617
|
children: children
|
|
6611
6618
|
})]
|
|
@@ -6617,7 +6624,7 @@ function Label(_ref) {
|
|
|
6617
6624
|
htmlFor = _ref.htmlFor,
|
|
6618
6625
|
children = _ref.children;
|
|
6619
6626
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
6620
|
-
base: "body",
|
|
6627
|
+
base: "body-m",
|
|
6621
6628
|
id: undefined,
|
|
6622
6629
|
children: /*#__PURE__*/jsx("label", {
|
|
6623
6630
|
id: id,
|
|
@@ -6628,7 +6635,8 @@ function Label(_ref) {
|
|
|
6628
6635
|
}
|
|
6629
6636
|
|
|
6630
6637
|
function InnerCircle(_ref) {
|
|
6631
|
-
var isChecked = _ref.isChecked
|
|
6638
|
+
var isChecked = _ref.isChecked,
|
|
6639
|
+
isDisabled = _ref.isDisabled;
|
|
6632
6640
|
var theme = useTheme();
|
|
6633
6641
|
var sharedTransform = [{
|
|
6634
6642
|
scale: isChecked ? 1 : 0
|
|
@@ -6637,7 +6645,7 @@ function InnerCircle(_ref) {
|
|
|
6637
6645
|
width: "kitt.forms.radio.innerCircle.size",
|
|
6638
6646
|
height: "kitt.forms.radio.innerCircle.size",
|
|
6639
6647
|
borderRadius: "kitt.forms.radio.innerCircle.borderRadius",
|
|
6640
|
-
backgroundColor:
|
|
6648
|
+
backgroundColor: isDisabled ? 'kitt.forms.radio.disabled.innerBackgroundColor' : 'kitt.forms.radio.innerCircle.backgroundColor',
|
|
6641
6649
|
_web: {
|
|
6642
6650
|
style: {
|
|
6643
6651
|
transform: "scale(".concat(isChecked ? 1 : 0, "))"),
|
|
@@ -6768,12 +6776,13 @@ function Radio(_ref, ref) {
|
|
|
6768
6776
|
isFocused: isFocused,
|
|
6769
6777
|
isPressed: isPressed,
|
|
6770
6778
|
children: /*#__PURE__*/jsx(InnerCircle, {
|
|
6771
|
-
isChecked: checked
|
|
6779
|
+
isChecked: checked,
|
|
6780
|
+
isDisabled: disabled
|
|
6772
6781
|
})
|
|
6773
6782
|
}), _children ? /*#__PURE__*/jsx(Typography.SetDefaultColor, {
|
|
6774
6783
|
value: disabled ? 'black-light' : 'black',
|
|
6775
6784
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6776
|
-
base: "body",
|
|
6785
|
+
base: "body-m",
|
|
6777
6786
|
children: _children
|
|
6778
6787
|
})
|
|
6779
6788
|
}) : null]
|
|
@@ -6894,7 +6903,7 @@ function getCurrentTextColor(_ref) {
|
|
|
6894
6903
|
isPressed = _ref.isPressed,
|
|
6895
6904
|
isHovered = _ref.isHovered,
|
|
6896
6905
|
isFocused = _ref.isFocused;
|
|
6897
|
-
if (isDisabled) return '
|
|
6906
|
+
if (isDisabled) return 'kitt.forms.radioButtonGroup.font.disabled.color';
|
|
6898
6907
|
if (isSelected) return 'white';
|
|
6899
6908
|
if (isPressed) return 'white';
|
|
6900
6909
|
if (isFocused) return 'white';
|
|
@@ -7067,7 +7076,7 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7067
7076
|
marginTop: "kitt.1",
|
|
7068
7077
|
children: [helper ? /*#__PURE__*/jsx(Typography.Text, {
|
|
7069
7078
|
base: "body-s",
|
|
7070
|
-
color:
|
|
7079
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7071
7080
|
children: helper
|
|
7072
7081
|
}) : null, shouldDisplayLimit ? /*#__PURE__*/jsx(Animated.View, {
|
|
7073
7082
|
style: limitContainerAnimatedStyle,
|
|
@@ -7077,14 +7086,14 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7077
7086
|
children: [/*#__PURE__*/jsxs(Typography.Text, {
|
|
7078
7087
|
base: "body-xs",
|
|
7079
7088
|
variant: "bold",
|
|
7080
|
-
color:
|
|
7089
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
7081
7090
|
children: [((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.length) || 0, "/", limit]
|
|
7082
7091
|
}), /*#__PURE__*/jsx(Animated.View, {
|
|
7083
7092
|
style: checkIconAnimatedStyle,
|
|
7084
7093
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
7085
7094
|
icon: /*#__PURE__*/jsx(CheckCircleFillIcon, {}),
|
|
7086
7095
|
size: 13,
|
|
7087
|
-
color:
|
|
7096
|
+
color: deepPurpleColorPalette['grey.5']
|
|
7088
7097
|
})
|
|
7089
7098
|
})]
|
|
7090
7099
|
})
|
|
@@ -7192,7 +7201,7 @@ function ToggleAnimated(_ref) {
|
|
|
7192
7201
|
|
|
7193
7202
|
var _excluded$n = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
7194
7203
|
var getLabelTypographyType = function (size) {
|
|
7195
|
-
return size === 'medium' ? 'body' : 'body-
|
|
7204
|
+
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7196
7205
|
};
|
|
7197
7206
|
function Toggle(_ref) {
|
|
7198
7207
|
var _ref$isDisabled = _ref.isDisabled,
|
|
@@ -7673,7 +7682,7 @@ function Highlight(_ref) {
|
|
|
7673
7682
|
marginBottom: highlightStyle[size].marginBottom,
|
|
7674
7683
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7675
7684
|
variant: "bold",
|
|
7676
|
-
base: "body",
|
|
7685
|
+
base: "body-m",
|
|
7677
7686
|
ellipsizeMode: "clip",
|
|
7678
7687
|
children: title
|
|
7679
7688
|
})
|
|
@@ -7708,7 +7717,7 @@ function Highlight(_ref) {
|
|
|
7708
7717
|
width: "100%",
|
|
7709
7718
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7710
7719
|
variant: "bold",
|
|
7711
|
-
base: "body",
|
|
7720
|
+
base: "body-m",
|
|
7712
7721
|
ellipsizeMode: "clip",
|
|
7713
7722
|
children: title
|
|
7714
7723
|
})
|
|
@@ -8012,8 +8021,8 @@ function InfoCard(_ref) {
|
|
|
8012
8021
|
flexShrink: 1,
|
|
8013
8022
|
flexBasis: "auto",
|
|
8014
8023
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8015
|
-
base: "body-
|
|
8016
|
-
medium: "body",
|
|
8024
|
+
base: "body-s",
|
|
8025
|
+
medium: "body-m",
|
|
8017
8026
|
style: {
|
|
8018
8027
|
userSelect: 'none'
|
|
8019
8028
|
},
|
|
@@ -8426,7 +8435,7 @@ function BaseMessage(_ref) {
|
|
|
8426
8435
|
flexGrow: 1,
|
|
8427
8436
|
flexShrink: 1,
|
|
8428
8437
|
textAlign: centeredText ? 'center' : 'left',
|
|
8429
|
-
base: "body",
|
|
8438
|
+
base: "body-m",
|
|
8430
8439
|
color: color,
|
|
8431
8440
|
children: children
|
|
8432
8441
|
})]
|
|
@@ -8710,6 +8719,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8710
8719
|
item: {
|
|
8711
8720
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
8712
8721
|
backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
|
|
8722
|
+
},
|
|
8723
|
+
font: {
|
|
8724
|
+
disabled: {
|
|
8725
|
+
color: theme.forms.radioButtonGroup.item.font.color.disabled
|
|
8726
|
+
}
|
|
8713
8727
|
}
|
|
8714
8728
|
},
|
|
8715
8729
|
checkbox: {
|
|
@@ -9024,7 +9038,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9024
9038
|
},
|
|
9025
9039
|
disabled: {
|
|
9026
9040
|
backgroundColor: theme.forms.radio.disabled.backgroundColor,
|
|
9027
|
-
borderColor: theme.forms.radio.disabled.borderColor
|
|
9041
|
+
borderColor: theme.forms.radio.disabled.borderColor,
|
|
9042
|
+
innerBackgroundColor: theme.forms.radio.disabled.innerBackgroundColor
|
|
9028
9043
|
},
|
|
9029
9044
|
"default": {
|
|
9030
9045
|
backgroundColor: theme.forms.radio.unchecked.backgroundColor,
|
|
@@ -9578,22 +9593,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9578
9593
|
},
|
|
9579
9594
|
listItem: {
|
|
9580
9595
|
borderWidth: theme.listItem.borderWidth
|
|
9581
|
-
},
|
|
9582
|
-
tag: {
|
|
9583
|
-
variant: {
|
|
9584
|
-
subtle: {
|
|
9585
|
-
borderWidth: theme.tag.variant.subtle.borderWidth
|
|
9586
|
-
},
|
|
9587
|
-
fill: {
|
|
9588
|
-
borderWidth: theme.tag.variant.fill.borderWidth
|
|
9589
|
-
},
|
|
9590
|
-
outline: {
|
|
9591
|
-
borderWidth: theme.tag.variant.outline.borderWidth
|
|
9592
|
-
},
|
|
9593
|
-
contrast: {
|
|
9594
|
-
borderWidth: theme.tag.variant.contrast.borderWidth
|
|
9595
|
-
}
|
|
9596
|
-
}
|
|
9597
9596
|
}
|
|
9598
9597
|
},
|
|
9599
9598
|
app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
|
|
@@ -10212,196 +10211,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10212
10211
|
'2xl': Number.MAX_SAFE_INTEGER
|
|
10213
10212
|
}, appBreakpoints),
|
|
10214
10213
|
fontSizes: {
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
/* latest */
|
|
10236
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize, "px"),
|
|
10237
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize, "px"),
|
|
10238
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize, "px"),
|
|
10239
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize, "px"),
|
|
10240
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize, "px"),
|
|
10241
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize, "px"),
|
|
10242
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize, "px"),
|
|
10243
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize, "px"),
|
|
10244
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize, "px"),
|
|
10245
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize, "px"),
|
|
10246
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize, "px"),
|
|
10247
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize, "px"),
|
|
10248
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize, "px"),
|
|
10249
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize, "px"),
|
|
10250
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize, "px"),
|
|
10251
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize, "px"),
|
|
10252
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize, "px"),
|
|
10253
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize, "px"),
|
|
10254
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize, "px"),
|
|
10255
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize, "px")
|
|
10256
|
-
},
|
|
10257
|
-
mediumAndWide: {
|
|
10258
|
-
/* legacy */
|
|
10259
|
-
header1: "".concat(theme.typography.types.headings.configs.header1.mediumAndWide.fontSize, "px"),
|
|
10260
|
-
header2: "".concat(theme.typography.types.headings.configs.header2.mediumAndWide.fontSize, "px"),
|
|
10261
|
-
header3: "".concat(theme.typography.types.headings.configs.header3.mediumAndWide.fontSize, "px"),
|
|
10262
|
-
header4: "".concat(theme.typography.types.headings.configs.header4.mediumAndWide.fontSize, "px"),
|
|
10263
|
-
header5: "".concat(theme.typography.types.headings.configs.header5.mediumAndWide.fontSize, "px"),
|
|
10264
|
-
'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
|
|
10265
|
-
'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
|
|
10266
|
-
body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
|
|
10267
|
-
'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
|
|
10268
|
-
'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px"),
|
|
10269
|
-
'header-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize, "px"),
|
|
10270
|
-
'header-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize, "px"),
|
|
10271
|
-
'header-impact-l': "".concat(theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize, "px"),
|
|
10272
|
-
'header-impact-m': "".concat(theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize, "px"),
|
|
10273
|
-
'header-impact-s': "".concat(theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize, "px"),
|
|
10274
|
-
'header-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize, "px"),
|
|
10275
|
-
'header-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize, "px"),
|
|
10276
|
-
'header-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize, "px"),
|
|
10277
|
-
/* latest */
|
|
10278
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize, "px"),
|
|
10279
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize, "px"),
|
|
10280
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize, "px"),
|
|
10281
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize, "px"),
|
|
10282
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize, "px"),
|
|
10283
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize, "px"),
|
|
10284
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize, "px"),
|
|
10285
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize, "px"),
|
|
10286
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize, "px"),
|
|
10287
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize, "px"),
|
|
10288
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize, "px"),
|
|
10289
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize, "px"),
|
|
10290
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize, "px"),
|
|
10291
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize, "px"),
|
|
10292
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize, "px"),
|
|
10293
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize, "px"),
|
|
10294
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize, "px"),
|
|
10295
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize, "px"),
|
|
10296
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize, "px"),
|
|
10297
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize, "px")
|
|
10298
|
-
}
|
|
10214
|
+
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].fontSize, "px"),
|
|
10215
|
+
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].fontSize, "px"),
|
|
10216
|
+
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].fontSize, "px"),
|
|
10217
|
+
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
10218
|
+
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
10219
|
+
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
10220
|
+
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
10221
|
+
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
10222
|
+
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
10223
|
+
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].fontSize, "px"),
|
|
10224
|
+
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].fontSize, "px"),
|
|
10225
|
+
'label-large': "".concat(theme.typography.types.labels.configs['label-large'].fontSize, "px"),
|
|
10226
|
+
'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].fontSize, "px"),
|
|
10227
|
+
'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize, "px"),
|
|
10228
|
+
'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize, "px"),
|
|
10229
|
+
'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize, "px"),
|
|
10230
|
+
'content-caps-l': "".concat(theme.typography.types.contentCaps.configs['content-caps-l'].fontSize, "px"),
|
|
10231
|
+
'content-caps-m': "".concat(theme.typography.types.contentCaps.configs['content-caps-m'].fontSize, "px"),
|
|
10232
|
+
'content-caps-s': "".concat(theme.typography.types.contentCaps.configs['content-caps-s'].fontSize, "px"),
|
|
10233
|
+
'content-caps-xs': "".concat(theme.typography.types.contentCaps.configs['content-caps-xs'].fontSize, "px")
|
|
10299
10234
|
},
|
|
10300
10235
|
lineHeights: {
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
/* latest */
|
|
10322
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight, "px"),
|
|
10323
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight, "px"),
|
|
10324
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight, "px"),
|
|
10325
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight, "px"),
|
|
10326
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight, "px"),
|
|
10327
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight, "px"),
|
|
10328
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight, "px"),
|
|
10329
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight, "px"),
|
|
10330
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight, "px"),
|
|
10331
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight, "px"),
|
|
10332
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight, "px"),
|
|
10333
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight, "px"),
|
|
10334
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight, "px"),
|
|
10335
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight, "px"),
|
|
10336
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight, "px"),
|
|
10337
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight, "px"),
|
|
10338
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight, "px"),
|
|
10339
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight, "px"),
|
|
10340
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight, "px"),
|
|
10341
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight, "px")
|
|
10342
|
-
},
|
|
10343
|
-
mediumAndWide: {
|
|
10344
|
-
/* legacy */
|
|
10345
|
-
header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
|
|
10346
|
-
header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
|
|
10347
|
-
header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
|
|
10348
|
-
header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
|
|
10349
|
-
header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
|
|
10350
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
10351
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
10352
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
10353
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
10354
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
|
|
10355
|
-
'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
|
|
10356
|
-
'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
|
|
10357
|
-
'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
|
|
10358
|
-
'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
|
|
10359
|
-
'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
|
|
10360
|
-
'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
|
|
10361
|
-
'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
|
|
10362
|
-
'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
|
|
10363
|
-
/* latest */
|
|
10364
|
-
'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight, "px"),
|
|
10365
|
-
'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight, "px"),
|
|
10366
|
-
'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight, "px"),
|
|
10367
|
-
'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight, "px"),
|
|
10368
|
-
'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight, "px"),
|
|
10369
|
-
'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight, "px"),
|
|
10370
|
-
'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight, "px"),
|
|
10371
|
-
'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight, "px"),
|
|
10372
|
-
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight, "px"),
|
|
10373
|
-
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight, "px"),
|
|
10374
|
-
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight, "px"),
|
|
10375
|
-
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight, "px"),
|
|
10376
|
-
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight, "px"),
|
|
10377
|
-
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight, "px"),
|
|
10378
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight, "px"),
|
|
10379
|
-
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight, "px"),
|
|
10380
|
-
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight, "px"),
|
|
10381
|
-
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight, "px"),
|
|
10382
|
-
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight, "px"),
|
|
10383
|
-
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight, "px")
|
|
10384
|
-
}
|
|
10236
|
+
'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].lineHeight, "px"),
|
|
10237
|
+
'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].lineHeight, "px"),
|
|
10238
|
+
'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].lineHeight, "px"),
|
|
10239
|
+
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
10240
|
+
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
10241
|
+
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
10242
|
+
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
10243
|
+
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
10244
|
+
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
10245
|
+
'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].lineHeight, "px"),
|
|
10246
|
+
'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].lineHeight, "px"),
|
|
10247
|
+
'label-large': "".concat(theme.typography.types.labels.configs['label-large'].lineHeight, "px"),
|
|
10248
|
+
'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].lineHeight, "px"),
|
|
10249
|
+
'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight, "px"),
|
|
10250
|
+
'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight, "px"),
|
|
10251
|
+
'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight, "px"),
|
|
10252
|
+
'content-caps-l': "".concat(theme.typography.types.contentCaps.configs['content-caps-l'].lineHeight, "px"),
|
|
10253
|
+
'content-caps-m': "".concat(theme.typography.types.contentCaps.configs['content-caps-m'].lineHeight, "px"),
|
|
10254
|
+
'content-caps-s': "".concat(theme.typography.types.contentCaps.configs['content-caps-s'].lineHeight, "px"),
|
|
10255
|
+
'content-caps-xs': "".concat(theme.typography.types.contentCaps.configs['content-caps-xs'].lineHeight, "px")
|
|
10385
10256
|
},
|
|
10386
10257
|
fontWeights: {
|
|
10387
10258
|
headings: {
|
|
10388
10259
|
regular: theme.typography.types.headings.fontWeight.regular,
|
|
10389
10260
|
bold: theme.typography.types.headings.fontWeight.bold
|
|
10390
10261
|
},
|
|
10391
|
-
'headings-impact': {
|
|
10392
|
-
regular: theme.typography.types['headings-impact'].fontWeight,
|
|
10393
|
-
bold: theme.typography.types['headings-impact'].fontWeight
|
|
10394
|
-
},
|
|
10395
10262
|
bodies: {
|
|
10396
10263
|
regular: theme.typography.types.bodies.fontWeight.regular,
|
|
10397
10264
|
// 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
|
|
10398
10265
|
bold: theme.typography.types.bodies.fontWeight.bold
|
|
10266
|
+
},
|
|
10267
|
+
labels: {
|
|
10268
|
+
semibold: theme.typography.types.labels.fontWeight.semibold
|
|
10269
|
+
},
|
|
10270
|
+
contentCaps: {
|
|
10271
|
+
bold: theme.typography.types.contentCaps.fontWeight.bold
|
|
10399
10272
|
}
|
|
10400
10273
|
},
|
|
10401
10274
|
fonts: {
|
|
10402
10275
|
headings: theme.typography.types.headings.fontFamily.web,
|
|
10403
|
-
|
|
10404
|
-
|
|
10276
|
+
bodies: theme.typography.types.bodies.fontFamily.web,
|
|
10277
|
+
labels: theme.typography.types.labels.fontFamily.web,
|
|
10278
|
+
contentCaps: theme.typography.types.contentCaps.fontFamily.web
|
|
10405
10279
|
},
|
|
10406
10280
|
shadows: {
|
|
10407
10281
|
kitt: {
|
|
@@ -10896,7 +10770,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10896
10770
|
_disabled: {
|
|
10897
10771
|
placeholderTextColor: theme.forms.input.states.disabled.color,
|
|
10898
10772
|
color: theme.forms.input.states.disabled.color,
|
|
10899
|
-
borderColor: theme.forms.input.states.disabled.
|
|
10773
|
+
borderColor: theme.forms.input.states.disabled.backgroundColor,
|
|
10900
10774
|
bg: theme.forms.input.states.disabled.backgroundColor
|
|
10901
10775
|
}
|
|
10902
10776
|
}
|
|
@@ -10926,7 +10800,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10926
10800
|
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
10927
10801
|
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
10928
10802
|
fontSize: undefined,
|
|
10929
|
-
lineHeight: theme.typography.types.bodies.configs
|
|
10803
|
+
lineHeight: theme.typography.types.bodies.configs['body-m'].lineHeight
|
|
10930
10804
|
}
|
|
10931
10805
|
}
|
|
10932
10806
|
}
|
|
@@ -11271,7 +11145,7 @@ function PickerOption(_ref) {
|
|
|
11271
11145
|
isSelected = _ref.isSelected;
|
|
11272
11146
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
11273
11147
|
testID: testID,
|
|
11274
|
-
base: "body",
|
|
11148
|
+
base: "body-m",
|
|
11275
11149
|
children: typeof children === 'function' ? children({
|
|
11276
11150
|
isHighlighted: isHighlighted,
|
|
11277
11151
|
isSelected: isSelected
|
|
@@ -11503,8 +11377,9 @@ function SegmentedProgressBar(_ref) {
|
|
|
11503
11377
|
_ref$colorVariant = _ref.colorVariant,
|
|
11504
11378
|
colorVariant = _ref$colorVariant === void 0 ? 'primary' : _ref$colorVariant,
|
|
11505
11379
|
withCurrentInProgress = _ref.withCurrentInProgress;
|
|
11380
|
+
var kittTheme = useKittTheme();
|
|
11506
11381
|
var height = size === 'small' ? 'kitt.2' : 'kitt.4';
|
|
11507
|
-
var fillColor = colorVariant === 'validated' ?
|
|
11382
|
+
var fillColor = colorVariant === 'validated' ? kittTheme.kitt.palettes.deepPurple['green.6'] : kittTheme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11508
11383
|
var steps = _toConsumableArray(Array.from({
|
|
11509
11384
|
length: stepsCount
|
|
11510
11385
|
}).keys());
|
|
@@ -11515,13 +11390,13 @@ function SegmentedProgressBar(_ref) {
|
|
|
11515
11390
|
overflow: "hidden",
|
|
11516
11391
|
children: steps.map(function (stepNumber) {
|
|
11517
11392
|
var isSegmentCurrentInProgress = withCurrentInProgress && stepNumber === currentStep - 1;
|
|
11518
|
-
var color = stepNumber < currentStep ? fillColor :
|
|
11393
|
+
var color = stepNumber < currentStep ? fillColor : kittTheme.kitt.palettes.deepPurple['beige.1'];
|
|
11519
11394
|
return /*#__PURE__*/jsx(View$1, {
|
|
11520
11395
|
height: "100%",
|
|
11521
11396
|
flexGrow: 1,
|
|
11522
11397
|
flexShrink: 1,
|
|
11523
11398
|
flexBasis: 0,
|
|
11524
|
-
backgroundColor: isSegmentCurrentInProgress ?
|
|
11399
|
+
backgroundColor: isSegmentCurrentInProgress ? kittTheme.kitt.palettes.deepPurple['deepPurple.5'] : color,
|
|
11525
11400
|
borderRadius: 2,
|
|
11526
11401
|
overflow: "hidden",
|
|
11527
11402
|
alignItems: "center",
|
|
@@ -11866,9 +11741,9 @@ var getBackgroundColorFromBlockColor = function (theme) {
|
|
|
11866
11741
|
case 'white':
|
|
11867
11742
|
return '#ffffff';
|
|
11868
11743
|
case 'light':
|
|
11869
|
-
return theme.kitt.palettes.
|
|
11744
|
+
return theme.kitt.palettes.deepPurple['beige.1'];
|
|
11870
11745
|
case 'primary':
|
|
11871
|
-
return theme.kitt.palettes.
|
|
11746
|
+
return theme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11872
11747
|
default:
|
|
11873
11748
|
return 'transparent';
|
|
11874
11749
|
}
|
|
@@ -11917,8 +11792,7 @@ function StoryTitle(_ref) {
|
|
|
11917
11792
|
return /*#__PURE__*/jsx(View, {
|
|
11918
11793
|
marginBottom: 30,
|
|
11919
11794
|
children: /*#__PURE__*/jsx(Typography.Header1, {
|
|
11920
|
-
|
|
11921
|
-
base: "header1",
|
|
11795
|
+
base: "heading-xl",
|
|
11922
11796
|
color: useStoryBlockColor(color),
|
|
11923
11797
|
numberOfLines: numberOfLines,
|
|
11924
11798
|
children: children
|
|
@@ -11932,8 +11806,7 @@ function StoryTitleLevel2(_ref2) {
|
|
|
11932
11806
|
return /*#__PURE__*/jsx(View, {
|
|
11933
11807
|
marginBottom: 30,
|
|
11934
11808
|
children: /*#__PURE__*/jsx(Typography.Header2, {
|
|
11935
|
-
|
|
11936
|
-
base: "header2",
|
|
11809
|
+
base: "heading-l",
|
|
11937
11810
|
color: useStoryBlockColor(color),
|
|
11938
11811
|
numberOfLines: numberOfLines,
|
|
11939
11812
|
children: children
|
|
@@ -11948,9 +11821,7 @@ function StoryTitleLevel3(_ref3) {
|
|
|
11948
11821
|
return /*#__PURE__*/jsx(View, {
|
|
11949
11822
|
marginBottom: 10,
|
|
11950
11823
|
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
11951
|
-
|
|
11952
|
-
base: "header3",
|
|
11953
|
-
medium: "header4",
|
|
11824
|
+
base: "heading-m",
|
|
11954
11825
|
color: useStoryBlockColor(color),
|
|
11955
11826
|
numberOfLines: numberOfLines,
|
|
11956
11827
|
children: children
|
|
@@ -11965,9 +11836,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
11965
11836
|
return /*#__PURE__*/jsx(View, {
|
|
11966
11837
|
marginBottom: 10,
|
|
11967
11838
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
11968
|
-
|
|
11969
|
-
base: "header4",
|
|
11970
|
-
medium: "header5",
|
|
11839
|
+
base: "heading-s",
|
|
11971
11840
|
color: useStoryBlockColor(color),
|
|
11972
11841
|
numberOfLines: numberOfLines,
|
|
11973
11842
|
children: children
|
|
@@ -12144,15 +12013,15 @@ function useTabBarItemColor(color, isActive) {
|
|
|
12144
12013
|
switch (color) {
|
|
12145
12014
|
case 'black':
|
|
12146
12015
|
{
|
|
12147
|
-
return isActive ? kittTheme.
|
|
12016
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
12148
12017
|
}
|
|
12149
12018
|
case 'white':
|
|
12150
12019
|
{
|
|
12151
|
-
return kittTheme.palettes.
|
|
12020
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
|
|
12152
12021
|
}
|
|
12153
12022
|
default:
|
|
12154
12023
|
{
|
|
12155
|
-
return isActive ? kittTheme.
|
|
12024
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
12156
12025
|
}
|
|
12157
12026
|
}
|
|
12158
12027
|
}
|
|
@@ -12162,15 +12031,15 @@ function useTabBarIndicatorColor(color, isActive) {
|
|
|
12162
12031
|
switch (color) {
|
|
12163
12032
|
case 'black':
|
|
12164
12033
|
{
|
|
12165
|
-
return isActive ? kittTheme.
|
|
12034
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12166
12035
|
}
|
|
12167
12036
|
case 'white':
|
|
12168
12037
|
{
|
|
12169
|
-
return isActive ? kittTheme.palettes.
|
|
12038
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
12170
12039
|
}
|
|
12171
12040
|
default:
|
|
12172
12041
|
{
|
|
12173
|
-
return isActive ? kittTheme.
|
|
12042
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12174
12043
|
}
|
|
12175
12044
|
}
|
|
12176
12045
|
}
|
|
@@ -12243,7 +12112,7 @@ function TabBar(_ref) {
|
|
|
12243
12112
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
12244
12113
|
minWidth: '100%',
|
|
12245
12114
|
borderBottomWidth: 1,
|
|
12246
|
-
borderBottomColor: kittTheme.palettes.
|
|
12115
|
+
borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
|
|
12247
12116
|
});
|
|
12248
12117
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
12249
12118
|
horizontal: true,
|
|
@@ -12284,38 +12153,40 @@ var getTypography = function (size) {
|
|
|
12284
12153
|
return 'body-m';
|
|
12285
12154
|
}
|
|
12286
12155
|
};
|
|
12287
|
-
var typeToColor$1 = function (color, type) {
|
|
12288
|
-
if (color) return color;
|
|
12289
|
-
switch (type) {
|
|
12290
|
-
case 'primary':
|
|
12291
|
-
return 'violine';
|
|
12292
|
-
case 'warn':
|
|
12293
|
-
return 'sun';
|
|
12294
|
-
case 'danger':
|
|
12295
|
-
return 'coral';
|
|
12296
|
-
case 'default':
|
|
12297
|
-
default:
|
|
12298
|
-
return 'eggshell';
|
|
12299
|
-
}
|
|
12300
|
-
};
|
|
12301
12156
|
function Tag(_ref) {
|
|
12302
12157
|
var label = _ref.label,
|
|
12303
12158
|
icon = _ref.icon,
|
|
12304
|
-
color = _ref.color,
|
|
12305
|
-
|
|
12159
|
+
_ref$color = _ref.color,
|
|
12160
|
+
color = _ref$color === void 0 ? 'beige' : _ref$color,
|
|
12306
12161
|
_ref$size = _ref.size,
|
|
12307
12162
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12308
|
-
|
|
12309
|
-
variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
|
|
12310
|
-
_ref$withWhiteBorder = _ref.withWhiteBorder,
|
|
12311
|
-
withWhiteBorder = _ref$withWhiteBorder === void 0 ? false : _ref$withWhiteBorder;
|
|
12163
|
+
withWhiteBorder = _ref.withWhiteBorder;
|
|
12312
12164
|
var kittTheme = useKittTheme();
|
|
12313
|
-
var
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12165
|
+
var colorMatching = {
|
|
12166
|
+
beige: {
|
|
12167
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.2'],
|
|
12168
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
12169
|
+
},
|
|
12170
|
+
yellow: {
|
|
12171
|
+
background: kittTheme.kitt.palettes.deepPurple['yellow.6'],
|
|
12172
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.9']
|
|
12173
|
+
},
|
|
12174
|
+
red: {
|
|
12175
|
+
background: kittTheme.kitt.palettes.deepPurple['red.6'],
|
|
12176
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12177
|
+
},
|
|
12178
|
+
blue: {
|
|
12179
|
+
background: kittTheme.kitt.palettes.deepPurple['blue.6'],
|
|
12180
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12181
|
+
},
|
|
12182
|
+
green: {
|
|
12183
|
+
background: kittTheme.kitt.palettes.deepPurple['green.6'],
|
|
12184
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12185
|
+
},
|
|
12186
|
+
deepPurple: {
|
|
12187
|
+
background: kittTheme.kitt.palettes.deepPurple['deepPurple.8'],
|
|
12188
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
12317
12189
|
}
|
|
12318
|
-
return 'black';
|
|
12319
12190
|
};
|
|
12320
12191
|
return /*#__PURE__*/jsxs(HStack, {
|
|
12321
12192
|
alignSelf: "flex-start",
|
|
@@ -12323,31 +12194,21 @@ function Tag(_ref) {
|
|
|
12323
12194
|
height: "kitt.tag.".concat(size, ".height"),
|
|
12324
12195
|
paddingLeft: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingLeft"),
|
|
12325
12196
|
paddingRight: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingRight"),
|
|
12326
|
-
backgroundColor:
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
}
|
|
12330
|
-
if (variant === 'contrast') {
|
|
12331
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".9")];
|
|
12332
|
-
}
|
|
12333
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".4")];
|
|
12334
|
-
}() : 'kitt.transparent',
|
|
12335
|
-
borderColor: withWhiteBorder ? 'kitt.white' : function getBorderColor() {
|
|
12336
|
-
return kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".6")];
|
|
12337
|
-
}(),
|
|
12338
|
-
borderWidth: withWhiteBorder ? 1 : "kitt.tag.variant.".concat(variant, ".borderWidth"),
|
|
12197
|
+
backgroundColor: colorMatching[color].background,
|
|
12198
|
+
borderWidth: withWhiteBorder ? 1 : 0,
|
|
12199
|
+
borderColor: withWhiteBorder ? 'kitt.white' : undefined,
|
|
12339
12200
|
space: "kitt.1",
|
|
12340
12201
|
alignItems: "center",
|
|
12341
12202
|
maxWidth: "100%",
|
|
12342
12203
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
12343
12204
|
icon: icon,
|
|
12344
12205
|
size: "kitt.tag.".concat(size, ".iconSize"),
|
|
12345
|
-
color:
|
|
12206
|
+
color: colorMatching[color].font
|
|
12346
12207
|
}) : null, /*#__PURE__*/jsx(View, {
|
|
12347
12208
|
flexShrink: 1,
|
|
12348
12209
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12349
12210
|
base: getTypography(size),
|
|
12350
|
-
color:
|
|
12211
|
+
color: colorMatching[color].font,
|
|
12351
12212
|
numberOfLines: 1,
|
|
12352
12213
|
ellipsizeMode: "tail",
|
|
12353
12214
|
children: label
|
|
@@ -12514,7 +12375,7 @@ function ToastContent(_ref) {
|
|
|
12514
12375
|
flexGrow: 1,
|
|
12515
12376
|
flexShrink: 1,
|
|
12516
12377
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
12517
|
-
base: "heading-
|
|
12378
|
+
base: "heading-xs",
|
|
12518
12379
|
color: "white",
|
|
12519
12380
|
children: title
|
|
12520
12381
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -12530,7 +12391,7 @@ function ToastContent(_ref) {
|
|
|
12530
12391
|
borderColor: "white",
|
|
12531
12392
|
onPress: onPress,
|
|
12532
12393
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12533
|
-
base: "heading-
|
|
12394
|
+
base: "heading-xs",
|
|
12534
12395
|
color: "white",
|
|
12535
12396
|
children: actionLabel
|
|
12536
12397
|
})
|
|
@@ -12543,9 +12404,9 @@ var typeToColor = function (type) {
|
|
|
12543
12404
|
case 'success':
|
|
12544
12405
|
return 'green';
|
|
12545
12406
|
case 'danger':
|
|
12546
|
-
return '
|
|
12407
|
+
return 'red';
|
|
12547
12408
|
case 'warning':
|
|
12548
|
-
return '
|
|
12409
|
+
return 'yellow';
|
|
12549
12410
|
default:
|
|
12550
12411
|
return 'blue';
|
|
12551
12412
|
}
|
|
@@ -12606,7 +12467,7 @@ function ToastComponent(_ref) {
|
|
|
12606
12467
|
}, [handleHideToast, outro, width, toastTimeout]);
|
|
12607
12468
|
return /*#__PURE__*/jsxs(View, {
|
|
12608
12469
|
alignSelf: stretch ? 'flex-start' : 'auto',
|
|
12609
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12470
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple['grey.9'],
|
|
12610
12471
|
borderRadius: "kitt.2",
|
|
12611
12472
|
maxWidth: {
|
|
12612
12473
|
base: '100%',
|
|
@@ -12620,7 +12481,7 @@ function ToastComponent(_ref) {
|
|
|
12620
12481
|
children: [/*#__PURE__*/jsx(TypographyIcon, {
|
|
12621
12482
|
icon: icon,
|
|
12622
12483
|
size: "kitt.5",
|
|
12623
|
-
color: kittTheme.kitt.palettes.
|
|
12484
|
+
color: kittTheme.kitt.palettes.deepPurple["".concat(color, ".6")]
|
|
12624
12485
|
}), /*#__PURE__*/jsx(ToastContent, {
|
|
12625
12486
|
title: title,
|
|
12626
12487
|
description: description,
|
|
@@ -12638,7 +12499,7 @@ function ToastComponent(_ref) {
|
|
|
12638
12499
|
}) : null]
|
|
12639
12500
|
}), outro === 'timer' ? /*#__PURE__*/jsx(AnimatedView$1, {
|
|
12640
12501
|
alignSelf: "flex-end",
|
|
12641
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12502
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple["".concat(color, ".6")],
|
|
12642
12503
|
height: "kitt.1",
|
|
12643
12504
|
style: animatedStyle
|
|
12644
12505
|
}) : null]
|
|
@@ -12695,7 +12556,7 @@ function TooltipContent(_ref) {
|
|
|
12695
12556
|
paddingY: "kitt.tooltip.verticalPadding",
|
|
12696
12557
|
paddingX: "kitt.tooltip.horizontalPadding",
|
|
12697
12558
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12698
|
-
base: "body-
|
|
12559
|
+
base: "body-s",
|
|
12699
12560
|
color: "white-light",
|
|
12700
12561
|
children: children
|
|
12701
12562
|
})
|
|
@@ -12906,12 +12767,12 @@ function calcSizesFromType(type, theme) {
|
|
|
12906
12767
|
medium: type.medium || type.small || type.base
|
|
12907
12768
|
});
|
|
12908
12769
|
var size = {
|
|
12909
|
-
base: getTypographyTypeConfig((_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body', theme).
|
|
12770
|
+
base: getTypographyTypeConfig((_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body-m', theme).fontSize
|
|
12910
12771
|
};
|
|
12911
12772
|
[KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
|
|
12912
12773
|
var value = typeWithMediumForced[typeName];
|
|
12913
12774
|
if (value) {
|
|
12914
|
-
size[typeName] = getTypographyTypeConfig(value, theme)
|
|
12775
|
+
size[typeName] = getTypographyTypeConfig(value, theme).fontSize;
|
|
12915
12776
|
}
|
|
12916
12777
|
});
|
|
12917
12778
|
var marginLeft = {};
|
|
@@ -13012,6 +12873,7 @@ function TypographyLink(_ref) {
|
|
|
13012
12873
|
'kitt-universal': 'true'
|
|
13013
12874
|
},
|
|
13014
12875
|
_web: {
|
|
12876
|
+
// @ts-expect-error: This is only used on web where 'not-allowed' and 'pointer' are valid cursor values
|
|
13015
12877
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
13016
12878
|
transitionProperty: 'color',
|
|
13017
12879
|
transitionDuration: '0.2s',
|
|
@@ -13238,7 +13100,7 @@ function BorderlessStep(_ref) {
|
|
|
13238
13100
|
width: 2,
|
|
13239
13101
|
borderRadius: 2,
|
|
13240
13102
|
position: "absolute",
|
|
13241
|
-
backgroundColor: "kitt.
|
|
13103
|
+
backgroundColor: "kitt.accent",
|
|
13242
13104
|
overflow: "hidden",
|
|
13243
13105
|
children: isNextDone ? /*#__PURE__*/jsx(AnimatedView, {
|
|
13244
13106
|
style: progressBarAnimatedStyles,
|
|
@@ -13323,7 +13185,7 @@ function Step(_ref) {
|
|
|
13323
13185
|
state: state,
|
|
13324
13186
|
index: index
|
|
13325
13187
|
}), !isLast ? /*#__PURE__*/jsx(View, {
|
|
13326
|
-
backgroundColor: shouldDisableNextLink ? 'kitt.
|
|
13188
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.accent' : 'kitt.primary',
|
|
13327
13189
|
width: 1,
|
|
13328
13190
|
position: "absolute",
|
|
13329
13191
|
top: 46,
|