@ornikar/kitt-universal 26.3.1-late-ocean.ccf14ae912d02bfa0c8d62c4652911eb457e71b0.0 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -3
- package/dist/definitions/Actions/Actions.d.ts +1 -1
- package/dist/definitions/SegmentedProgressBar/SegmentedProgressBar.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +2 -7
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts +1 -1
- package/dist/definitions/Toast/Toast.utils.d.ts.map +1 -1
- package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts +2 -1
- package/dist/definitions/forms/Radio/InnerCircle.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts +1 -1
- package/dist/definitions/forms/RadioButtonGroup/utils/getCurrentTextColor.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +161 -362
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +215 -213
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/checkbox.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/colors.d.ts +14 -16
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +8 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts +0 -8
- package/dist/definitions/themes/late-ocean/icon.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radio.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/radioButtonGroup.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/skeleton.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +140 -70
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts +79 -0
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts +59 -980
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +719 -849
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +719 -849
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +716 -846
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +1 -1
- package/dist/index-node-22.17.cjs.web.js +713 -843
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +716 -846
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +1 -1
- package/dist/index-node-22.17.es.web.mjs +713 -843
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +736 -874
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +733 -871
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +469 -532
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +469 -532
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +469 -532
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +469 -532
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +469 -532
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +469 -532
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +469 -538
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +469 -538
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +25 -25
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +0 -260
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +0 -1
|
@@ -37,117 +37,81 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
37
37
|
|
|
38
38
|
const createColorScale = colorScale => colorScale;
|
|
39
39
|
const colorScales = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
6: '#bab8ae',
|
|
47
|
-
7: '#aeaba3',
|
|
48
|
-
8: '#9c9a92',
|
|
49
|
-
9: '#8e8c83',
|
|
50
|
-
10: '#74726a',
|
|
51
|
-
11: '#3e3d3a',
|
|
52
|
-
12: '#282826'
|
|
40
|
+
deepPurple: createColorScale({
|
|
41
|
+
5: '#936C93',
|
|
42
|
+
6: '#7A587A',
|
|
43
|
+
7: '#6E4D6E',
|
|
44
|
+
8: '#563B56',
|
|
45
|
+
9: '#452F45'
|
|
53
46
|
}),
|
|
54
|
-
|
|
55
|
-
1: '#
|
|
56
|
-
2: '#
|
|
57
|
-
3: '#
|
|
58
|
-
4: '#
|
|
59
|
-
5: '#
|
|
60
|
-
6: '#
|
|
61
|
-
7: '#9180ff',
|
|
62
|
-
8: '#7b66ff',
|
|
63
|
-
9: '#624af7',
|
|
64
|
-
10: '#5139e1',
|
|
65
|
-
11: '#3a26b5',
|
|
66
|
-
12: '#0a0428'
|
|
47
|
+
beige: createColorScale({
|
|
48
|
+
1: '#F7F4EE',
|
|
49
|
+
2: '#F1ECE4',
|
|
50
|
+
3: '#EAE3D6',
|
|
51
|
+
4: '#E5DCCA',
|
|
52
|
+
5: '#DDD0B8',
|
|
53
|
+
6: '#C1B59F'
|
|
67
54
|
}),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
lightning: createColorScale({
|
|
56
|
+
5: '#FFF500',
|
|
57
|
+
7: '#43390A'
|
|
58
|
+
}),
|
|
59
|
+
rainbow: createColorScale({
|
|
60
|
+
pink: '#E4A4F9',
|
|
61
|
+
brick: '#951D12',
|
|
62
|
+
orange: '#DB6E2E',
|
|
63
|
+
gold: '#9A7600',
|
|
64
|
+
sun: '#EFD346',
|
|
65
|
+
'green-pine': '#1C5D47',
|
|
66
|
+
'green-grass': '#4DA00A',
|
|
67
|
+
'green-apple': '#DEF985',
|
|
68
|
+
'blue-electric': '#2850C4',
|
|
69
|
+
'blue-sky': '#B2F0FD'
|
|
70
|
+
}),
|
|
71
|
+
grey: createColorScale({
|
|
72
|
+
0: '#ffffff',
|
|
73
|
+
1: '#ECECEC',
|
|
74
|
+
2: '#CDCED0',
|
|
75
|
+
3: '#A8A8A8',
|
|
76
|
+
5: '#838383',
|
|
77
|
+
7: '#505050',
|
|
78
|
+
9: '#101010'
|
|
81
79
|
}),
|
|
82
80
|
blue: createColorScale({
|
|
83
|
-
1: '#
|
|
84
|
-
2: '#
|
|
85
|
-
|
|
86
|
-
4: '#d4e0ff',
|
|
87
|
-
5: '#baceff',
|
|
88
|
-
6: '#a1bbff',
|
|
89
|
-
7: '#87a9ff',
|
|
90
|
-
8: '#6e96ff',
|
|
91
|
-
9: '#5383ff',
|
|
92
|
-
10: '#4170eb',
|
|
93
|
-
11: '#0e4381',
|
|
94
|
-
12: '#061c36'
|
|
81
|
+
1: '#E9F4FC',
|
|
82
|
+
2: '#BCDFF6',
|
|
83
|
+
6: '#1772AB'
|
|
95
84
|
}),
|
|
96
|
-
|
|
97
|
-
1: '#
|
|
98
|
-
2: '#
|
|
99
|
-
|
|
100
|
-
4: '#f0c7d4',
|
|
101
|
-
5: '#f0afc4',
|
|
102
|
-
6: '#f097b3',
|
|
103
|
-
7: '#f07fa3',
|
|
104
|
-
8: '#d95d84',
|
|
105
|
-
9: '#cf2a60',
|
|
106
|
-
10: '#c12558',
|
|
107
|
-
11: '#61192e',
|
|
108
|
-
12: '#29040f'
|
|
85
|
+
green: createColorScale({
|
|
86
|
+
1: '#ECFEDD',
|
|
87
|
+
2: '#DBFAC1',
|
|
88
|
+
6: '#438D06'
|
|
109
89
|
}),
|
|
110
|
-
|
|
111
|
-
1: '#
|
|
112
|
-
2: '#
|
|
113
|
-
|
|
114
|
-
4: '#ffcfcf',
|
|
115
|
-
5: '#ffb5b5',
|
|
116
|
-
6: '#ff9c9c',
|
|
117
|
-
7: '#f57d7d',
|
|
118
|
-
8: '#eb6565',
|
|
119
|
-
9: '#e55050',
|
|
120
|
-
10: '#da3d3d',
|
|
121
|
-
11: '#8a2b1e',
|
|
122
|
-
12: '#330c07'
|
|
90
|
+
yellow: createColorScale({
|
|
91
|
+
1: '#FDF8E7',
|
|
92
|
+
2: '#FAEBB8',
|
|
93
|
+
6: '#EFC11F'
|
|
123
94
|
}),
|
|
124
|
-
|
|
125
|
-
1: '#
|
|
126
|
-
2: '#
|
|
127
|
-
|
|
128
|
-
4: '#ffefc4',
|
|
129
|
-
5: '#ffe8ab',
|
|
130
|
-
6: '#ffe191',
|
|
131
|
-
7: '#ffda78',
|
|
132
|
-
8: '#ffd35e',
|
|
133
|
-
9: '#fdc32d',
|
|
134
|
-
10: '#f3a40c',
|
|
135
|
-
11: '#9f5600',
|
|
136
|
-
12: '#341c00'
|
|
95
|
+
red: createColorScale({
|
|
96
|
+
1: '#FDE4E3',
|
|
97
|
+
2: '#FAB8B8',
|
|
98
|
+
6: '#F14847'
|
|
137
99
|
}),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
100
|
+
'beige-alpha': createColorScale({
|
|
101
|
+
'25': '#C1B59F40',
|
|
102
|
+
'40': '#C1B59F66',
|
|
103
|
+
'50': '#C1B59F80'
|
|
104
|
+
}),
|
|
105
|
+
'grey-alpha': createColorScale({
|
|
106
|
+
'25': '#10101040',
|
|
107
|
+
'35': '#10101059',
|
|
108
|
+
'50': '#10101080'
|
|
109
|
+
}),
|
|
110
|
+
'white-alpha': createColorScale({
|
|
111
|
+
'10': '#FFFFFF1A',
|
|
112
|
+
'20': '#FFFFFF33',
|
|
113
|
+
'80': '#FFFFFFCC',
|
|
114
|
+
'90': '#FFFFFFE5'
|
|
151
115
|
})
|
|
152
116
|
};
|
|
153
117
|
const transformColorScalesToTokens = () => {
|
|
@@ -157,90 +121,44 @@ const transformColorScalesToTokens = () => {
|
|
|
157
121
|
});
|
|
158
122
|
}));
|
|
159
123
|
};
|
|
160
|
-
const
|
|
124
|
+
const deepPurpleColorPalette = {
|
|
161
125
|
...transformColorScalesToTokens(),
|
|
162
|
-
/** @deprecated use violine.9 instead */
|
|
163
|
-
lateOcean: colorScales.violine[9],
|
|
164
|
-
/** @deprecated use violine.8 instead */
|
|
165
|
-
lateOceanLight1: colorScales.violine[8],
|
|
166
|
-
/** @deprecated use violine.6 instead */
|
|
167
|
-
lateOceanLight2: colorScales.violine[6],
|
|
168
|
-
/** @deprecated use lavender.6 instead */
|
|
169
|
-
lateOceanLight3: colorScales.lavender[6],
|
|
170
|
-
/** @deprecated use violine.12 instead */
|
|
171
|
-
lateOceanDark1: colorScales.violine[12],
|
|
172
|
-
/** @deprecated use lavender.5 instead */
|
|
173
|
-
warmEmbrace: colorScales.lavender[5],
|
|
174
|
-
/** @deprecated use lavender.3 instead */
|
|
175
|
-
warmEmbraceLight1: colorScales.lavender[3],
|
|
176
126
|
white: '#FFFFFF',
|
|
177
127
|
black: '#000000',
|
|
178
|
-
|
|
179
|
-
black1000: '#000000',
|
|
180
|
-
/** @deprecated use eggshell.11 instead */
|
|
181
|
-
black800: colorScales.eggshell[11],
|
|
182
|
-
/** @deprecated use eggshell.10 instead */
|
|
183
|
-
black555: colorScales.eggshell[10],
|
|
184
|
-
/** @deprecated use eggshell.7 instead */
|
|
185
|
-
black400: colorScales.eggshell[7],
|
|
186
|
-
/** @deprecated use eggshell.4 instead */
|
|
187
|
-
black200: colorScales.eggshell[4],
|
|
188
|
-
/** @deprecated use eggshell.3 instead */
|
|
189
|
-
black100: colorScales.eggshell[3],
|
|
190
|
-
/** @deprecated use eggshell.2 instead */
|
|
191
|
-
black50: colorScales.eggshell[2],
|
|
192
|
-
/** @deprecated use eggshell.1 instead */
|
|
193
|
-
black25: colorScales.eggshell[1],
|
|
194
|
-
/** @deprecated use green.8 instead */
|
|
195
|
-
viride: colorScales.green[8],
|
|
196
|
-
/** @deprecated use coral.7 instead */
|
|
197
|
-
englishVermillon: colorScales.coral[7],
|
|
198
|
-
/** @deprecated use sun.8 instead */
|
|
199
|
-
goldCrayola: colorScales.sun[8],
|
|
200
|
-
/** @deprecated use blue.8 instead */
|
|
201
|
-
aero: colorScales.blue[8],
|
|
202
|
-
/** @deprecated use eggshell.1 instead */
|
|
203
|
-
seaShell: colorScales.eggshell[1],
|
|
204
|
-
transparent: 'transparent',
|
|
205
|
-
/** @deprecated use violine.4 instead */
|
|
206
|
-
moonPurple: colorScales.violine[4],
|
|
207
|
-
/** @deprecated use violine.2 instead */
|
|
208
|
-
moonPurpleLight1: colorScales.violine[2]
|
|
128
|
+
transparent: 'transparent'
|
|
209
129
|
};
|
|
210
130
|
|
|
211
131
|
const colors = {
|
|
212
|
-
primary:
|
|
213
|
-
primaryLight:
|
|
214
|
-
accent:
|
|
215
|
-
accentLight:
|
|
216
|
-
success:
|
|
217
|
-
correct:
|
|
218
|
-
danger:
|
|
219
|
-
info:
|
|
220
|
-
warning:
|
|
221
|
-
separator:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
transparent: lateOceanColorPalette.transparent,
|
|
231
|
-
disabled: lateOceanColorPalette['eggshell.2'],
|
|
132
|
+
primary: deepPurpleColorPalette['deepPurple.8'],
|
|
133
|
+
primaryLight: deepPurpleColorPalette['deepPurple.8'],
|
|
134
|
+
accent: deepPurpleColorPalette['beige.1'],
|
|
135
|
+
accentLight: deepPurpleColorPalette['beige.1'],
|
|
136
|
+
success: deepPurpleColorPalette['green.6'],
|
|
137
|
+
correct: deepPurpleColorPalette['green.6'],
|
|
138
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
139
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
140
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
141
|
+
separator: deepPurpleColorPalette['beige.3'],
|
|
142
|
+
white: deepPurpleColorPalette['grey.0'],
|
|
143
|
+
black: deepPurpleColorPalette['grey.9'],
|
|
144
|
+
blackLight: deepPurpleColorPalette['grey.5'],
|
|
145
|
+
blackAnthracite: deepPurpleColorPalette['grey.7'],
|
|
146
|
+
uiBackground: deepPurpleColorPalette['beige.1'],
|
|
147
|
+
uiBackgroundLight: deepPurpleColorPalette['grey.0'],
|
|
148
|
+
transparent: deepPurpleColorPalette.transparent,
|
|
149
|
+
disabled: deepPurpleColorPalette['grey.1'],
|
|
232
150
|
overlay: {
|
|
233
|
-
dark: '
|
|
234
|
-
light: '
|
|
151
|
+
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
152
|
+
light: deepPurpleColorPalette['white-alpha.80']
|
|
235
153
|
}
|
|
236
154
|
};
|
|
237
155
|
|
|
238
156
|
const actionCard = {
|
|
239
|
-
borderRadius:
|
|
157
|
+
borderRadius: 8,
|
|
240
158
|
primary: {
|
|
241
159
|
default: {
|
|
242
160
|
backgroundColor: colors.uiBackgroundLight,
|
|
243
|
-
borderColor:
|
|
161
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
244
162
|
borderWidth: 1,
|
|
245
163
|
shadow: {
|
|
246
164
|
color: '',
|
|
@@ -252,8 +170,8 @@ const actionCard = {
|
|
|
252
170
|
translateY: 0
|
|
253
171
|
},
|
|
254
172
|
hovered: {
|
|
255
|
-
backgroundColor:
|
|
256
|
-
borderColor:
|
|
173
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
174
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
257
175
|
borderWidth: 1,
|
|
258
176
|
shadow: {
|
|
259
177
|
color: '',
|
|
@@ -265,8 +183,8 @@ const actionCard = {
|
|
|
265
183
|
translateY: 0
|
|
266
184
|
},
|
|
267
185
|
disabled: {
|
|
268
|
-
backgroundColor:
|
|
269
|
-
borderColor:
|
|
186
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
187
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
270
188
|
borderWidth: 1,
|
|
271
189
|
shadow: {
|
|
272
190
|
color: '',
|
|
@@ -278,8 +196,8 @@ const actionCard = {
|
|
|
278
196
|
translateY: 0
|
|
279
197
|
},
|
|
280
198
|
focused: {
|
|
281
|
-
backgroundColor:
|
|
282
|
-
borderColor:
|
|
199
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
200
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
283
201
|
borderWidth: 1,
|
|
284
202
|
shadow: {
|
|
285
203
|
color: '',
|
|
@@ -291,8 +209,8 @@ const actionCard = {
|
|
|
291
209
|
translateY: 0
|
|
292
210
|
},
|
|
293
211
|
pressed: {
|
|
294
|
-
backgroundColor:
|
|
295
|
-
borderColor:
|
|
212
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
213
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
296
214
|
borderWidth: 1,
|
|
297
215
|
shadow: {
|
|
298
216
|
color: '',
|
|
@@ -307,10 +225,10 @@ const actionCard = {
|
|
|
307
225
|
'primary-border-soft': {
|
|
308
226
|
default: {
|
|
309
227
|
backgroundColor: colors.uiBackgroundLight,
|
|
310
|
-
borderColor:
|
|
228
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
311
229
|
borderWidth: 1,
|
|
312
230
|
shadow: {
|
|
313
|
-
color:
|
|
231
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
314
232
|
offsetX: 0,
|
|
315
233
|
offsetY: 4,
|
|
316
234
|
opacity: 1,
|
|
@@ -319,11 +237,11 @@ const actionCard = {
|
|
|
319
237
|
translateY: 0
|
|
320
238
|
},
|
|
321
239
|
hovered: {
|
|
322
|
-
backgroundColor:
|
|
323
|
-
borderColor:
|
|
240
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
241
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
324
242
|
borderWidth: 1,
|
|
325
243
|
shadow: {
|
|
326
|
-
color:
|
|
244
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
327
245
|
offsetX: 0,
|
|
328
246
|
offsetY: 4,
|
|
329
247
|
opacity: 1,
|
|
@@ -332,8 +250,8 @@ const actionCard = {
|
|
|
332
250
|
translateY: 0
|
|
333
251
|
},
|
|
334
252
|
disabled: {
|
|
335
|
-
backgroundColor:
|
|
336
|
-
borderColor:
|
|
253
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
254
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
337
255
|
borderWidth: 1,
|
|
338
256
|
shadow: {
|
|
339
257
|
color: '',
|
|
@@ -345,11 +263,11 @@ const actionCard = {
|
|
|
345
263
|
translateY: 0
|
|
346
264
|
},
|
|
347
265
|
focused: {
|
|
348
|
-
backgroundColor:
|
|
349
|
-
borderColor:
|
|
266
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
267
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
350
268
|
borderWidth: 1,
|
|
351
269
|
shadow: {
|
|
352
|
-
color:
|
|
270
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
353
271
|
offsetX: 0,
|
|
354
272
|
offsetY: 4,
|
|
355
273
|
opacity: 1,
|
|
@@ -358,8 +276,8 @@ const actionCard = {
|
|
|
358
276
|
translateY: 0
|
|
359
277
|
},
|
|
360
278
|
pressed: {
|
|
361
|
-
backgroundColor:
|
|
362
|
-
borderColor:
|
|
279
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
280
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
363
281
|
borderWidth: 1,
|
|
364
282
|
shadow: {
|
|
365
283
|
color: '',
|
|
@@ -374,10 +292,10 @@ const actionCard = {
|
|
|
374
292
|
'primary-border-hard': {
|
|
375
293
|
default: {
|
|
376
294
|
backgroundColor: colors.uiBackgroundLight,
|
|
377
|
-
borderColor:
|
|
295
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
378
296
|
borderWidth: 1,
|
|
379
297
|
shadow: {
|
|
380
|
-
color:
|
|
298
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
381
299
|
offsetX: 0,
|
|
382
300
|
offsetY: 4,
|
|
383
301
|
opacity: 1,
|
|
@@ -386,11 +304,11 @@ const actionCard = {
|
|
|
386
304
|
translateY: 0
|
|
387
305
|
},
|
|
388
306
|
hovered: {
|
|
389
|
-
backgroundColor:
|
|
390
|
-
borderColor:
|
|
307
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
308
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
391
309
|
borderWidth: 1,
|
|
392
310
|
shadow: {
|
|
393
|
-
color:
|
|
311
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
394
312
|
offsetX: 0,
|
|
395
313
|
offsetY: 4,
|
|
396
314
|
opacity: 1,
|
|
@@ -399,8 +317,8 @@ const actionCard = {
|
|
|
399
317
|
translateY: 0
|
|
400
318
|
},
|
|
401
319
|
disabled: {
|
|
402
|
-
backgroundColor:
|
|
403
|
-
borderColor:
|
|
320
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
321
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
404
322
|
borderWidth: 1,
|
|
405
323
|
shadow: {
|
|
406
324
|
color: '',
|
|
@@ -412,11 +330,11 @@ const actionCard = {
|
|
|
412
330
|
translateY: 0
|
|
413
331
|
},
|
|
414
332
|
focused: {
|
|
415
|
-
backgroundColor:
|
|
416
|
-
borderColor:
|
|
333
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
334
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
417
335
|
borderWidth: 1,
|
|
418
336
|
shadow: {
|
|
419
|
-
color:
|
|
337
|
+
color: deepPurpleColorPalette['deepPurple.8'],
|
|
420
338
|
offsetX: 0,
|
|
421
339
|
offsetY: 4,
|
|
422
340
|
opacity: 1,
|
|
@@ -425,8 +343,8 @@ const actionCard = {
|
|
|
425
343
|
translateY: 0
|
|
426
344
|
},
|
|
427
345
|
pressed: {
|
|
428
|
-
backgroundColor:
|
|
429
|
-
borderColor:
|
|
346
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
347
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
430
348
|
borderWidth: 1,
|
|
431
349
|
shadow: {
|
|
432
350
|
color: '',
|
|
@@ -440,8 +358,8 @@ const actionCard = {
|
|
|
440
358
|
},
|
|
441
359
|
secondary: {
|
|
442
360
|
default: {
|
|
443
|
-
backgroundColor:
|
|
444
|
-
borderColor:
|
|
361
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
362
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
445
363
|
borderWidth: 0,
|
|
446
364
|
shadow: {
|
|
447
365
|
color: '',
|
|
@@ -453,8 +371,8 @@ const actionCard = {
|
|
|
453
371
|
translateY: 0
|
|
454
372
|
},
|
|
455
373
|
disabled: {
|
|
456
|
-
backgroundColor:
|
|
457
|
-
borderColor:
|
|
374
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
375
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
458
376
|
borderWidth: 1,
|
|
459
377
|
shadow: {
|
|
460
378
|
color: '',
|
|
@@ -466,8 +384,8 @@ const actionCard = {
|
|
|
466
384
|
translateY: 0
|
|
467
385
|
},
|
|
468
386
|
hovered: {
|
|
469
|
-
backgroundColor:
|
|
470
|
-
borderColor:
|
|
387
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
388
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
471
389
|
borderWidth: 0,
|
|
472
390
|
shadow: {
|
|
473
391
|
color: '',
|
|
@@ -479,8 +397,8 @@ const actionCard = {
|
|
|
479
397
|
translateY: 0
|
|
480
398
|
},
|
|
481
399
|
focused: {
|
|
482
|
-
backgroundColor:
|
|
483
|
-
borderColor:
|
|
400
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
401
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
484
402
|
borderWidth: 0,
|
|
485
403
|
shadow: {
|
|
486
404
|
color: '',
|
|
@@ -492,8 +410,8 @@ const actionCard = {
|
|
|
492
410
|
translateY: 0
|
|
493
411
|
},
|
|
494
412
|
pressed: {
|
|
495
|
-
backgroundColor:
|
|
496
|
-
borderColor:
|
|
413
|
+
backgroundColor: deepPurpleColorPalette['beige.2'],
|
|
414
|
+
borderColor: deepPurpleColorPalette.transparent,
|
|
497
415
|
borderWidth: 0,
|
|
498
416
|
shadow: {
|
|
499
417
|
color: '',
|
|
@@ -507,11 +425,11 @@ const actionCard = {
|
|
|
507
425
|
},
|
|
508
426
|
highlight: {
|
|
509
427
|
default: {
|
|
510
|
-
backgroundColor:
|
|
511
|
-
borderColor:
|
|
428
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
429
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
512
430
|
borderWidth: 1,
|
|
513
431
|
shadow: {
|
|
514
|
-
color:
|
|
432
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
515
433
|
offsetX: 0,
|
|
516
434
|
offsetY: 4,
|
|
517
435
|
opacity: 1,
|
|
@@ -520,8 +438,8 @@ const actionCard = {
|
|
|
520
438
|
translateY: 0
|
|
521
439
|
},
|
|
522
440
|
disabled: {
|
|
523
|
-
backgroundColor:
|
|
524
|
-
borderColor:
|
|
441
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
442
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
525
443
|
borderWidth: 1,
|
|
526
444
|
shadow: {
|
|
527
445
|
color: '',
|
|
@@ -533,11 +451,11 @@ const actionCard = {
|
|
|
533
451
|
translateY: 0
|
|
534
452
|
},
|
|
535
453
|
hovered: {
|
|
536
|
-
backgroundColor: hex2rgba(
|
|
537
|
-
borderColor:
|
|
454
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
455
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
538
456
|
borderWidth: 1,
|
|
539
457
|
shadow: {
|
|
540
|
-
color:
|
|
458
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
541
459
|
offsetX: 0,
|
|
542
460
|
offsetY: 4,
|
|
543
461
|
opacity: 1,
|
|
@@ -546,11 +464,11 @@ const actionCard = {
|
|
|
546
464
|
translateY: 0
|
|
547
465
|
},
|
|
548
466
|
focused: {
|
|
549
|
-
backgroundColor: hex2rgba(
|
|
550
|
-
borderColor:
|
|
467
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
468
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
551
469
|
borderWidth: 1,
|
|
552
470
|
shadow: {
|
|
553
|
-
color:
|
|
471
|
+
color: deepPurpleColorPalette['beige.3'],
|
|
554
472
|
offsetX: 0,
|
|
555
473
|
offsetY: 4,
|
|
556
474
|
opacity: 1,
|
|
@@ -559,8 +477,8 @@ const actionCard = {
|
|
|
559
477
|
translateY: 0
|
|
560
478
|
},
|
|
561
479
|
pressed: {
|
|
562
|
-
backgroundColor: hex2rgba(
|
|
563
|
-
borderColor:
|
|
480
|
+
backgroundColor: hex2rgba(deepPurpleColorPalette['beige.1'], 0.6),
|
|
481
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
564
482
|
borderWidth: 1,
|
|
565
483
|
shadow: {
|
|
566
484
|
color: '',
|
|
@@ -578,42 +496,28 @@ const defaultAvatarSize = 40;
|
|
|
578
496
|
const defaultAvatarIconSize = 20;
|
|
579
497
|
const largeAvatarSize = 120;
|
|
580
498
|
const largeAvatarIconSize = 30;
|
|
581
|
-
|
|
582
|
-
// export interface AvatarThemeBackgroundColorVariant {
|
|
583
|
-
// default: string;
|
|
584
|
-
// light: string;
|
|
585
|
-
// dark: string;
|
|
586
|
-
// disabled: string;
|
|
587
|
-
// }
|
|
588
|
-
|
|
589
|
-
// export interface AvatarThemeColorVariant {
|
|
590
|
-
// default: string;
|
|
591
|
-
// light: string;
|
|
592
|
-
// disabled: string;
|
|
593
|
-
// }
|
|
594
|
-
|
|
595
499
|
const avatar = {
|
|
596
|
-
borderRadius:
|
|
500
|
+
borderRadius: 4,
|
|
597
501
|
size: defaultAvatarSize,
|
|
598
502
|
iconSize: defaultAvatarIconSize,
|
|
599
503
|
default: {
|
|
600
|
-
color:
|
|
601
|
-
backgroundColor:
|
|
504
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
505
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
602
506
|
},
|
|
603
507
|
light: {
|
|
604
|
-
color:
|
|
605
|
-
backgroundColor:
|
|
508
|
+
color: deepPurpleColorPalette['beige.6'],
|
|
509
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
606
510
|
},
|
|
607
511
|
dark: {
|
|
608
|
-
color:
|
|
609
|
-
backgroundColor:
|
|
512
|
+
color: deepPurpleColorPalette['white-alpha.80'],
|
|
513
|
+
backgroundColor: deepPurpleColorPalette['grey.9']
|
|
610
514
|
},
|
|
611
515
|
disabled: {
|
|
612
|
-
color:
|
|
613
|
-
backgroundColor:
|
|
516
|
+
color: deepPurpleColorPalette['grey.3'],
|
|
517
|
+
backgroundColor: deepPurpleColorPalette['grey.1']
|
|
614
518
|
},
|
|
615
519
|
large: {
|
|
616
|
-
borderRadius:
|
|
520
|
+
borderRadius: 8,
|
|
617
521
|
size: largeAvatarSize,
|
|
618
522
|
iconSize: largeAvatarIconSize
|
|
619
523
|
}
|
|
@@ -626,7 +530,7 @@ const bottomSheet = {
|
|
|
626
530
|
padding: spacing * 4
|
|
627
531
|
},
|
|
628
532
|
handle: {
|
|
629
|
-
backgroundColor:
|
|
533
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
630
534
|
}
|
|
631
535
|
};
|
|
632
536
|
|
|
@@ -694,9 +598,9 @@ const button = {
|
|
|
694
598
|
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
695
599
|
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
696
600
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
697
|
-
color:
|
|
698
|
-
hoverColor:
|
|
699
|
-
activeColor:
|
|
601
|
+
color: deepPurpleColorPalette.white,
|
|
602
|
+
hoverColor: deepPurpleColorPalette.white,
|
|
603
|
+
activeColor: deepPurpleColorPalette.white
|
|
700
604
|
}
|
|
701
605
|
},
|
|
702
606
|
primary: {
|
|
@@ -709,11 +613,11 @@ const button = {
|
|
|
709
613
|
ghost: {
|
|
710
614
|
backgroundColor: colors.uiBackgroundLight,
|
|
711
615
|
pressedBackgroundColor: colors.uiBackground,
|
|
712
|
-
hoverBackgroundColor:
|
|
616
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
713
617
|
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
714
618
|
color: colors.primary,
|
|
715
|
-
hoverColor:
|
|
716
|
-
activeColor:
|
|
619
|
+
hoverColor: deepPurpleColorPalette['beige.2'],
|
|
620
|
+
activeColor: deepPurpleColorPalette['beige.2']
|
|
717
621
|
}
|
|
718
622
|
},
|
|
719
623
|
dark: {
|
|
@@ -726,19 +630,19 @@ const button = {
|
|
|
726
630
|
},
|
|
727
631
|
danger: {
|
|
728
632
|
default: {
|
|
729
|
-
backgroundColor:
|
|
730
|
-
pressedBackgroundColor:
|
|
731
|
-
hoverBackgroundColor:
|
|
732
|
-
focusBorderColor:
|
|
633
|
+
backgroundColor: deepPurpleColorPalette['red.1'],
|
|
634
|
+
pressedBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
635
|
+
hoverBackgroundColor: deepPurpleColorPalette['red.2'],
|
|
636
|
+
focusBorderColor: deepPurpleColorPalette['red.2']
|
|
733
637
|
},
|
|
734
638
|
ghost: {
|
|
735
639
|
backgroundColor: colors.uiBackgroundLight,
|
|
736
640
|
pressedBackgroundColor: colors.uiBackground,
|
|
737
|
-
hoverBackgroundColor:
|
|
641
|
+
hoverBackgroundColor: deepPurpleColorPalette['beige.2'],
|
|
738
642
|
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
739
|
-
color:
|
|
740
|
-
hoverColor:
|
|
741
|
-
activeColor:
|
|
643
|
+
color: deepPurpleColorPalette['red.6'],
|
|
644
|
+
hoverColor: deepPurpleColorPalette['red.6'],
|
|
645
|
+
activeColor: deepPurpleColorPalette['red.6']
|
|
742
646
|
}
|
|
743
647
|
},
|
|
744
648
|
subtle: {
|
|
@@ -779,14 +683,14 @@ const button = {
|
|
|
779
683
|
backgroundColor: colors.disabled,
|
|
780
684
|
pressedBackgroundColor: colors.disabled,
|
|
781
685
|
hoverBackgroundColor: colors.disabled,
|
|
782
|
-
focusBorderColor:
|
|
783
|
-
borderColor:
|
|
686
|
+
focusBorderColor: deepPurpleColorPalette['beige.2'],
|
|
687
|
+
borderColor: deepPurpleColorPalette['beige.2']
|
|
784
688
|
}
|
|
785
689
|
}
|
|
786
690
|
};
|
|
787
691
|
|
|
788
692
|
const buttonBadge = {
|
|
789
|
-
backgroundColor:
|
|
693
|
+
backgroundColor: deepPurpleColorPalette['red.6'],
|
|
790
694
|
dimensions: {
|
|
791
695
|
withBadge: {
|
|
792
696
|
width: 10,
|
|
@@ -815,7 +719,7 @@ const card = {
|
|
|
815
719
|
borderColor: colors.separator
|
|
816
720
|
},
|
|
817
721
|
subtle: {
|
|
818
|
-
backgroundColor:
|
|
722
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
819
723
|
borderColor: colors.separator
|
|
820
724
|
}
|
|
821
725
|
};
|
|
@@ -875,17 +779,17 @@ const choices = {
|
|
|
875
779
|
small: 24
|
|
876
780
|
},
|
|
877
781
|
backgroundColor: {
|
|
878
|
-
default:
|
|
782
|
+
default: deepPurpleColorPalette['beige.1'],
|
|
879
783
|
disabled: colors.disabled,
|
|
880
784
|
selected: colors.primary,
|
|
881
|
-
pressed:
|
|
882
|
-
hover:
|
|
883
|
-
hoverWhenSelected:
|
|
785
|
+
pressed: deepPurpleColorPalette['deepPurple.7'],
|
|
786
|
+
hover: deepPurpleColorPalette['beige.2'],
|
|
787
|
+
hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
|
|
884
788
|
},
|
|
885
789
|
disabled: {
|
|
886
790
|
border: {
|
|
887
791
|
width: 2,
|
|
888
|
-
color:
|
|
792
|
+
color: deepPurpleColorPalette['beige.2']
|
|
889
793
|
}
|
|
890
794
|
},
|
|
891
795
|
transition: {
|
|
@@ -950,19 +854,19 @@ const autocomplete = {
|
|
|
950
854
|
backgroundColor: colors.white
|
|
951
855
|
},
|
|
952
856
|
hovered: {
|
|
953
|
-
backgroundColor:
|
|
857
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
954
858
|
},
|
|
955
859
|
focused: {
|
|
956
|
-
backgroundColor:
|
|
860
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
957
861
|
},
|
|
958
862
|
selected: {
|
|
959
|
-
backgroundColor:
|
|
863
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
960
864
|
},
|
|
961
865
|
highlighted: {
|
|
962
|
-
backgroundColor:
|
|
866
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
963
867
|
},
|
|
964
868
|
pressed: {
|
|
965
|
-
backgroundColor:
|
|
869
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
966
870
|
}
|
|
967
871
|
},
|
|
968
872
|
optionsContainer: {
|
|
@@ -1030,37 +934,37 @@ const datePicker = {
|
|
|
1030
934
|
|
|
1031
935
|
const inputStatesStyle = {
|
|
1032
936
|
default: {
|
|
1033
|
-
backgroundColor:
|
|
1034
|
-
borderColor:
|
|
1035
|
-
color:
|
|
937
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
938
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
939
|
+
color: deepPurpleColorPalette.black
|
|
1036
940
|
},
|
|
1037
941
|
pending: {
|
|
1038
|
-
backgroundColor:
|
|
1039
|
-
borderColor:
|
|
1040
|
-
color:
|
|
942
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
943
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
944
|
+
color: deepPurpleColorPalette.black
|
|
1041
945
|
},
|
|
1042
946
|
valid: {
|
|
1043
|
-
backgroundColor:
|
|
1044
|
-
borderColor:
|
|
1045
|
-
color:
|
|
947
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
948
|
+
borderColor: deepPurpleColorPalette['beige.3'],
|
|
949
|
+
color: deepPurpleColorPalette.black
|
|
1046
950
|
},
|
|
1047
951
|
hover: {
|
|
1048
|
-
backgroundColor:
|
|
1049
|
-
borderColor:
|
|
1050
|
-
color:
|
|
952
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
953
|
+
borderColor: deepPurpleColorPalette['beige.4'],
|
|
954
|
+
color: deepPurpleColorPalette.black
|
|
1051
955
|
},
|
|
1052
956
|
focus: {
|
|
1053
|
-
borderColor:
|
|
1054
|
-
color:
|
|
957
|
+
borderColor: deepPurpleColorPalette['deepPurple.8'],
|
|
958
|
+
color: deepPurpleColorPalette.black
|
|
1055
959
|
},
|
|
1056
960
|
disabled: {
|
|
1057
|
-
backgroundColor:
|
|
1058
|
-
borderColor:
|
|
1059
|
-
color:
|
|
961
|
+
backgroundColor: deepPurpleColorPalette['grey.1'],
|
|
962
|
+
borderColor: deepPurpleColorPalette['grey.1'],
|
|
963
|
+
color: deepPurpleColorPalette['grey.3']
|
|
1060
964
|
},
|
|
1061
965
|
invalid: {
|
|
1062
|
-
borderColor:
|
|
1063
|
-
color:
|
|
966
|
+
borderColor: deepPurpleColorPalette['beige.2'],
|
|
967
|
+
color: deepPurpleColorPalette.black
|
|
1064
968
|
}
|
|
1065
969
|
};
|
|
1066
970
|
const webAnimationDuration = '200ms';
|
|
@@ -1069,11 +973,11 @@ const webAnimationProperties = ['border-color', 'background-color'];
|
|
|
1069
973
|
const input = {
|
|
1070
974
|
minHeight: 40,
|
|
1071
975
|
color: {
|
|
1072
|
-
selection:
|
|
1073
|
-
placeholder:
|
|
976
|
+
selection: deepPurpleColorPalette['deepPurple.8'],
|
|
977
|
+
placeholder: deepPurpleColorPalette['beige.6']
|
|
1074
978
|
},
|
|
1075
979
|
borderWidth: 1,
|
|
1076
|
-
borderRadius:
|
|
980
|
+
borderRadius: 4,
|
|
1077
981
|
icon: {
|
|
1078
982
|
size: 20
|
|
1079
983
|
},
|
|
@@ -1110,7 +1014,7 @@ const inputTag = {
|
|
|
1110
1014
|
labelColor: colors.uiBackgroundLight
|
|
1111
1015
|
},
|
|
1112
1016
|
default: {
|
|
1113
|
-
backgroundColor:
|
|
1017
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1114
1018
|
labelColor: colors.black
|
|
1115
1019
|
},
|
|
1116
1020
|
borderRadius: 10,
|
|
@@ -1120,9 +1024,9 @@ const inputTag = {
|
|
|
1120
1024
|
const radio = {
|
|
1121
1025
|
size: 24,
|
|
1122
1026
|
unchecked: {
|
|
1123
|
-
borderWidth:
|
|
1027
|
+
borderWidth: 1,
|
|
1124
1028
|
backgroundColor: colors.uiBackgroundLight,
|
|
1125
|
-
borderColor:
|
|
1029
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1126
1030
|
},
|
|
1127
1031
|
checked: {
|
|
1128
1032
|
backgroundColor: colors.primary,
|
|
@@ -1139,8 +1043,9 @@ const radio = {
|
|
|
1139
1043
|
borderColor: colors.primary
|
|
1140
1044
|
},
|
|
1141
1045
|
disabled: {
|
|
1142
|
-
backgroundColor:
|
|
1143
|
-
borderColor: colors.
|
|
1046
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1047
|
+
borderColor: colors.transparent,
|
|
1048
|
+
innerBackgroundColor: deepPurpleColorPalette['grey.1']
|
|
1144
1049
|
},
|
|
1145
1050
|
transition: {
|
|
1146
1051
|
duration: '200ms',
|
|
@@ -1151,14 +1056,19 @@ const radio = {
|
|
|
1151
1056
|
const radioButtonGroup = {
|
|
1152
1057
|
item: {
|
|
1153
1058
|
minHeight: 40,
|
|
1154
|
-
borderWidth:
|
|
1155
|
-
borderRadius:
|
|
1059
|
+
borderWidth: 1,
|
|
1060
|
+
borderRadius: 4,
|
|
1061
|
+
font: {
|
|
1062
|
+
color: {
|
|
1063
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1156
1066
|
borderColor: {
|
|
1157
1067
|
default: colors.separator,
|
|
1158
1068
|
hover: colors.primary,
|
|
1159
1069
|
pressed: colors.primary,
|
|
1160
1070
|
active: colors.primary,
|
|
1161
|
-
disabled: colors.
|
|
1071
|
+
disabled: colors.disabled
|
|
1162
1072
|
},
|
|
1163
1073
|
backgroundColor: {
|
|
1164
1074
|
default: colors.uiBackgroundLight,
|
|
@@ -1199,17 +1109,17 @@ const toggle = {
|
|
|
1199
1109
|
medium: 50,
|
|
1200
1110
|
large: 66
|
|
1201
1111
|
},
|
|
1202
|
-
labelColor:
|
|
1112
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1203
1113
|
backgroundColor: {
|
|
1204
|
-
checked:
|
|
1205
|
-
unchecked:
|
|
1114
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1115
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1206
1116
|
},
|
|
1207
1117
|
border: {
|
|
1208
1118
|
color: 'transparent',
|
|
1209
1119
|
width: 1
|
|
1210
1120
|
},
|
|
1211
1121
|
circle: {
|
|
1212
|
-
backgroundColor:
|
|
1122
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1213
1123
|
width: {
|
|
1214
1124
|
medium: 18,
|
|
1215
1125
|
large: 24
|
|
@@ -1237,17 +1147,17 @@ const toggle = {
|
|
|
1237
1147
|
medium: 50,
|
|
1238
1148
|
large: 66
|
|
1239
1149
|
},
|
|
1240
|
-
labelColor:
|
|
1150
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1241
1151
|
backgroundColor: {
|
|
1242
|
-
checked:
|
|
1243
|
-
unchecked:
|
|
1152
|
+
checked: deepPurpleColorPalette['deepPurple.7'],
|
|
1153
|
+
unchecked: deepPurpleColorPalette['beige.4']
|
|
1244
1154
|
},
|
|
1245
1155
|
border: {
|
|
1246
1156
|
color: 'transparent',
|
|
1247
1157
|
width: 1
|
|
1248
1158
|
},
|
|
1249
1159
|
circle: {
|
|
1250
|
-
backgroundColor:
|
|
1160
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1251
1161
|
width: {
|
|
1252
1162
|
medium: 18,
|
|
1253
1163
|
large: 24
|
|
@@ -1275,17 +1185,17 @@ const toggle = {
|
|
|
1275
1185
|
medium: 50,
|
|
1276
1186
|
large: 66
|
|
1277
1187
|
},
|
|
1278
|
-
labelColor:
|
|
1188
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1279
1189
|
backgroundColor: {
|
|
1280
|
-
checked:
|
|
1281
|
-
unchecked:
|
|
1190
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1191
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1282
1192
|
},
|
|
1283
1193
|
border: {
|
|
1284
|
-
color:
|
|
1194
|
+
color: deepPurpleColorPalette.white,
|
|
1285
1195
|
width: 1
|
|
1286
1196
|
},
|
|
1287
1197
|
circle: {
|
|
1288
|
-
backgroundColor:
|
|
1198
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1289
1199
|
width: {
|
|
1290
1200
|
medium: 18,
|
|
1291
1201
|
large: 24
|
|
@@ -1300,7 +1210,7 @@ const toggle = {
|
|
|
1300
1210
|
}
|
|
1301
1211
|
},
|
|
1302
1212
|
wrapperBorder: {
|
|
1303
|
-
color:
|
|
1213
|
+
color: deepPurpleColorPalette.black,
|
|
1304
1214
|
width: 1
|
|
1305
1215
|
}
|
|
1306
1216
|
},
|
|
@@ -1313,17 +1223,17 @@ const toggle = {
|
|
|
1313
1223
|
medium: 50,
|
|
1314
1224
|
large: 66
|
|
1315
1225
|
},
|
|
1316
|
-
labelColor:
|
|
1226
|
+
labelColor: deepPurpleColorPalette.black,
|
|
1317
1227
|
backgroundColor: {
|
|
1318
|
-
checked:
|
|
1319
|
-
unchecked:
|
|
1228
|
+
checked: deepPurpleColorPalette['deepPurple.8'],
|
|
1229
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1320
1230
|
},
|
|
1321
1231
|
border: {
|
|
1322
|
-
color:
|
|
1232
|
+
color: deepPurpleColorPalette.white,
|
|
1323
1233
|
width: 1
|
|
1324
1234
|
},
|
|
1325
1235
|
circle: {
|
|
1326
|
-
backgroundColor:
|
|
1236
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1327
1237
|
width: {
|
|
1328
1238
|
medium: 18,
|
|
1329
1239
|
large: 24
|
|
@@ -1338,7 +1248,7 @@ const toggle = {
|
|
|
1338
1248
|
}
|
|
1339
1249
|
},
|
|
1340
1250
|
wrapperBorder: {
|
|
1341
|
-
color:
|
|
1251
|
+
color: deepPurpleColorPalette.black,
|
|
1342
1252
|
width: 1
|
|
1343
1253
|
}
|
|
1344
1254
|
}
|
|
@@ -1353,17 +1263,17 @@ const toggle = {
|
|
|
1353
1263
|
medium: 50,
|
|
1354
1264
|
large: 66
|
|
1355
1265
|
},
|
|
1356
|
-
labelColor:
|
|
1266
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1357
1267
|
backgroundColor: {
|
|
1358
|
-
checked:
|
|
1359
|
-
unchecked:
|
|
1268
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1269
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1360
1270
|
},
|
|
1361
1271
|
border: {
|
|
1362
1272
|
color: 'transparent',
|
|
1363
1273
|
width: 1
|
|
1364
1274
|
},
|
|
1365
1275
|
circle: {
|
|
1366
|
-
backgroundColor:
|
|
1276
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1367
1277
|
width: {
|
|
1368
1278
|
medium: 18,
|
|
1369
1279
|
large: 24
|
|
@@ -1391,17 +1301,17 @@ const toggle = {
|
|
|
1391
1301
|
medium: 50,
|
|
1392
1302
|
large: 66
|
|
1393
1303
|
},
|
|
1394
|
-
labelColor:
|
|
1304
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1395
1305
|
backgroundColor: {
|
|
1396
|
-
checked:
|
|
1397
|
-
unchecked:
|
|
1306
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1307
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1398
1308
|
},
|
|
1399
1309
|
border: {
|
|
1400
1310
|
color: 'transparent',
|
|
1401
1311
|
width: 1
|
|
1402
1312
|
},
|
|
1403
1313
|
circle: {
|
|
1404
|
-
backgroundColor:
|
|
1314
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1405
1315
|
width: {
|
|
1406
1316
|
medium: 18,
|
|
1407
1317
|
large: 24
|
|
@@ -1429,17 +1339,17 @@ const toggle = {
|
|
|
1429
1339
|
medium: 50,
|
|
1430
1340
|
large: 66
|
|
1431
1341
|
},
|
|
1432
|
-
labelColor:
|
|
1342
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1433
1343
|
backgroundColor: {
|
|
1434
|
-
checked:
|
|
1435
|
-
unchecked:
|
|
1344
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1345
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1436
1346
|
},
|
|
1437
1347
|
border: {
|
|
1438
1348
|
color: 'transparent',
|
|
1439
1349
|
width: 1
|
|
1440
1350
|
},
|
|
1441
1351
|
circle: {
|
|
1442
|
-
backgroundColor:
|
|
1352
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1443
1353
|
width: {
|
|
1444
1354
|
medium: 18,
|
|
1445
1355
|
large: 24
|
|
@@ -1454,7 +1364,7 @@ const toggle = {
|
|
|
1454
1364
|
}
|
|
1455
1365
|
},
|
|
1456
1366
|
wrapperBorder: {
|
|
1457
|
-
color:
|
|
1367
|
+
color: deepPurpleColorPalette.black,
|
|
1458
1368
|
width: 1
|
|
1459
1369
|
}
|
|
1460
1370
|
},
|
|
@@ -1467,17 +1377,17 @@ const toggle = {
|
|
|
1467
1377
|
medium: 50,
|
|
1468
1378
|
large: 66
|
|
1469
1379
|
},
|
|
1470
|
-
labelColor:
|
|
1380
|
+
labelColor: deepPurpleColorPalette['beige.2'],
|
|
1471
1381
|
backgroundColor: {
|
|
1472
|
-
checked:
|
|
1473
|
-
unchecked:
|
|
1382
|
+
checked: deepPurpleColorPalette['grey.1'],
|
|
1383
|
+
unchecked: deepPurpleColorPalette['grey.1']
|
|
1474
1384
|
},
|
|
1475
1385
|
border: {
|
|
1476
1386
|
color: 'transparent',
|
|
1477
1387
|
width: 1
|
|
1478
1388
|
},
|
|
1479
1389
|
circle: {
|
|
1480
|
-
backgroundColor:
|
|
1390
|
+
backgroundColor: deepPurpleColorPalette['grey.3'],
|
|
1481
1391
|
width: {
|
|
1482
1392
|
medium: 18,
|
|
1483
1393
|
large: 24
|
|
@@ -1492,7 +1402,7 @@ const toggle = {
|
|
|
1492
1402
|
}
|
|
1493
1403
|
},
|
|
1494
1404
|
wrapperBorder: {
|
|
1495
|
-
color:
|
|
1405
|
+
color: deepPurpleColorPalette.black,
|
|
1496
1406
|
width: 1
|
|
1497
1407
|
}
|
|
1498
1408
|
}
|
|
@@ -1509,17 +1419,17 @@ const toggle = {
|
|
|
1509
1419
|
medium: 50,
|
|
1510
1420
|
large: 66
|
|
1511
1421
|
},
|
|
1512
|
-
labelColor:
|
|
1422
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1513
1423
|
backgroundColor: {
|
|
1514
|
-
checked:
|
|
1515
|
-
unchecked:
|
|
1424
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1425
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1516
1426
|
},
|
|
1517
1427
|
border: {
|
|
1518
1428
|
color: 'transparent',
|
|
1519
1429
|
width: 1
|
|
1520
1430
|
},
|
|
1521
1431
|
circle: {
|
|
1522
|
-
backgroundColor:
|
|
1432
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1523
1433
|
width: {
|
|
1524
1434
|
medium: 18,
|
|
1525
1435
|
large: 24
|
|
@@ -1547,17 +1457,17 @@ const toggle = {
|
|
|
1547
1457
|
medium: 50,
|
|
1548
1458
|
large: 66
|
|
1549
1459
|
},
|
|
1550
|
-
labelColor:
|
|
1460
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1551
1461
|
backgroundColor: {
|
|
1552
|
-
checked:
|
|
1553
|
-
unchecked:
|
|
1462
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1463
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1554
1464
|
},
|
|
1555
1465
|
border: {
|
|
1556
1466
|
color: 'transparent',
|
|
1557
1467
|
width: 1
|
|
1558
1468
|
},
|
|
1559
1469
|
circle: {
|
|
1560
|
-
backgroundColor:
|
|
1470
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1561
1471
|
width: {
|
|
1562
1472
|
medium: 18,
|
|
1563
1473
|
large: 24
|
|
@@ -1585,17 +1495,17 @@ const toggle = {
|
|
|
1585
1495
|
medium: 50,
|
|
1586
1496
|
large: 66
|
|
1587
1497
|
},
|
|
1588
|
-
labelColor:
|
|
1498
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1589
1499
|
backgroundColor: {
|
|
1590
|
-
checked:
|
|
1591
|
-
unchecked:
|
|
1500
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1501
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1592
1502
|
},
|
|
1593
1503
|
border: {
|
|
1594
|
-
color:
|
|
1504
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1595
1505
|
width: 1
|
|
1596
1506
|
},
|
|
1597
1507
|
circle: {
|
|
1598
|
-
backgroundColor:
|
|
1508
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1599
1509
|
width: {
|
|
1600
1510
|
medium: 18,
|
|
1601
1511
|
large: 24
|
|
@@ -1610,7 +1520,7 @@ const toggle = {
|
|
|
1610
1520
|
}
|
|
1611
1521
|
},
|
|
1612
1522
|
wrapperBorder: {
|
|
1613
|
-
color:
|
|
1523
|
+
color: deepPurpleColorPalette.white,
|
|
1614
1524
|
width: 1
|
|
1615
1525
|
}
|
|
1616
1526
|
},
|
|
@@ -1623,17 +1533,17 @@ const toggle = {
|
|
|
1623
1533
|
medium: 50,
|
|
1624
1534
|
large: 66
|
|
1625
1535
|
},
|
|
1626
|
-
labelColor:
|
|
1536
|
+
labelColor: deepPurpleColorPalette.white,
|
|
1627
1537
|
backgroundColor: {
|
|
1628
|
-
checked:
|
|
1629
|
-
unchecked:
|
|
1538
|
+
checked: deepPurpleColorPalette['deepPurple.9'],
|
|
1539
|
+
unchecked: deepPurpleColorPalette['beige.3']
|
|
1630
1540
|
},
|
|
1631
1541
|
border: {
|
|
1632
|
-
color:
|
|
1542
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1633
1543
|
width: 1
|
|
1634
1544
|
},
|
|
1635
1545
|
circle: {
|
|
1636
|
-
backgroundColor:
|
|
1546
|
+
backgroundColor: deepPurpleColorPalette.white,
|
|
1637
1547
|
width: {
|
|
1638
1548
|
medium: 18,
|
|
1639
1549
|
large: 24
|
|
@@ -1648,7 +1558,7 @@ const toggle = {
|
|
|
1648
1558
|
}
|
|
1649
1559
|
},
|
|
1650
1560
|
wrapperBorder: {
|
|
1651
|
-
color:
|
|
1561
|
+
color: deepPurpleColorPalette.white,
|
|
1652
1562
|
width: 1
|
|
1653
1563
|
}
|
|
1654
1564
|
}
|
|
@@ -1663,17 +1573,17 @@ const toggle = {
|
|
|
1663
1573
|
medium: 50,
|
|
1664
1574
|
large: 66
|
|
1665
1575
|
},
|
|
1666
|
-
labelColor:
|
|
1576
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1667
1577
|
backgroundColor: {
|
|
1668
|
-
checked:
|
|
1669
|
-
unchecked:
|
|
1578
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1579
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1670
1580
|
},
|
|
1671
1581
|
border: {
|
|
1672
1582
|
color: 'transparent',
|
|
1673
1583
|
width: 1
|
|
1674
1584
|
},
|
|
1675
1585
|
circle: {
|
|
1676
|
-
backgroundColor:
|
|
1586
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1677
1587
|
width: {
|
|
1678
1588
|
medium: 18,
|
|
1679
1589
|
large: 24
|
|
@@ -1701,17 +1611,17 @@ const toggle = {
|
|
|
1701
1611
|
medium: 50,
|
|
1702
1612
|
large: 66
|
|
1703
1613
|
},
|
|
1704
|
-
labelColor:
|
|
1614
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1705
1615
|
backgroundColor: {
|
|
1706
|
-
checked:
|
|
1707
|
-
unchecked:
|
|
1616
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1617
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1708
1618
|
},
|
|
1709
1619
|
border: {
|
|
1710
1620
|
color: 'transparent',
|
|
1711
1621
|
width: 1
|
|
1712
1622
|
},
|
|
1713
1623
|
circle: {
|
|
1714
|
-
backgroundColor:
|
|
1624
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1715
1625
|
width: {
|
|
1716
1626
|
medium: 18,
|
|
1717
1627
|
large: 24
|
|
@@ -1739,17 +1649,17 @@ const toggle = {
|
|
|
1739
1649
|
medium: 50,
|
|
1740
1650
|
large: 66
|
|
1741
1651
|
},
|
|
1742
|
-
labelColor:
|
|
1652
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1743
1653
|
backgroundColor: {
|
|
1744
|
-
checked:
|
|
1745
|
-
unchecked:
|
|
1654
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1655
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1746
1656
|
},
|
|
1747
1657
|
border: {
|
|
1748
|
-
color:
|
|
1658
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1749
1659
|
width: 1
|
|
1750
1660
|
},
|
|
1751
1661
|
circle: {
|
|
1752
|
-
backgroundColor:
|
|
1662
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1753
1663
|
width: {
|
|
1754
1664
|
medium: 18,
|
|
1755
1665
|
large: 24
|
|
@@ -1764,7 +1674,7 @@ const toggle = {
|
|
|
1764
1674
|
}
|
|
1765
1675
|
},
|
|
1766
1676
|
wrapperBorder: {
|
|
1767
|
-
color:
|
|
1677
|
+
color: deepPurpleColorPalette.white,
|
|
1768
1678
|
width: 1
|
|
1769
1679
|
}
|
|
1770
1680
|
},
|
|
@@ -1777,17 +1687,17 @@ const toggle = {
|
|
|
1777
1687
|
medium: 50,
|
|
1778
1688
|
large: 66
|
|
1779
1689
|
},
|
|
1780
|
-
labelColor:
|
|
1690
|
+
labelColor: deepPurpleColorPalette['beige.5'],
|
|
1781
1691
|
backgroundColor: {
|
|
1782
|
-
checked:
|
|
1783
|
-
unchecked:
|
|
1692
|
+
checked: deepPurpleColorPalette['beige.5'],
|
|
1693
|
+
unchecked: deepPurpleColorPalette['beige.5']
|
|
1784
1694
|
},
|
|
1785
1695
|
border: {
|
|
1786
|
-
color:
|
|
1696
|
+
color: deepPurpleColorPalette['deepPurple.7'],
|
|
1787
1697
|
width: 1
|
|
1788
1698
|
},
|
|
1789
1699
|
circle: {
|
|
1790
|
-
backgroundColor:
|
|
1700
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.7'],
|
|
1791
1701
|
width: {
|
|
1792
1702
|
medium: 18,
|
|
1793
1703
|
large: 24
|
|
@@ -1802,7 +1712,7 @@ const toggle = {
|
|
|
1802
1712
|
}
|
|
1803
1713
|
},
|
|
1804
1714
|
wrapperBorder: {
|
|
1805
|
-
color:
|
|
1715
|
+
color: deepPurpleColorPalette.white,
|
|
1806
1716
|
width: 1
|
|
1807
1717
|
}
|
|
1808
1718
|
}
|
|
@@ -1864,50 +1774,50 @@ const highlight = {
|
|
|
1864
1774
|
},
|
|
1865
1775
|
primary: {
|
|
1866
1776
|
default: {
|
|
1867
|
-
backgroundColor:
|
|
1777
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1868
1778
|
},
|
|
1869
1779
|
hover: {
|
|
1870
|
-
backgroundColor:
|
|
1780
|
+
backgroundColor: deepPurpleColorPalette['beige.4']
|
|
1871
1781
|
}
|
|
1872
1782
|
},
|
|
1873
1783
|
secondary: {
|
|
1874
1784
|
default: {
|
|
1875
|
-
backgroundColor:
|
|
1785
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1876
1786
|
},
|
|
1877
1787
|
hover: {
|
|
1878
|
-
backgroundColor:
|
|
1788
|
+
backgroundColor: deepPurpleColorPalette['beige.3']
|
|
1879
1789
|
}
|
|
1880
1790
|
},
|
|
1881
1791
|
ghost: {
|
|
1882
1792
|
default: {
|
|
1883
|
-
backgroundColor:
|
|
1793
|
+
backgroundColor: deepPurpleColorPalette.white
|
|
1884
1794
|
},
|
|
1885
1795
|
hover: {
|
|
1886
|
-
backgroundColor:
|
|
1796
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1887
1797
|
}
|
|
1888
1798
|
},
|
|
1889
1799
|
dark: {
|
|
1890
1800
|
default: {
|
|
1891
|
-
backgroundColor:
|
|
1801
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
1892
1802
|
},
|
|
1893
1803
|
hover: {
|
|
1894
|
-
backgroundColor:
|
|
1804
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1895
1805
|
}
|
|
1896
1806
|
},
|
|
1897
1807
|
success: {
|
|
1898
1808
|
default: {
|
|
1899
|
-
backgroundColor:
|
|
1809
|
+
backgroundColor: deepPurpleColorPalette['green.1']
|
|
1900
1810
|
},
|
|
1901
1811
|
hover: {
|
|
1902
|
-
backgroundColor:
|
|
1812
|
+
backgroundColor: deepPurpleColorPalette['green.2']
|
|
1903
1813
|
}
|
|
1904
1814
|
},
|
|
1905
1815
|
warning: {
|
|
1906
1816
|
default: {
|
|
1907
|
-
backgroundColor:
|
|
1817
|
+
backgroundColor: deepPurpleColorPalette['yellow.1']
|
|
1908
1818
|
},
|
|
1909
1819
|
hover: {
|
|
1910
|
-
backgroundColor:
|
|
1820
|
+
backgroundColor: deepPurpleColorPalette['yellow.2']
|
|
1911
1821
|
}
|
|
1912
1822
|
},
|
|
1913
1823
|
padding: {
|
|
@@ -1947,14 +1857,6 @@ const icon = {
|
|
|
1947
1857
|
header4: createTypographyIconSizeConfig(18, 24),
|
|
1948
1858
|
// also known as xxsmall
|
|
1949
1859
|
header5: createTypographyIconSizeConfig(18, 18),
|
|
1950
|
-
'header-impact-xxl': createTypographyIconSizeConfig(56, 56),
|
|
1951
|
-
'header-impact-xl': createTypographyIconSizeConfig(48, 48),
|
|
1952
|
-
'header-impact-l': createTypographyIconSizeConfig(40, 40),
|
|
1953
|
-
'header-impact-m': createTypographyIconSizeConfig(32, 32),
|
|
1954
|
-
'header-impact-s': createTypographyIconSizeConfig(24, 24),
|
|
1955
|
-
'header-impact-xs': createTypographyIconSizeConfig(18, 18),
|
|
1956
|
-
'header-impact-xxs': createTypographyIconSizeConfig(16, 16),
|
|
1957
|
-
'header-impact-xxxs': createTypographyIconSizeConfig(14, 14),
|
|
1958
1860
|
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1959
1861
|
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1960
1862
|
body: createTypographyIconSizeConfig(16, 16),
|
|
@@ -1999,7 +1901,7 @@ const iconButton = {
|
|
|
1999
1901
|
pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
|
|
2000
1902
|
},
|
|
2001
1903
|
primary: {
|
|
2002
|
-
pressedBackgroundColor:
|
|
1904
|
+
pressedBackgroundColor: deepPurpleColorPalette['beige.1']
|
|
2003
1905
|
},
|
|
2004
1906
|
'primary-plain': {
|
|
2005
1907
|
pressedBackgroundColor: colors.primaryLight,
|
|
@@ -2074,149 +1976,198 @@ const pageLoader = {
|
|
|
2074
1976
|
}
|
|
2075
1977
|
};
|
|
2076
1978
|
|
|
2077
|
-
const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
|
|
2078
|
-
/** @deprecated legacy typography type config is deprecated. */
|
|
2079
|
-
const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
|
|
2080
|
-
baseAndSmall: {
|
|
2081
|
-
fontSize: baseAndSmallFontSize,
|
|
2082
|
-
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
|
|
2083
|
-
},
|
|
2084
|
-
mediumAndWide: {
|
|
2085
|
-
fontSize: mediumAndWideFontSize,
|
|
2086
|
-
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
|
|
2087
|
-
}
|
|
2088
|
-
});
|
|
2089
|
-
const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
|
|
2090
|
-
const config = {
|
|
2091
|
-
fontSize,
|
|
2092
|
-
lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
|
|
2093
|
-
};
|
|
2094
|
-
return {
|
|
2095
|
-
baseAndSmall: config,
|
|
2096
|
-
mediumAndWide: config
|
|
2097
|
-
};
|
|
2098
|
-
};
|
|
2099
1979
|
const typography = {
|
|
2100
1980
|
colors: {
|
|
2101
1981
|
black: colors.black,
|
|
2102
1982
|
'black-anthracite': colors.blackAnthracite,
|
|
2103
|
-
'black-disabled':
|
|
2104
|
-
'black-light':
|
|
1983
|
+
'black-disabled': deepPurpleColorPalette['grey.3'],
|
|
1984
|
+
'black-light': deepPurpleColorPalette['grey.5'],
|
|
2105
1985
|
white: colors.white,
|
|
2106
1986
|
'white-light': colors.white,
|
|
2107
1987
|
primary: colors.primary,
|
|
2108
1988
|
'primary-light': colors.primaryLight,
|
|
2109
1989
|
accent: colors.accent,
|
|
2110
1990
|
success: colors.success,
|
|
2111
|
-
danger:
|
|
1991
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
2112
1992
|
warning: colors.warning
|
|
2113
1993
|
},
|
|
2114
1994
|
types: {
|
|
2115
1995
|
headings: {
|
|
2116
1996
|
fontFamily: {
|
|
2117
1997
|
native: {
|
|
2118
|
-
regular: '
|
|
2119
|
-
|
|
1998
|
+
regular: 'GTStandardRegular',
|
|
1999
|
+
semibold: 'GTStandardSemibold',
|
|
2000
|
+
bold: 'GTStandardBold'
|
|
2120
2001
|
},
|
|
2121
2002
|
web: {
|
|
2122
|
-
regular: '
|
|
2123
|
-
|
|
2003
|
+
regular: 'GTStandard',
|
|
2004
|
+
semibold: 'GTStandard',
|
|
2005
|
+
bold: 'GTStandard'
|
|
2124
2006
|
}
|
|
2125
2007
|
},
|
|
2126
2008
|
fontWeight: {
|
|
2127
|
-
regular:
|
|
2009
|
+
regular: 500,
|
|
2010
|
+
semibold: 600,
|
|
2128
2011
|
bold: 700
|
|
2129
2012
|
},
|
|
2130
2013
|
fontStyle: 'normal',
|
|
2131
2014
|
configs: {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
'heading-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2015
|
+
'heading-xxl': {
|
|
2016
|
+
fontSize: 56,
|
|
2017
|
+
lineHeight: 64,
|
|
2018
|
+
allowedFontWeights: ['semibold']
|
|
2019
|
+
},
|
|
2020
|
+
'heading-xl': {
|
|
2021
|
+
fontSize: 48,
|
|
2022
|
+
lineHeight: 56,
|
|
2023
|
+
allowedFontWeights: ['semibold']
|
|
2024
|
+
},
|
|
2025
|
+
'heading-l': {
|
|
2026
|
+
fontSize: 40,
|
|
2027
|
+
lineHeight: 48,
|
|
2028
|
+
allowedFontWeights: ['semibold']
|
|
2029
|
+
},
|
|
2030
|
+
'heading-m': {
|
|
2031
|
+
fontSize: 28,
|
|
2032
|
+
lineHeight: 32,
|
|
2033
|
+
allowedFontWeights: ['semibold']
|
|
2034
|
+
},
|
|
2035
|
+
'heading-s': {
|
|
2036
|
+
fontSize: 18,
|
|
2037
|
+
lineHeight: 20,
|
|
2038
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2039
|
+
},
|
|
2040
|
+
'heading-xs': {
|
|
2041
|
+
fontSize: 16,
|
|
2042
|
+
lineHeight: 18,
|
|
2043
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2044
|
+
}
|
|
2146
2045
|
}
|
|
2147
2046
|
},
|
|
2148
|
-
|
|
2047
|
+
bodies: {
|
|
2149
2048
|
fontFamily: {
|
|
2150
2049
|
native: {
|
|
2151
|
-
regular: '
|
|
2152
|
-
bold: '
|
|
2050
|
+
regular: 'GTStandardRegular',
|
|
2051
|
+
bold: 'GTStandardBold'
|
|
2153
2052
|
},
|
|
2154
2053
|
web: {
|
|
2155
|
-
regular: '
|
|
2156
|
-
bold: '
|
|
2054
|
+
regular: 'GTStandard',
|
|
2055
|
+
bold: 'GTStandard'
|
|
2157
2056
|
}
|
|
2158
2057
|
},
|
|
2159
|
-
fontWeight:
|
|
2160
|
-
|
|
2058
|
+
fontWeight: {
|
|
2059
|
+
regular: 500,
|
|
2060
|
+
bold: 700
|
|
2061
|
+
},
|
|
2062
|
+
fontStyle: {
|
|
2063
|
+
regular: 'normal',
|
|
2064
|
+
bold: 'normal'
|
|
2065
|
+
},
|
|
2161
2066
|
configs: {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
'
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
'
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
'
|
|
2178
|
-
|
|
2179
|
-
|
|
2067
|
+
'body-xl': {
|
|
2068
|
+
fontSize: 24,
|
|
2069
|
+
lineHeight: 32,
|
|
2070
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2071
|
+
},
|
|
2072
|
+
'body-l': {
|
|
2073
|
+
fontSize: 18,
|
|
2074
|
+
lineHeight: 26,
|
|
2075
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2076
|
+
},
|
|
2077
|
+
'body-m': {
|
|
2078
|
+
fontSize: 16,
|
|
2079
|
+
lineHeight: 24,
|
|
2080
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2081
|
+
},
|
|
2082
|
+
'body-s': {
|
|
2083
|
+
fontSize: 14,
|
|
2084
|
+
lineHeight: 20,
|
|
2085
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2086
|
+
},
|
|
2087
|
+
'body-xs': {
|
|
2088
|
+
fontSize: 12,
|
|
2089
|
+
lineHeight: 16,
|
|
2090
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2091
|
+
}
|
|
2180
2092
|
}
|
|
2181
2093
|
},
|
|
2182
|
-
|
|
2094
|
+
labels: {
|
|
2183
2095
|
fontFamily: {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
bold: 'Moderat'
|
|
2096
|
+
native: {
|
|
2097
|
+
semibold: 'GTStandardSemibold'
|
|
2187
2098
|
},
|
|
2099
|
+
web: {
|
|
2100
|
+
semibold: 'GTStandard'
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
fontWeight: {
|
|
2104
|
+
semibold: 600
|
|
2105
|
+
},
|
|
2106
|
+
fontStyle: 'normal',
|
|
2107
|
+
configs: {
|
|
2108
|
+
'label-large': {
|
|
2109
|
+
fontSize: 16,
|
|
2110
|
+
lineHeight: 24,
|
|
2111
|
+
allowedFontWeights: ['semibold']
|
|
2112
|
+
},
|
|
2113
|
+
'label-medium': {
|
|
2114
|
+
fontSize: 14,
|
|
2115
|
+
lineHeight: 20,
|
|
2116
|
+
allowedFontWeights: ['semibold']
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
contentCaps: {
|
|
2121
|
+
fontFamily: {
|
|
2188
2122
|
native: {
|
|
2189
|
-
|
|
2190
|
-
|
|
2123
|
+
bold: 'GTStandardNarrowBold'
|
|
2124
|
+
},
|
|
2125
|
+
web: {
|
|
2126
|
+
bold: 'GTStandardNarrow'
|
|
2191
2127
|
}
|
|
2192
2128
|
},
|
|
2193
2129
|
fontWeight: {
|
|
2194
|
-
regular: 400,
|
|
2195
2130
|
bold: 700
|
|
2196
2131
|
},
|
|
2197
|
-
fontStyle:
|
|
2198
|
-
regular: 'normal',
|
|
2199
|
-
bold: 'normal'
|
|
2200
|
-
},
|
|
2132
|
+
fontStyle: 'normal',
|
|
2201
2133
|
configs: {
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
'
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
'
|
|
2213
|
-
|
|
2134
|
+
'content-caps-xxxl': {
|
|
2135
|
+
fontSize: 40,
|
|
2136
|
+
lineHeight: 40,
|
|
2137
|
+
allowedFontWeights: ['bold']
|
|
2138
|
+
},
|
|
2139
|
+
'content-caps-xxl': {
|
|
2140
|
+
fontSize: 32,
|
|
2141
|
+
lineHeight: 40,
|
|
2142
|
+
allowedFontWeights: ['bold']
|
|
2143
|
+
},
|
|
2144
|
+
'content-caps-xl': {
|
|
2145
|
+
fontSize: 24,
|
|
2146
|
+
lineHeight: 28,
|
|
2147
|
+
allowedFontWeights: ['bold']
|
|
2148
|
+
},
|
|
2149
|
+
'content-caps-l': {
|
|
2150
|
+
fontSize: 18,
|
|
2151
|
+
lineHeight: 20,
|
|
2152
|
+
allowedFontWeights: ['bold']
|
|
2153
|
+
},
|
|
2154
|
+
'content-caps-m': {
|
|
2155
|
+
fontSize: 16,
|
|
2156
|
+
lineHeight: 18,
|
|
2157
|
+
allowedFontWeights: ['bold']
|
|
2158
|
+
},
|
|
2159
|
+
'content-caps-s': {
|
|
2160
|
+
fontSize: 14,
|
|
2161
|
+
lineHeight: 16,
|
|
2162
|
+
allowedFontWeights: ['bold']
|
|
2163
|
+
},
|
|
2164
|
+
'content-caps-xs': {
|
|
2165
|
+
fontSize: 12,
|
|
2166
|
+
lineHeight: 14,
|
|
2167
|
+
allowedFontWeights: ['bold']
|
|
2168
|
+
}
|
|
2214
2169
|
}
|
|
2215
2170
|
}
|
|
2216
|
-
},
|
|
2217
|
-
link: {
|
|
2218
|
-
/** @deprecated not used in kitt anymore, use Typography instead */
|
|
2219
|
-
disabledColor: colors.blackDisabled
|
|
2220
2171
|
}
|
|
2221
2172
|
};
|
|
2222
2173
|
|
|
@@ -2225,7 +2176,7 @@ const picker = {
|
|
|
2225
2176
|
ios: {
|
|
2226
2177
|
default: {
|
|
2227
2178
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
2228
|
-
...typography.types.bodies.configs
|
|
2179
|
+
...typography.types.bodies.configs['body-m'],
|
|
2229
2180
|
fontSize: 16,
|
|
2230
2181
|
color: typography.colors['black-light'],
|
|
2231
2182
|
// 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)
|
|
@@ -2258,19 +2209,19 @@ const picker = {
|
|
|
2258
2209
|
backgroundColor: colors.transparent
|
|
2259
2210
|
},
|
|
2260
2211
|
hovered: {
|
|
2261
|
-
backgroundColor:
|
|
2212
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2262
2213
|
},
|
|
2263
2214
|
focused: {
|
|
2264
|
-
backgroundColor:
|
|
2215
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2265
2216
|
},
|
|
2266
2217
|
selected: {
|
|
2267
|
-
backgroundColor:
|
|
2218
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2268
2219
|
},
|
|
2269
2220
|
highlighted: {
|
|
2270
|
-
backgroundColor:
|
|
2221
|
+
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
2271
2222
|
},
|
|
2272
2223
|
pressed: {
|
|
2273
|
-
backgroundColor:
|
|
2224
|
+
backgroundColor: deepPurpleColorPalette['beige.2']
|
|
2274
2225
|
}
|
|
2275
2226
|
}
|
|
2276
2227
|
},
|
|
@@ -2354,8 +2305,8 @@ const shadows = {
|
|
|
2354
2305
|
}
|
|
2355
2306
|
};
|
|
2356
2307
|
|
|
2357
|
-
const skeletonBackgroundColor =
|
|
2358
|
-
const skeletonFlareColor =
|
|
2308
|
+
const skeletonBackgroundColor = deepPurpleColorPalette['beige.2'];
|
|
2309
|
+
const skeletonFlareColor = deepPurpleColorPalette['beige.3'];
|
|
2359
2310
|
const skeleton$1 = {
|
|
2360
2311
|
backgroundColor: skeletonBackgroundColor,
|
|
2361
2312
|
flareColor: skeletonFlareColor,
|
|
@@ -2378,20 +2329,6 @@ const skeleton$1 = {
|
|
|
2378
2329
|
|
|
2379
2330
|
const tag = {
|
|
2380
2331
|
borderRadius: 16,
|
|
2381
|
-
variant: {
|
|
2382
|
-
contrast: {
|
|
2383
|
-
borderWidth: 0
|
|
2384
|
-
},
|
|
2385
|
-
fill: {
|
|
2386
|
-
borderWidth: 0
|
|
2387
|
-
},
|
|
2388
|
-
outline: {
|
|
2389
|
-
borderWidth: 1
|
|
2390
|
-
},
|
|
2391
|
-
subtle: {
|
|
2392
|
-
borderWidth: 0
|
|
2393
|
-
}
|
|
2394
|
-
},
|
|
2395
2332
|
icon: {
|
|
2396
2333
|
small: 16,
|
|
2397
2334
|
medium: 16,
|
|
@@ -2467,14 +2404,14 @@ const verticalSteps = {
|
|
|
2467
2404
|
},
|
|
2468
2405
|
done: {
|
|
2469
2406
|
icon: {
|
|
2470
|
-
backgroundColor:
|
|
2471
|
-
textColor: colors.
|
|
2407
|
+
backgroundColor: colors.primary,
|
|
2408
|
+
textColor: colors.white
|
|
2472
2409
|
}
|
|
2473
2410
|
},
|
|
2474
2411
|
default: {
|
|
2475
2412
|
icon: {
|
|
2476
2413
|
backgroundColor: colors.disabled,
|
|
2477
|
-
textColor:
|
|
2414
|
+
textColor: deepPurpleColorPalette['grey.3']
|
|
2478
2415
|
}
|
|
2479
2416
|
}
|
|
2480
2417
|
};
|
|
@@ -2508,7 +2445,7 @@ const theme = {
|
|
|
2508
2445
|
getSpacing: multiplier => spacing * multiplier,
|
|
2509
2446
|
colors,
|
|
2510
2447
|
palettes: {
|
|
2511
|
-
|
|
2448
|
+
deepPurple: deepPurpleColorPalette
|
|
2512
2449
|
},
|
|
2513
2450
|
avatar,
|
|
2514
2451
|
breakpoints,
|
|
@@ -2969,11 +2906,13 @@ function getTypographyColorValue(colorName) {
|
|
|
2969
2906
|
return colorName;
|
|
2970
2907
|
}
|
|
2971
2908
|
|
|
2972
|
-
const isTypeHeadings = type => type.startsWith('
|
|
2973
|
-
const
|
|
2909
|
+
const isTypeHeadings = type => type.startsWith('heading');
|
|
2910
|
+
const isTypeLabels = type => type.startsWith('label');
|
|
2911
|
+
const isTypeContentCaps = type => type.startsWith('content-caps');
|
|
2974
2912
|
const getTypographyFamily = type => {
|
|
2975
|
-
if (isTypeHeadingsImpact(type)) return 'headings-impact';
|
|
2976
2913
|
if (isTypeHeadings(type)) return 'headings';
|
|
2914
|
+
if (isTypeLabels(type)) return 'labels';
|
|
2915
|
+
if (isTypeContentCaps(type)) return 'contentCaps';
|
|
2977
2916
|
return 'bodies';
|
|
2978
2917
|
};
|
|
2979
2918
|
const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) => {
|
|
@@ -2995,9 +2934,6 @@ const TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
|
|
|
2995
2934
|
function useTypographyDefaultColor() {
|
|
2996
2935
|
return useContext(TypographyDefaultColorContext);
|
|
2997
2936
|
}
|
|
2998
|
-
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
2999
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
3000
|
-
}
|
|
3001
2937
|
|
|
3002
2938
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
3003
2939
|
// & {
|
|
@@ -3014,11 +2950,88 @@ function createNativeBaseFontSize(type) {
|
|
|
3014
2950
|
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
3015
2951
|
const value = typeWithMediumForced[typeName];
|
|
3016
2952
|
if (value) {
|
|
3017
|
-
fontSizeForNativeBase[typeName] =
|
|
2953
|
+
fontSizeForNativeBase[typeName] = value;
|
|
3018
2954
|
}
|
|
3019
2955
|
});
|
|
3020
2956
|
return fontSizeForNativeBase;
|
|
3021
2957
|
}
|
|
2958
|
+
function ThrowErrorIfInvalidVariant(variant, value, fontWeight) {
|
|
2959
|
+
if (process.env.NODE_ENV !== 'production' && variant && variant !== fontWeight) {
|
|
2960
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}" only "${fontWeight}" is allowed.`);
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
function getTypographyWeights(typographyFamily) {
|
|
2964
|
+
const boldTypoTypes = new Set();
|
|
2965
|
+
const semiboldTypoTypes = new Set();
|
|
2966
|
+
const regularTypoTypes = new Set();
|
|
2967
|
+
const typographyConfig = typography.types[typographyFamily].configs;
|
|
2968
|
+
Object.keys(typographyConfig).forEach(typographyType => {
|
|
2969
|
+
const {
|
|
2970
|
+
allowedFontWeights
|
|
2971
|
+
} = typographyConfig[typographyType];
|
|
2972
|
+
if (allowedFontWeights.includes('bold')) {
|
|
2973
|
+
boldTypoTypes.add(typographyType);
|
|
2974
|
+
}
|
|
2975
|
+
if (allowedFontWeights.includes('semibold')) {
|
|
2976
|
+
semiboldTypoTypes.add(typographyType);
|
|
2977
|
+
}
|
|
2978
|
+
if (allowedFontWeights.includes('regular')) {
|
|
2979
|
+
regularTypoTypes.add(typographyType);
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2982
|
+
return {
|
|
2983
|
+
boldTypoTypes,
|
|
2984
|
+
semiboldTypoTypes,
|
|
2985
|
+
regularTypoTypes
|
|
2986
|
+
};
|
|
2987
|
+
}
|
|
2988
|
+
function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
2989
|
+
const {
|
|
2990
|
+
boldTypoTypes,
|
|
2991
|
+
semiboldTypoTypes,
|
|
2992
|
+
regularTypoTypes
|
|
2993
|
+
} = getTypographyWeights(typographyFamily || 'bodies');
|
|
2994
|
+
const webFontWeight = {};
|
|
2995
|
+
const nativeFontFamily = {};
|
|
2996
|
+
const breakpoints = [KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE];
|
|
2997
|
+
breakpoints.forEach(typeName => {
|
|
2998
|
+
const value = type[typeName];
|
|
2999
|
+
if (!value) return;
|
|
3000
|
+
const inBold = boldTypoTypes.has(value);
|
|
3001
|
+
const inSemi = semiboldTypoTypes.has(value);
|
|
3002
|
+
const inRegular = regularTypoTypes.has(value);
|
|
3003
|
+
const presenceCount = [inBold, inSemi, inRegular].filter(Boolean).length;
|
|
3004
|
+
let resolvedVariant;
|
|
3005
|
+
if (presenceCount > 1) {
|
|
3006
|
+
// if present in multiple weight
|
|
3007
|
+
|
|
3008
|
+
if (process.env.NODE_ENV !== 'production' && variant && !(variant === 'bold' && inBold || variant === 'semibold' && inSemi || variant === 'regular' && inRegular)) {
|
|
3009
|
+
throw new Error(`Invalid variant "${variant}" for value "${value}". Only ${inBold ? '"bold"' : ' '}${inSemi ? '"semibold"' : ' '}${inRegular ? '"regular"' : ' '}" is allowed.`);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
// always fallback on regular if no variant specified
|
|
3013
|
+
resolvedVariant = variant || 'regular';
|
|
3014
|
+
} else if (inBold) {
|
|
3015
|
+
// bold
|
|
3016
|
+
ThrowErrorIfInvalidVariant(variant, value, 'bold');
|
|
3017
|
+
resolvedVariant = 'bold';
|
|
3018
|
+
} else if (inSemi) {
|
|
3019
|
+
// semibold
|
|
3020
|
+
ThrowErrorIfInvalidVariant(variant, value, 'semibold');
|
|
3021
|
+
resolvedVariant = 'semibold';
|
|
3022
|
+
} else {
|
|
3023
|
+
// regular
|
|
3024
|
+
ThrowErrorIfInvalidVariant(variant, value, 'regular');
|
|
3025
|
+
resolvedVariant = 'regular';
|
|
3026
|
+
}
|
|
3027
|
+
webFontWeight[typeName] = resolvedVariant;
|
|
3028
|
+
nativeFontFamily[typeName] = `${typographyFamily}.${resolvedVariant}`;
|
|
3029
|
+
});
|
|
3030
|
+
return {
|
|
3031
|
+
webFontWeight,
|
|
3032
|
+
nativeFontFamily
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3022
3035
|
function Typography({
|
|
3023
3036
|
accessibilityRole,
|
|
3024
3037
|
base: legacyBase,
|
|
@@ -3035,21 +3048,26 @@ function Typography({
|
|
|
3035
3048
|
},
|
|
3036
3049
|
variant,
|
|
3037
3050
|
color,
|
|
3051
|
+
underline,
|
|
3038
3052
|
...otherProps
|
|
3039
3053
|
}) {
|
|
3040
3054
|
const sx = useSx();
|
|
3041
3055
|
const typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3042
3056
|
const defaultColor = useTypographyDefaultColor();
|
|
3043
3057
|
const hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3044
|
-
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body';
|
|
3058
|
+
const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body-m';
|
|
3045
3059
|
const typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3046
|
-
|
|
3047
|
-
// force bold for headings, default to regular for bodies
|
|
3048
|
-
const nonNullableVariant = variant ?? (typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular');
|
|
3049
3060
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
3050
3061
|
...type,
|
|
3051
3062
|
base: baseOrDefaultToBody
|
|
3052
3063
|
});
|
|
3064
|
+
const {
|
|
3065
|
+
webFontWeight,
|
|
3066
|
+
nativeFontFamily
|
|
3067
|
+
} = getUniversalFontWeight({
|
|
3068
|
+
...type,
|
|
3069
|
+
base: baseOrDefaultToBody
|
|
3070
|
+
}, variant, typographyFamily);
|
|
3053
3071
|
const currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
3054
3072
|
const currentColorValue = getTypographyColorValue(currentColor);
|
|
3055
3073
|
const colorStyles = sx({
|
|
@@ -3067,10 +3085,17 @@ function Typography({
|
|
|
3067
3085
|
accessibilityRole: accessibilityRole || undefined,
|
|
3068
3086
|
fontSize: fontSizeForNativeBase,
|
|
3069
3087
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
3070
|
-
fontWeight:
|
|
3071
|
-
fontFamily:
|
|
3088
|
+
fontWeight: webFontWeight,
|
|
3089
|
+
fontFamily: nativeFontFamily,
|
|
3090
|
+
borderBottomWidth: underline ? 1 : undefined,
|
|
3091
|
+
borderBottomColor: underline ? currentColorValue : undefined,
|
|
3092
|
+
textTransform: typographyFamily === 'contentCaps' ? 'uppercase' : undefined,
|
|
3072
3093
|
...colorStyles,
|
|
3073
|
-
...otherProps
|
|
3094
|
+
...otherProps,
|
|
3095
|
+
// The property text-underline-offset is not on native.
|
|
3096
|
+
// To add an underline with an offset, we use a custom borderBottomWidth and color.
|
|
3097
|
+
// and we set underline to undefined to avoid a double underline
|
|
3098
|
+
underline: undefined
|
|
3074
3099
|
});
|
|
3075
3100
|
const content = baseOrDefaultToBody ? /*#__PURE__*/jsx(TypographyFamilyContext.Provider, {
|
|
3076
3101
|
value: typographyFamily,
|
|
@@ -3120,17 +3145,6 @@ Typography.Header4 = createHeading(4);
|
|
|
3120
3145
|
Typography.Header5 = createHeading(5);
|
|
3121
3146
|
Typography.Header6 = createHeading(6);
|
|
3122
3147
|
|
|
3123
|
-
/** @deprecated use Typography.Header1 */
|
|
3124
|
-
Typography.h1 = createHeading(1, 'header1');
|
|
3125
|
-
/** @deprecated use Typography.Header2 */
|
|
3126
|
-
Typography.h2 = createHeading(2, 'header2');
|
|
3127
|
-
/** @deprecated use Typography.Header3 */
|
|
3128
|
-
Typography.h3 = createHeading(3, 'header3');
|
|
3129
|
-
/** @deprecated use Typography.Header4 */
|
|
3130
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
3131
|
-
/** @deprecated use Typography.Header6 */
|
|
3132
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
3133
|
-
|
|
3134
3148
|
function ButtonBadge({
|
|
3135
3149
|
withBadge,
|
|
3136
3150
|
badgeCount
|
|
@@ -3328,7 +3342,7 @@ function ButtonContentChildren({
|
|
|
3328
3342
|
textAlign: "center",
|
|
3329
3343
|
_android: sharedNativeStyle,
|
|
3330
3344
|
_ios: sharedNativeStyle,
|
|
3331
|
-
base: "body",
|
|
3345
|
+
base: "body-m",
|
|
3332
3346
|
variant: "bold",
|
|
3333
3347
|
color: color,
|
|
3334
3348
|
children: children
|
|
@@ -3786,7 +3800,7 @@ function AvatarContent({
|
|
|
3786
3800
|
};
|
|
3787
3801
|
if (firstname && lastname) {
|
|
3788
3802
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
3789
|
-
base: sizeVariant === 'large' ? 'body-
|
|
3803
|
+
base: sizeVariant === 'large' ? 'body-l' : 'body-s',
|
|
3790
3804
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3791
3805
|
color: getFontColor(),
|
|
3792
3806
|
children: getInitials(firstname, lastname)
|
|
@@ -4844,7 +4858,7 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
4844
4858
|
}, ref) => {
|
|
4845
4859
|
const theme = useTheme();
|
|
4846
4860
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
4847
|
-
base: 'body'
|
|
4861
|
+
base: 'body-m'
|
|
4848
4862
|
});
|
|
4849
4863
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
4850
4864
|
children: [/*#__PURE__*/jsx(Input, {
|
|
@@ -6252,7 +6266,7 @@ function InputFeedback({
|
|
|
6252
6266
|
children
|
|
6253
6267
|
}) {
|
|
6254
6268
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
6255
|
-
base: "body-
|
|
6269
|
+
base: "body-s",
|
|
6256
6270
|
color: getColorFromState(state),
|
|
6257
6271
|
testID: testID,
|
|
6258
6272
|
children: children
|
|
@@ -6413,7 +6427,7 @@ function InputTag({
|
|
|
6413
6427
|
color: "black"
|
|
6414
6428
|
})
|
|
6415
6429
|
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
6416
|
-
base: "body-
|
|
6430
|
+
base: "body-s",
|
|
6417
6431
|
color: "black",
|
|
6418
6432
|
children: children
|
|
6419
6433
|
})]
|
|
@@ -6426,7 +6440,7 @@ function Label({
|
|
|
6426
6440
|
children
|
|
6427
6441
|
}) {
|
|
6428
6442
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
6429
|
-
base: "body",
|
|
6443
|
+
base: "body-m",
|
|
6430
6444
|
id: undefined,
|
|
6431
6445
|
children: /*#__PURE__*/jsx("label", {
|
|
6432
6446
|
id: id,
|
|
@@ -6437,7 +6451,8 @@ function Label({
|
|
|
6437
6451
|
}
|
|
6438
6452
|
|
|
6439
6453
|
function InnerCircle({
|
|
6440
|
-
isChecked
|
|
6454
|
+
isChecked,
|
|
6455
|
+
isDisabled
|
|
6441
6456
|
}) {
|
|
6442
6457
|
const theme = useTheme();
|
|
6443
6458
|
const sharedTransform = [{
|
|
@@ -6447,7 +6462,7 @@ function InnerCircle({
|
|
|
6447
6462
|
width: "kitt.forms.radio.innerCircle.size",
|
|
6448
6463
|
height: "kitt.forms.radio.innerCircle.size",
|
|
6449
6464
|
borderRadius: "kitt.forms.radio.innerCircle.borderRadius",
|
|
6450
|
-
backgroundColor:
|
|
6465
|
+
backgroundColor: isDisabled ? 'kitt.forms.radio.disabled.innerBackgroundColor' : 'kitt.forms.radio.innerCircle.backgroundColor',
|
|
6451
6466
|
_web: {
|
|
6452
6467
|
style: {
|
|
6453
6468
|
transform: `scale(${isChecked ? 1 : 0}))`,
|
|
@@ -6582,12 +6597,13 @@ function Radio({
|
|
|
6582
6597
|
isFocused: isFocused,
|
|
6583
6598
|
isPressed: isPressed,
|
|
6584
6599
|
children: /*#__PURE__*/jsx(InnerCircle, {
|
|
6585
|
-
isChecked: checked
|
|
6600
|
+
isChecked: checked,
|
|
6601
|
+
isDisabled: disabled
|
|
6586
6602
|
})
|
|
6587
6603
|
}), children ? /*#__PURE__*/jsx(Typography.SetDefaultColor, {
|
|
6588
6604
|
value: disabled ? 'black-light' : 'black',
|
|
6589
6605
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
6590
|
-
base: "body",
|
|
6606
|
+
base: "body-m",
|
|
6591
6607
|
children: children
|
|
6592
6608
|
})
|
|
6593
6609
|
}) : null]
|
|
@@ -6712,7 +6728,7 @@ function getCurrentTextColor({
|
|
|
6712
6728
|
isHovered,
|
|
6713
6729
|
isFocused
|
|
6714
6730
|
}) {
|
|
6715
|
-
if (isDisabled) return '
|
|
6731
|
+
if (isDisabled) return 'kitt.forms.radioButtonGroup.font.disabled.color';
|
|
6716
6732
|
if (isSelected) return 'white';
|
|
6717
6733
|
if (isPressed) return 'white';
|
|
6718
6734
|
if (isFocused) return 'white';
|
|
@@ -6880,7 +6896,7 @@ const TextArea = /*#__PURE__*/forwardRef(({
|
|
|
6880
6896
|
marginTop: "kitt.1",
|
|
6881
6897
|
children: [helper ? /*#__PURE__*/jsx(Typography.Text, {
|
|
6882
6898
|
base: "body-s",
|
|
6883
|
-
color:
|
|
6899
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
6884
6900
|
children: helper
|
|
6885
6901
|
}) : null, shouldDisplayLimit ? /*#__PURE__*/jsx(Animated.View, {
|
|
6886
6902
|
style: limitContainerAnimatedStyle,
|
|
@@ -6890,14 +6906,14 @@ const TextArea = /*#__PURE__*/forwardRef(({
|
|
|
6890
6906
|
children: [/*#__PURE__*/jsxs(Typography.Text, {
|
|
6891
6907
|
base: "body-xs",
|
|
6892
6908
|
variant: "bold",
|
|
6893
|
-
color:
|
|
6909
|
+
color: deepPurpleColorPalette['grey.5'],
|
|
6894
6910
|
children: [props.value?.length || 0, "/", limit]
|
|
6895
6911
|
}), /*#__PURE__*/jsx(Animated.View, {
|
|
6896
6912
|
style: checkIconAnimatedStyle,
|
|
6897
6913
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6898
6914
|
icon: /*#__PURE__*/jsx(CheckCircleFillIcon, {}),
|
|
6899
6915
|
size: 13,
|
|
6900
|
-
color:
|
|
6916
|
+
color: deepPurpleColorPalette['grey.5']
|
|
6901
6917
|
})
|
|
6902
6918
|
})]
|
|
6903
6919
|
})
|
|
@@ -7005,7 +7021,7 @@ function ToggleAnimated({
|
|
|
7005
7021
|
}
|
|
7006
7022
|
|
|
7007
7023
|
const getLabelTypographyType = size => {
|
|
7008
|
-
return size === 'medium' ? 'body' : 'body-
|
|
7024
|
+
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7009
7025
|
};
|
|
7010
7026
|
function Toggle({
|
|
7011
7027
|
isDisabled = false,
|
|
@@ -7478,7 +7494,7 @@ function Highlight({
|
|
|
7478
7494
|
marginBottom: highlightStyle[size].marginBottom,
|
|
7479
7495
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7480
7496
|
variant: "bold",
|
|
7481
|
-
base: "body",
|
|
7497
|
+
base: "body-m",
|
|
7482
7498
|
ellipsizeMode: "clip",
|
|
7483
7499
|
children: title
|
|
7484
7500
|
})
|
|
@@ -7514,7 +7530,7 @@ function Highlight({
|
|
|
7514
7530
|
width: "100%",
|
|
7515
7531
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7516
7532
|
variant: "bold",
|
|
7517
|
-
base: "body",
|
|
7533
|
+
base: "body-m",
|
|
7518
7534
|
ellipsizeMode: "clip",
|
|
7519
7535
|
children: title
|
|
7520
7536
|
})
|
|
@@ -7827,8 +7843,8 @@ function InfoCard({
|
|
|
7827
7843
|
flexShrink: 1,
|
|
7828
7844
|
flexBasis: "auto",
|
|
7829
7845
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7830
|
-
base: "body-
|
|
7831
|
-
medium: "body",
|
|
7846
|
+
base: "body-s",
|
|
7847
|
+
medium: "body-m",
|
|
7832
7848
|
style: {
|
|
7833
7849
|
userSelect: 'none'
|
|
7834
7850
|
},
|
|
@@ -8237,7 +8253,7 @@ function BaseMessage({
|
|
|
8237
8253
|
flexGrow: 1,
|
|
8238
8254
|
flexShrink: 1,
|
|
8239
8255
|
textAlign: centeredText ? 'center' : 'left',
|
|
8240
|
-
base: "body",
|
|
8256
|
+
base: "body-m",
|
|
8241
8257
|
color: color,
|
|
8242
8258
|
children: children
|
|
8243
8259
|
})]
|
|
@@ -8520,6 +8536,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8520
8536
|
item: {
|
|
8521
8537
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
8522
8538
|
backgroundColor: theme.forms.radioButtonGroup.item.backgroundColor
|
|
8539
|
+
},
|
|
8540
|
+
font: {
|
|
8541
|
+
disabled: {
|
|
8542
|
+
color: theme.forms.radioButtonGroup.item.font.color.disabled
|
|
8543
|
+
}
|
|
8523
8544
|
}
|
|
8524
8545
|
},
|
|
8525
8546
|
checkbox: {
|
|
@@ -8834,7 +8855,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8834
8855
|
},
|
|
8835
8856
|
disabled: {
|
|
8836
8857
|
backgroundColor: theme.forms.radio.disabled.backgroundColor,
|
|
8837
|
-
borderColor: theme.forms.radio.disabled.borderColor
|
|
8858
|
+
borderColor: theme.forms.radio.disabled.borderColor,
|
|
8859
|
+
innerBackgroundColor: theme.forms.radio.disabled.innerBackgroundColor
|
|
8838
8860
|
},
|
|
8839
8861
|
default: {
|
|
8840
8862
|
backgroundColor: theme.forms.radio.unchecked.backgroundColor,
|
|
@@ -9389,22 +9411,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9389
9411
|
},
|
|
9390
9412
|
listItem: {
|
|
9391
9413
|
borderWidth: theme.listItem.borderWidth
|
|
9392
|
-
},
|
|
9393
|
-
tag: {
|
|
9394
|
-
variant: {
|
|
9395
|
-
subtle: {
|
|
9396
|
-
borderWidth: theme.tag.variant.subtle.borderWidth
|
|
9397
|
-
},
|
|
9398
|
-
fill: {
|
|
9399
|
-
borderWidth: theme.tag.variant.fill.borderWidth
|
|
9400
|
-
},
|
|
9401
|
-
outline: {
|
|
9402
|
-
borderWidth: theme.tag.variant.outline.borderWidth
|
|
9403
|
-
},
|
|
9404
|
-
contrast: {
|
|
9405
|
-
borderWidth: theme.tag.variant.contrast.borderWidth
|
|
9406
|
-
}
|
|
9407
|
-
}
|
|
9408
9414
|
}
|
|
9409
9415
|
},
|
|
9410
9416
|
app: appTheme?.borderWidths
|
|
@@ -10031,196 +10037,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10031
10037
|
...appBreakpoints
|
|
10032
10038
|
},
|
|
10033
10039
|
fontSizes: {
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
/* latest */
|
|
10055
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize}px`,
|
|
10056
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize}px`,
|
|
10057
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize}px`,
|
|
10058
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize}px`,
|
|
10059
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize}px`,
|
|
10060
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize}px`,
|
|
10061
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize}px`,
|
|
10062
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize}px`,
|
|
10063
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize}px`,
|
|
10064
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize}px`,
|
|
10065
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize}px`,
|
|
10066
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize}px`,
|
|
10067
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize}px`,
|
|
10068
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize}px`,
|
|
10069
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize}px`,
|
|
10070
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize}px`,
|
|
10071
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize}px`,
|
|
10072
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize}px`,
|
|
10073
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize}px`,
|
|
10074
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize}px`
|
|
10075
|
-
},
|
|
10076
|
-
mediumAndWide: {
|
|
10077
|
-
/* legacy */
|
|
10078
|
-
header1: `${theme.typography.types.headings.configs.header1.mediumAndWide.fontSize}px`,
|
|
10079
|
-
header2: `${theme.typography.types.headings.configs.header2.mediumAndWide.fontSize}px`,
|
|
10080
|
-
header3: `${theme.typography.types.headings.configs.header3.mediumAndWide.fontSize}px`,
|
|
10081
|
-
header4: `${theme.typography.types.headings.configs.header4.mediumAndWide.fontSize}px`,
|
|
10082
|
-
header5: `${theme.typography.types.headings.configs.header5.mediumAndWide.fontSize}px`,
|
|
10083
|
-
'body-large': `${theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize}px`,
|
|
10084
|
-
'body-medium': `${theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize}px`,
|
|
10085
|
-
body: `${theme.typography.types.bodies.configs.body.mediumAndWide.fontSize}px`,
|
|
10086
|
-
'body-small': `${theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize}px`,
|
|
10087
|
-
'body-xsmall': `${theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize}px`,
|
|
10088
|
-
'header-impact-xxl': `${theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10089
|
-
'header-impact-xl': `${theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10090
|
-
'header-impact-l': `${theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize}px`,
|
|
10091
|
-
'header-impact-m': `${theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize}px`,
|
|
10092
|
-
'header-impact-s': `${theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize}px`,
|
|
10093
|
-
'header-impact-xs': `${theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10094
|
-
'header-impact-xxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10095
|
-
'header-impact-xxxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10096
|
-
/* latest */
|
|
10097
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize}px`,
|
|
10098
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize}px`,
|
|
10099
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize}px`,
|
|
10100
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize}px`,
|
|
10101
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize}px`,
|
|
10102
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize}px`,
|
|
10103
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize}px`,
|
|
10104
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize}px`,
|
|
10105
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize}px`,
|
|
10106
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize}px`,
|
|
10107
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize}px`,
|
|
10108
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize}px`,
|
|
10109
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize}px`,
|
|
10110
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize}px`,
|
|
10111
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize}px`,
|
|
10112
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize}px`,
|
|
10113
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize}px`,
|
|
10114
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize}px`,
|
|
10115
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize}px`,
|
|
10116
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize}px`
|
|
10117
|
-
}
|
|
10040
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].fontSize}px`,
|
|
10041
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].fontSize}px`,
|
|
10042
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].fontSize}px`,
|
|
10043
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10044
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10045
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10046
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10047
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10048
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
10049
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].fontSize}px`,
|
|
10050
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].fontSize}px`,
|
|
10051
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].fontSize}px`,
|
|
10052
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].fontSize}px`,
|
|
10053
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize}px`,
|
|
10054
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize}px`,
|
|
10055
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize}px`,
|
|
10056
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].fontSize}px`,
|
|
10057
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].fontSize}px`,
|
|
10058
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].fontSize}px`,
|
|
10059
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].fontSize}px`
|
|
10118
10060
|
},
|
|
10119
10061
|
lineHeights: {
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
/* latest */
|
|
10141
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight}px`,
|
|
10142
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight}px`,
|
|
10143
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight}px`,
|
|
10144
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight}px`,
|
|
10145
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight}px`,
|
|
10146
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight}px`,
|
|
10147
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight}px`,
|
|
10148
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight}px`,
|
|
10149
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight}px`,
|
|
10150
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight}px`,
|
|
10151
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight}px`,
|
|
10152
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight}px`,
|
|
10153
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight}px`,
|
|
10154
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight}px`,
|
|
10155
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight}px`,
|
|
10156
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight}px`,
|
|
10157
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight}px`,
|
|
10158
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight}px`,
|
|
10159
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight}px`,
|
|
10160
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight}px`
|
|
10161
|
-
},
|
|
10162
|
-
mediumAndWide: {
|
|
10163
|
-
/* legacy */
|
|
10164
|
-
header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
|
|
10165
|
-
header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
|
|
10166
|
-
header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
|
|
10167
|
-
header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
|
|
10168
|
-
header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
|
|
10169
|
-
'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
|
|
10170
|
-
'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
|
|
10171
|
-
body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
|
|
10172
|
-
'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
|
|
10173
|
-
'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
|
|
10174
|
-
'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
|
|
10175
|
-
'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
|
|
10176
|
-
'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
|
|
10177
|
-
'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
|
|
10178
|
-
'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
|
|
10179
|
-
'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
|
|
10180
|
-
'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
|
|
10181
|
-
'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
|
|
10182
|
-
/* latest */
|
|
10183
|
-
'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight}px`,
|
|
10184
|
-
'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight}px`,
|
|
10185
|
-
'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight}px`,
|
|
10186
|
-
'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight}px`,
|
|
10187
|
-
'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight}px`,
|
|
10188
|
-
'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight}px`,
|
|
10189
|
-
'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight}px`,
|
|
10190
|
-
'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight}px`,
|
|
10191
|
-
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight}px`,
|
|
10192
|
-
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight}px`,
|
|
10193
|
-
'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight}px`,
|
|
10194
|
-
'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight}px`,
|
|
10195
|
-
'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight}px`,
|
|
10196
|
-
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight}px`,
|
|
10197
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight}px`,
|
|
10198
|
-
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight}px`,
|
|
10199
|
-
'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight}px`,
|
|
10200
|
-
'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight}px`,
|
|
10201
|
-
'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight}px`,
|
|
10202
|
-
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight}px`
|
|
10203
|
-
}
|
|
10062
|
+
'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].lineHeight}px`,
|
|
10063
|
+
'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].lineHeight}px`,
|
|
10064
|
+
'heading-l': `${theme.typography.types.headings.configs['heading-l'].lineHeight}px`,
|
|
10065
|
+
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10066
|
+
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10067
|
+
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10068
|
+
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10069
|
+
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10070
|
+
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
10071
|
+
'body-s': `${theme.typography.types.bodies.configs['body-s'].lineHeight}px`,
|
|
10072
|
+
'body-xs': `${theme.typography.types.bodies.configs['body-xs'].lineHeight}px`,
|
|
10073
|
+
'label-large': `${theme.typography.types.labels.configs['label-large'].lineHeight}px`,
|
|
10074
|
+
'label-medium': `${theme.typography.types.labels.configs['label-medium'].lineHeight}px`,
|
|
10075
|
+
'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight}px`,
|
|
10076
|
+
'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight}px`,
|
|
10077
|
+
'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight}px`,
|
|
10078
|
+
'content-caps-l': `${theme.typography.types.contentCaps.configs['content-caps-l'].lineHeight}px`,
|
|
10079
|
+
'content-caps-m': `${theme.typography.types.contentCaps.configs['content-caps-m'].lineHeight}px`,
|
|
10080
|
+
'content-caps-s': `${theme.typography.types.contentCaps.configs['content-caps-s'].lineHeight}px`,
|
|
10081
|
+
'content-caps-xs': `${theme.typography.types.contentCaps.configs['content-caps-xs'].lineHeight}px`
|
|
10204
10082
|
},
|
|
10205
10083
|
fontWeights: {
|
|
10206
10084
|
headings: {
|
|
10207
10085
|
regular: theme.typography.types.headings.fontWeight.regular,
|
|
10208
10086
|
bold: theme.typography.types.headings.fontWeight.bold
|
|
10209
10087
|
},
|
|
10210
|
-
'headings-impact': {
|
|
10211
|
-
regular: theme.typography.types['headings-impact'].fontWeight,
|
|
10212
|
-
bold: theme.typography.types['headings-impact'].fontWeight
|
|
10213
|
-
},
|
|
10214
10088
|
bodies: {
|
|
10215
10089
|
regular: theme.typography.types.bodies.fontWeight.regular,
|
|
10216
10090
|
// 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
|
|
10217
10091
|
bold: theme.typography.types.bodies.fontWeight.bold
|
|
10092
|
+
},
|
|
10093
|
+
labels: {
|
|
10094
|
+
semibold: theme.typography.types.labels.fontWeight.semibold
|
|
10095
|
+
},
|
|
10096
|
+
contentCaps: {
|
|
10097
|
+
bold: theme.typography.types.contentCaps.fontWeight.bold
|
|
10218
10098
|
}
|
|
10219
10099
|
},
|
|
10220
10100
|
fonts: {
|
|
10221
10101
|
headings: theme.typography.types.headings.fontFamily.web,
|
|
10222
|
-
|
|
10223
|
-
|
|
10102
|
+
bodies: theme.typography.types.bodies.fontFamily.web,
|
|
10103
|
+
labels: theme.typography.types.labels.fontFamily.web,
|
|
10104
|
+
contentCaps: theme.typography.types.contentCaps.fontFamily.web
|
|
10224
10105
|
},
|
|
10225
10106
|
shadows: {
|
|
10226
10107
|
kitt: {
|
|
@@ -10715,7 +10596,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10715
10596
|
_disabled: {
|
|
10716
10597
|
placeholderTextColor: theme.forms.input.states.disabled.color,
|
|
10717
10598
|
color: theme.forms.input.states.disabled.color,
|
|
10718
|
-
borderColor: theme.forms.input.states.disabled.
|
|
10599
|
+
borderColor: theme.forms.input.states.disabled.backgroundColor,
|
|
10719
10600
|
bg: theme.forms.input.states.disabled.backgroundColor
|
|
10720
10601
|
}
|
|
10721
10602
|
}
|
|
@@ -10745,7 +10626,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10745
10626
|
fontStyle: theme.typography.types.bodies.fontStyle.regular,
|
|
10746
10627
|
fontWeight: theme.typography.types.bodies.fontWeight.regular,
|
|
10747
10628
|
fontSize: undefined,
|
|
10748
|
-
lineHeight: theme.typography.types.bodies.configs
|
|
10629
|
+
lineHeight: theme.typography.types.bodies.configs['body-m'].lineHeight
|
|
10749
10630
|
}
|
|
10750
10631
|
}
|
|
10751
10632
|
}
|
|
@@ -11096,7 +10977,7 @@ function PickerOption({
|
|
|
11096
10977
|
}) {
|
|
11097
10978
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
11098
10979
|
testID: testID,
|
|
11099
|
-
base: "body",
|
|
10980
|
+
base: "body-m",
|
|
11100
10981
|
children: typeof children === 'function' ? children({
|
|
11101
10982
|
isHighlighted,
|
|
11102
10983
|
isSelected
|
|
@@ -11327,8 +11208,9 @@ function SegmentedProgressBar({
|
|
|
11327
11208
|
colorVariant = 'primary',
|
|
11328
11209
|
withCurrentInProgress
|
|
11329
11210
|
}) {
|
|
11211
|
+
const kittTheme = useKittTheme();
|
|
11330
11212
|
const height = size === 'small' ? 'kitt.2' : 'kitt.4';
|
|
11331
|
-
const fillColor = colorVariant === 'validated' ?
|
|
11213
|
+
const fillColor = colorVariant === 'validated' ? kittTheme.kitt.palettes.deepPurple['green.6'] : kittTheme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11332
11214
|
const steps = [...Array.from({
|
|
11333
11215
|
length: stepsCount
|
|
11334
11216
|
}).keys()];
|
|
@@ -11339,13 +11221,13 @@ function SegmentedProgressBar({
|
|
|
11339
11221
|
overflow: "hidden",
|
|
11340
11222
|
children: steps.map(stepNumber => {
|
|
11341
11223
|
const isSegmentCurrentInProgress = withCurrentInProgress && stepNumber === currentStep - 1;
|
|
11342
|
-
const color = stepNumber < currentStep ? fillColor :
|
|
11224
|
+
const color = stepNumber < currentStep ? fillColor : kittTheme.kitt.palettes.deepPurple['beige.1'];
|
|
11343
11225
|
return /*#__PURE__*/jsx(View$1, {
|
|
11344
11226
|
height: "100%",
|
|
11345
11227
|
flexGrow: 1,
|
|
11346
11228
|
flexShrink: 1,
|
|
11347
11229
|
flexBasis: 0,
|
|
11348
|
-
backgroundColor: isSegmentCurrentInProgress ?
|
|
11230
|
+
backgroundColor: isSegmentCurrentInProgress ? kittTheme.kitt.palettes.deepPurple['deepPurple.5'] : color,
|
|
11349
11231
|
borderRadius: 2,
|
|
11350
11232
|
overflow: "hidden",
|
|
11351
11233
|
alignItems: "center",
|
|
@@ -11677,9 +11559,9 @@ const getBackgroundColorFromBlockColor = (theme, color = 'transparent') => {
|
|
|
11677
11559
|
case 'white':
|
|
11678
11560
|
return '#ffffff';
|
|
11679
11561
|
case 'light':
|
|
11680
|
-
return theme.kitt.palettes.
|
|
11562
|
+
return theme.kitt.palettes.deepPurple['beige.1'];
|
|
11681
11563
|
case 'primary':
|
|
11682
|
-
return theme.kitt.palettes.
|
|
11564
|
+
return theme.kitt.palettes.deepPurple['deepPurple.8'];
|
|
11683
11565
|
default:
|
|
11684
11566
|
return 'transparent';
|
|
11685
11567
|
}
|
|
@@ -11729,8 +11611,7 @@ function StoryTitle({
|
|
|
11729
11611
|
return /*#__PURE__*/jsx(View, {
|
|
11730
11612
|
marginBottom: 30,
|
|
11731
11613
|
children: /*#__PURE__*/jsx(Typography.Header1, {
|
|
11732
|
-
|
|
11733
|
-
base: "header1",
|
|
11614
|
+
base: "heading-xl",
|
|
11734
11615
|
color: useStoryBlockColor(color),
|
|
11735
11616
|
numberOfLines: numberOfLines,
|
|
11736
11617
|
children: children
|
|
@@ -11745,8 +11626,7 @@ function StoryTitleLevel2({
|
|
|
11745
11626
|
return /*#__PURE__*/jsx(View, {
|
|
11746
11627
|
marginBottom: 30,
|
|
11747
11628
|
children: /*#__PURE__*/jsx(Typography.Header2, {
|
|
11748
|
-
|
|
11749
|
-
base: "header2",
|
|
11629
|
+
base: "heading-l",
|
|
11750
11630
|
color: useStoryBlockColor(color),
|
|
11751
11631
|
numberOfLines: numberOfLines,
|
|
11752
11632
|
children: children
|
|
@@ -11762,9 +11642,7 @@ function StoryTitleLevel3({
|
|
|
11762
11642
|
return /*#__PURE__*/jsx(View, {
|
|
11763
11643
|
marginBottom: 10,
|
|
11764
11644
|
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
11765
|
-
|
|
11766
|
-
base: "header3",
|
|
11767
|
-
medium: "header4",
|
|
11645
|
+
base: "heading-m",
|
|
11768
11646
|
color: useStoryBlockColor(color),
|
|
11769
11647
|
numberOfLines: numberOfLines,
|
|
11770
11648
|
children: children
|
|
@@ -11780,9 +11658,7 @@ function StoryTitleLevel4({
|
|
|
11780
11658
|
return /*#__PURE__*/jsx(View, {
|
|
11781
11659
|
marginBottom: 10,
|
|
11782
11660
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
11783
|
-
|
|
11784
|
-
base: "header4",
|
|
11785
|
-
medium: "header5",
|
|
11661
|
+
base: "heading-s",
|
|
11786
11662
|
color: useStoryBlockColor(color),
|
|
11787
11663
|
numberOfLines: numberOfLines,
|
|
11788
11664
|
children: children
|
|
@@ -11973,15 +11849,15 @@ function useTabBarItemColor(color, isActive) {
|
|
|
11973
11849
|
switch (color) {
|
|
11974
11850
|
case 'black':
|
|
11975
11851
|
{
|
|
11976
|
-
return isActive ? kittTheme.
|
|
11852
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
11977
11853
|
}
|
|
11978
11854
|
case 'white':
|
|
11979
11855
|
{
|
|
11980
|
-
return kittTheme.palettes.
|
|
11856
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple['white-alpha.80'];
|
|
11981
11857
|
}
|
|
11982
11858
|
default:
|
|
11983
11859
|
{
|
|
11984
|
-
return isActive ? kittTheme.
|
|
11860
|
+
return isActive ? kittTheme.colors.primary : kittTheme.colors.blackLight;
|
|
11985
11861
|
}
|
|
11986
11862
|
}
|
|
11987
11863
|
}
|
|
@@ -11992,15 +11868,15 @@ function useTabBarIndicatorColor(color, isActive) {
|
|
|
11992
11868
|
switch (color) {
|
|
11993
11869
|
case 'black':
|
|
11994
11870
|
{
|
|
11995
|
-
return isActive ? kittTheme.
|
|
11871
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
11996
11872
|
}
|
|
11997
11873
|
case 'white':
|
|
11998
11874
|
{
|
|
11999
|
-
return isActive ? kittTheme.palettes.
|
|
11875
|
+
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
12000
11876
|
}
|
|
12001
11877
|
default:
|
|
12002
11878
|
{
|
|
12003
|
-
return isActive ? kittTheme.
|
|
11879
|
+
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12004
11880
|
}
|
|
12005
11881
|
}
|
|
12006
11882
|
}
|
|
@@ -12068,7 +11944,7 @@ function TabBar({
|
|
|
12068
11944
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
12069
11945
|
minWidth: '100%',
|
|
12070
11946
|
borderBottomWidth: 1,
|
|
12071
|
-
borderBottomColor: kittTheme.palettes.
|
|
11947
|
+
borderBottomColor: kittTheme.palettes.deepPurple['beige.2']
|
|
12072
11948
|
});
|
|
12073
11949
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
12074
11950
|
horizontal: true,
|
|
@@ -12108,36 +11984,39 @@ const getTypography = size => {
|
|
|
12108
11984
|
return 'body-m';
|
|
12109
11985
|
}
|
|
12110
11986
|
};
|
|
12111
|
-
const typeToColor$1 = (color, type) => {
|
|
12112
|
-
if (color) return color;
|
|
12113
|
-
switch (type) {
|
|
12114
|
-
case 'primary':
|
|
12115
|
-
return 'violine';
|
|
12116
|
-
case 'warn':
|
|
12117
|
-
return 'sun';
|
|
12118
|
-
case 'danger':
|
|
12119
|
-
return 'coral';
|
|
12120
|
-
case 'default':
|
|
12121
|
-
default:
|
|
12122
|
-
return 'eggshell';
|
|
12123
|
-
}
|
|
12124
|
-
};
|
|
12125
11987
|
function Tag({
|
|
12126
11988
|
label,
|
|
12127
11989
|
icon,
|
|
12128
|
-
color,
|
|
12129
|
-
type,
|
|
11990
|
+
color = 'beige',
|
|
12130
11991
|
size = 'medium',
|
|
12131
|
-
|
|
12132
|
-
withWhiteBorder = false
|
|
11992
|
+
withWhiteBorder
|
|
12133
11993
|
}) {
|
|
12134
11994
|
const kittTheme = useKittTheme();
|
|
12135
|
-
const
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
11995
|
+
const colorMatching = {
|
|
11996
|
+
beige: {
|
|
11997
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.2'],
|
|
11998
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
11999
|
+
},
|
|
12000
|
+
yellow: {
|
|
12001
|
+
background: kittTheme.kitt.palettes.deepPurple['yellow.6'],
|
|
12002
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.9']
|
|
12003
|
+
},
|
|
12004
|
+
red: {
|
|
12005
|
+
background: kittTheme.kitt.palettes.deepPurple['red.6'],
|
|
12006
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12007
|
+
},
|
|
12008
|
+
blue: {
|
|
12009
|
+
background: kittTheme.kitt.palettes.deepPurple['blue.6'],
|
|
12010
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12011
|
+
},
|
|
12012
|
+
green: {
|
|
12013
|
+
background: kittTheme.kitt.palettes.deepPurple['green.6'],
|
|
12014
|
+
font: kittTheme.kitt.palettes.deepPurple['grey.0']
|
|
12015
|
+
},
|
|
12016
|
+
deepPurple: {
|
|
12017
|
+
background: kittTheme.kitt.palettes.deepPurple['deepPurple.8'],
|
|
12018
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
12139
12019
|
}
|
|
12140
|
-
return 'black';
|
|
12141
12020
|
};
|
|
12142
12021
|
return /*#__PURE__*/jsxs(HStack, {
|
|
12143
12022
|
alignSelf: "flex-start",
|
|
@@ -12145,31 +12024,21 @@ function Tag({
|
|
|
12145
12024
|
height: `kitt.tag.${size}.height`,
|
|
12146
12025
|
paddingLeft: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingLeft`,
|
|
12147
12026
|
paddingRight: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingRight`,
|
|
12148
|
-
backgroundColor:
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
}
|
|
12152
|
-
if (variant === 'contrast') {
|
|
12153
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.9`];
|
|
12154
|
-
}
|
|
12155
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.4`];
|
|
12156
|
-
})() : 'kitt.transparent',
|
|
12157
|
-
borderColor: withWhiteBorder ? 'kitt.white' : (() => {
|
|
12158
|
-
return kittTheme.kitt.palettes.lateOcean[`${tagColor}.6`];
|
|
12159
|
-
})(),
|
|
12160
|
-
borderWidth: withWhiteBorder ? 1 : `kitt.tag.variant.${variant}.borderWidth`,
|
|
12027
|
+
backgroundColor: colorMatching[color].background,
|
|
12028
|
+
borderWidth: withWhiteBorder ? 1 : 0,
|
|
12029
|
+
borderColor: withWhiteBorder ? 'kitt.white' : undefined,
|
|
12161
12030
|
space: "kitt.1",
|
|
12162
12031
|
alignItems: "center",
|
|
12163
12032
|
maxWidth: "100%",
|
|
12164
12033
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
12165
12034
|
icon: icon,
|
|
12166
12035
|
size: `kitt.tag.${size}.iconSize`,
|
|
12167
|
-
color:
|
|
12036
|
+
color: colorMatching[color].font
|
|
12168
12037
|
}) : null, /*#__PURE__*/jsx(View, {
|
|
12169
12038
|
flexShrink: 1,
|
|
12170
12039
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12171
12040
|
base: getTypography(size),
|
|
12172
|
-
color:
|
|
12041
|
+
color: colorMatching[color].font,
|
|
12173
12042
|
numberOfLines: 1,
|
|
12174
12043
|
ellipsizeMode: "tail",
|
|
12175
12044
|
children: label
|
|
@@ -12329,7 +12198,7 @@ function ToastContent({
|
|
|
12329
12198
|
flexGrow: 1,
|
|
12330
12199
|
flexShrink: 1,
|
|
12331
12200
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
12332
|
-
base: "heading-
|
|
12201
|
+
base: "heading-xs",
|
|
12333
12202
|
color: "white",
|
|
12334
12203
|
children: title
|
|
12335
12204
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -12345,7 +12214,7 @@ function ToastContent({
|
|
|
12345
12214
|
borderColor: "white",
|
|
12346
12215
|
onPress: onPress,
|
|
12347
12216
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12348
|
-
base: "heading-
|
|
12217
|
+
base: "heading-xs",
|
|
12349
12218
|
color: "white",
|
|
12350
12219
|
children: actionLabel
|
|
12351
12220
|
})
|
|
@@ -12358,9 +12227,9 @@ const typeToColor = type => {
|
|
|
12358
12227
|
case 'success':
|
|
12359
12228
|
return 'green';
|
|
12360
12229
|
case 'danger':
|
|
12361
|
-
return '
|
|
12230
|
+
return 'red';
|
|
12362
12231
|
case 'warning':
|
|
12363
|
-
return '
|
|
12232
|
+
return 'yellow';
|
|
12364
12233
|
default:
|
|
12365
12234
|
return 'blue';
|
|
12366
12235
|
}
|
|
@@ -12418,7 +12287,7 @@ function ToastComponent({
|
|
|
12418
12287
|
}, [handleHideToast, outro, width, toastTimeout]);
|
|
12419
12288
|
return /*#__PURE__*/jsxs(View, {
|
|
12420
12289
|
alignSelf: stretch ? 'flex-start' : 'auto',
|
|
12421
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12290
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple['grey.9'],
|
|
12422
12291
|
borderRadius: "kitt.2",
|
|
12423
12292
|
maxWidth: {
|
|
12424
12293
|
base: '100%',
|
|
@@ -12432,7 +12301,7 @@ function ToastComponent({
|
|
|
12432
12301
|
children: [/*#__PURE__*/jsx(TypographyIcon, {
|
|
12433
12302
|
icon: icon,
|
|
12434
12303
|
size: "kitt.5",
|
|
12435
|
-
color: kittTheme.kitt.palettes.
|
|
12304
|
+
color: kittTheme.kitt.palettes.deepPurple[`${color}.6`]
|
|
12436
12305
|
}), /*#__PURE__*/jsx(ToastContent, {
|
|
12437
12306
|
title: title,
|
|
12438
12307
|
description: description,
|
|
@@ -12450,7 +12319,7 @@ function ToastComponent({
|
|
|
12450
12319
|
}) : null]
|
|
12451
12320
|
}), outro === 'timer' ? /*#__PURE__*/jsx(AnimatedView$1, {
|
|
12452
12321
|
alignSelf: "flex-end",
|
|
12453
|
-
backgroundColor: kittTheme.kitt.palettes.
|
|
12322
|
+
backgroundColor: kittTheme.kitt.palettes.deepPurple[`${color}.6`],
|
|
12454
12323
|
height: "kitt.1",
|
|
12455
12324
|
style: animatedStyle
|
|
12456
12325
|
}) : null]
|
|
@@ -12507,7 +12376,7 @@ function TooltipContent({
|
|
|
12507
12376
|
paddingY: "kitt.tooltip.verticalPadding",
|
|
12508
12377
|
paddingX: "kitt.tooltip.horizontalPadding",
|
|
12509
12378
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12510
|
-
base: "body-
|
|
12379
|
+
base: "body-s",
|
|
12511
12380
|
color: "white-light",
|
|
12512
12381
|
children: children
|
|
12513
12382
|
})
|
|
@@ -12717,12 +12586,12 @@ function calcSizesFromType(type, theme) {
|
|
|
12717
12586
|
medium: type.medium || type.small || type.base
|
|
12718
12587
|
};
|
|
12719
12588
|
const size = {
|
|
12720
|
-
base: getTypographyTypeConfig(type.base ?? 'body', theme).
|
|
12589
|
+
base: getTypographyTypeConfig(type.base ?? 'body-m', theme).fontSize
|
|
12721
12590
|
};
|
|
12722
12591
|
[KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(typeName => {
|
|
12723
12592
|
const value = typeWithMediumForced[typeName];
|
|
12724
12593
|
if (value) {
|
|
12725
|
-
size[typeName] = getTypographyTypeConfig(value, theme)
|
|
12594
|
+
size[typeName] = getTypographyTypeConfig(value, theme).fontSize;
|
|
12726
12595
|
}
|
|
12727
12596
|
});
|
|
12728
12597
|
const marginLeft = {};
|
|
@@ -12822,6 +12691,7 @@ function TypographyLink({
|
|
|
12822
12691
|
'kitt-universal': 'true'
|
|
12823
12692
|
},
|
|
12824
12693
|
_web: {
|
|
12694
|
+
// @ts-expect-error: This is only used on web where 'not-allowed' and 'pointer' are valid cursor values
|
|
12825
12695
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
12826
12696
|
transitionProperty: 'color',
|
|
12827
12697
|
transitionDuration: '0.2s',
|
|
@@ -13053,7 +12923,7 @@ function BorderlessStep({
|
|
|
13053
12923
|
width: 2,
|
|
13054
12924
|
borderRadius: 2,
|
|
13055
12925
|
position: "absolute",
|
|
13056
|
-
backgroundColor: "kitt.
|
|
12926
|
+
backgroundColor: "kitt.accent",
|
|
13057
12927
|
overflow: "hidden",
|
|
13058
12928
|
children: isNextDone ? /*#__PURE__*/jsx(AnimatedView, {
|
|
13059
12929
|
style: progressBarAnimatedStyles,
|
|
@@ -13135,7 +13005,7 @@ function Step({
|
|
|
13135
13005
|
state: state,
|
|
13136
13006
|
index: index
|
|
13137
13007
|
}), !isLast ? /*#__PURE__*/jsx(View, {
|
|
13138
|
-
backgroundColor: shouldDisableNextLink ? 'kitt.
|
|
13008
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.accent' : 'kitt.primary',
|
|
13139
13009
|
width: 1,
|
|
13140
13010
|
position: "absolute",
|
|
13141
13011
|
top: 46,
|