@ornikar/kitt-universal 26.3.1-late-ocean.ea9938a3219bcd82e7bbea585f5b7083975351b2.0 → 27.0.1-canary.01819bc93ab006bfbaa4e1335cd8afa2380068a0.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 +38 -4
- package/dist/definitions/Actions/Actions.d.ts +1 -1
- package/dist/definitions/SegmentedProgressBar/SegmentedProgressBar.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +2 -7
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts.map +1 -1
- package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts +2 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +161 -362
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +215 -213
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/checkbox.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/colors.d.ts +14 -16
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts +0 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radio.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +140 -70
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts +79 -0
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts +37 -957
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +718 -849
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +718 -849
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +715 -846
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +1 -1
- package/dist/index-node-22.17.cjs.web.js +712 -843
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +715 -846
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +1 -1
- package/dist/index-node-22.17.es.web.mjs +712 -843
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +827 -966
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +795 -934
- 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 +470 -539
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +470 -539
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +28 -28
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +0 -260
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +0 -1
|
@@ -44,117 +44,81 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
44
44
|
|
|
45
45
|
const createColorScale = colorScale => colorScale;
|
|
46
46
|
const colorScales = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
6: '#bab8ae',
|
|
54
|
-
7: '#aeaba3',
|
|
55
|
-
8: '#9c9a92',
|
|
56
|
-
9: '#8e8c83',
|
|
57
|
-
10: '#74726a',
|
|
58
|
-
11: '#3e3d3a',
|
|
59
|
-
12: '#282826'
|
|
47
|
+
deepPurple: createColorScale({
|
|
48
|
+
5: '#936C93',
|
|
49
|
+
6: '#7A587A',
|
|
50
|
+
7: '#6E4D6E',
|
|
51
|
+
8: '#563B56',
|
|
52
|
+
9: '#452F45'
|
|
60
53
|
}),
|
|
61
|
-
|
|
62
|
-
1: '#
|
|
63
|
-
2: '#
|
|
64
|
-
3: '#
|
|
65
|
-
4: '#
|
|
66
|
-
5: '#
|
|
67
|
-
6: '#
|
|
68
|
-
7: '#9180ff',
|
|
69
|
-
8: '#7b66ff',
|
|
70
|
-
9: '#624af7',
|
|
71
|
-
10: '#5139e1',
|
|
72
|
-
11: '#3a26b5',
|
|
73
|
-
12: '#0a0428'
|
|
54
|
+
beige: createColorScale({
|
|
55
|
+
1: '#F7F4EE',
|
|
56
|
+
2: '#F1ECE4',
|
|
57
|
+
3: '#EAE3D6',
|
|
58
|
+
4: '#E5DCCA',
|
|
59
|
+
5: '#DDD0B8',
|
|
60
|
+
6: '#C1B59F'
|
|
74
61
|
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
62
|
+
lightning: createColorScale({
|
|
63
|
+
5: '#FFF500',
|
|
64
|
+
7: '#43390A'
|
|
65
|
+
}),
|
|
66
|
+
rainbow: createColorScale({
|
|
67
|
+
pink: '#E4A4F9',
|
|
68
|
+
brick: '#951D12',
|
|
69
|
+
orange: '#DB6E2E',
|
|
70
|
+
gold: '#9A7600',
|
|
71
|
+
sun: '#EFD346',
|
|
72
|
+
'green-pine': '#1C5D47',
|
|
73
|
+
'green-grass': '#4DA00A',
|
|
74
|
+
'green-apple': '#DEF985',
|
|
75
|
+
'blue-electric': '#2850C4',
|
|
76
|
+
'blue-sky': '#B2F0FD'
|
|
77
|
+
}),
|
|
78
|
+
grey: createColorScale({
|
|
79
|
+
0: '#ffffff',
|
|
80
|
+
1: '#ECECEC',
|
|
81
|
+
2: '#CDCED0',
|
|
82
|
+
3: '#A8A8A8',
|
|
83
|
+
5: '#838383',
|
|
84
|
+
7: '#505050',
|
|
85
|
+
9: '#101010'
|
|
88
86
|
}),
|
|
89
87
|
blue: createColorScale({
|
|
90
|
-
1: '#
|
|
91
|
-
2: '#
|
|
92
|
-
|
|
93
|
-
4: '#d4e0ff',
|
|
94
|
-
5: '#baceff',
|
|
95
|
-
6: '#a1bbff',
|
|
96
|
-
7: '#87a9ff',
|
|
97
|
-
8: '#6e96ff',
|
|
98
|
-
9: '#5383ff',
|
|
99
|
-
10: '#4170eb',
|
|
100
|
-
11: '#0e4381',
|
|
101
|
-
12: '#061c36'
|
|
88
|
+
1: '#E9F4FC',
|
|
89
|
+
2: '#BCDFF6',
|
|
90
|
+
6: '#1772AB'
|
|
102
91
|
}),
|
|
103
|
-
|
|
104
|
-
1: '#
|
|
105
|
-
2: '#
|
|
106
|
-
|
|
107
|
-
4: '#f0c7d4',
|
|
108
|
-
5: '#f0afc4',
|
|
109
|
-
6: '#f097b3',
|
|
110
|
-
7: '#f07fa3',
|
|
111
|
-
8: '#d95d84',
|
|
112
|
-
9: '#cf2a60',
|
|
113
|
-
10: '#c12558',
|
|
114
|
-
11: '#61192e',
|
|
115
|
-
12: '#29040f'
|
|
92
|
+
green: createColorScale({
|
|
93
|
+
1: '#ECFEDD',
|
|
94
|
+
2: '#DBFAC1',
|
|
95
|
+
6: '#438D06'
|
|
116
96
|
}),
|
|
117
|
-
|
|
118
|
-
1: '#
|
|
119
|
-
2: '#
|
|
120
|
-
|
|
121
|
-
4: '#ffcfcf',
|
|
122
|
-
5: '#ffb5b5',
|
|
123
|
-
6: '#ff9c9c',
|
|
124
|
-
7: '#f57d7d',
|
|
125
|
-
8: '#eb6565',
|
|
126
|
-
9: '#e55050',
|
|
127
|
-
10: '#da3d3d',
|
|
128
|
-
11: '#8a2b1e',
|
|
129
|
-
12: '#330c07'
|
|
97
|
+
yellow: createColorScale({
|
|
98
|
+
1: '#FDF8E7',
|
|
99
|
+
2: '#FAEBB8',
|
|
100
|
+
6: '#EFC11F'
|
|
130
101
|
}),
|
|
131
|
-
|
|
132
|
-
1: '#
|
|
133
|
-
2: '#
|
|
134
|
-
|
|
135
|
-
4: '#ffefc4',
|
|
136
|
-
5: '#ffe8ab',
|
|
137
|
-
6: '#ffe191',
|
|
138
|
-
7: '#ffda78',
|
|
139
|
-
8: '#ffd35e',
|
|
140
|
-
9: '#fdc32d',
|
|
141
|
-
10: '#f3a40c',
|
|
142
|
-
11: '#9f5600',
|
|
143
|
-
12: '#341c00'
|
|
102
|
+
red: createColorScale({
|
|
103
|
+
1: '#FDE4E3',
|
|
104
|
+
2: '#FAB8B8',
|
|
105
|
+
6: '#F14847'
|
|
144
106
|
}),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
107
|
+
'beige-alpha': createColorScale({
|
|
108
|
+
'25': '#C1B59F40',
|
|
109
|
+
'40': '#C1B59F66',
|
|
110
|
+
'50': '#C1B59F80'
|
|
111
|
+
}),
|
|
112
|
+
'grey-alpha': createColorScale({
|
|
113
|
+
'25': '#10101040',
|
|
114
|
+
'35': '#10101059',
|
|
115
|
+
'50': '#10101080'
|
|
116
|
+
}),
|
|
117
|
+
'white-alpha': createColorScale({
|
|
118
|
+
'10': '#FFFFFF1A',
|
|
119
|
+
'20': '#FFFFFF33',
|
|
120
|
+
'80': '#FFFFFFCC',
|
|
121
|
+
'90': '#FFFFFFE5'
|
|
158
122
|
})
|
|
159
123
|
};
|
|
160
124
|
const transformColorScalesToTokens = () => {
|
|
@@ -164,90 +128,44 @@ const transformColorScalesToTokens = () => {
|
|
|
164
128
|
});
|
|
165
129
|
}));
|
|
166
130
|
};
|
|
167
|
-
const
|
|
131
|
+
const deepPurpleColorPalette = {
|
|
168
132
|
...transformColorScalesToTokens(),
|
|
169
|
-
/** @deprecated use violine.9 instead */
|
|
170
|
-
lateOcean: colorScales.violine[9],
|
|
171
|
-
/** @deprecated use violine.8 instead */
|
|
172
|
-
lateOceanLight1: colorScales.violine[8],
|
|
173
|
-
/** @deprecated use violine.6 instead */
|
|
174
|
-
lateOceanLight2: colorScales.violine[6],
|
|
175
|
-
/** @deprecated use lavender.6 instead */
|
|
176
|
-
lateOceanLight3: colorScales.lavender[6],
|
|
177
|
-
/** @deprecated use violine.12 instead */
|
|
178
|
-
lateOceanDark1: colorScales.violine[12],
|
|
179
|
-
/** @deprecated use lavender.5 instead */
|
|
180
|
-
warmEmbrace: colorScales.lavender[5],
|
|
181
|
-
/** @deprecated use lavender.3 instead */
|
|
182
|
-
warmEmbraceLight1: colorScales.lavender[3],
|
|
183
133
|
white: '#FFFFFF',
|
|
184
134
|
black: '#000000',
|
|
185
|
-
|
|
186
|
-
black1000: '#000000',
|
|
187
|
-
/** @deprecated use eggshell.11 instead */
|
|
188
|
-
black800: colorScales.eggshell[11],
|
|
189
|
-
/** @deprecated use eggshell.10 instead */
|
|
190
|
-
black555: colorScales.eggshell[10],
|
|
191
|
-
/** @deprecated use eggshell.7 instead */
|
|
192
|
-
black400: colorScales.eggshell[7],
|
|
193
|
-
/** @deprecated use eggshell.4 instead */
|
|
194
|
-
black200: colorScales.eggshell[4],
|
|
195
|
-
/** @deprecated use eggshell.3 instead */
|
|
196
|
-
black100: colorScales.eggshell[3],
|
|
197
|
-
/** @deprecated use eggshell.2 instead */
|
|
198
|
-
black50: colorScales.eggshell[2],
|
|
199
|
-
/** @deprecated use eggshell.1 instead */
|
|
200
|
-
black25: colorScales.eggshell[1],
|
|
201
|
-
/** @deprecated use green.8 instead */
|
|
202
|
-
viride: colorScales.green[8],
|
|
203
|
-
/** @deprecated use coral.7 instead */
|
|
204
|
-
englishVermillon: colorScales.coral[7],
|
|
205
|
-
/** @deprecated use sun.8 instead */
|
|
206
|
-
goldCrayola: colorScales.sun[8],
|
|
207
|
-
/** @deprecated use blue.8 instead */
|
|
208
|
-
aero: colorScales.blue[8],
|
|
209
|
-
/** @deprecated use eggshell.1 instead */
|
|
210
|
-
seaShell: colorScales.eggshell[1],
|
|
211
|
-
transparent: 'transparent',
|
|
212
|
-
/** @deprecated use violine.4 instead */
|
|
213
|
-
moonPurple: colorScales.violine[4],
|
|
214
|
-
/** @deprecated use violine.2 instead */
|
|
215
|
-
moonPurpleLight1: colorScales.violine[2]
|
|
135
|
+
transparent: 'transparent'
|
|
216
136
|
};
|
|
217
137
|
|
|
218
138
|
const colors = {
|
|
219
|
-
primary:
|
|
220
|
-
primaryLight:
|
|
221
|
-
accent:
|
|
222
|
-
accentLight:
|
|
223
|
-
success:
|
|
224
|
-
correct:
|
|
225
|
-
danger:
|
|
226
|
-
info:
|
|
227
|
-
warning:
|
|
228
|
-
separator:
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
transparent: lateOceanColorPalette.transparent,
|
|
238
|
-
disabled: lateOceanColorPalette['eggshell.2'],
|
|
139
|
+
primary: deepPurpleColorPalette['deepPurple.8'],
|
|
140
|
+
primaryLight: deepPurpleColorPalette['deepPurple.8'],
|
|
141
|
+
accent: deepPurpleColorPalette['beige.1'],
|
|
142
|
+
accentLight: deepPurpleColorPalette['beige.1'],
|
|
143
|
+
success: deepPurpleColorPalette['green.6'],
|
|
144
|
+
correct: deepPurpleColorPalette['green.6'],
|
|
145
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
146
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
147
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
148
|
+
separator: deepPurpleColorPalette['beige.3'],
|
|
149
|
+
white: deepPurpleColorPalette['grey.0'],
|
|
150
|
+
black: deepPurpleColorPalette['grey.9'],
|
|
151
|
+
blackLight: deepPurpleColorPalette['grey.5'],
|
|
152
|
+
blackAnthracite: deepPurpleColorPalette['grey.7'],
|
|
153
|
+
uiBackground: deepPurpleColorPalette['beige.1'],
|
|
154
|
+
uiBackgroundLight: deepPurpleColorPalette['grey.0'],
|
|
155
|
+
transparent: deepPurpleColorPalette.transparent,
|
|
156
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
239
157
|
overlay: {
|
|
240
|
-
dark: '
|
|
241
|
-
light: '
|
|
158
|
+
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
159
|
+
light: deepPurpleColorPalette['white-alpha.80']
|
|
242
160
|
}
|
|
243
161
|
};
|
|
244
162
|
|
|
245
163
|
const actionCard = {
|
|
246
|
-
borderRadius:
|
|
164
|
+
borderRadius: 8,
|
|
247
165
|
primary: {
|
|
248
166
|
default: {
|
|
249
167
|
backgroundColor: colors.uiBackgroundLight,
|
|
250
|
-
borderColor:
|
|
168
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
251
169
|
borderWidth: 1,
|
|
252
170
|
shadow: {
|
|
253
171
|
color: '',
|
|
@@ -259,8 +177,8 @@ const actionCard = {
|
|
|
259
177
|
translateY: 0
|
|
260
178
|
},
|
|
261
179
|
hovered: {
|
|
262
|
-
backgroundColor:
|
|
263
|
-
borderColor:
|
|
180
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
181
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
264
182
|
borderWidth: 1,
|
|
265
183
|
shadow: {
|
|
266
184
|
color: '',
|
|
@@ -272,8 +190,8 @@ const actionCard = {
|
|
|
272
190
|
translateY: 0
|
|
273
191
|
},
|
|
274
192
|
disabled: {
|
|
275
|
-
backgroundColor:
|
|
276
|
-
borderColor:
|
|
193
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
194
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
277
195
|
borderWidth: 1,
|
|
278
196
|
shadow: {
|
|
279
197
|
color: '',
|
|
@@ -285,8 +203,8 @@ const actionCard = {
|
|
|
285
203
|
translateY: 0
|
|
286
204
|
},
|
|
287
205
|
focused: {
|
|
288
|
-
backgroundColor:
|
|
289
|
-
borderColor:
|
|
206
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
207
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
290
208
|
borderWidth: 1,
|
|
291
209
|
shadow: {
|
|
292
210
|
color: '',
|
|
@@ -298,8 +216,8 @@ const actionCard = {
|
|
|
298
216
|
translateY: 0
|
|
299
217
|
},
|
|
300
218
|
pressed: {
|
|
301
|
-
backgroundColor:
|
|
302
|
-
borderColor:
|
|
219
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
220
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
303
221
|
borderWidth: 1,
|
|
304
222
|
shadow: {
|
|
305
223
|
color: '',
|
|
@@ -314,10 +232,10 @@ const actionCard = {
|
|
|
314
232
|
'primary-border-soft': {
|
|
315
233
|
default: {
|
|
316
234
|
backgroundColor: colors.uiBackgroundLight,
|
|
317
|
-
borderColor:
|
|
235
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
318
236
|
borderWidth: 1,
|
|
319
237
|
shadow: {
|
|
320
|
-
color:
|
|
238
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
321
239
|
offsetX: 0,
|
|
322
240
|
offsetY: 4,
|
|
323
241
|
opacity: 1,
|
|
@@ -326,11 +244,11 @@ const actionCard = {
|
|
|
326
244
|
translateY: 0
|
|
327
245
|
},
|
|
328
246
|
hovered: {
|
|
329
|
-
backgroundColor:
|
|
330
|
-
borderColor:
|
|
247
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
248
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
331
249
|
borderWidth: 1,
|
|
332
250
|
shadow: {
|
|
333
|
-
color:
|
|
251
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
334
252
|
offsetX: 0,
|
|
335
253
|
offsetY: 4,
|
|
336
254
|
opacity: 1,
|
|
@@ -339,8 +257,8 @@ const actionCard = {
|
|
|
339
257
|
translateY: 0
|
|
340
258
|
},
|
|
341
259
|
disabled: {
|
|
342
|
-
backgroundColor:
|
|
343
|
-
borderColor:
|
|
260
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
261
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
344
262
|
borderWidth: 1,
|
|
345
263
|
shadow: {
|
|
346
264
|
color: '',
|
|
@@ -352,11 +270,11 @@ const actionCard = {
|
|
|
352
270
|
translateY: 0
|
|
353
271
|
},
|
|
354
272
|
focused: {
|
|
355
|
-
backgroundColor:
|
|
356
|
-
borderColor:
|
|
273
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
274
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
357
275
|
borderWidth: 1,
|
|
358
276
|
shadow: {
|
|
359
|
-
color:
|
|
277
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
360
278
|
offsetX: 0,
|
|
361
279
|
offsetY: 4,
|
|
362
280
|
opacity: 1,
|
|
@@ -365,8 +283,8 @@ const actionCard = {
|
|
|
365
283
|
translateY: 0
|
|
366
284
|
},
|
|
367
285
|
pressed: {
|
|
368
|
-
backgroundColor:
|
|
369
|
-
borderColor:
|
|
286
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
287
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
370
288
|
borderWidth: 1,
|
|
371
289
|
shadow: {
|
|
372
290
|
color: '',
|
|
@@ -381,10 +299,10 @@ const actionCard = {
|
|
|
381
299
|
'primary-border-hard': {
|
|
382
300
|
default: {
|
|
383
301
|
backgroundColor: colors.uiBackgroundLight,
|
|
384
|
-
borderColor:
|
|
302
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
385
303
|
borderWidth: 1,
|
|
386
304
|
shadow: {
|
|
387
|
-
color:
|
|
305
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
388
306
|
offsetX: 0,
|
|
389
307
|
offsetY: 4,
|
|
390
308
|
opacity: 1,
|
|
@@ -393,11 +311,11 @@ const actionCard = {
|
|
|
393
311
|
translateY: 0
|
|
394
312
|
},
|
|
395
313
|
hovered: {
|
|
396
|
-
backgroundColor:
|
|
397
|
-
borderColor:
|
|
314
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
315
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
398
316
|
borderWidth: 1,
|
|
399
317
|
shadow: {
|
|
400
|
-
color:
|
|
318
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
401
319
|
offsetX: 0,
|
|
402
320
|
offsetY: 4,
|
|
403
321
|
opacity: 1,
|
|
@@ -406,8 +324,8 @@ const actionCard = {
|
|
|
406
324
|
translateY: 0
|
|
407
325
|
},
|
|
408
326
|
disabled: {
|
|
409
|
-
backgroundColor:
|
|
410
|
-
borderColor:
|
|
327
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
328
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
411
329
|
borderWidth: 1,
|
|
412
330
|
shadow: {
|
|
413
331
|
color: '',
|
|
@@ -419,11 +337,11 @@ const actionCard = {
|
|
|
419
337
|
translateY: 0
|
|
420
338
|
},
|
|
421
339
|
focused: {
|
|
422
|
-
backgroundColor:
|
|
423
|
-
borderColor:
|
|
340
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
341
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
424
342
|
borderWidth: 1,
|
|
425
343
|
shadow: {
|
|
426
|
-
color:
|
|
344
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
427
345
|
offsetX: 0,
|
|
428
346
|
offsetY: 4,
|
|
429
347
|
opacity: 1,
|
|
@@ -432,8 +350,8 @@ const actionCard = {
|
|
|
432
350
|
translateY: 0
|
|
433
351
|
},
|
|
434
352
|
pressed: {
|
|
435
|
-
backgroundColor:
|
|
436
|
-
borderColor:
|
|
353
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
354
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
437
355
|
borderWidth: 1,
|
|
438
356
|
shadow: {
|
|
439
357
|
color: '',
|
|
@@ -447,8 +365,8 @@ const actionCard = {
|
|
|
447
365
|
},
|
|
448
366
|
secondary: {
|
|
449
367
|
default: {
|
|
450
|
-
backgroundColor:
|
|
451
|
-
borderColor:
|
|
368
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
369
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
452
370
|
borderWidth: 0,
|
|
453
371
|
shadow: {
|
|
454
372
|
color: '',
|
|
@@ -460,8 +378,8 @@ const actionCard = {
|
|
|
460
378
|
translateY: 0
|
|
461
379
|
},
|
|
462
380
|
disabled: {
|
|
463
|
-
backgroundColor:
|
|
464
|
-
borderColor:
|
|
381
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
382
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
465
383
|
borderWidth: 1,
|
|
466
384
|
shadow: {
|
|
467
385
|
color: '',
|
|
@@ -473,8 +391,8 @@ const actionCard = {
|
|
|
473
391
|
translateY: 0
|
|
474
392
|
},
|
|
475
393
|
hovered: {
|
|
476
|
-
backgroundColor:
|
|
477
|
-
borderColor:
|
|
394
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
395
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
478
396
|
borderWidth: 0,
|
|
479
397
|
shadow: {
|
|
480
398
|
color: '',
|
|
@@ -486,8 +404,8 @@ const actionCard = {
|
|
|
486
404
|
translateY: 0
|
|
487
405
|
},
|
|
488
406
|
focused: {
|
|
489
|
-
backgroundColor:
|
|
490
|
-
borderColor:
|
|
407
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
408
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
491
409
|
borderWidth: 0,
|
|
492
410
|
shadow: {
|
|
493
411
|
color: '',
|
|
@@ -499,8 +417,8 @@ const actionCard = {
|
|
|
499
417
|
translateY: 0
|
|
500
418
|
},
|
|
501
419
|
pressed: {
|
|
502
|
-
backgroundColor:
|
|
503
|
-
borderColor:
|
|
420
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
421
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
504
422
|
borderWidth: 0,
|
|
505
423
|
shadow: {
|
|
506
424
|
color: '',
|
|
@@ -514,11 +432,11 @@ const actionCard = {
|
|
|
514
432
|
},
|
|
515
433
|
highlight: {
|
|
516
434
|
default: {
|
|
517
|
-
backgroundColor:
|
|
518
|
-
borderColor:
|
|
435
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
436
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
519
437
|
borderWidth: 1,
|
|
520
438
|
shadow: {
|
|
521
|
-
color:
|
|
439
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
522
440
|
offsetX: 0,
|
|
523
441
|
offsetY: 4,
|
|
524
442
|
opacity: 1,
|
|
@@ -527,8 +445,8 @@ const actionCard = {
|
|
|
527
445
|
translateY: 0
|
|
528
446
|
},
|
|
529
447
|
disabled: {
|
|
530
|
-
backgroundColor:
|
|
531
|
-
borderColor:
|
|
448
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
449
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
532
450
|
borderWidth: 1,
|
|
533
451
|
shadow: {
|
|
534
452
|
color: '',
|
|
@@ -540,11 +458,11 @@ const actionCard = {
|
|
|
540
458
|
translateY: 0
|
|
541
459
|
},
|
|
542
460
|
hovered: {
|
|
543
|
-
backgroundColor: hex2rgba(
|
|
544
|
-
borderColor:
|
|
461
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
462
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
545
463
|
borderWidth: 1,
|
|
546
464
|
shadow: {
|
|
547
|
-
color:
|
|
465
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
548
466
|
offsetX: 0,
|
|
549
467
|
offsetY: 4,
|
|
550
468
|
opacity: 1,
|
|
@@ -553,11 +471,11 @@ const actionCard = {
|
|
|
553
471
|
translateY: 0
|
|
554
472
|
},
|
|
555
473
|
focused: {
|
|
556
|
-
backgroundColor: hex2rgba(
|
|
557
|
-
borderColor:
|
|
474
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
475
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
558
476
|
borderWidth: 1,
|
|
559
477
|
shadow: {
|
|
560
|
-
color:
|
|
478
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
561
479
|
offsetX: 0,
|
|
562
480
|
offsetY: 4,
|
|
563
481
|
opacity: 1,
|
|
@@ -566,8 +484,8 @@ const actionCard = {
|
|
|
566
484
|
translateY: 0
|
|
567
485
|
},
|
|
568
486
|
pressed: {
|
|
569
|
-
backgroundColor: hex2rgba(
|
|
570
|
-
borderColor:
|
|
487
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
488
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
571
489
|
borderWidth: 1,
|
|
572
490
|
shadow: {
|
|
573
491
|
color: '',
|
|
@@ -585,42 +503,28 @@ const defaultAvatarSize = 40;
|
|
|
585
503
|
const defaultAvatarIconSize = 20;
|
|
586
504
|
const largeAvatarSize = 120;
|
|
587
505
|
const largeAvatarIconSize = 30;
|
|
588
|
-
|
|
589
|
-
// export interface AvatarThemeBackgroundColorVariant {
|
|
590
|
-
// default: string;
|
|
591
|
-
// light: string;
|
|
592
|
-
// dark: string;
|
|
593
|
-
// disabled: string;
|
|
594
|
-
// }
|
|
595
|
-
|
|
596
|
-
// export interface AvatarThemeColorVariant {
|
|
597
|
-
// default: string;
|
|
598
|
-
// light: string;
|
|
599
|
-
// disabled: string;
|
|
600
|
-
// }
|
|
601
|
-
|
|
602
506
|
const avatar = {
|
|
603
|
-
borderRadius:
|
|
507
|
+
borderRadius: 4,
|
|
604
508
|
size: defaultAvatarSize,
|
|
605
509
|
iconSize: defaultAvatarIconSize,
|
|
606
510
|
default: {
|
|
607
|
-
color:
|
|
608
|
-
backgroundColor:
|
|
511
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
512
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
609
513
|
},
|
|
610
514
|
light: {
|
|
611
|
-
color:
|
|
612
|
-
backgroundColor:
|
|
515
|
+
color: deepPurpleColorPalette['beige.6'],
|
|
516
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
613
517
|
},
|
|
614
518
|
dark: {
|
|
615
|
-
color:
|
|
616
|
-
backgroundColor:
|
|
519
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
520
|
+
backgroundColor: deepPurpleColorPalette['grey.9']
|
|
617
521
|
},
|
|
618
522
|
disabled: {
|
|
619
|
-
color:
|
|
620
|
-
backgroundColor:
|
|
523
|
+
color: deepPurpleColorPalette['grey.3'],
|
|
524
|
+
backgroundColor: deepPurpleColorPalette['grey.1']
|
|
621
525
|
},
|
|
622
526
|
large: {
|
|
623
|
-
borderRadius:
|
|
527
|
+
borderRadius: 8,
|
|
624
528
|
size: largeAvatarSize,
|
|
625
529
|
iconSize: largeAvatarIconSize
|
|
626
530
|
}
|
|
@@ -633,7 +537,7 @@ const bottomSheet = {
|
|
|
633
537
|
padding: spacing * 4
|
|
634
538
|
},
|
|
635
539
|
handle: {
|
|
636
|
-
backgroundColor:
|
|
540
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
637
541
|
}
|
|
638
542
|
};
|
|
639
543
|
|
|
@@ -701,9 +605,9 @@ const button = {
|
|
|
701
605
|
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
702
606
|
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
703
607
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
704
|
-
color:
|
|
705
|
-
hoverColor:
|
|
706
|
-
activeColor:
|
|
608
|
+
color: deepPurpleColorPalette.white,
|
|
609
|
+
hoverColor: deepPurpleColorPalette.white,
|
|
610
|
+
activeColor: deepPurpleColorPalette.white
|
|
707
611
|
}
|
|
708
612
|
},
|
|
709
613
|
primary: {
|
|
@@ -716,11 +620,11 @@ const button = {
|
|
|
716
620
|
ghost: {
|
|
717
621
|
backgroundColor: colors.uiBackgroundLight,
|
|
718
622
|
pressedBackgroundColor: colors.uiBackground,
|
|
719
|
-
hoverBackgroundColor:
|
|
623
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
720
624
|
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
721
625
|
color: colors.primary,
|
|
722
|
-
hoverColor:
|
|
723
|
-
activeColor:
|
|
626
|
+
hoverColor: deepPurpleColorPalette['beige.2'],
|
|
627
|
+
activeColor: deepPurpleColorPalette['beige.2']
|
|
724
628
|
}
|
|
725
629
|
},
|
|
726
630
|
dark: {
|
|
@@ -733,19 +637,19 @@ const button = {
|
|
|
733
637
|
},
|
|
734
638
|
danger: {
|
|
735
639
|
default: {
|
|
736
|
-
backgroundColor:
|
|
737
|
-
pressedBackgroundColor:
|
|
738
|
-
hoverBackgroundColor:
|
|
739
|
-
focusBorderColor:
|
|
640
|
+
backgroundColor: deepPurpleColorPalette['red.1'],
|
|
641
|
+
pressedBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
642
|
+
hoverBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
643
|
+
focusBorderColor: deepPurpleColorPalette['red.2']
|
|
740
644
|
},
|
|
741
645
|
ghost: {
|
|
742
646
|
backgroundColor: colors.uiBackgroundLight,
|
|
743
647
|
pressedBackgroundColor: colors.uiBackground,
|
|
744
|
-
hoverBackgroundColor:
|
|
648
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
745
649
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
746
|
-
color:
|
|
747
|
-
hoverColor:
|
|
748
|
-
activeColor:
|
|
650
|
+
color: deepPurpleColorPalette['red.6'],
|
|
651
|
+
hoverColor: deepPurpleColorPalette['red.6'],
|
|
652
|
+
activeColor: deepPurpleColorPalette['red.6']
|
|
749
653
|
}
|
|
750
654
|
},
|
|
751
655
|
subtle: {
|
|
@@ -786,14 +690,14 @@ const button = {
|
|
|
786
690
|
backgroundColor: colors.disabled,
|
|
787
691
|
pressedBackgroundColor: colors.disabled,
|
|
788
692
|
hoverBackgroundColor: colors.disabled,
|
|
789
|
-
focusBorderColor:
|
|
790
|
-
borderColor:
|
|
693
|
+
focusBorderColor: deepPurpleColorPalette['beige.2'],
|
|
694
|
+
borderColor: deepPurpleColorPalette['beige.2']
|
|
791
695
|
}
|
|
792
696
|
}
|
|
793
697
|
};
|
|
794
698
|
|
|
795
699
|
const buttonBadge = {
|
|
796
|
-
backgroundColor:
|
|
700
|
+
backgroundColor: deepPurpleColorPalette['red.6'],
|
|
797
701
|
dimensions: {
|
|
798
702
|
withBadge: {
|
|
799
703
|
width: 10,
|
|
@@ -822,7 +726,7 @@ const card = {
|
|
|
822
726
|
borderColor: colors.separator
|
|
823
727
|
},
|
|
824
728
|
subtle: {
|
|
825
|
-
backgroundColor:
|
|
729
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
826
730
|
borderColor: colors.separator
|
|
827
731
|
}
|
|
828
732
|
};
|
|
@@ -882,17 +786,17 @@ const choices = {
|
|
|
882
786
|
small: 24
|
|
883
787
|
},
|
|
884
788
|
backgroundColor: {
|
|
885
|
-
default:
|
|
789
|
+
default: deepPurpleColorPalette['beige.1'],
|
|
886
790
|
disabled: colors.disabled,
|
|
887
791
|
selected: colors.primary,
|
|
888
|
-
pressed:
|
|
889
|
-
hover:
|
|
890
|
-
hoverWhenSelected:
|
|
792
|
+
pressed: deepPurpleColorPalette['deepPurple.7'],
|
|
793
|
+
hover: deepPurpleColorPalette['beige.2'],
|
|
794
|
+
hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
|
|
891
795
|
},
|
|
892
796
|
disabled: {
|
|
893
797
|
border: {
|
|
894
798
|
width: 2,
|
|
895
|
-
color:
|
|
799
|
+
color: deepPurpleColorPalette['beige.2']
|
|
896
800
|
}
|
|
897
801
|
},
|
|
898
802
|
transition: {
|
|
@@ -957,19 +861,19 @@ const autocomplete = {
|
|
|
957
861
|
backgroundColor: colors.white
|
|
958
862
|
},
|
|
959
863
|
hovered: {
|
|
960
|
-
backgroundColor:
|
|
864
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
961
865
|
},
|
|
962
866
|
focused: {
|
|
963
|
-
backgroundColor:
|
|
867
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
964
868
|
},
|
|
965
869
|
selected: {
|
|
966
|
-
backgroundColor:
|
|
870
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
967
871
|
},
|
|
968
872
|
highlighted: {
|
|
969
|
-
backgroundColor:
|
|
873
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
970
874
|
},
|
|
971
875
|
pressed: {
|
|
972
|
-
backgroundColor:
|
|
876
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
973
877
|
}
|
|
974
878
|
},
|
|
975
879
|
optionsContainer: {
|
|
@@ -1037,37 +941,37 @@ const datePicker = {
|
|
|
1037
941
|
|
|
1038
942
|
const inputStatesStyle = {
|
|
1039
943
|
default: {
|
|
1040
|
-
backgroundColor:
|
|
1041
|
-
borderColor:
|
|
1042
|
-
color:
|
|
944
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
945
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
946
|
+
color: deepPurpleColorPalette.black
|
|
1043
947
|
},
|
|
1044
948
|
pending: {
|
|
1045
|
-
backgroundColor:
|
|
1046
|
-
borderColor:
|
|
1047
|
-
color:
|
|
949
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
950
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
951
|
+
color: deepPurpleColorPalette.black
|
|
1048
952
|
},
|
|
1049
953
|
valid: {
|
|
1050
|
-
backgroundColor:
|
|
1051
|
-
borderColor:
|
|
1052
|
-
color:
|
|
954
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
955
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
956
|
+
color: deepPurpleColorPalette.black
|
|
1053
957
|
},
|
|
1054
958
|
hover: {
|
|
1055
|
-
backgroundColor:
|
|
1056
|
-
borderColor:
|
|
1057
|
-
color:
|
|
959
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
960
|
+
borderColor: deepPurpleColorPalette['beige.4'],
|
|
961
|
+
color: deepPurpleColorPalette.black
|
|
1058
962
|
},
|
|
1059
963
|
focus: {
|
|
1060
|
-
borderColor:
|
|
1061
|
-
color:
|
|
964
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
965
|
+
color: deepPurpleColorPalette.black
|
|
1062
966
|
},
|
|
1063
967
|
disabled: {
|
|
1064
|
-
backgroundColor:
|
|
1065
|
-
borderColor:
|
|
1066
|
-
color:
|
|
968
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
969
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
970
|
+
color: deepPurpleColorPalette['grey.3']
|
|
1067
971
|
},
|
|
1068
972
|
invalid: {
|
|
1069
|
-
borderColor:
|
|
1070
|
-
color:
|
|
973
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
974
|
+
color: deepPurpleColorPalette.black
|
|
1071
975
|
}
|
|
1072
976
|
};
|
|
1073
977
|
const webAnimationDuration = '200ms';
|
|
@@ -1076,11 +980,11 @@ const webAnimationProperties = ['border-color', 'background-color'];
|
|
|
1076
980
|
const input = {
|
|
1077
981
|
minHeight: 40,
|
|
1078
982
|
color: {
|
|
1079
|
-
selection:
|
|
1080
|
-
placeholder:
|
|
983
|
+
selection: deepPurpleColorPalette['deepPurple.8'],
|
|
984
|
+
placeholder: deepPurpleColorPalette['beige.6']
|
|
1081
985
|
},
|
|
1082
986
|
borderWidth: 1,
|
|
1083
|
-
borderRadius:
|
|
987
|
+
borderRadius: 4,
|
|
1084
988
|
icon: {
|
|
1085
989
|
size: 20
|
|
1086
990
|
},
|
|
@@ -1117,7 +1021,7 @@ const inputTag = {
|
|
|
1117
1021
|
labelColor: colors.uiBackgroundLight
|
|
1118
1022
|
},
|
|
1119
1023
|
default: {
|
|
1120
|
-
backgroundColor:
|
|
1024
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1121
1025
|
labelColor: colors.black
|
|
1122
1026
|
},
|
|
1123
1027
|
borderRadius: 10,
|
|
@@ -1127,9 +1031,9 @@ const inputTag = {
|
|
|
1127
1031
|
const radio = {
|
|
1128
1032
|
size: 24,
|
|
1129
1033
|
unchecked: {
|
|
1130
|
-
borderWidth:
|
|
1034
|
+
borderWidth: 1,
|
|
1131
1035
|
backgroundColor: colors.uiBackgroundLight,
|
|
1132
|
-
borderColor:
|
|
1036
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1133
1037
|
},
|
|
1134
1038
|
checked: {
|
|
1135
1039
|
backgroundColor: colors.primary,
|
|
@@ -1146,8 +1050,9 @@ const radio = {
|
|
|
1146
1050
|
borderColor: colors.primary
|
|
1147
1051
|
},
|
|
1148
1052
|
disabled: {
|
|
1149
|
-
backgroundColor:
|
|
1150
|
-
borderColor: colors.
|
|
1053
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1054
|
+
borderColor: colors.transparent,
|
|
1055
|
+
innerBackgroundColor: deepPurpleColorPalette['grey.1']
|
|
1151
1056
|
},
|
|
1152
1057
|
transition: {
|
|
1153
1058
|
duration: '200ms',
|
|
@@ -1158,14 +1063,19 @@ const radio = {
|
|
|
1158
1063
|
const radioButtonGroup = {
|
|
1159
1064
|
item: {
|
|
1160
1065
|
minHeight: 40,
|
|
1161
|
-
borderWidth:
|
|
1162
|
-
borderRadius:
|
|
1066
|
+
borderWidth: 1,
|
|
1067
|
+
borderRadius: 4,
|
|
1068
|
+
font: {
|
|
1069
|
+
color: {
|
|
1070
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1163
1073
|
borderColor: {
|
|
1164
1074
|
default: colors.separator,
|
|
1165
1075
|
hover: colors.primary,
|
|
1166
1076
|
pressed: colors.primary,
|
|
1167
1077
|
active: colors.primary,
|
|
1168
|
-
disabled: colors.
|
|
1078
|
+
disabled: colors.disabled
|
|
1169
1079
|
},
|
|
1170
1080
|
backgroundColor: {
|
|
1171
1081
|
default: colors.uiBackgroundLight,
|
|
@@ -1206,17 +1116,17 @@ const toggle = {
|
|
|
1206
1116
|
medium: 50,
|
|
1207
1117
|
large: 66
|
|
1208
1118
|
},
|
|
1209
|
-
labelColor:
|
|
1119
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1210
1120
|
backgroundColor: {
|
|
1211
|
-
checked:
|
|
1212
|
-
unchecked:
|
|
1121
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1122
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1213
1123
|
},
|
|
1214
1124
|
border: {
|
|
1215
1125
|
color: 'transparent',
|
|
1216
1126
|
width: 1
|
|
1217
1127
|
},
|
|
1218
1128
|
circle: {
|
|
1219
|
-
backgroundColor:
|
|
1129
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1220
1130
|
width: {
|
|
1221
1131
|
medium: 18,
|
|
1222
1132
|
large: 24
|
|
@@ -1244,17 +1154,17 @@ const toggle = {
|
|
|
1244
1154
|
medium: 50,
|
|
1245
1155
|
large: 66
|
|
1246
1156
|
},
|
|
1247
|
-
labelColor:
|
|
1157
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1248
1158
|
backgroundColor: {
|
|
1249
|
-
checked:
|
|
1250
|
-
unchecked:
|
|
1159
|
+
checked: deepPurpleColorPalette['deepPurple.7'],
|
|
1160
|
+
unchecked: deepPurpleColorPalette['beige.4']
|
|
1251
1161
|
},
|
|
1252
1162
|
border: {
|
|
1253
1163
|
color: 'transparent',
|
|
1254
1164
|
width: 1
|
|
1255
1165
|
},
|
|
1256
1166
|
circle: {
|
|
1257
|
-
backgroundColor:
|
|
1167
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1258
1168
|
width: {
|
|
1259
1169
|
medium: 18,
|
|
1260
1170
|
large: 24
|
|
@@ -1282,17 +1192,17 @@ const toggle = {
|
|
|
1282
1192
|
medium: 50,
|
|
1283
1193
|
large: 66
|
|
1284
1194
|
},
|
|
1285
|
-
labelColor:
|
|
1195
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1286
1196
|
backgroundColor: {
|
|
1287
|
-
checked:
|
|
1288
|
-
unchecked:
|
|
1197
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1198
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1289
1199
|
},
|
|
1290
1200
|
border: {
|
|
1291
|
-
color:
|
|
1201
|
+
color: deepPurpleColorPalette.white,
|
|
1292
1202
|
width: 1
|
|
1293
1203
|
},
|
|
1294
1204
|
circle: {
|
|
1295
|
-
backgroundColor:
|
|
1205
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1296
1206
|
width: {
|
|
1297
1207
|
medium: 18,
|
|
1298
1208
|
large: 24
|
|
@@ -1307,7 +1217,7 @@ const toggle = {
|
|
|
1307
1217
|
}
|
|
1308
1218
|
},
|
|
1309
1219
|
wrapperBorder: {
|
|
1310
|
-
color:
|
|
1220
|
+
color: deepPurpleColorPalette.black,
|
|
1311
1221
|
width: 1
|
|
1312
1222
|
}
|
|
1313
1223
|
},
|
|
@@ -1320,17 +1230,17 @@ const toggle = {
|
|
|
1320
1230
|
medium: 50,
|
|
1321
1231
|
large: 66
|
|
1322
1232
|
},
|
|
1323
|
-
labelColor:
|
|
1233
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1324
1234
|
backgroundColor: {
|
|
1325
|
-
checked:
|
|
1326
|
-
unchecked:
|
|
1235
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1236
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1327
1237
|
},
|
|
1328
1238
|
border: {
|
|
1329
|
-
color:
|
|
1239
|
+
color: deepPurpleColorPalette.white,
|
|
1330
1240
|
width: 1
|
|
1331
1241
|
},
|
|
1332
1242
|
circle: {
|
|
1333
|
-
backgroundColor:
|
|
1243
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1334
1244
|
width: {
|
|
1335
1245
|
medium: 18,
|
|
1336
1246
|
large: 24
|
|
@@ -1345,7 +1255,7 @@ const toggle = {
|
|
|
1345
1255
|
}
|
|
1346
1256
|
},
|
|
1347
1257
|
wrapperBorder: {
|
|
1348
|
-
color:
|
|
1258
|
+
color: deepPurpleColorPalette.black,
|
|
1349
1259
|
width: 1
|
|
1350
1260
|
}
|
|
1351
1261
|
}
|
|
@@ -1360,17 +1270,17 @@ const toggle = {
|
|
|
1360
1270
|
medium: 50,
|
|
1361
1271
|
large: 66
|
|
1362
1272
|
},
|
|
1363
|
-
labelColor:
|
|
1273
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1364
1274
|
backgroundColor: {
|
|
1365
|
-
checked:
|
|
1366
|
-
unchecked:
|
|
1275
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1276
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1367
1277
|
},
|
|
1368
1278
|
border: {
|
|
1369
1279
|
color: 'transparent',
|
|
1370
1280
|
width: 1
|
|
1371
1281
|
},
|
|
1372
1282
|
circle: {
|
|
1373
|
-
backgroundColor:
|
|
1283
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1374
1284
|
width: {
|
|
1375
1285
|
medium: 18,
|
|
1376
1286
|
large: 24
|
|
@@ -1398,17 +1308,17 @@ const toggle = {
|
|
|
1398
1308
|
medium: 50,
|
|
1399
1309
|
large: 66
|
|
1400
1310
|
},
|
|
1401
|
-
labelColor:
|
|
1311
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1402
1312
|
backgroundColor: {
|
|
1403
|
-
checked:
|
|
1404
|
-
unchecked:
|
|
1313
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1314
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1405
1315
|
},
|
|
1406
1316
|
border: {
|
|
1407
1317
|
color: 'transparent',
|
|
1408
1318
|
width: 1
|
|
1409
1319
|
},
|
|
1410
1320
|
circle: {
|
|
1411
|
-
backgroundColor:
|
|
1321
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1412
1322
|
width: {
|
|
1413
1323
|
medium: 18,
|
|
1414
1324
|
large: 24
|
|
@@ -1436,17 +1346,17 @@ const toggle = {
|
|
|
1436
1346
|
medium: 50,
|
|
1437
1347
|
large: 66
|
|
1438
1348
|
},
|
|
1439
|
-
labelColor:
|
|
1349
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1440
1350
|
backgroundColor: {
|
|
1441
|
-
checked:
|
|
1442
|
-
unchecked:
|
|
1351
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1352
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1443
1353
|
},
|
|
1444
1354
|
border: {
|
|
1445
1355
|
color: 'transparent',
|
|
1446
1356
|
width: 1
|
|
1447
1357
|
},
|
|
1448
1358
|
circle: {
|
|
1449
|
-
backgroundColor:
|
|
1359
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1450
1360
|
width: {
|
|
1451
1361
|
medium: 18,
|
|
1452
1362
|
large: 24
|
|
@@ -1461,7 +1371,7 @@ const toggle = {
|
|
|
1461
1371
|
}
|
|
1462
1372
|
},
|
|
1463
1373
|
wrapperBorder: {
|
|
1464
|
-
color:
|
|
1374
|
+
color: deepPurpleColorPalette.black,
|
|
1465
1375
|
width: 1
|
|
1466
1376
|
}
|
|
1467
1377
|
},
|
|
@@ -1474,17 +1384,17 @@ const toggle = {
|
|
|
1474
1384
|
medium: 50,
|
|
1475
1385
|
large: 66
|
|
1476
1386
|
},
|
|
1477
|
-
labelColor:
|
|
1387
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1478
1388
|
backgroundColor: {
|
|
1479
|
-
checked:
|
|
1480
|
-
unchecked:
|
|
1389
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1390
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1481
1391
|
},
|
|
1482
1392
|
border: {
|
|
1483
1393
|
color: 'transparent',
|
|
1484
1394
|
width: 1
|
|
1485
1395
|
},
|
|
1486
1396
|
circle: {
|
|
1487
|
-
backgroundColor:
|
|
1397
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1488
1398
|
width: {
|
|
1489
1399
|
medium: 18,
|
|
1490
1400
|
large: 24
|
|
@@ -1499,7 +1409,7 @@ const toggle = {
|
|
|
1499
1409
|
}
|
|
1500
1410
|
},
|
|
1501
1411
|
wrapperBorder: {
|
|
1502
|
-
color:
|
|
1412
|
+
color: deepPurpleColorPalette.black,
|
|
1503
1413
|
width: 1
|
|
1504
1414
|
}
|
|
1505
1415
|
}
|
|
@@ -1516,17 +1426,17 @@ const toggle = {
|
|
|
1516
1426
|
medium: 50,
|
|
1517
1427
|
large: 66
|
|
1518
1428
|
},
|
|
1519
|
-
labelColor:
|
|
1429
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1520
1430
|
backgroundColor: {
|
|
1521
|
-
checked:
|
|
1522
|
-
unchecked:
|
|
1431
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1432
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1523
1433
|
},
|
|
1524
1434
|
border: {
|
|
1525
1435
|
color: 'transparent',
|
|
1526
1436
|
width: 1
|
|
1527
1437
|
},
|
|
1528
1438
|
circle: {
|
|
1529
|
-
backgroundColor:
|
|
1439
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1530
1440
|
width: {
|
|
1531
1441
|
medium: 18,
|
|
1532
1442
|
large: 24
|
|
@@ -1554,17 +1464,17 @@ const toggle = {
|
|
|
1554
1464
|
medium: 50,
|
|
1555
1465
|
large: 66
|
|
1556
1466
|
},
|
|
1557
|
-
labelColor:
|
|
1467
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1558
1468
|
backgroundColor: {
|
|
1559
|
-
checked:
|
|
1560
|
-
unchecked:
|
|
1469
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1470
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1561
1471
|
},
|
|
1562
1472
|
border: {
|
|
1563
1473
|
color: 'transparent',
|
|
1564
1474
|
width: 1
|
|
1565
1475
|
},
|
|
1566
1476
|
circle: {
|
|
1567
|
-
backgroundColor:
|
|
1477
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1568
1478
|
width: {
|
|
1569
1479
|
medium: 18,
|
|
1570
1480
|
large: 24
|
|
@@ -1592,17 +1502,17 @@ const toggle = {
|
|
|
1592
1502
|
medium: 50,
|
|
1593
1503
|
large: 66
|
|
1594
1504
|
},
|
|
1595
|
-
labelColor:
|
|
1505
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1596
1506
|
backgroundColor: {
|
|
1597
|
-
checked:
|
|
1598
|
-
unchecked:
|
|
1507
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1508
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1599
1509
|
},
|
|
1600
1510
|
border: {
|
|
1601
|
-
color:
|
|
1511
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1602
1512
|
width: 1
|
|
1603
1513
|
},
|
|
1604
1514
|
circle: {
|
|
1605
|
-
backgroundColor:
|
|
1515
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1606
1516
|
width: {
|
|
1607
1517
|
medium: 18,
|
|
1608
1518
|
large: 24
|
|
@@ -1617,7 +1527,7 @@ const toggle = {
|
|
|
1617
1527
|
}
|
|
1618
1528
|
},
|
|
1619
1529
|
wrapperBorder: {
|
|
1620
|
-
color:
|
|
1530
|
+
color: deepPurpleColorPalette.white,
|
|
1621
1531
|
width: 1
|
|
1622
1532
|
}
|
|
1623
1533
|
},
|
|
@@ -1630,17 +1540,17 @@ const toggle = {
|
|
|
1630
1540
|
medium: 50,
|
|
1631
1541
|
large: 66
|
|
1632
1542
|
},
|
|
1633
|
-
labelColor:
|
|
1543
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1634
1544
|
backgroundColor: {
|
|
1635
|
-
checked:
|
|
1636
|
-
unchecked:
|
|
1545
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1546
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1637
1547
|
},
|
|
1638
1548
|
border: {
|
|
1639
|
-
color:
|
|
1549
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1640
1550
|
width: 1
|
|
1641
1551
|
},
|
|
1642
1552
|
circle: {
|
|
1643
|
-
backgroundColor:
|
|
1553
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1644
1554
|
width: {
|
|
1645
1555
|
medium: 18,
|
|
1646
1556
|
large: 24
|
|
@@ -1655,7 +1565,7 @@ const toggle = {
|
|
|
1655
1565
|
}
|
|
1656
1566
|
},
|
|
1657
1567
|
wrapperBorder: {
|
|
1658
|
-
color:
|
|
1568
|
+
color: deepPurpleColorPalette.white,
|
|
1659
1569
|
width: 1
|
|
1660
1570
|
}
|
|
1661
1571
|
}
|
|
@@ -1670,17 +1580,17 @@ const toggle = {
|
|
|
1670
1580
|
medium: 50,
|
|
1671
1581
|
large: 66
|
|
1672
1582
|
},
|
|
1673
|
-
labelColor:
|
|
1583
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1674
1584
|
backgroundColor: {
|
|
1675
|
-
checked:
|
|
1676
|
-
unchecked:
|
|
1585
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1586
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1677
1587
|
},
|
|
1678
1588
|
border: {
|
|
1679
1589
|
color: 'transparent',
|
|
1680
1590
|
width: 1
|
|
1681
1591
|
},
|
|
1682
1592
|
circle: {
|
|
1683
|
-
backgroundColor:
|
|
1593
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1684
1594
|
width: {
|
|
1685
1595
|
medium: 18,
|
|
1686
1596
|
large: 24
|
|
@@ -1708,17 +1618,17 @@ const toggle = {
|
|
|
1708
1618
|
medium: 50,
|
|
1709
1619
|
large: 66
|
|
1710
1620
|
},
|
|
1711
|
-
labelColor:
|
|
1621
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1712
1622
|
backgroundColor: {
|
|
1713
|
-
checked:
|
|
1714
|
-
unchecked:
|
|
1623
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1624
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1715
1625
|
},
|
|
1716
1626
|
border: {
|
|
1717
1627
|
color: 'transparent',
|
|
1718
1628
|
width: 1
|
|
1719
1629
|
},
|
|
1720
1630
|
circle: {
|
|
1721
|
-
backgroundColor:
|
|
1631
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1722
1632
|
width: {
|
|
1723
1633
|
medium: 18,
|
|
1724
1634
|
large: 24
|
|
@@ -1746,17 +1656,17 @@ const toggle = {
|
|
|
1746
1656
|
medium: 50,
|
|
1747
1657
|
large: 66
|
|
1748
1658
|
},
|
|
1749
|
-
labelColor:
|
|
1659
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1750
1660
|
backgroundColor: {
|
|
1751
|
-
checked:
|
|
1752
|
-
unchecked:
|
|
1661
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1662
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1753
1663
|
},
|
|
1754
1664
|
border: {
|
|
1755
|
-
color:
|
|
1665
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1756
1666
|
width: 1
|
|
1757
1667
|
},
|
|
1758
1668
|
circle: {
|
|
1759
|
-
backgroundColor:
|
|
1669
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1760
1670
|
width: {
|
|
1761
1671
|
medium: 18,
|
|
1762
1672
|
large: 24
|
|
@@ -1771,7 +1681,7 @@ const toggle = {
|
|
|
1771
1681
|
}
|
|
1772
1682
|
},
|
|
1773
1683
|
wrapperBorder: {
|
|
1774
|
-
color:
|
|
1684
|
+
color: deepPurpleColorPalette.white,
|
|
1775
1685
|
width: 1
|
|
1776
1686
|
}
|
|
1777
1687
|
},
|
|
@@ -1784,17 +1694,17 @@ const toggle = {
|
|
|
1784
1694
|
medium: 50,
|
|
1785
1695
|
large: 66
|
|
1786
1696
|
},
|
|
1787
|
-
labelColor:
|
|
1697
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1788
1698
|
backgroundColor: {
|
|
1789
|
-
checked:
|
|
1790
|
-
unchecked:
|
|
1699
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1700
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1791
1701
|
},
|
|
1792
1702
|
border: {
|
|
1793
|
-
color:
|
|
1703
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1794
1704
|
width: 1
|
|
1795
1705
|
},
|
|
1796
1706
|
circle: {
|
|
1797
|
-
backgroundColor:
|
|
1707
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1798
1708
|
width: {
|
|
1799
1709
|
medium: 18,
|
|
1800
1710
|
large: 24
|
|
@@ -1809,7 +1719,7 @@ const toggle = {
|
|
|
1809
1719
|
}
|
|
1810
1720
|
},
|
|
1811
1721
|
wrapperBorder: {
|
|
1812
|
-
color:
|
|
1722
|
+
color: deepPurpleColorPalette.white,
|
|
1813
1723
|
width: 1
|
|
1814
1724
|
}
|
|
1815
1725
|
}
|
|
@@ -1871,50 +1781,50 @@ const highlight = {
|
|
|
1871
1781
|
},
|
|
1872
1782
|
primary: {
|
|
1873
1783
|
default: {
|
|
1874
|
-
backgroundColor:
|
|
1784
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1875
1785
|
},
|
|
1876
1786
|
hover: {
|
|
1877
|
-
backgroundColor:
|
|
1787
|
+
backgroundColor: deepPurpleColorPalette['beige.4']
|
|
1878
1788
|
}
|
|
1879
1789
|
},
|
|
1880
1790
|
secondary: {
|
|
1881
1791
|
default: {
|
|
1882
|
-
backgroundColor:
|
|
1792
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1883
1793
|
},
|
|
1884
1794
|
hover: {
|
|
1885
|
-
backgroundColor:
|
|
1795
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
1886
1796
|
}
|
|
1887
1797
|
},
|
|
1888
1798
|
ghost: {
|
|
1889
1799
|
default: {
|
|
1890
|
-
backgroundColor:
|
|
1800
|
+
backgroundColor: deepPurpleColorPalette.white
|
|
1891
1801
|
},
|
|
1892
1802
|
hover: {
|
|
1893
|
-
backgroundColor:
|
|
1803
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1894
1804
|
}
|
|
1895
1805
|
},
|
|
1896
1806
|
dark: {
|
|
1897
1807
|
default: {
|
|
1898
|
-
backgroundColor:
|
|
1808
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1899
1809
|
},
|
|
1900
1810
|
hover: {
|
|
1901
|
-
backgroundColor:
|
|
1811
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1902
1812
|
}
|
|
1903
1813
|
},
|
|
1904
1814
|
success: {
|
|
1905
1815
|
default: {
|
|
1906
|
-
backgroundColor:
|
|
1816
|
+
backgroundColor: deepPurpleColorPalette['green.1']
|
|
1907
1817
|
},
|
|
1908
1818
|
hover: {
|
|
1909
|
-
backgroundColor:
|
|
1819
|
+
backgroundColor: deepPurpleColorPalette['green.2']
|
|
1910
1820
|
}
|
|
1911
1821
|
},
|
|
1912
1822
|
warning: {
|
|
1913
1823
|
default: {
|
|
1914
|
-
backgroundColor:
|
|
1824
|
+
backgroundColor: deepPurpleColorPalette['yellow.1']
|
|
1915
1825
|
},
|
|
1916
1826
|
hover: {
|
|
1917
|
-
backgroundColor:
|
|
1827
|
+
backgroundColor: deepPurpleColorPalette['yellow.2']
|
|
1918
1828
|
}
|
|
1919
1829
|
},
|
|
1920
1830
|
padding: {
|
|
@@ -1954,14 +1864,6 @@ const icon = {
|
|
|
1954
1864
|
header4: createTypographyIconSizeConfig(18, 24),
|
|
1955
1865
|
// also known as xxsmall
|
|
1956
1866
|
header5: createTypographyIconSizeConfig(18, 18),
|
|
1957
|
-
'header-impact-xxl': createTypographyIconSizeConfig(56, 56),
|
|
1958
|
-
'header-impact-xl': createTypographyIconSizeConfig(48, 48),
|
|
1959
|
-
'header-impact-l': createTypographyIconSizeConfig(40, 40),
|
|
1960
|
-
'header-impact-m': createTypographyIconSizeConfig(32, 32),
|
|
1961
|
-
'header-impact-s': createTypographyIconSizeConfig(24, 24),
|
|
1962
|
-
'header-impact-xs': createTypographyIconSizeConfig(18, 18),
|
|
1963
|
-
'header-impact-xxs': createTypographyIconSizeConfig(16, 16),
|
|
1964
|
-
'header-impact-xxxs': createTypographyIconSizeConfig(14, 14),
|
|
1965
1867
|
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1966
1868
|
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1967
1869
|
body: createTypographyIconSizeConfig(16, 16),
|
|
@@ -2006,7 +1908,7 @@ const iconButton = {
|
|
|
2006
1908
|
pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
|
|
2007
1909
|
},
|
|
2008
1910
|
primary: {
|
|
2009
|
-
pressedBackgroundColor:
|
|
1911
|
+
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
2010
1912
|
},
|
|
2011
1913
|
'primary-plain': {
|
|
2012
1914
|
pressedBackgroundColor: colors.primaryLight,
|
|
@@ -2081,149 +1983,198 @@ const pageLoader = {
|
|
|
2081
1983
|
}
|
|
2082
1984
|
};
|
|
2083
1985
|
|
|
2084
|
-
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
2085
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
2086
|
-
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
2087
|
-
baseAndSmall: {
|
|
2088
|
-
fontSize: baseAndSmallFontSize,
|
|
2089
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
2090
|
-
},
|
|
2091
|
-
mediumAndWide: {
|
|
2092
|
-
fontSize: mediumAndWideFontSize,
|
|
2093
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
2094
|
-
}
|
|
2095
|
-
});
|
|
2096
|
-
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
2097
|
-
const config = {
|
|
2098
|
-
fontSize,
|
|
2099
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
2100
|
-
};
|
|
2101
|
-
return {
|
|
2102
|
-
baseAndSmall: config,
|
|
2103
|
-
mediumAndWide: config
|
|
2104
|
-
};
|
|
2105
|
-
};
|
|
2106
1986
|
const typography = {
|
|
2107
1987
|
colors: {
|
|
2108
1988
|
black: colors.black,
|
|
2109
1989
|
'black-anthracite': colors.blackAnthracite,
|
|
2110
|
-
'black-disabled':
|
|
2111
|
-
'black-light':
|
|
1990
|
+
'black-disabled': deepPurpleColorPalette['grey.3'],
|
|
1991
|
+
'black-light': deepPurpleColorPalette['grey.5'],
|
|
2112
1992
|
white: colors.white,
|
|
2113
1993
|
'white-light': colors.white,
|
|
2114
1994
|
primary: colors.primary,
|
|
2115
1995
|
'primary-light': colors.primaryLight,
|
|
2116
1996
|
accent: colors.accent,
|
|
2117
1997
|
success: colors.success,
|
|
2118
|
-
danger:
|
|
1998
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
2119
1999
|
warning: colors.warning
|
|
2120
2000
|
},
|
|
2121
2001
|
types: {
|
|
2122
2002
|
headings: {
|
|
2123
2003
|
fontFamily: {
|
|
2124
2004
|
native: {
|
|
2125
|
-
regular: '
|
|
2126
|
-
|
|
2005
|
+
regular: 'GTStandardRegular',
|
|
2006
|
+
semibold: 'GTStandardSemibold',
|
|
2007
|
+
bold: 'GTStandardBold'
|
|
2127
2008
|
},
|
|
2128
2009
|
web: {
|
|
2129
|
-
regular: '
|
|
2130
|
-
|
|
2010
|
+
regular: 'GTStandard',
|
|
2011
|
+
semibold: 'GTStandard',
|
|
2012
|
+
bold: 'GTStandard'
|
|
2131
2013
|
}
|
|
2132
2014
|
},
|
|
2133
2015
|
fontWeight: {
|
|
2134
|
-
regular:
|
|
2016
|
+
regular: 500,
|
|
2017
|
+
semibold: 600,
|
|
2135
2018
|
bold: 700
|
|
2136
2019
|
},
|
|
2137
2020
|
fontStyle: 'normal',
|
|
2138
2021
|
configs: {
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
'heading-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2022
|
+
'heading-xxl': {
|
|
2023
|
+
fontSize: 56,
|
|
2024
|
+
lineHeight: 64,
|
|
2025
|
+
allowedFontWeights: ['semibold']
|
|
2026
|
+
},
|
|
2027
|
+
'heading-xl': {
|
|
2028
|
+
fontSize: 48,
|
|
2029
|
+
lineHeight: 56,
|
|
2030
|
+
allowedFontWeights: ['semibold']
|
|
2031
|
+
},
|
|
2032
|
+
'heading-l': {
|
|
2033
|
+
fontSize: 40,
|
|
2034
|
+
lineHeight: 48,
|
|
2035
|
+
allowedFontWeights: ['semibold']
|
|
2036
|
+
},
|
|
2037
|
+
'heading-m': {
|
|
2038
|
+
fontSize: 28,
|
|
2039
|
+
lineHeight: 32,
|
|
2040
|
+
allowedFontWeights: ['semibold']
|
|
2041
|
+
},
|
|
2042
|
+
'heading-s': {
|
|
2043
|
+
fontSize: 18,
|
|
2044
|
+
lineHeight: 20,
|
|
2045
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2046
|
+
},
|
|
2047
|
+
'heading-xs': {
|
|
2048
|
+
fontSize: 16,
|
|
2049
|
+
lineHeight: 18,
|
|
2050
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2051
|
+
}
|
|
2153
2052
|
}
|
|
2154
2053
|
},
|
|
2155
|
-
|
|
2054
|
+
bodies: {
|
|
2156
2055
|
fontFamily: {
|
|
2157
2056
|
native: {
|
|
2158
|
-
regular: '
|
|
2159
|
-
bold: '
|
|
2057
|
+
regular: 'GTStandardRegular',
|
|
2058
|
+
bold: 'GTStandardBold'
|
|
2160
2059
|
},
|
|
2161
2060
|
web: {
|
|
2162
|
-
regular: '
|
|
2163
|
-
bold: '
|
|
2061
|
+
regular: 'GTStandard',
|
|
2062
|
+
bold: 'GTStandard'
|
|
2164
2063
|
}
|
|
2165
2064
|
},
|
|
2166
|
-
fontWeight:
|
|
2167
|
-
|
|
2065
|
+
fontWeight: {
|
|
2066
|
+
regular: 500,
|
|
2067
|
+
bold: 700
|
|
2068
|
+
},
|
|
2069
|
+
fontStyle: {
|
|
2070
|
+
regular: 'normal',
|
|
2071
|
+
bold: 'normal'
|
|
2072
|
+
},
|
|
2168
2073
|
configs: {
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
'
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
'
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
'
|
|
2185
|
-
|
|
2186
|
-
|
|
2074
|
+
'body-xl': {
|
|
2075
|
+
fontSize: 24,
|
|
2076
|
+
lineHeight: 32,
|
|
2077
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2078
|
+
},
|
|
2079
|
+
'body-l': {
|
|
2080
|
+
fontSize: 18,
|
|
2081
|
+
lineHeight: 26,
|
|
2082
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2083
|
+
},
|
|
2084
|
+
'body-m': {
|
|
2085
|
+
fontSize: 16,
|
|
2086
|
+
lineHeight: 24,
|
|
2087
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2088
|
+
},
|
|
2089
|
+
'body-s': {
|
|
2090
|
+
fontSize: 14,
|
|
2091
|
+
lineHeight: 20,
|
|
2092
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2093
|
+
},
|
|
2094
|
+
'body-xs': {
|
|
2095
|
+
fontSize: 12,
|
|
2096
|
+
lineHeight: 16,
|
|
2097
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2098
|
+
}
|
|
2187
2099
|
}
|
|
2188
2100
|
},
|
|
2189
|
-
|
|
2101
|
+
labels: {
|
|
2190
2102
|
fontFamily: {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
bold: 'Moderat'
|
|
2103
|
+
native: {
|
|
2104
|
+
semibold: 'GTStandardSemibold'
|
|
2194
2105
|
},
|
|
2106
|
+
web: {
|
|
2107
|
+
semibold: 'GTStandard'
|
|
2108
|
+
}
|
|
2109
|
+
},
|
|
2110
|
+
fontWeight: {
|
|
2111
|
+
semibold: 600
|
|
2112
|
+
},
|
|
2113
|
+
fontStyle: 'normal',
|
|
2114
|
+
configs: {
|
|
2115
|
+
'label-large': {
|
|
2116
|
+
fontSize: 16,
|
|
2117
|
+
lineHeight: 24,
|
|
2118
|
+
allowedFontWeights: ['semibold']
|
|
2119
|
+
},
|
|
2120
|
+
'label-medium': {
|
|
2121
|
+
fontSize: 14,
|
|
2122
|
+
lineHeight: 20,
|
|
2123
|
+
allowedFontWeights: ['semibold']
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
contentCaps: {
|
|
2128
|
+
fontFamily: {
|
|
2195
2129
|
native: {
|
|
2196
|
-
|
|
2197
|
-
|
|
2130
|
+
bold: 'GTStandardNarrowBold'
|
|
2131
|
+
},
|
|
2132
|
+
web: {
|
|
2133
|
+
bold: 'GTStandardNarrow'
|
|
2198
2134
|
}
|
|
2199
2135
|
},
|
|
2200
2136
|
fontWeight: {
|
|
2201
|
-
regular: 400,
|
|
2202
2137
|
bold: 700
|
|
2203
2138
|
},
|
|
2204
|
-
fontStyle:
|
|
2205
|
-
regular: 'normal',
|
|
2206
|
-
bold: 'normal'
|
|
2207
|
-
},
|
|
2139
|
+
fontStyle: 'normal',
|
|
2208
2140
|
configs: {
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
'
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
'
|
|
2220
|
-
|
|
2141
|
+
'content-caps-xxxl': {
|
|
2142
|
+
fontSize: 40,
|
|
2143
|
+
lineHeight: 40,
|
|
2144
|
+
allowedFontWeights: ['bold']
|
|
2145
|
+
},
|
|
2146
|
+
'content-caps-xxl': {
|
|
2147
|
+
fontSize: 32,
|
|
2148
|
+
lineHeight: 40,
|
|
2149
|
+
allowedFontWeights: ['bold']
|
|
2150
|
+
},
|
|
2151
|
+
'content-caps-xl': {
|
|
2152
|
+
fontSize: 24,
|
|
2153
|
+
lineHeight: 28,
|
|
2154
|
+
allowedFontWeights: ['bold']
|
|
2155
|
+
},
|
|
2156
|
+
'content-caps-l': {
|
|
2157
|
+
fontSize: 18,
|
|
2158
|
+
lineHeight: 20,
|
|
2159
|
+
allowedFontWeights: ['bold']
|
|
2160
|
+
},
|
|
2161
|
+
'content-caps-m': {
|
|
2162
|
+
fontSize: 16,
|
|
2163
|
+
lineHeight: 18,
|
|
2164
|
+
allowedFontWeights: ['bold']
|
|
2165
|
+
},
|
|
2166
|
+
'content-caps-s': {
|
|
2167
|
+
fontSize: 14,
|
|
2168
|
+
lineHeight: 16,
|
|
2169
|
+
allowedFontWeights: ['bold']
|
|
2170
|
+
},
|
|
2171
|
+
'content-caps-xs': {
|
|
2172
|
+
fontSize: 12,
|
|
2173
|
+
lineHeight: 14,
|
|
2174
|
+
allowedFontWeights: ['bold']
|
|
2175
|
+
}
|
|
2221
2176
|
}
|
|
2222
2177
|
}
|
|
2223
|
-
},
|
|
2224
|
-
link: {
|
|
2225
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
2226
|
-
disabledColor: colors.blackDisabled
|
|
2227
2178
|
}
|
|
2228
2179
|
};
|
|
2229
2180
|
|
|
@@ -2232,7 +2183,7 @@ const picker = {
|
|
|
2232
2183
|
ios: {
|
|
2233
2184
|
default: {
|
|
2234
2185
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
2235
|
-
...typography.types.bodies.configs
|
|
2186
|
+
...typography.types.bodies.configs['body-m'],
|
|
2236
2187
|
fontSize: 16,
|
|
2237
2188
|
color: typography.colors['black-light'],
|
|
2238
2189
|
// 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)
|
|
@@ -2265,19 +2216,19 @@ const picker = {
|
|
|
2265
2216
|
backgroundColor: colors.transparent
|
|
2266
2217
|
},
|
|
2267
2218
|
hovered: {
|
|
2268
|
-
backgroundColor:
|
|
2219
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2269
2220
|
},
|
|
2270
2221
|
focused: {
|
|
2271
|
-
backgroundColor:
|
|
2222
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2272
2223
|
},
|
|
2273
2224
|
selected: {
|
|
2274
|
-
backgroundColor:
|
|
2225
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2275
2226
|
},
|
|
2276
2227
|
highlighted: {
|
|
2277
|
-
backgroundColor:
|
|
2228
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2278
2229
|
},
|
|
2279
2230
|
pressed: {
|
|
2280
|
-
backgroundColor:
|
|
2231
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
2281
2232
|
}
|
|
2282
2233
|
}
|
|
2283
2234
|
},
|
|
@@ -2361,8 +2312,8 @@ const shadows = {
|
|
|
2361
2312
|
}
|
|
2362
2313
|
};
|
|
2363
2314
|
|
|
2364
|
-
const skeletonBackgroundColor =
|
|
2365
|
-
const skeletonFlareColor =
|
|
2315
|
+
const skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
|
|
2316
|
+
const skeletonFlareColor = deepPurpleColorPalette['beige.3'];
|
|
2366
2317
|
const skeleton$1 = {
|
|
2367
2318
|
backgroundColor: skeletonBackgroundColor,
|
|
2368
2319
|
flareColor: skeletonFlareColor,
|
|
@@ -2385,20 +2336,6 @@ const skeleton$1 = {
|
|
|
2385
2336
|
|
|
2386
2337
|
const tag = {
|
|
2387
2338
|
borderRadius: 16,
|
|
2388
|
-
variant: {
|
|
2389
|
-
contrast: {
|
|
2390
|
-
borderWidth: 0
|
|
2391
|
-
},
|
|
2392
|
-
fill: {
|
|
2393
|
-
borderWidth: 0
|
|
2394
|
-
},
|
|
2395
|
-
outline: {
|
|
2396
|
-
borderWidth: 1
|
|
2397
|
-
},
|
|
2398
|
-
subtle: {
|
|
2399
|
-
borderWidth: 0
|
|
2400
|
-
}
|
|
2401
|
-
},
|
|
2402
2339
|
icon: {
|
|
2403
2340
|
small: 16,
|
|
2404
2341
|
medium: 16,
|
|
@@ -2474,14 +2411,14 @@ const verticalSteps = {
|
|
|
2474
2411
|
},
|
|
2475
2412
|
done: {
|
|
2476
2413
|
icon: {
|
|
2477
|
-
backgroundColor:
|
|
2478
|
-
textColor: colors.
|
|
2414
|
+
backgroundColor: colors.primary,
|
|
2415
|
+
textColor: colors.white
|
|
2479
2416
|
}
|
|
2480
2417
|
},
|
|
2481
2418
|
default: {
|
|
2482
2419
|
icon: {
|
|
2483
2420
|
backgroundColor: colors.disabled,
|
|
2484
|
-
textColor:
|
|
2421
|
+
textColor: deepPurpleColorPalette['grey.3']
|
|
2485
2422
|
}
|
|
2486
2423
|
}
|
|
2487
2424
|
};
|
|
@@ -2515,7 +2452,7 @@ const theme = {
|
|
|
2515
2452
|
getSpacing: multiplier => spacing * multiplier,
|
|
2516
2453
|
colors,
|
|
2517
2454
|
palettes: {
|
|
2518
|
-
|
|
2455
|
+
deepPurple: deepPurpleColorPalette
|
|
2519
2456
|
},
|
|
2520
2457
|
avatar,
|
|
2521
2458
|
breakpoints,
|
|
@@ -2976,11 +2913,13 @@ function getTypographyColorValue(colorName) {
|
|
|
2976
2913
|
return colorName;
|
|
2977
2914
|
}
|
|
2978
2915
|
|
|
2979
|
-
const isTypeHeadings = type => type.startsWith('
|
|
2980
|
-
const
|
|
2916
|
+
const isTypeHeadings = type => type.startsWith('heading');
|
|
2917
|
+
const isTypeLabels = type => type.startsWith('label');
|
|
2918
|
+
const isTypeContentCaps = type => type.startsWith('content-caps');
|
|
2981
2919
|
const getTypographyFamily = type => {
|
|
2982
|
-
if (isTypeHeadingsImpact(type)) return 'headings-impact';
|
|
2983
2920
|
if (isTypeHeadings(type)) return 'headings';
|
|
2921
|
+
if (isTypeLabels(type)) return 'labels';
|
|
2922
|
+
if (isTypeContentCaps(type)) return 'contentCaps';
|
|
2984
2923
|
return 'bodies';
|
|
2985
2924
|
};
|
|
2986
2925
|
const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) => {
|
|
@@ -3002,9 +2941,6 @@ const TypographyDefaultColorContext = /*#__PURE__*/react.createContext(undefined
|
|
|
3002
2941
|
function useTypographyDefaultColor() {
|
|
3003
2942
|
return react.useContext(TypographyDefaultColorContext);
|
|
3004
2943
|
}
|
|
3005
|
-
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
3006
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
3007
|
-
}
|
|
3008
2944
|
|
|
3009
2945
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
3010
2946
|
// & {
|
|
@@ -3021,11 +2957,88 @@ function createNativeBaseFontSize(type) {
|
|
|
3021
2957
|
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
3022
2958
|
const value = typeWithMediumForced[typeName];
|
|
3023
2959
|
if (value) {
|
|
3024
|
-
fontSizeForNativeBase[typeName] =
|
|
2960
|
+
fontSizeForNativeBase[typeName] = value;
|
|
3025
2961
|
}
|
|
3026
2962
|
});
|
|
3027
2963
|
return fontSizeForNativeBase;
|
|
3028
2964
|
}
|
|
2965
|
+
function ThrowErrorIfInvalidVariant(variant, value, fontWeight) {
|
|
2966
|
+
if (process.env.NODE_ENV !== 'production' && variant && variant !== fontWeight) {
|
|
2967
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}" only "${fontWeight}" is allowed.`);
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
function getTypographyWeights(typographyFamily) {
|
|
2971
|
+
const boldTypoTypes = new Set();
|
|
2972
|
+
const semiboldTypoTypes = new Set();
|
|
2973
|
+
const regularTypoTypes = new Set();
|
|
2974
|
+
const typographyConfig = typography.types[typographyFamily].configs;
|
|
2975
|
+
Object.keys(typographyConfig).forEach(typographyType => {
|
|
2976
|
+
const {
|
|
2977
|
+
allowedFontWeights
|
|
2978
|
+
} = typographyConfig[typographyType];
|
|
2979
|
+
if (allowedFontWeights.includes('bold')) {
|
|
2980
|
+
boldTypoTypes.add(typographyType);
|
|
2981
|
+
}
|
|
2982
|
+
if (allowedFontWeights.includes('semibold')) {
|
|
2983
|
+
semiboldTypoTypes.add(typographyType);
|
|
2984
|
+
}
|
|
2985
|
+
if (allowedFontWeights.includes('regular')) {
|
|
2986
|
+
regularTypoTypes.add(typographyType);
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
return {
|
|
2990
|
+
boldTypoTypes,
|
|
2991
|
+
semiboldTypoTypes,
|
|
2992
|
+
regularTypoTypes
|
|
2993
|
+
};
|
|
2994
|
+
}
|
|
2995
|
+
function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
2996
|
+
const {
|
|
2997
|
+
boldTypoTypes,
|
|
2998
|
+
semiboldTypoTypes,
|
|
2999
|
+
regularTypoTypes
|
|
3000
|
+
} = getTypographyWeights(typographyFamily || 'bodies');
|
|
3001
|
+
const webFontWeight = {};
|
|
3002
|
+
const nativeFontFamily = {};
|
|
3003
|
+
const breakpoints = [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE];
|
|
3004
|
+
breakpoints.forEach(typeName => {
|
|
3005
|
+
const value = type[typeName];
|
|
3006
|
+
if (!value) return;
|
|
3007
|
+
const inBold = boldTypoTypes.has(value);
|
|
3008
|
+
const inSemi = semiboldTypoTypes.has(value);
|
|
3009
|
+
const inRegular = regularTypoTypes.has(value);
|
|
3010
|
+
const presenceCount = [inBold, inSemi, inRegular].filter(Boolean).length;
|
|
3011
|
+
let resolvedVariant;
|
|
3012
|
+
if (presenceCount > 1) {
|
|
3013
|
+
// if present in multiple weight
|
|
3014
|
+
|
|
3015
|
+
if (process.env.NODE_ENV !== 'production' && variant && !(variant === 'bold' && inBold || variant === 'semibold' && inSemi || variant === 'regular' && inRegular)) {
|
|
3016
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}". Only ${inBold ? '"bold"' : ' '}${inSemi ? '"semibold"' : ' '}${inRegular ? '"regular"' : ' '}" is allowed.`);
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
// always fallback on regular if no variant specified
|
|
3020
|
+
resolvedVariant = variant || 'regular';
|
|
3021
|
+
} else if (inBold) {
|
|
3022
|
+
// bold
|
|
3023
|
+
ThrowErrorIfInvalidVariant(variant, value, 'bold');
|
|
3024
|
+
resolvedVariant = 'bold';
|
|
3025
|
+
} else if (inSemi) {
|
|
3026
|
+
// semibold
|
|
3027
|
+
ThrowErrorIfInvalidVariant(variant, value, 'semibold');
|
|
3028
|
+
resolvedVariant = 'semibold';
|
|
3029
|
+
} else {
|
|
3030
|
+
// regular
|
|
3031
|
+
ThrowErrorIfInvalidVariant(variant, value, 'regular');
|
|
3032
|
+
resolvedVariant = 'regular';
|
|
3033
|
+
}
|
|
3034
|
+
webFontWeight[typeName] = resolvedVariant;
|
|
3035
|
+
nativeFontFamily[typeName] = `${typographyFamily}.${resolvedVariant}`;
|
|
3036
|
+
});
|
|
3037
|
+
return {
|
|
3038
|
+
webFontWeight,
|
|
3039
|
+
nativeFontFamily
|
|
3040
|
+
};
|
|
3041
|
+
}
|
|
3029
3042
|
function Typography({
|
|
3030
3043
|
accessibilityRole,
|
|
3031
3044
|
base: legacyBase,
|
|
@@ -3042,21 +3055,26 @@ function Typography({
|
|
|
3042
3055
|
},
|
|
3043
3056
|
variant,
|
|
3044
3057
|
color,
|
|
3058
|
+
underline,
|
|
3045
3059
|
...otherProps
|
|
3046
3060
|
}) {
|
|
3047
3061
|
const sx = nativeBase.useSx();
|
|
3048
3062
|
const typographyFamilyInContext = react.useContext(TypographyFamilyContext);
|
|
3049
3063
|
const defaultColor = useTypographyDefaultColor();
|
|
3050
3064
|
const hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3051
|
-
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body';
|
|
3065
|
+
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body-m';
|
|
3052
3066
|
const typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3053
|
-
|
|
3054
|
-
// force bold for headings, default to regular for bodies
|
|
3055
|
-
const nonNullableVariant = variant ?? (typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular');
|
|
3056
3067
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
3057
3068
|
...type,
|
|
3058
3069
|
base: baseOrDefaultToBody
|
|
3059
3070
|
});
|
|
3071
|
+
const {
|
|
3072
|
+
webFontWeight,
|
|
3073
|
+
nativeFontFamily
|
|
3074
|
+
} = getUniversalFontWeight({
|
|
3075
|
+
...type,
|
|
3076
|
+
base: baseOrDefaultToBody
|
|
3077
|
+
}, variant, typographyFamily);
|
|
3060
3078
|
const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
3061
3079
|
const currentColorValue = getTypographyColorValue(currentColor);
|
|
3062
3080
|
const colorStyles = sx({
|
|
@@ -3074,10 +3092,17 @@ function Typography({
|
|
|
3074
3092
|
accessibilityRole: accessibilityRole || undefined,
|
|
3075
3093
|
fontSize: fontSizeForNativeBase,
|
|
3076
3094
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
3077
|
-
fontWeight:
|
|
3078
|
-
fontFamily:
|
|
3095
|
+
fontWeight: webFontWeight,
|
|
3096
|
+
fontFamily: nativeFontFamily,
|
|
3097
|
+
borderBottomWidth: underline ? 1 : undefined,
|
|
3098
|
+
borderBottomColor: underline ? currentColorValue : undefined,
|
|
3099
|
+
textTransform: typographyFamily === 'contentCaps' ? 'uppercase' : undefined,
|
|
3079
3100
|
...colorStyles,
|
|
3080
|
-
...otherProps
|
|
3101
|
+
...otherProps,
|
|
3102
|
+
// The property text-underline-offset is not on native.
|
|
3103
|
+
// To add an underline with an offset, we use a custom borderBottomWidth and color.
|
|
3104
|
+
// and we set underline to undefined to avoid a double underline
|
|
3105
|
+
underline: undefined
|
|
3081
3106
|
});
|
|
3082
3107
|
const content = baseOrDefaultToBody ? /*#__PURE__*/jsxRuntime.jsx(TypographyFamilyContext.Provider, {
|
|
3083
3108
|
value: typographyFamily,
|
|
@@ -3127,17 +3152,6 @@ Typography.Header4 = createHeading(4);
|
|
|
3127
3152
|
Typography.Header5 = createHeading(5);
|
|
3128
3153
|
Typography.Header6 = createHeading(6);
|
|
3129
3154
|
|
|
3130
|
-
/** @deprecated use Typography.Header1 */
|
|
3131
|
-
Typography.h1 = createHeading(1, 'header1');
|
|
3132
|
-
/** @deprecated use Typography.Header2 */
|
|
3133
|
-
Typography.h2 = createHeading(2, 'header2');
|
|
3134
|
-
/** @deprecated use Typography.Header3 */
|
|
3135
|
-
Typography.h3 = createHeading(3, 'header3');
|
|
3136
|
-
/** @deprecated use Typography.Header4 */
|
|
3137
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
3138
|
-
/** @deprecated use Typography.Header6 */
|
|
3139
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
3140
|
-
|
|
3141
3155
|
function ButtonBadge({
|
|
3142
3156
|
withBadge,
|
|
3143
3157
|
badgeCount
|
|
@@ -3335,7 +3349,7 @@ function ButtonContentChildren({
|
|
|
3335
3349
|
textAlign: "center",
|
|
3336
3350
|
_android: sharedNativeStyle,
|
|
3337
3351
|
_ios: sharedNativeStyle,
|
|
3338
|
-
base: "body",
|
|
3352
|
+
base: "body-m",
|
|
3339
3353
|
variant: "bold",
|
|
3340
3354
|
color: color,
|
|
3341
3355
|
children: children
|
|
@@ -3793,7 +3807,7 @@ function AvatarContent({
|
|
|
3793
3807
|
};
|
|
3794
3808
|
if (firstname && lastname) {
|
|
3795
3809
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
3796
|
-
base: sizeVariant === 'large' ? 'body-
|
|
3810
|
+
base: sizeVariant === 'large' ? 'body-l' : 'body-s',
|
|
3797
3811
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3798
3812
|
color: getFontColor(),
|
|
3799
3813
|
children: getInitials(firstname, lastname)
|
|
@@ -4851,7 +4865,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
4851
4865
|
}, ref) => {
|
|
4852
4866
|
const theme = useTheme();
|
|
4853
4867
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
4854
|
-
base: 'body'
|
|
4868
|
+
base: 'body-m'
|
|
4855
4869
|
});
|
|
4856
4870
|
return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
4857
4871
|
children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
|
|
@@ -6259,7 +6273,7 @@ function InputFeedback({
|
|
|
6259
6273
|
children
|
|
6260
6274
|
}) {
|
|
6261
6275
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6262
|
-
base: "body-
|
|
6276
|
+
base: "body-s",
|
|
6263
6277
|
color: getColorFromState(state),
|
|
6264
6278
|
testID: testID,
|
|
6265
6279
|
children: children
|
|
@@ -6420,7 +6434,7 @@ function InputTag({
|
|
|
6420
6434
|
color: "black"
|
|
6421
6435
|
})
|
|
6422
6436
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6423
|
-
base: "body-
|
|
6437
|
+
base: "body-s",
|
|
6424
6438
|
color: "black",
|
|
6425
6439
|
children: children
|
|
6426
6440
|
})]
|
|
@@ -6433,7 +6447,7 @@ function Label({
|
|
|
6433
6447
|
children
|
|
6434
6448
|
}) {
|
|
6435
6449
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6436
|
-
base: "body",
|
|
6450
|
+
base: "body-m",
|
|
6437
6451
|
id: undefined,
|
|
6438
6452
|
children: /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
6439
6453
|
id: id,
|
|
@@ -6444,7 +6458,8 @@ function Label({
|
|
|
6444
6458
|
}
|
|
6445
6459
|
|
|
6446
6460
|
function InnerCircle({
|
|
6447
|
-
isChecked
|
|
6461
|
+
isChecked,
|
|
6462
|
+
isDisabled
|
|
6448
6463
|
}) {
|
|
6449
6464
|
const theme = useTheme();
|
|
6450
6465
|
const sharedTransform = [{
|
|
@@ -6454,7 +6469,7 @@ function InnerCircle({
|
|
|
6454
6469
|
width: "kitt.forms.radio.innerCircle.size",
|
|
6455
6470
|
height: "kitt.forms.radio.innerCircle.size",
|
|
6456
6471
|
borderRadius: "kitt.forms.radio.innerCircle.borderRadius",
|
|
6457
|
-
backgroundColor:
|
|
6472
|
+
backgroundColor: isDisabled ? 'kitt.forms.radio.disabled.innerBackgroundColor' : 'kitt.forms.radio.innerCircle.backgroundColor',
|
|
6458
6473
|
_web: {
|
|
6459
6474
|
style: {
|
|
6460
6475
|
transform: `scale(${isChecked ? 1 : 0}))`,
|
|
@@ -6589,12 +6604,13 @@ function Radio({
|
|
|
6589
6604
|
isFocused: isFocused,
|
|
6590
6605
|
isPressed: isPressed,
|
|
6591
6606
|
children: /*#__PURE__*/jsxRuntime.jsx(InnerCircle, {
|
|
6592
|
-
isChecked: checked
|
|
6607
|
+
isChecked: checked,
|
|
6608
|
+
isDisabled: disabled
|
|
6593
6609
|
})
|
|
6594
6610
|
}), children ? /*#__PURE__*/jsxRuntime.jsx(Typography.SetDefaultColor, {
|
|
6595
6611
|
value: disabled ? 'black-light' : 'black',
|
|
6596
6612
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6597
|
-
base: "body",
|
|
6613
|
+
base: "body-m",
|
|
6598
6614
|
children: children
|
|
6599
6615
|
})
|
|
6600
6616
|
}) : null]
|
|
@@ -6719,7 +6735,7 @@ function getCurrentTextColor({
|
|
|
6719
6735
|
isHovered,
|
|
6720
6736
|
isFocused
|
|
6721
6737
|
}) {
|
|
6722
|
-
if (isDisabled) return '
|
|
6738
|
+
if (isDisabled) return 'kitt.forms.radioButtonGroup.font.disabled.color';
|
|
6723
6739
|
if (isSelected) return 'white';
|
|
6724
6740
|
if (isPressed) return 'white';
|
|
6725
6741
|
if (isFocused) return 'white';
|
|
@@ -6887,7 +6903,7 @@ const TextArea = /*#__PURE__*/react.forwardRef(({
|
|
|
6887
6903
|
marginTop: "kitt.1",
|
|
6888
6904
|
children: [helper ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
6889
6905
|
base: "body-s",
|
|
6890
|
-
color:
|
|
6906
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
6891
6907
|
children: helper
|
|
6892
6908
|
}) : null, shouldDisplayLimit ? /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
6893
6909
|
style: limitContainerAnimatedStyle,
|
|
@@ -6897,14 +6913,14 @@ const TextArea = /*#__PURE__*/react.forwardRef(({
|
|
|
6897
6913
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Typography.Text, {
|
|
6898
6914
|
base: "body-xs",
|
|
6899
6915
|
variant: "bold",
|
|
6900
|
-
color:
|
|
6916
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
6901
6917
|
children: [props.value?.length || 0, "/", limit]
|
|
6902
6918
|
}), /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
6903
6919
|
style: checkIconAnimatedStyle,
|
|
6904
6920
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6905
6921
|
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.CheckCircleFillIcon, {}),
|
|
6906
6922
|
size: 13,
|
|
6907
|
-
color:
|
|
6923
|
+
color: deepPurpleColorPalette['grey.5']
|
|
6908
6924
|
})
|
|
6909
6925
|
})]
|
|
6910
6926
|
})
|
|
@@ -7012,7 +7028,7 @@ function ToggleAnimated({
|
|
|
7012
7028
|
}
|
|
7013
7029
|
|
|
7014
7030
|
const getLabelTypographyType = size => {
|
|
7015
|
-
return size === 'medium' ? 'body' : 'body-
|
|
7031
|
+
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7016
7032
|
};
|
|
7017
7033
|
function Toggle({
|
|
7018
7034
|
isDisabled = false,
|
|
@@ -7485,7 +7501,7 @@ function Highlight({
|
|
|
7485
7501
|
marginBottom: highlightStyle[size].marginBottom,
|
|
7486
7502
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7487
7503
|
variant: "bold",
|
|
7488
|
-
base: "body",
|
|
7504
|
+
base: "body-m",
|
|
7489
7505
|
ellipsizeMode: "clip",
|
|
7490
7506
|
children: title
|
|
7491
7507
|
})
|
|
@@ -7521,7 +7537,7 @@ function Highlight({
|
|
|
7521
7537
|
width: "100%",
|
|
7522
7538
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7523
7539
|
variant: "bold",
|
|
7524
|
-
base: "body",
|
|
7540
|
+
base: "body-m",
|
|
7525
7541
|
ellipsizeMode: "clip",
|
|
7526
7542
|
children: title
|
|
7527
7543
|
})
|
|
@@ -7834,8 +7850,8 @@ function InfoCard({
|
|
|
7834
7850
|
flexShrink: 1,
|
|
7835
7851
|
flexBasis: "auto",
|
|
7836
7852
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7837
|
-
base: "body-
|
|
7838
|
-
medium: "body",
|
|
7853
|
+
base: "body-s",
|
|
7854
|
+
medium: "body-m",
|
|
7839
7855
|
style: {
|
|
7840
7856
|
userSelect: 'none'
|
|
7841
7857
|
},
|
|
@@ -8244,7 +8260,7 @@ function BaseMessage({
|
|
|
8244
8260
|
flexGrow: 1,
|
|
8245
8261
|
flexShrink: 1,
|
|
8246
8262
|
textAlign: centeredText ? 'center' : 'left',
|
|
8247
|
-
base: "body",
|
|
8263
|
+
base: "body-m",
|
|
8248
8264
|
color: color,
|
|
8249
8265
|
children: children
|
|
8250
8266
|
})]
|
|
@@ -8527,6 +8543,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8527
8543
|
item: {
|
|
8528
8544
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
8529
8545
|
backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
|
|
8546
|
+
},
|
|
8547
|
+
font: {
|
|
8548
|
+
disabled: {
|
|
8549
|
+
color: theme.forms.radioButtonGroup.item.font.color.disabled
|
|
8550
|
+
}
|
|
8530
8551
|
}
|
|
8531
8552
|
},
|
|
8532
8553
|
checkbox: {
|
|
@@ -8841,7 +8862,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8841
8862
|
},
|
|
8842
8863
|
disabled: {
|
|
8843
8864
|
backgroundColor: theme.forms.radio.disabled.backgroundColor,
|
|
8844
|
-
borderColor: theme.forms.radio.disabled.borderColor
|
|
8865
|
+
borderColor: theme.forms.radio.disabled.borderColor,
|
|
8866
|
+
innerBackgroundColor: theme.forms.radio.disabled.innerBackgroundColor
|
|
8845
8867
|
},
|
|
8846
8868
|
default: {
|
|
8847
8869
|
backgroundColor: theme.forms.radio.unchecked.backgroundColor,
|
|
@@ -9396,22 +9418,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9396
9418
|
},
|
|
9397
9419
|
listItem: {
|
|
9398
9420
|
borderWidth: theme.listItem.borderWidth
|
|
9399
|
-
},
|
|
9400
|
-
tag: {
|
|
9401
|
-
variant: {
|
|
9402
|
-
subtle: {
|
|
9403
|
-
borderWidth: theme.tag.variant.subtle.borderWidth
|
|
9404
|
-
},
|
|
9405
|
-
fill: {
|
|
9406
|
-
borderWidth: theme.tag.variant.fill.borderWidth
|
|
9407
|
-
},
|
|
9408
|
-
outline: {
|
|
9409
|
-
borderWidth: theme.tag.variant.outline.borderWidth
|
|
9410
|
-
},
|
|
9411
|
-
contrast: {
|
|
9412
|
-
borderWidth: theme.tag.variant.contrast.borderWidth
|
|
9413
|
-
}
|
|
9414
|
-
}
|
|
9415
9421
|
}
|
|
9416
9422
|
},
|
|
9417
9423
|
app: appTheme?.borderWidths
|
|
@@ -10038,196 +10044,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10038
10044
|
...appBreakpoints
|
|
10039
10045
|
},
|
|
10040
10046
|
fontSizes: {
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
/* latest */
|
|
10062
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize}px`,
|
|
10063
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize}px`,
|
|
10064
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize}px`,
|
|
10065
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize}px`,
|
|
10066
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize}px`,
|
|
10067
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize}px`,
|
|
10068
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize}px`,
|
|
10069
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize}px`,
|
|
10070
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize}px`,
|
|
10071
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize}px`,
|
|
10072
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize}px`,
|
|
10073
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize}px`,
|
|
10074
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize}px`,
|
|
10075
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize}px`,
|
|
10076
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize}px`,
|
|
10077
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize}px`,
|
|
10078
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize}px`,
|
|
10079
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize}px`,
|
|
10080
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize}px`,
|
|
10081
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize}px`
|
|
10082
|
-
},
|
|
10083
|
-
mediumAndWide: {
|
|
10084
|
-
/* legacy */
|
|
10085
|
-
header1: `${theme.typography.types.headings.configs.header1.mediumAndWide.fontSize}px`,
|
|
10086
|
-
header2: `${theme.typography.types.headings.configs.header2.mediumAndWide.fontSize}px`,
|
|
10087
|
-
header3: `${theme.typography.types.headings.configs.header3.mediumAndWide.fontSize}px`,
|
|
10088
|
-
header4: `${theme.typography.types.headings.configs.header4.mediumAndWide.fontSize}px`,
|
|
10089
|
-
header5: `${theme.typography.types.headings.configs.header5.mediumAndWide.fontSize}px`,
|
|
10090
|
-
'body-large': `${theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize}px`,
|
|
10091
|
-
'body-medium': `${theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize}px`,
|
|
10092
|
-
body: `${theme.typography.types.bodies.configs.body.mediumAndWide.fontSize}px`,
|
|
10093
|
-
'body-small': `${theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize}px`,
|
|
10094
|
-
'body-xsmall': `${theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize}px`,
|
|
10095
|
-
'header-impact-xxl': `${theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10096
|
-
'header-impact-xl': `${theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10097
|
-
'header-impact-l': `${theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize}px`,
|
|
10098
|
-
'header-impact-m': `${theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize}px`,
|
|
10099
|
-
'header-impact-s': `${theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize}px`,
|
|
10100
|
-
'header-impact-xs': `${theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10101
|
-
'header-impact-xxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10102
|
-
'header-impact-xxxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10103
|
-
/* latest */
|
|
10104
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10105
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10106
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize}px`,
|
|
10107
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize}px`,
|
|
10108
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize}px`,
|
|
10109
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10110
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10111
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10112
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize}px`,
|
|
10113
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize}px`,
|
|
10114
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize}px`,
|
|
10115
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize}px`,
|
|
10116
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize}px`,
|
|
10117
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize}px`,
|
|
10118
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize}px`,
|
|
10119
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize}px`,
|
|
10120
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize}px`,
|
|
10121
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize}px`,
|
|
10122
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize}px`,
|
|
10123
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize}px`
|
|
10124
|
-
}
|
|
10047
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].fontSize}px`,
|
|
10048
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].fontSize}px`,
|
|
10049
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].fontSize}px`,
|
|
10050
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10051
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10052
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10053
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10054
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10055
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
10056
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].fontSize}px`,
|
|
10057
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].fontSize}px`,
|
|
10058
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].fontSize}px`,
|
|
10059
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].fontSize}px`,
|
|
10060
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize}px`,
|
|
10061
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize}px`,
|
|
10062
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize}px`,
|
|
10063
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].fontSize}px`,
|
|
10064
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].fontSize}px`,
|
|
10065
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].fontSize}px`,
|
|
10066
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].fontSize}px`
|
|
10125
10067
|
},
|
|
10126
10068
|
lineHeights: {
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
/* latest */
|
|
10148
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight}px`,
|
|
10149
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight}px`,
|
|
10150
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight}px`,
|
|
10151
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight}px`,
|
|
10152
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight}px`,
|
|
10153
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight}px`,
|
|
10154
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight}px`,
|
|
10155
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight}px`,
|
|
10156
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight}px`,
|
|
10157
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight}px`,
|
|
10158
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight}px`,
|
|
10159
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight}px`,
|
|
10160
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight}px`,
|
|
10161
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight}px`,
|
|
10162
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight}px`,
|
|
10163
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight}px`,
|
|
10164
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight}px`,
|
|
10165
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight}px`,
|
|
10166
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight}px`,
|
|
10167
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight}px`
|
|
10168
|
-
},
|
|
10169
|
-
mediumAndWide: {
|
|
10170
|
-
/* legacy */
|
|
10171
|
-
header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
|
|
10172
|
-
header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
|
|
10173
|
-
header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
|
|
10174
|
-
header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
|
|
10175
|
-
header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
|
|
10176
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
10177
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
10178
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
10179
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
10180
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
|
|
10181
|
-
'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
|
|
10182
|
-
'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
|
|
10183
|
-
'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
|
|
10184
|
-
'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
|
|
10185
|
-
'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
|
|
10186
|
-
'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
|
|
10187
|
-
'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
|
|
10188
|
-
'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
|
|
10189
|
-
/* latest */
|
|
10190
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight}px`,
|
|
10191
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight}px`,
|
|
10192
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight}px`,
|
|
10193
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight}px`,
|
|
10194
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight}px`,
|
|
10195
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight}px`,
|
|
10196
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight}px`,
|
|
10197
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight}px`,
|
|
10198
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight}px`,
|
|
10199
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight}px`,
|
|
10200
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight}px`,
|
|
10201
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight}px`,
|
|
10202
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight}px`,
|
|
10203
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight}px`,
|
|
10204
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight}px`,
|
|
10205
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight}px`,
|
|
10206
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight}px`,
|
|
10207
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight}px`,
|
|
10208
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight}px`,
|
|
10209
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight}px`
|
|
10210
|
-
}
|
|
10069
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].lineHeight}px`,
|
|
10070
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].lineHeight}px`,
|
|
10071
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].lineHeight}px`,
|
|
10072
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10073
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10074
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10075
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10076
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10077
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
10078
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].lineHeight}px`,
|
|
10079
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].lineHeight}px`,
|
|
10080
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].lineHeight}px`,
|
|
10081
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].lineHeight}px`,
|
|
10082
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight}px`,
|
|
10083
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight}px`,
|
|
10084
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight}px`,
|
|
10085
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].lineHeight}px`,
|
|
10086
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].lineHeight}px`,
|
|
10087
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].lineHeight}px`,
|
|
10088
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].lineHeight}px`
|
|
10211
10089
|
},
|
|
10212
10090
|
fontWeights: {
|
|
10213
10091
|
headings: {
|
|
10214
10092
|
regular: theme.typography.types.headings.fontWeight.regular,
|
|
10215
10093
|
bold: theme.typography.types.headings.fontWeight.bold
|
|
10216
10094
|
},
|
|
10217
|
-
'headings-impact': {
|
|
10218
|
-
regular: theme.typography.types['headings-impact'].fontWeight,
|
|
10219
|
-
bold: theme.typography.types['headings-impact'].fontWeight
|
|
10220
|
-
},
|
|
10221
10095
|
bodies: {
|
|
10222
10096
|
regular: theme.typography.types.bodies.fontWeight.regular,
|
|
10223
10097
|
// 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
|
|
10224
10098
|
bold: theme.typography.types.bodies.fontWeight.bold
|
|
10099
|
+
},
|
|
10100
|
+
labels: {
|
|
10101
|
+
semibold: theme.typography.types.labels.fontWeight.semibold
|
|
10102
|
+
},
|
|
10103
|
+
contentCaps: {
|
|
10104
|
+
bold: theme.typography.types.contentCaps.fontWeight.bold
|
|
10225
10105
|
}
|
|
10226
10106
|
},
|
|
10227
10107
|
fonts: {
|
|
10228
10108
|
headings: theme.typography.types.headings.fontFamily.web,
|
|
10229
|
-
|
|
10230
|
-
|
|
10109
|
+
bodies: theme.typography.types.bodies.fontFamily.web,
|
|
10110
|
+
labels: theme.typography.types.labels.fontFamily.web,
|
|
10111
|
+
contentCaps: theme.typography.types.contentCaps.fontFamily.web
|
|
10231
10112
|
},
|
|
10232
10113
|
shadows: {
|
|
10233
10114
|
kitt: {
|
|
@@ -10722,7 +10603,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10722
10603
|
_disabled: {
|
|
10723
10604
|
placeholderTextColor: theme.forms.input.states.disabled.color,
|
|
10724
10605
|
color: theme.forms.input.states.disabled.color,
|
|
10725
|
-
borderColor: theme.forms.input.states.disabled.
|
|
10606
|
+
borderColor: theme.forms.input.states.disabled.backgroundColor,
|
|
10726
10607
|
bg: theme.forms.input.states.disabled.backgroundColor
|
|
10727
10608
|
}
|
|
10728
10609
|
}
|
|
@@ -10752,7 +10633,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10752
10633
|
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
10753
10634
|
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
10754
10635
|
fontSize: undefined,
|
|
10755
|
-
lineHeight: theme.typography.types.bodies.configs
|
|
10636
|
+
lineHeight: theme.typography.types.bodies.configs['body-m'].lineHeight
|
|
10756
10637
|
}
|
|
10757
10638
|
}
|
|
10758
10639
|
}
|
|
@@ -11103,7 +10984,7 @@ function PickerOption({
|
|
|
11103
10984
|
}) {
|
|
11104
10985
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
11105
10986
|
testID: testID,
|
|
11106
|
-
base: "body",
|
|
10987
|
+
base: "body-m",
|
|
11107
10988
|
children: typeof children === 'function' ? children({
|
|
11108
10989
|
isHighlighted,
|
|
11109
10990
|
isSelected
|
|
@@ -11334,8 +11215,9 @@ function SegmentedProgressBar({
|
|
|
11334
11215
|
colorVariant = 'primary',
|
|
11335
11216
|
withCurrentInProgress
|
|
11336
11217
|
}) {
|
|
11218
|
+
const kittTheme = useKittTheme();
|
|
11337
11219
|
const height = size === 'small' ? 'kitt.2' : 'kitt.4';
|
|
11338
|
-
const fillColor = colorVariant === 'validated' ?
|
|
11220
|
+
const fillColor = colorVariant === 'validated' ? kittTheme.kitt.palettes.deepPurple['green.6'] : kittTheme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11339
11221
|
const steps = [...Array.from({
|
|
11340
11222
|
length: stepsCount
|
|
11341
11223
|
}).keys()];
|
|
@@ -11346,13 +11228,13 @@ function SegmentedProgressBar({
|
|
|
11346
11228
|
overflow: "hidden",
|
|
11347
11229
|
children: steps.map(stepNumber => {
|
|
11348
11230
|
const isSegmentCurrentInProgress = withCurrentInProgress && stepNumber === currentStep - 1;
|
|
11349
|
-
const color = stepNumber < currentStep ? fillColor :
|
|
11231
|
+
const color = stepNumber < currentStep ? fillColor : kittTheme.kitt.palettes.deepPurple['beige.1'];
|
|
11350
11232
|
return /*#__PURE__*/jsxRuntime.jsx(nativeBase.View, {
|
|
11351
11233
|
height: "100%",
|
|
11352
11234
|
flexGrow: 1,
|
|
11353
11235
|
flexShrink: 1,
|
|
11354
11236
|
flexBasis: 0,
|
|
11355
|
-
backgroundColor: isSegmentCurrentInProgress ?
|
|
11237
|
+
backgroundColor: isSegmentCurrentInProgress ? kittTheme.kitt.palettes.deepPurple['deepPurple.5'] : color,
|
|
11356
11238
|
borderRadius: 2,
|
|
11357
11239
|
overflow: "hidden",
|
|
11358
11240
|
alignItems: "center",
|
|
@@ -11684,9 +11566,9 @@ const getBackgroundColorFromBlockColor = (theme, color = 'transparent') => {
|
|
|
11684
11566
|
case 'white':
|
|
11685
11567
|
return '#ffffff';
|
|
11686
11568
|
case 'light':
|
|
11687
|
-
return theme.kitt.palettes.
|
|
11569
|
+
return theme.kitt.palettes.deepPurple['beige.1'];
|
|
11688
11570
|
case 'primary':
|
|
11689
|
-
return theme.kitt.palettes.
|
|
11571
|
+
return theme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11690
11572
|
default:
|
|
11691
11573
|
return 'transparent';
|
|
11692
11574
|
}
|
|
@@ -11736,8 +11618,7 @@ function StoryTitle({
|
|
|
11736
11618
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11737
11619
|
marginBottom: 30,
|
|
11738
11620
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header1, {
|
|
11739
|
-
|
|
11740
|
-
base: "header1",
|
|
11621
|
+
base: "heading-xl",
|
|
11741
11622
|
color: useStoryBlockColor(color),
|
|
11742
11623
|
numberOfLines: numberOfLines,
|
|
11743
11624
|
children: children
|
|
@@ -11752,8 +11633,7 @@ function StoryTitleLevel2({
|
|
|
11752
11633
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11753
11634
|
marginBottom: 30,
|
|
11754
11635
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header2, {
|
|
11755
|
-
|
|
11756
|
-
base: "header2",
|
|
11636
|
+
base: "heading-l",
|
|
11757
11637
|
color: useStoryBlockColor(color),
|
|
11758
11638
|
numberOfLines: numberOfLines,
|
|
11759
11639
|
children: children
|
|
@@ -11769,9 +11649,7 @@ function StoryTitleLevel3({
|
|
|
11769
11649
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11770
11650
|
marginBottom: 10,
|
|
11771
11651
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header3, {
|
|
11772
|
-
|
|
11773
|
-
base: "header3",
|
|
11774
|
-
medium: "header4",
|
|
11652
|
+
base: "heading-m",
|
|
11775
11653
|
color: useStoryBlockColor(color),
|
|
11776
11654
|
numberOfLines: numberOfLines,
|
|
11777
11655
|
children: children
|
|
@@ -11787,9 +11665,7 @@ function StoryTitleLevel4({
|
|
|
11787
11665
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11788
11666
|
marginBottom: 10,
|
|
11789
11667
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
11790
|
-
|
|
11791
|
-
base: "header4",
|
|
11792
|
-
medium: "header5",
|
|
11668
|
+
base: "heading-s",
|
|
11793
11669
|
color: useStoryBlockColor(color),
|
|
11794
11670
|
numberOfLines: numberOfLines,
|
|
11795
11671
|
children: children
|
|
@@ -11980,15 +11856,15 @@ function useTabBarItemColor(color, isActive) {
|
|
|
11980
11856
|
switch (color) {
|
|
11981
11857
|
case 'black':
|
|
11982
11858
|
{
|
|
11983
|
-
return isActive ? kittTheme.
|
|
11859
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
11984
11860
|
}
|
|
11985
11861
|
case 'white':
|
|
11986
11862
|
{
|
|
11987
|
-
return kittTheme.palettes.
|
|
11863
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
|
|
11988
11864
|
}
|
|
11989
11865
|
default:
|
|
11990
11866
|
{
|
|
11991
|
-
return isActive ? kittTheme.
|
|
11867
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
11992
11868
|
}
|
|
11993
11869
|
}
|
|
11994
11870
|
}
|
|
@@ -11999,15 +11875,15 @@ function useTabBarIndicatorColor(color, isActive) {
|
|
|
11999
11875
|
switch (color) {
|
|
12000
11876
|
case 'black':
|
|
12001
11877
|
{
|
|
12002
|
-
return isActive ? kittTheme.
|
|
11878
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12003
11879
|
}
|
|
12004
11880
|
case 'white':
|
|
12005
11881
|
{
|
|
12006
|
-
return isActive ? kittTheme.palettes.
|
|
11882
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
12007
11883
|
}
|
|
12008
11884
|
default:
|
|
12009
11885
|
{
|
|
12010
|
-
return isActive ? kittTheme.
|
|
11886
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12011
11887
|
}
|
|
12012
11888
|
}
|
|
12013
11889
|
}
|
|
@@ -12075,7 +11951,7 @@ function TabBar({
|
|
|
12075
11951
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
12076
11952
|
minWidth: '100%',
|
|
12077
11953
|
borderBottomWidth: 1,
|
|
12078
|
-
borderBottomColor: kittTheme.palettes.
|
|
11954
|
+
borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
|
|
12079
11955
|
});
|
|
12080
11956
|
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
12081
11957
|
horizontal: true,
|
|
@@ -12115,36 +11991,39 @@ const getTypography = size => {
|
|
|
12115
11991
|
return 'body-m';
|
|
12116
11992
|
}
|
|
12117
11993
|
};
|
|
12118
|
-
const typeToColor$1 = (color, type) => {
|
|
12119
|
-
if (color) return color;
|
|
12120
|
-
switch (type) {
|
|
12121
|
-
case 'primary':
|
|
12122
|
-
return 'violine';
|
|
12123
|
-
case 'warn':
|
|
12124
|
-
return 'sun';
|
|
12125
|
-
case 'danger':
|
|
12126
|
-
return 'coral';
|
|
12127
|
-
case 'default':
|
|
12128
|
-
default:
|
|
12129
|
-
return 'eggshell';
|
|
12130
|
-
}
|
|
12131
|
-
};
|
|
12132
11994
|
function Tag({
|
|
12133
11995
|
label,
|
|
12134
11996
|
icon,
|
|
12135
|
-
color,
|
|
12136
|
-
type,
|
|
11997
|
+
color = 'beige',
|
|
12137
11998
|
size = 'medium',
|
|
12138
|
-
|
|
12139
|
-
withWhiteBorder = false
|
|
11999
|
+
withWhiteBorder
|
|
12140
12000
|
}) {
|
|
12141
12001
|
const kittTheme = useKittTheme();
|
|
12142
|
-
const
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12002
|
+
const colorMatching = {
|
|
12003
|
+
beige: {
|
|
12004
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.2'],
|
|
12005
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
12006
|
+
},
|
|
12007
|
+
yellow: {
|
|
12008
|
+
background: kittTheme.kitt.palettes.deepPurple['yellow.6'],
|
|
12009
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.9']
|
|
12010
|
+
},
|
|
12011
|
+
red: {
|
|
12012
|
+
background: kittTheme.kitt.palettes.deepPurple['red.6'],
|
|
12013
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12014
|
+
},
|
|
12015
|
+
blue: {
|
|
12016
|
+
background: kittTheme.kitt.palettes.deepPurple['blue.6'],
|
|
12017
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12018
|
+
},
|
|
12019
|
+
green: {
|
|
12020
|
+
background: kittTheme.kitt.palettes.deepPurple['green.6'],
|
|
12021
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12022
|
+
},
|
|
12023
|
+
deepPurple: {
|
|
12024
|
+
background: kittTheme.kitt.palettes.deepPurple['deepPurple.8'],
|
|
12025
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
12146
12026
|
}
|
|
12147
|
-
return 'black';
|
|
12148
12027
|
};
|
|
12149
12028
|
return /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
12150
12029
|
alignSelf: "flex-start",
|
|
@@ -12152,31 +12031,21 @@ function Tag({
|
|
|
12152
12031
|
height: `kitt.tag.${size}.height`,
|
|
12153
12032
|
paddingLeft: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingLeft`,
|
|
12154
12033
|
paddingRight: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingRight`,
|
|
12155
|
-
backgroundColor:
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
}
|
|
12159
|
-
if (variant === 'contrast') {
|
|
12160
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.9`];
|
|
12161
|
-
}
|
|
12162
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.4`];
|
|
12163
|
-
})() : 'kitt.transparent',
|
|
12164
|
-
borderColor: withWhiteBorder ? 'kitt.white' : (() => {
|
|
12165
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.6`];
|
|
12166
|
-
})(),
|
|
12167
|
-
borderWidth: withWhiteBorder ? 1 : `kitt.tag.variant.${variant}.borderWidth`,
|
|
12034
|
+
backgroundColor: colorMatching[color].background,
|
|
12035
|
+
borderWidth: withWhiteBorder ? 1 : 0,
|
|
12036
|
+
borderColor: withWhiteBorder ? 'kitt.white' : undefined,
|
|
12168
12037
|
space: "kitt.1",
|
|
12169
12038
|
alignItems: "center",
|
|
12170
12039
|
maxWidth: "100%",
|
|
12171
12040
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
12172
12041
|
icon: icon,
|
|
12173
12042
|
size: `kitt.tag.${size}.iconSize`,
|
|
12174
|
-
color:
|
|
12043
|
+
color: colorMatching[color].font
|
|
12175
12044
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12176
12045
|
flexShrink: 1,
|
|
12177
12046
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12178
12047
|
base: getTypography(size),
|
|
12179
|
-
color:
|
|
12048
|
+
color: colorMatching[color].font,
|
|
12180
12049
|
numberOfLines: 1,
|
|
12181
12050
|
ellipsizeMode: "tail",
|
|
12182
12051
|
children: label
|
|
@@ -12336,7 +12205,7 @@ function ToastContent({
|
|
|
12336
12205
|
flexGrow: 1,
|
|
12337
12206
|
flexShrink: 1,
|
|
12338
12207
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12339
|
-
base: "heading-
|
|
12208
|
+
base: "heading-xs",
|
|
12340
12209
|
color: "white",
|
|
12341
12210
|
children: title
|
|
12342
12211
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -12352,7 +12221,7 @@ function ToastContent({
|
|
|
12352
12221
|
borderColor: "white",
|
|
12353
12222
|
onPress: onPress,
|
|
12354
12223
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12355
|
-
base: "heading-
|
|
12224
|
+
base: "heading-xs",
|
|
12356
12225
|
color: "white",
|
|
12357
12226
|
children: actionLabel
|
|
12358
12227
|
})
|
|
@@ -12365,9 +12234,9 @@ const typeToColor = type => {
|
|
|
12365
12234
|
case 'success':
|
|
12366
12235
|
return 'green';
|
|
12367
12236
|
case 'danger':
|
|
12368
|
-
return '
|
|
12237
|
+
return 'red';
|
|
12369
12238
|
case 'warning':
|
|
12370
|
-
return '
|
|
12239
|
+
return 'yellow';
|
|
12371
12240
|
default:
|
|
12372
12241
|
return 'blue';
|
|
12373
12242
|
}
|
|
@@ -12425,7 +12294,7 @@ function ToastComponent({
|
|
|
12425
12294
|
}, [handleHideToast, outro, width, toastTimeout]);
|
|
12426
12295
|
return /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
12427
12296
|
alignSelf: stretch ? 'flex-start' : 'auto',
|
|
12428
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12297
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple['grey.9'],
|
|
12429
12298
|
borderRadius: "kitt.2",
|
|
12430
12299
|
maxWidth: {
|
|
12431
12300
|
base: '100%',
|
|
@@ -12439,7 +12308,7 @@ function ToastComponent({
|
|
|
12439
12308
|
children: [/*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
12440
12309
|
icon: icon,
|
|
12441
12310
|
size: "kitt.5",
|
|
12442
|
-
color: kittTheme.kitt.palettes.
|
|
12311
|
+
color: kittTheme.kitt.palettes.deepPurple[`${color}.6`]
|
|
12443
12312
|
}), /*#__PURE__*/jsxRuntime.jsx(ToastContent, {
|
|
12444
12313
|
title: title,
|
|
12445
12314
|
description: description,
|
|
@@ -12457,7 +12326,7 @@ function ToastComponent({
|
|
|
12457
12326
|
}) : null]
|
|
12458
12327
|
}), outro === 'timer' ? /*#__PURE__*/jsxRuntime.jsx(AnimatedView$1, {
|
|
12459
12328
|
alignSelf: "flex-end",
|
|
12460
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12329
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple[`${color}.6`],
|
|
12461
12330
|
height: "kitt.1",
|
|
12462
12331
|
style: animatedStyle
|
|
12463
12332
|
}) : null]
|
|
@@ -12514,7 +12383,7 @@ function TooltipContent({
|
|
|
12514
12383
|
paddingY: "kitt.tooltip.verticalPadding",
|
|
12515
12384
|
paddingX: "kitt.tooltip.horizontalPadding",
|
|
12516
12385
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12517
|
-
base: "body-
|
|
12386
|
+
base: "body-s",
|
|
12518
12387
|
color: "white-light",
|
|
12519
12388
|
children: children
|
|
12520
12389
|
})
|
|
@@ -12724,12 +12593,12 @@ function calcSizesFromType(type, theme) {
|
|
|
12724
12593
|
medium: type.medium || type.small || type.base
|
|
12725
12594
|
};
|
|
12726
12595
|
const size = {
|
|
12727
|
-
base: getTypographyTypeConfig(type.base ?? 'body', theme).
|
|
12596
|
+
base: getTypographyTypeConfig(type.base ?? 'body-m', theme).fontSize
|
|
12728
12597
|
};
|
|
12729
12598
|
[KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
12730
12599
|
const value = typeWithMediumForced[typeName];
|
|
12731
12600
|
if (value) {
|
|
12732
|
-
size[typeName] = getTypographyTypeConfig(value, theme)
|
|
12601
|
+
size[typeName] = getTypographyTypeConfig(value, theme).fontSize;
|
|
12733
12602
|
}
|
|
12734
12603
|
});
|
|
12735
12604
|
const marginLeft = {};
|
|
@@ -13061,7 +12930,7 @@ function BorderlessStep({
|
|
|
13061
12930
|
width: 2,
|
|
13062
12931
|
borderRadius: 2,
|
|
13063
12932
|
position: "absolute",
|
|
13064
|
-
backgroundColor: "kitt.
|
|
12933
|
+
backgroundColor: "kitt.accent",
|
|
13065
12934
|
overflow: "hidden",
|
|
13066
12935
|
children: isNextDone ? /*#__PURE__*/jsxRuntime.jsx(AnimatedView, {
|
|
13067
12936
|
style: progressBarAnimatedStyles,
|
|
@@ -13143,7 +13012,7 @@ function Step({
|
|
|
13143
13012
|
state: state,
|
|
13144
13013
|
index: index
|
|
13145
13014
|
}), !isLast ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13146
|
-
backgroundColor: shouldDisableNextLink ? 'kitt.
|
|
13015
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.accent' : 'kitt.primary',
|
|
13147
13016
|
width: 1,
|
|
13148
13017
|
position: "absolute",
|
|
13149
13018
|
top: 46,
|