@hero-design/rn 7.17.0 → 7.18.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/.turbo/turbo-build.log +2 -2
- package/es/index.js +3712 -3473
- package/lib/index.js +3716 -3475
- package/package.json +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/BottomNavigation/index.tsx +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/UtilityButton/{styled.tsx → StyledUtilityButton.tsx} +2 -2
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Button/UtilityButton/index.tsx +5 -1
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +69 -69
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -12
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +99 -0
- package/src/components/Drawer/DragableDrawer/__tests__/helpers.spec.ts +39 -0
- package/src/components/Drawer/DragableDrawer/__tests__/index.spec.tsx +24 -0
- package/src/components/Drawer/DragableDrawer/helpers.ts +43 -0
- package/src/components/Drawer/DragableDrawer/index.tsx +205 -0
- package/src/components/Drawer/StyledDrawer.tsx +70 -26
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Drawer/index.tsx +4 -1
- package/src/components/Empty/StyledEmpty.tsx +4 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +4 -3
- package/src/components/Empty/index.tsx +2 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/List/ListItem.tsx +1 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Progress/ProgressCircle.tsx +25 -22
- package/src/components/Progress/StyledProgressCircle.tsx +33 -28
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -121
- package/src/components/Select/MultiSelect/index.tsx +1 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -94
- package/src/components/Select/SingleSelect/index.tsx +2 -6
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Tabs/ScrollableTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +8 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +85 -6
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +87 -8
- package/src/components/Tabs/__tests__/index.spec.tsx +8 -0
- package/src/components/Tabs/index.tsx +8 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +9 -9
- package/src/components/TextInput/StyledTextInput.tsx +1 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +100 -87
- package/src/components/TextInput/index.tsx +2 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +6 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +13 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
- package/src/index.ts +9 -1
- package/src/theme/ThemeProvider.ts +19 -0
- package/src/theme/ThemeSwitcher.tsx +27 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +161 -149
- package/src/theme/components/alert.ts +3 -3
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/button.ts +9 -8
- package/src/theme/components/card.ts +4 -4
- package/src/theme/components/drawer.ts +14 -2
- package/src/theme/components/empty.ts +3 -2
- package/src/theme/components/list.ts +4 -4
- package/src/theme/components/pinInput.ts +2 -2
- package/src/theme/components/progress.ts +5 -5
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/getTheme.ts +129 -0
- package/src/theme/global/colors/swag.ts +54 -0
- package/src/theme/global/colors/types.ts +45 -0
- package/src/theme/global/colors/work.ts +14 -0
- package/src/theme/global/index.ts +6 -2
- package/src/theme/index.ts +16 -143
- package/src/utils/scale.ts +4 -1
- package/types/components/Button/Button.d.ts +1 -0
- package/types/components/Button/UtilityButton/{styled.d.ts → StyledUtilityButton.d.ts} +0 -0
- package/types/components/Drawer/DragableDrawer/__tests__/helpers.spec.d.ts +1 -0
- package/types/components/Drawer/DragableDrawer/__tests__/index.spec.d.ts +1 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
- package/types/components/Drawer/StyledDrawer.d.ts +34 -4
- package/types/components/Drawer/index.d.ts +4 -2
- package/types/components/Empty/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
- package/types/index.d.ts +2 -2
- package/types/theme/ThemeProvider.d.ts +12 -0
- package/types/theme/ThemeSwitcher.d.ts +7 -0
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/drawer.d.ts +9 -0
- package/types/theme/components/empty.d.ts +3 -2
- package/types/theme/components/progress.d.ts +1 -2
- package/types/theme/getTheme.d.ts +74 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/{colors.d.ts → colors/types.d.ts} +4 -3
- package/types/theme/global/colors/work.d.ts +3 -0
- package/types/theme/global/index.d.ts +7 -2
- package/types/theme/index.d.ts +7 -84
- package/src/theme/global/colors.ts +0 -50
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Emotion from '@emotion/react';
|
|
2
|
+
import { Theme } from './getTheme';
|
|
3
|
+
|
|
4
|
+
export interface ThemeProviderProps {
|
|
5
|
+
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ThemeProviderType {
|
|
10
|
+
(props: ThemeProviderProps): React.ReactElement;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const ThemeProvider = Emotion.ThemeProvider as ThemeProviderType;
|
|
14
|
+
|
|
15
|
+
const useTheme = Emotion.useTheme as () => Theme;
|
|
16
|
+
|
|
17
|
+
export { useTheme };
|
|
18
|
+
|
|
19
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
import getTheme from './getTheme';
|
|
4
|
+
import { defaultScale, swagSystemPalette, workSystemPalette } from './global';
|
|
5
|
+
import ThemeProvider from './ThemeProvider';
|
|
6
|
+
|
|
7
|
+
type ThemeName = 'swag' | 'work';
|
|
8
|
+
|
|
9
|
+
const ThemeSwitcher = ({
|
|
10
|
+
name = 'swag',
|
|
11
|
+
children,
|
|
12
|
+
}: {
|
|
13
|
+
name?: ThemeName;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => {
|
|
16
|
+
const theme = useMemo(() => {
|
|
17
|
+
switch (name) {
|
|
18
|
+
case 'swag':
|
|
19
|
+
return getTheme(defaultScale, swagSystemPalette);
|
|
20
|
+
case 'work':
|
|
21
|
+
return getTheme(defaultScale, workSystemPalette);
|
|
22
|
+
}
|
|
23
|
+
}, [name]);
|
|
24
|
+
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default ThemeSwitcher;
|
|
@@ -19,11 +19,11 @@ Object {
|
|
|
19
19
|
"base": 1,
|
|
20
20
|
},
|
|
21
21
|
"colors": Object {
|
|
22
|
-
"divider": "#
|
|
23
|
-
"error": "#
|
|
22
|
+
"divider": "#e8e9ea",
|
|
23
|
+
"error": "#f46363",
|
|
24
24
|
"info": "#b5c3fd",
|
|
25
|
-
"success": "#
|
|
26
|
-
"warning": "#
|
|
25
|
+
"success": "#5ace7d",
|
|
26
|
+
"warning": "#ffbe71",
|
|
27
27
|
},
|
|
28
28
|
"radii": Object {
|
|
29
29
|
"default": 16,
|
|
@@ -42,9 +42,9 @@ Object {
|
|
|
42
42
|
"colors": Object {
|
|
43
43
|
"danger": "#de350b",
|
|
44
44
|
"info": "#4568fb",
|
|
45
|
-
"primary": "#
|
|
46
|
-
"success": "#
|
|
47
|
-
"warning": "#
|
|
45
|
+
"primary": "#8505a2",
|
|
46
|
+
"success": "#5ace7d",
|
|
47
|
+
"warning": "#ffbe71",
|
|
48
48
|
},
|
|
49
49
|
"fontSizes": Object {
|
|
50
50
|
"large": 20,
|
|
@@ -70,12 +70,12 @@ Object {
|
|
|
70
70
|
},
|
|
71
71
|
"badge": Object {
|
|
72
72
|
"colors": Object {
|
|
73
|
-
"archived": "#
|
|
73
|
+
"archived": "#737479",
|
|
74
74
|
"danger": "#de350b",
|
|
75
75
|
"info": "#4568fb",
|
|
76
76
|
"success": "#017d6d",
|
|
77
77
|
"text": "#ffffff",
|
|
78
|
-
"warning": "#
|
|
78
|
+
"warning": "#ffa234",
|
|
79
79
|
},
|
|
80
80
|
"fontSizes": Object {
|
|
81
81
|
"default": 12,
|
|
@@ -98,7 +98,7 @@ Object {
|
|
|
98
98
|
"bottomNavigation": Object {
|
|
99
99
|
"colors": Object {
|
|
100
100
|
"background": "#ffffff",
|
|
101
|
-
"shadow": "#
|
|
101
|
+
"shadow": "#001f23",
|
|
102
102
|
},
|
|
103
103
|
"shadows": Object {
|
|
104
104
|
"elevation": 10,
|
|
@@ -118,9 +118,9 @@ Object {
|
|
|
118
118
|
},
|
|
119
119
|
"bottomSheet": Object {
|
|
120
120
|
"colors": Object {
|
|
121
|
-
"backdrop": "#
|
|
121
|
+
"backdrop": "#001f23",
|
|
122
122
|
"background": "#ffffff",
|
|
123
|
-
"shadow": "#
|
|
123
|
+
"shadow": "#001f23",
|
|
124
124
|
},
|
|
125
125
|
"radii": Object {
|
|
126
126
|
"default": 16,
|
|
@@ -152,29 +152,29 @@ Object {
|
|
|
152
152
|
},
|
|
153
153
|
"colors": Object {
|
|
154
154
|
"danger": "#de350b",
|
|
155
|
-
"defaultText": "#
|
|
156
|
-
"disabledBackground": "#
|
|
157
|
-
"disabledBorder": "#
|
|
158
|
-
"disabledText": "#
|
|
155
|
+
"defaultText": "#001f23",
|
|
156
|
+
"disabledBackground": "#bfc1c5",
|
|
157
|
+
"disabledBorder": "#bfc1c5",
|
|
158
|
+
"disabledText": "#bfc1c5",
|
|
159
159
|
"invertedText": "#ffffff",
|
|
160
|
-
"pressedDanger": "#
|
|
161
|
-
"pressedPrimary": "#
|
|
162
|
-
"pressedSecondary": "#
|
|
163
|
-
"primary": "#
|
|
160
|
+
"pressedDanger": "#f46363",
|
|
161
|
+
"pressedPrimary": "#808f91",
|
|
162
|
+
"pressedSecondary": "#b5c3fd",
|
|
163
|
+
"primary": "#001f23",
|
|
164
164
|
"secondary": "#4568fb",
|
|
165
165
|
"underlayColors": Object {
|
|
166
|
-
"basic-transparent": "#
|
|
167
|
-
"filled-danger": "#
|
|
168
|
-
"filled-primary": "#
|
|
169
|
-
"filled-secondary": "#
|
|
166
|
+
"basic-transparent": "#808f91",
|
|
167
|
+
"filled-danger": "#f46363",
|
|
168
|
+
"filled-primary": "#808f91",
|
|
169
|
+
"filled-secondary": "#b5c3fd",
|
|
170
170
|
"outlined-danger": "#fcebe7",
|
|
171
|
-
"outlined-primary": "#
|
|
171
|
+
"outlined-primary": "#e6e9e9",
|
|
172
172
|
"outlined-secondary": "#ecf0ff",
|
|
173
173
|
"text-danger": "#fcebe7",
|
|
174
|
-
"text-primary": "#
|
|
174
|
+
"text-primary": "#e6e9e9",
|
|
175
175
|
"text-secondary": "#ecf0ff",
|
|
176
176
|
},
|
|
177
|
-
"utilityBackground": "#
|
|
177
|
+
"utilityBackground": "#f6f6f7",
|
|
178
178
|
},
|
|
179
179
|
"fontSize": Object {
|
|
180
180
|
"default": 18,
|
|
@@ -183,6 +183,7 @@ Object {
|
|
|
183
183
|
},
|
|
184
184
|
"fonts": Object {
|
|
185
185
|
"default": "BeVietnamPro-SemiBold",
|
|
186
|
+
"utility": "BeVietnamPro-Regular",
|
|
186
187
|
},
|
|
187
188
|
"lineHeight": Object {
|
|
188
189
|
"default": 24,
|
|
@@ -196,17 +197,16 @@ Object {
|
|
|
196
197
|
},
|
|
197
198
|
"space": Object {
|
|
198
199
|
"buttonPadding": 16,
|
|
199
|
-
"iconPadding":
|
|
200
|
-
"utilityIconPadding": 12,
|
|
200
|
+
"iconPadding": 12,
|
|
201
201
|
"utilityPadding": 8,
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
204
|
"calendar": Object {
|
|
205
205
|
"colors": Object {
|
|
206
|
-
"background": "#
|
|
207
|
-
"border": "#
|
|
206
|
+
"background": "#f6f6f7",
|
|
207
|
+
"border": "#001f23",
|
|
208
208
|
"inverted": "#ffffff",
|
|
209
|
-
"primary": "#
|
|
209
|
+
"primary": "#8505a2",
|
|
210
210
|
},
|
|
211
211
|
"radii": Object {
|
|
212
212
|
"default": 999,
|
|
@@ -227,7 +227,7 @@ Object {
|
|
|
227
227
|
},
|
|
228
228
|
"card": Object {
|
|
229
229
|
"colors": Object {
|
|
230
|
-
"dataCardIndicator": "#
|
|
230
|
+
"dataCardIndicator": "#8505a2",
|
|
231
231
|
"indicator": Object {
|
|
232
232
|
"archived": "#bfc1c5",
|
|
233
233
|
"danger": "#e3602a",
|
|
@@ -248,8 +248,8 @@ Object {
|
|
|
248
248
|
"default": 2,
|
|
249
249
|
},
|
|
250
250
|
"colors": Object {
|
|
251
|
-
"borderColor": "#
|
|
252
|
-
"disabled": "#
|
|
251
|
+
"borderColor": "#8505a2",
|
|
252
|
+
"disabled": "#808f91",
|
|
253
253
|
"text": "#ffffff",
|
|
254
254
|
},
|
|
255
255
|
"radii": Object {
|
|
@@ -277,7 +277,7 @@ Object {
|
|
|
277
277
|
"default": 1,
|
|
278
278
|
},
|
|
279
279
|
"colors": Object {
|
|
280
|
-
"default": "#
|
|
280
|
+
"default": "#e8e9ea",
|
|
281
281
|
},
|
|
282
282
|
"space": Object {
|
|
283
283
|
"large": 24,
|
|
@@ -289,12 +289,14 @@ Object {
|
|
|
289
289
|
},
|
|
290
290
|
"drawer": Object {
|
|
291
291
|
"colors": Object {
|
|
292
|
-
"backdrop": "#
|
|
292
|
+
"backdrop": "#001f23",
|
|
293
293
|
"background": "#ffffff",
|
|
294
|
-
"
|
|
294
|
+
"handler": "#001f23",
|
|
295
|
+
"shadow": "#001f23",
|
|
295
296
|
},
|
|
296
297
|
"radii": Object {
|
|
297
298
|
"default": 16,
|
|
299
|
+
"handler": 4,
|
|
298
300
|
},
|
|
299
301
|
"shadows": Object {
|
|
300
302
|
"elevation": 10,
|
|
@@ -305,13 +307,20 @@ Object {
|
|
|
305
307
|
"opacity": 0.27,
|
|
306
308
|
"radius": 4.65,
|
|
307
309
|
},
|
|
310
|
+
"sizes": Object {
|
|
311
|
+
"handlerHeight": 4,
|
|
312
|
+
"handlerWidth": 56,
|
|
313
|
+
},
|
|
314
|
+
"space": Object {
|
|
315
|
+
"handlerPaddingVertical": 8,
|
|
316
|
+
},
|
|
308
317
|
},
|
|
309
318
|
"empty": Object {
|
|
310
319
|
"colors": Object {
|
|
311
|
-
"illustrationBackground": "#
|
|
320
|
+
"illustrationBackground": "#ccced1",
|
|
312
321
|
"invertedText": "#ffffff",
|
|
313
|
-
"subduedText": "#
|
|
314
|
-
"text": "#
|
|
322
|
+
"subduedText": "#4d6265",
|
|
323
|
+
"text": "#001f23",
|
|
315
324
|
},
|
|
316
325
|
"fontSizes": Object {
|
|
317
326
|
"description": 16,
|
|
@@ -328,16 +337,17 @@ Object {
|
|
|
328
337
|
"illustration": 168,
|
|
329
338
|
},
|
|
330
339
|
"space": Object {
|
|
331
|
-
"
|
|
332
|
-
"
|
|
340
|
+
"illustrationMargin": 24,
|
|
341
|
+
"titleMargin": 16,
|
|
342
|
+
"wrapperPadding": 16,
|
|
333
343
|
},
|
|
334
344
|
},
|
|
335
345
|
"fab": Object {
|
|
336
346
|
"colors": Object {
|
|
337
347
|
"actionItemBackground": "#4d6265",
|
|
338
348
|
"actionItemText": "#ffffff",
|
|
339
|
-
"backdropBackground": "#
|
|
340
|
-
"buttonBackground": "#
|
|
349
|
+
"backdropBackground": "#001f23",
|
|
350
|
+
"buttonBackground": "#001f23",
|
|
341
351
|
"headerText": "#ffffff",
|
|
342
352
|
"icon": "#ffffff",
|
|
343
353
|
"titleText": "#ffffff",
|
|
@@ -385,13 +395,13 @@ Object {
|
|
|
385
395
|
"icon": Object {
|
|
386
396
|
"colors": Object {
|
|
387
397
|
"danger": "#de350b",
|
|
388
|
-
"disabledText": "#
|
|
398
|
+
"disabledText": "#808f91",
|
|
389
399
|
"info": "#4568fb",
|
|
390
400
|
"invertedText": "#ffffff",
|
|
391
|
-
"primary": "#
|
|
392
|
-
"success": "#
|
|
393
|
-
"text": "#
|
|
394
|
-
"warning": "#
|
|
401
|
+
"primary": "#8505a2",
|
|
402
|
+
"success": "#5ace7d",
|
|
403
|
+
"text": "#001f23",
|
|
404
|
+
"warning": "#ffbe71",
|
|
395
405
|
},
|
|
396
406
|
"sizes": Object {
|
|
397
407
|
"large": 28,
|
|
@@ -403,13 +413,13 @@ Object {
|
|
|
403
413
|
},
|
|
404
414
|
"list": Object {
|
|
405
415
|
"colors": Object {
|
|
406
|
-
"checkedListItemContainerBackground": "#
|
|
407
|
-
"highlightedListItemContainerBackground": "#
|
|
416
|
+
"checkedListItemContainerBackground": "#f3e6f6",
|
|
417
|
+
"highlightedListItemContainerBackground": "#f3e6f6",
|
|
408
418
|
"leadingStatus": Object {
|
|
409
|
-
"archived": "#
|
|
410
|
-
"danger": "#
|
|
411
|
-
"info": "#
|
|
412
|
-
"success": "#
|
|
419
|
+
"archived": "#bfc1c5",
|
|
420
|
+
"danger": "#e3602a",
|
|
421
|
+
"info": "#b5c3fd",
|
|
422
|
+
"success": "#5ace7d",
|
|
413
423
|
"warning": "#ffbe71",
|
|
414
424
|
},
|
|
415
425
|
"listItemContainerBackground": "#ffffff",
|
|
@@ -446,10 +456,10 @@ Object {
|
|
|
446
456
|
"focused": 2,
|
|
447
457
|
},
|
|
448
458
|
"colors": Object {
|
|
449
|
-
"default": "#
|
|
459
|
+
"default": "#001f23",
|
|
450
460
|
"disabled": "#bfc1c5",
|
|
451
461
|
"error": "#de350b",
|
|
452
|
-
"mask": "#
|
|
462
|
+
"mask": "#4d6265",
|
|
453
463
|
},
|
|
454
464
|
"fontSizes": Object {
|
|
455
465
|
"cellText": 28,
|
|
@@ -475,12 +485,12 @@ Object {
|
|
|
475
485
|
},
|
|
476
486
|
"progress": Object {
|
|
477
487
|
"colors": Object {
|
|
478
|
-
"background": "#
|
|
488
|
+
"background": "#e8e9ea",
|
|
479
489
|
"danger": "#de350b",
|
|
480
490
|
"info": "#4568fb",
|
|
481
491
|
"innerBackground": "#ffffff",
|
|
482
|
-
"primary": "#
|
|
483
|
-
"success": "#
|
|
492
|
+
"primary": "#8505a2",
|
|
493
|
+
"success": "#5ace7d",
|
|
484
494
|
"warning": "#ffa234",
|
|
485
495
|
},
|
|
486
496
|
"radii": Object {
|
|
@@ -488,8 +498,7 @@ Object {
|
|
|
488
498
|
},
|
|
489
499
|
"sizes": Object {
|
|
490
500
|
"barHeight": 4,
|
|
491
|
-
"
|
|
492
|
-
"strokeWidth": 8,
|
|
501
|
+
"circleWidth": 76,
|
|
493
502
|
},
|
|
494
503
|
},
|
|
495
504
|
"radio": Object {
|
|
@@ -497,8 +506,8 @@ Object {
|
|
|
497
506
|
"circle": 2,
|
|
498
507
|
},
|
|
499
508
|
"colors": Object {
|
|
500
|
-
"checkedCircle": "#
|
|
501
|
-
"checkedWrapper": "#
|
|
509
|
+
"checkedCircle": "#8505a2",
|
|
510
|
+
"checkedWrapper": "#f3e6f6",
|
|
502
511
|
"circle": "#000000",
|
|
503
512
|
"wrapper": "#ffffff",
|
|
504
513
|
},
|
|
@@ -520,9 +529,9 @@ Object {
|
|
|
520
529
|
"webViewBorderBottomWidth": 0.8,
|
|
521
530
|
},
|
|
522
531
|
"colors": Object {
|
|
523
|
-
"toolbarBackgroundColor": "#
|
|
524
|
-
"toolbarBorderColor": "#
|
|
525
|
-
"toolbarButtonSelectedBackground": "#
|
|
532
|
+
"toolbarBackgroundColor": "#f6f6f7",
|
|
533
|
+
"toolbarBorderColor": "#e8e9ea",
|
|
534
|
+
"toolbarButtonSelectedBackground": "#e8e9ea",
|
|
526
535
|
},
|
|
527
536
|
"fontSizes": Object {
|
|
528
537
|
"editor": 14,
|
|
@@ -541,7 +550,7 @@ Object {
|
|
|
541
550
|
},
|
|
542
551
|
"sectionHeading": Object {
|
|
543
552
|
"colors": Object {
|
|
544
|
-
"background": "#
|
|
553
|
+
"background": "#e8e9ea",
|
|
545
554
|
},
|
|
546
555
|
"space": Object {
|
|
547
556
|
"headingHorizontalPadding": 16,
|
|
@@ -552,7 +561,7 @@ Object {
|
|
|
552
561
|
},
|
|
553
562
|
"select": Object {
|
|
554
563
|
"colors": Object {
|
|
555
|
-
"footerText": "#
|
|
564
|
+
"footerText": "#8505a2",
|
|
556
565
|
},
|
|
557
566
|
"radii": Object {
|
|
558
567
|
"option": 4,
|
|
@@ -569,7 +578,7 @@ Object {
|
|
|
569
578
|
},
|
|
570
579
|
"spinner": Object {
|
|
571
580
|
"color": Object {
|
|
572
|
-
"default": "#
|
|
581
|
+
"default": "#8505a2",
|
|
573
582
|
},
|
|
574
583
|
"radii": Object {
|
|
575
584
|
"default": 8,
|
|
@@ -585,8 +594,8 @@ Object {
|
|
|
585
594
|
"default": 1,
|
|
586
595
|
},
|
|
587
596
|
"colors": Object {
|
|
588
|
-
"active": "#
|
|
589
|
-
"inactive": "#
|
|
597
|
+
"active": "#8505a2",
|
|
598
|
+
"inactive": "#808f91",
|
|
590
599
|
"thumb": "#ffffff",
|
|
591
600
|
},
|
|
592
601
|
"heights": Object {
|
|
@@ -615,11 +624,11 @@ Object {
|
|
|
615
624
|
"headerBottom": 1,
|
|
616
625
|
},
|
|
617
626
|
"colors": Object {
|
|
618
|
-
"active": "#
|
|
619
|
-
"activeBackground": "#
|
|
620
|
-
"headerBottom": "#
|
|
621
|
-
"inactive": "#
|
|
622
|
-
"text": "#
|
|
627
|
+
"active": "#8505a2",
|
|
628
|
+
"activeBackground": "#f3e6f6",
|
|
629
|
+
"headerBottom": "#e8e9ea",
|
|
630
|
+
"inactive": "#001f23",
|
|
631
|
+
"text": "#001f23",
|
|
623
632
|
},
|
|
624
633
|
"radii": Object {
|
|
625
634
|
"outline": 8,
|
|
@@ -641,19 +650,19 @@ Object {
|
|
|
641
650
|
},
|
|
642
651
|
"colors": Object {
|
|
643
652
|
"archived": "#737479",
|
|
644
|
-
"archivedBackground": "#
|
|
653
|
+
"archivedBackground": "#f6f6f7",
|
|
645
654
|
"danger": "#de350b",
|
|
646
655
|
"dangerBackground": "#fcebe7",
|
|
647
|
-
"default": "#
|
|
656
|
+
"default": "#001f23",
|
|
648
657
|
"defaultBackground": undefined,
|
|
649
658
|
"info": "#4568fb",
|
|
650
659
|
"infoBackground": "#ecf0ff",
|
|
651
|
-
"primary": "#
|
|
652
|
-
"primaryBackground": "#
|
|
660
|
+
"primary": "#8505a2",
|
|
661
|
+
"primaryBackground": "#f3e6f6",
|
|
653
662
|
"success": "#017d6d",
|
|
654
663
|
"successBackground": "#f0fef4",
|
|
655
|
-
"warning": "#
|
|
656
|
-
"warningBackground": "#
|
|
664
|
+
"warning": "#ffa234",
|
|
665
|
+
"warningBackground": "#ebf4ff",
|
|
657
666
|
},
|
|
658
667
|
"fontSizes": Object {
|
|
659
668
|
"default": 12,
|
|
@@ -679,52 +688,52 @@ Object {
|
|
|
679
688
|
"colors": Object {
|
|
680
689
|
"asterisks": Object {
|
|
681
690
|
"default": "#de350b",
|
|
682
|
-
"disabled": "#
|
|
691
|
+
"disabled": "#bfc1c5",
|
|
683
692
|
"error": "#de350b",
|
|
684
693
|
"filled": "#de350b",
|
|
685
694
|
"focused": "#de350b",
|
|
686
|
-
"readonly": "#
|
|
695
|
+
"readonly": "#808f91",
|
|
687
696
|
},
|
|
688
697
|
"borders": Object {
|
|
689
|
-
"default": "#
|
|
690
|
-
"disabled": "#
|
|
698
|
+
"default": "#001f23",
|
|
699
|
+
"disabled": "#bfc1c5",
|
|
691
700
|
"error": "#de350b",
|
|
692
|
-
"filled": "#
|
|
693
|
-
"focused": "#
|
|
694
|
-
"readonly": "#
|
|
701
|
+
"filled": "#001f23",
|
|
702
|
+
"focused": "#001f23",
|
|
703
|
+
"readonly": "#808f91",
|
|
695
704
|
},
|
|
696
|
-
"disabledLabel": "#
|
|
705
|
+
"disabledLabel": "#bfc1c5",
|
|
697
706
|
"error": "#de350b",
|
|
698
|
-
"label": "#
|
|
707
|
+
"label": "#001f23",
|
|
699
708
|
"labelBackground": "#ffffff",
|
|
700
709
|
"labels": Object {
|
|
701
|
-
"default": "#
|
|
702
|
-
"disabled": "#
|
|
703
|
-
"error": "#
|
|
704
|
-
"filled": "#
|
|
705
|
-
"focused": "#
|
|
706
|
-
"readonly": "#
|
|
710
|
+
"default": "#001f23",
|
|
711
|
+
"disabled": "#bfc1c5",
|
|
712
|
+
"error": "#001f23",
|
|
713
|
+
"filled": "#001f23",
|
|
714
|
+
"focused": "#001f23",
|
|
715
|
+
"readonly": "#808f91",
|
|
707
716
|
},
|
|
708
717
|
"labelsInsideTextInput": Object {
|
|
709
|
-
"default": "#
|
|
710
|
-
"disabled": "#
|
|
711
|
-
"error": "#
|
|
712
|
-
"filled": "#
|
|
713
|
-
"focused": "#
|
|
714
|
-
"readonly": "#
|
|
718
|
+
"default": "#001f23",
|
|
719
|
+
"disabled": "#bfc1c5",
|
|
720
|
+
"error": "#001f23",
|
|
721
|
+
"filled": "#001f23",
|
|
722
|
+
"focused": "#001f23",
|
|
723
|
+
"readonly": "#808f91",
|
|
715
724
|
},
|
|
716
725
|
"maxLengthLabels": Object {
|
|
717
|
-
"default": "#
|
|
718
|
-
"disabled": "#
|
|
726
|
+
"default": "#001f23",
|
|
727
|
+
"disabled": "#bfc1c5",
|
|
719
728
|
"error": "#de350b",
|
|
720
|
-
"filled": "#
|
|
721
|
-
"focused": "#
|
|
722
|
-
"readonly": "#
|
|
729
|
+
"filled": "#001f23",
|
|
730
|
+
"focused": "#001f23",
|
|
731
|
+
"readonly": "#808f91",
|
|
723
732
|
},
|
|
724
|
-
"placeholderIfFocued": "#
|
|
725
|
-
"placeholderIfNotFocused": "#
|
|
726
|
-
"readonlyLabel": "#
|
|
727
|
-
"text": "#
|
|
733
|
+
"placeholderIfFocued": "#808f91",
|
|
734
|
+
"placeholderIfNotFocused": "#001f23",
|
|
735
|
+
"readonlyLabel": "#808f91",
|
|
736
|
+
"text": "#001f23",
|
|
728
737
|
},
|
|
729
738
|
"fontSizes": Object {
|
|
730
739
|
"asteriskLabel": 14,
|
|
@@ -760,11 +769,11 @@ Object {
|
|
|
760
769
|
"base": 1,
|
|
761
770
|
},
|
|
762
771
|
"colors": Object {
|
|
763
|
-
"divider": "#
|
|
764
|
-
"error": "#
|
|
772
|
+
"divider": "#e8e9ea",
|
|
773
|
+
"error": "#f46363",
|
|
765
774
|
"info": "#b5c3fd",
|
|
766
|
-
"success": "#
|
|
767
|
-
"warning": "#
|
|
775
|
+
"success": "#5ace7d",
|
|
776
|
+
"warning": "#ffbe71",
|
|
768
777
|
},
|
|
769
778
|
"radii": Object {
|
|
770
779
|
"default": 16,
|
|
@@ -783,13 +792,13 @@ Object {
|
|
|
783
792
|
},
|
|
784
793
|
"colors": Object {
|
|
785
794
|
"background": "#ffffff",
|
|
786
|
-
"border": "#
|
|
787
|
-
"danger": "#
|
|
788
|
-
"disabled": "#
|
|
795
|
+
"border": "#e8e9ea",
|
|
796
|
+
"danger": "#ffbe71",
|
|
797
|
+
"disabled": "#808f91",
|
|
789
798
|
"error": "#de350b",
|
|
790
799
|
"info": "#4568fb",
|
|
791
|
-
"primary": "#
|
|
792
|
-
"success": "#
|
|
800
|
+
"primary": "#8505a2",
|
|
801
|
+
"success": "#5ace7d",
|
|
793
802
|
},
|
|
794
803
|
"space": Object {
|
|
795
804
|
"horizontalPadding": 12,
|
|
@@ -798,14 +807,14 @@ Object {
|
|
|
798
807
|
},
|
|
799
808
|
"typography": Object {
|
|
800
809
|
"colors": Object {
|
|
801
|
-
"body": "#
|
|
810
|
+
"body": "#001f23",
|
|
802
811
|
"danger": "#de350b",
|
|
803
812
|
"info": "#4568fb",
|
|
804
813
|
"inverted": "#ffffff",
|
|
805
|
-
"primary": "#
|
|
806
|
-
"subdued": "#
|
|
807
|
-
"success": "#
|
|
808
|
-
"warning": "#
|
|
814
|
+
"primary": "#8505a2",
|
|
815
|
+
"subdued": "#808f91",
|
|
816
|
+
"success": "#5ace7d",
|
|
817
|
+
"warning": "#ffbe71",
|
|
809
818
|
},
|
|
810
819
|
"fontSizes": Object {
|
|
811
820
|
"large": 16,
|
|
@@ -834,44 +843,47 @@ Object {
|
|
|
834
843
|
},
|
|
835
844
|
"colors": Object {
|
|
836
845
|
"archived": "#ccced1",
|
|
837
|
-
"archivedBackground": "#
|
|
846
|
+
"archivedBackground": "#f6f6f7",
|
|
838
847
|
"archivedDark": "#737479",
|
|
839
848
|
"archivedLight": "#bfc1c5",
|
|
840
|
-
"backgroundDark": "#
|
|
841
|
-
"backgroundLight": "#
|
|
849
|
+
"backgroundDark": "#001f23",
|
|
850
|
+
"backgroundLight": "#f6f6f7",
|
|
842
851
|
"black": "#000000",
|
|
843
852
|
"danger": "#de350b",
|
|
844
853
|
"dangerBackground": "#fcebe7",
|
|
845
|
-
"dangerLight": "#
|
|
854
|
+
"dangerLight": "#f46363",
|
|
846
855
|
"dangerMediumLight": "#e3602a",
|
|
847
|
-
"disabledLightText": "#
|
|
848
|
-
"disabledText": "#
|
|
849
|
-
"
|
|
856
|
+
"disabledLightText": "#bfc1c5",
|
|
857
|
+
"disabledText": "#808f91",
|
|
858
|
+
"globalPrimary": "#001f23",
|
|
859
|
+
"globalPrimaryBackground": "#e6e9e9",
|
|
860
|
+
"globalPrimaryLight": "#808f91",
|
|
861
|
+
"inactiveBackground": "#808f91",
|
|
850
862
|
"info": "#4568fb",
|
|
851
863
|
"infoBackground": "#ecf0ff",
|
|
852
|
-
"infoLight": "#
|
|
864
|
+
"infoLight": "#b5c3fd",
|
|
853
865
|
"infoMediumLight": "#b5c3fd",
|
|
854
866
|
"invertedText": "#ffffff",
|
|
855
|
-
"outline": "#
|
|
867
|
+
"outline": "#e8e9ea",
|
|
856
868
|
"platformBackground": "#ffffff",
|
|
857
|
-
"primary": "#
|
|
858
|
-
"primaryBackground": "#
|
|
869
|
+
"primary": "#8505a2",
|
|
870
|
+
"primaryBackground": "#f3e6f6",
|
|
859
871
|
"primaryBackgroundDark": "#4d6265",
|
|
860
|
-
"primaryDark": "#
|
|
861
|
-
"primaryLight": "#
|
|
872
|
+
"primaryDark": "#795e90",
|
|
873
|
+
"primaryLight": "#c282d1",
|
|
862
874
|
"secondary": "#4568fb",
|
|
863
875
|
"secondaryBackground": "#ecf0ff",
|
|
864
|
-
"secondaryLight": "#
|
|
865
|
-
"shadow": "#
|
|
866
|
-
"subduedText": "#
|
|
867
|
-
"success": "#
|
|
876
|
+
"secondaryLight": "#b5c3fd",
|
|
877
|
+
"shadow": "#ccced1",
|
|
878
|
+
"subduedText": "#4d6265",
|
|
879
|
+
"success": "#5ace7d",
|
|
868
880
|
"successBackground": "#f0fef4",
|
|
869
881
|
"successDark": "#017d6d",
|
|
870
882
|
"successLight": "#5ace7d",
|
|
871
|
-
"text": "#
|
|
872
|
-
"warning": "#
|
|
873
|
-
"warningBackground": "#
|
|
874
|
-
"warningDark": "#
|
|
883
|
+
"text": "#001f23",
|
|
884
|
+
"warning": "#ffbe71",
|
|
885
|
+
"warningBackground": "#ebf4ff",
|
|
886
|
+
"warningDark": "#ffa234",
|
|
875
887
|
"warningLight": "#ffbe71",
|
|
876
888
|
},
|
|
877
889
|
"fontSizes": Object {
|
|
@@ -5,9 +5,9 @@ const getAlertTheme = (theme: GlobalTheme) => {
|
|
|
5
5
|
const colors = {
|
|
6
6
|
success: theme.colors.success,
|
|
7
7
|
warning: theme.colors.warning,
|
|
8
|
-
error: theme.colors.
|
|
9
|
-
info: theme.colors.
|
|
10
|
-
divider: theme.colors.
|
|
8
|
+
error: theme.colors.dangerLight,
|
|
9
|
+
info: theme.colors.infoLight,
|
|
10
|
+
divider: theme.colors.outline,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
const sizes = {
|