@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.
Files changed (142) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +3712 -3473
  3. package/lib/index.js +3716 -3475
  4. package/package.json +2 -2
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  10. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
  11. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
  12. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  13. package/src/components/BottomNavigation/index.tsx +1 -1
  14. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  15. package/src/components/Button/Button.tsx +1 -0
  16. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  17. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  18. package/src/components/Button/UtilityButton/{styled.tsx → StyledUtilityButton.tsx} +2 -2
  19. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  20. package/src/components/Button/UtilityButton/index.tsx +5 -1
  21. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
  22. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +69 -69
  23. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
  24. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  25. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  26. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  27. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
  28. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  29. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -5
  30. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -12
  31. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
  32. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +99 -0
  33. package/src/components/Drawer/DragableDrawer/__tests__/helpers.spec.ts +39 -0
  34. package/src/components/Drawer/DragableDrawer/__tests__/index.spec.tsx +24 -0
  35. package/src/components/Drawer/DragableDrawer/helpers.ts +43 -0
  36. package/src/components/Drawer/DragableDrawer/index.tsx +205 -0
  37. package/src/components/Drawer/StyledDrawer.tsx +70 -26
  38. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  39. package/src/components/Drawer/index.tsx +4 -1
  40. package/src/components/Empty/StyledEmpty.tsx +4 -3
  41. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +4 -3
  42. package/src/components/Empty/index.tsx +2 -2
  43. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  44. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  45. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  46. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  47. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  48. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  49. package/src/components/List/ListItem.tsx +1 -1
  50. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
  51. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
  52. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
  53. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
  54. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  55. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  56. package/src/components/Progress/ProgressCircle.tsx +25 -22
  57. package/src/components/Progress/StyledProgressCircle.tsx +33 -28
  58. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
  59. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
  60. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
  61. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
  62. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
  63. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -6
  64. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  65. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  66. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  67. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
  68. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -121
  69. package/src/components/Select/MultiSelect/index.tsx +1 -4
  70. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  71. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
  72. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +99 -94
  73. package/src/components/Select/SingleSelect/index.tsx +2 -6
  74. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
  75. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  76. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
  77. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  78. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  79. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  80. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  81. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +8 -0
  82. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +85 -6
  83. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +87 -8
  84. package/src/components/Tabs/__tests__/index.spec.tsx +8 -0
  85. package/src/components/Tabs/index.tsx +8 -3
  86. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +9 -9
  87. package/src/components/TextInput/StyledTextInput.tsx +1 -0
  88. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
  89. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +100 -87
  90. package/src/components/TextInput/index.tsx +2 -2
  91. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +6 -5
  92. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +13 -12
  93. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
  94. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  95. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
  96. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
  97. package/src/index.ts +9 -1
  98. package/src/theme/ThemeProvider.ts +19 -0
  99. package/src/theme/ThemeSwitcher.tsx +27 -0
  100. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +161 -149
  101. package/src/theme/components/alert.ts +3 -3
  102. package/src/theme/components/badge.ts +1 -1
  103. package/src/theme/components/button.ts +9 -8
  104. package/src/theme/components/card.ts +4 -4
  105. package/src/theme/components/drawer.ts +14 -2
  106. package/src/theme/components/empty.ts +3 -2
  107. package/src/theme/components/list.ts +4 -4
  108. package/src/theme/components/pinInput.ts +2 -2
  109. package/src/theme/components/progress.ts +5 -5
  110. package/src/theme/components/toast.ts +3 -3
  111. package/src/theme/getTheme.ts +129 -0
  112. package/src/theme/global/colors/swag.ts +54 -0
  113. package/src/theme/global/colors/types.ts +45 -0
  114. package/src/theme/global/colors/work.ts +14 -0
  115. package/src/theme/global/index.ts +6 -2
  116. package/src/theme/index.ts +16 -143
  117. package/src/utils/scale.ts +4 -1
  118. package/types/components/Button/Button.d.ts +1 -0
  119. package/types/components/Button/UtilityButton/{styled.d.ts → StyledUtilityButton.d.ts} +0 -0
  120. package/types/components/Drawer/DragableDrawer/__tests__/helpers.spec.d.ts +1 -0
  121. package/types/components/Drawer/DragableDrawer/__tests__/index.spec.d.ts +1 -0
  122. package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
  123. package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
  124. package/types/components/Drawer/StyledDrawer.d.ts +34 -4
  125. package/types/components/Drawer/index.d.ts +4 -2
  126. package/types/components/Empty/index.d.ts +1 -1
  127. package/types/components/Icon/utils.d.ts +1 -1
  128. package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
  129. package/types/index.d.ts +2 -2
  130. package/types/theme/ThemeProvider.d.ts +12 -0
  131. package/types/theme/ThemeSwitcher.d.ts +7 -0
  132. package/types/theme/components/button.d.ts +1 -1
  133. package/types/theme/components/drawer.d.ts +9 -0
  134. package/types/theme/components/empty.d.ts +3 -2
  135. package/types/theme/components/progress.d.ts +1 -2
  136. package/types/theme/getTheme.d.ts +74 -0
  137. package/types/theme/global/colors/swag.d.ts +3 -0
  138. package/types/theme/global/{colors.d.ts → colors/types.d.ts} +4 -3
  139. package/types/theme/global/colors/work.d.ts +3 -0
  140. package/types/theme/global/index.d.ts +7 -2
  141. package/types/theme/index.d.ts +7 -84
  142. 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": "#fafbfb",
23
- "error": "#de350b",
22
+ "divider": "#e8e9ea",
23
+ "error": "#f46363",
24
24
  "info": "#b5c3fd",
25
- "success": "#01b39c",
26
- "warning": "#ffa234",
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": "#7622d7",
46
- "success": "#01b39c",
47
- "warning": "#ffa234",
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": "#ccced1",
73
+ "archived": "#737479",
74
74
  "danger": "#de350b",
75
75
  "info": "#4568fb",
76
76
  "success": "#017d6d",
77
77
  "text": "#ffffff",
78
- "warning": "#d98a2c",
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": "#292a2b",
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": "#292a2b",
121
+ "backdrop": "#001f23",
122
122
  "background": "#ffffff",
123
- "shadow": "#292a2b",
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": "#292a2b",
156
- "disabledBackground": "#ccced1",
157
- "disabledBorder": "#ccced1",
158
- "disabledText": "#ccced1",
155
+ "defaultText": "#001f23",
156
+ "disabledBackground": "#bfc1c5",
157
+ "disabledBorder": "#bfc1c5",
158
+ "disabledText": "#bfc1c5",
159
159
  "invertedText": "#ffffff",
160
- "pressedDanger": "#f2ae9d",
161
- "pressedPrimary": "#c8a7ef",
162
- "pressedSecondary": "#d1d9fe",
163
- "primary": "#7622d7",
160
+ "pressedDanger": "#f46363",
161
+ "pressedPrimary": "#808f91",
162
+ "pressedSecondary": "#b5c3fd",
163
+ "primary": "#001f23",
164
164
  "secondary": "#4568fb",
165
165
  "underlayColors": Object {
166
- "basic-transparent": "#c8a7ef",
167
- "filled-danger": "#f2ae9d",
168
- "filled-primary": "#c8a7ef",
169
- "filled-secondary": "#d1d9fe",
166
+ "basic-transparent": "#808f91",
167
+ "filled-danger": "#f46363",
168
+ "filled-primary": "#808f91",
169
+ "filled-secondary": "#b5c3fd",
170
170
  "outlined-danger": "#fcebe7",
171
- "outlined-primary": "#f1e9fb",
171
+ "outlined-primary": "#e6e9e9",
172
172
  "outlined-secondary": "#ecf0ff",
173
173
  "text-danger": "#fcebe7",
174
- "text-primary": "#f1e9fb",
174
+ "text-primary": "#e6e9e9",
175
175
  "text-secondary": "#ecf0ff",
176
176
  },
177
- "utilityBackground": "#fafbfb",
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": 8,
200
- "utilityIconPadding": 12,
200
+ "iconPadding": 12,
201
201
  "utilityPadding": 8,
202
202
  },
203
203
  },
204
204
  "calendar": Object {
205
205
  "colors": Object {
206
- "background": "#fafbfb",
207
- "border": "#292a2b",
206
+ "background": "#f6f6f7",
207
+ "border": "#001f23",
208
208
  "inverted": "#ffffff",
209
- "primary": "#7622d7",
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": "#a26fb0",
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": "#7622d7",
252
- "disabled": "#727478",
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": "#dadbde",
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": "#292a2b",
292
+ "backdrop": "#001f23",
293
293
  "background": "#ffffff",
294
- "shadow": "#292a2b",
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": "#dadbde",
320
+ "illustrationBackground": "#ccced1",
312
321
  "invertedText": "#ffffff",
313
- "subduedText": "#727478",
314
- "text": "#292a2b",
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
- "large": 24,
332
- "medium": 16,
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": "#292a2b",
340
- "buttonBackground": "#292a2b",
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": "#8b8d92",
398
+ "disabledText": "#808f91",
389
399
  "info": "#4568fb",
390
400
  "invertedText": "#ffffff",
391
- "primary": "#7622d7",
392
- "success": "#01b39c",
393
- "text": "#292a2b",
394
- "warning": "#ffa234",
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": "#f1e9fb",
407
- "highlightedListItemContainerBackground": "#f1e9fb",
416
+ "checkedListItemContainerBackground": "#f3e6f6",
417
+ "highlightedListItemContainerBackground": "#f3e6f6",
408
418
  "leadingStatus": Object {
409
- "archived": "#ccced1",
410
- "danger": "#de350b",
411
- "info": "#d1d9fe",
412
- "success": "#017d6d",
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": "#292a2b",
459
+ "default": "#001f23",
450
460
  "disabled": "#bfc1c5",
451
461
  "error": "#de350b",
452
- "mask": "#727478",
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": "#dadbde",
488
+ "background": "#e8e9ea",
479
489
  "danger": "#de350b",
480
490
  "info": "#4568fb",
481
491
  "innerBackground": "#ffffff",
482
- "primary": "#7622d7",
483
- "success": "#01b39c",
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
- "radius": 48,
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": "#7622d7",
501
- "checkedWrapper": "#f1e9fb",
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": "#fafbfb",
524
- "toolbarBorderColor": "#dadbde",
525
- "toolbarButtonSelectedBackground": "#dadbde",
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": "#dadbde",
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": "#7622d7",
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": "#7622d7",
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": "#7622d7",
589
- "inactive": "#727478",
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": "#7622d7",
619
- "activeBackground": "#f1e9fb",
620
- "headerBottom": "#dadbde",
621
- "inactive": "#292a2b",
622
- "text": "#292a2b",
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": "#f1f2f3",
653
+ "archivedBackground": "#f6f6f7",
645
654
  "danger": "#de350b",
646
655
  "dangerBackground": "#fcebe7",
647
- "default": "#292a2b",
656
+ "default": "#001f23",
648
657
  "defaultBackground": undefined,
649
658
  "info": "#4568fb",
650
659
  "infoBackground": "#ecf0ff",
651
- "primary": "#7622d7",
652
- "primaryBackground": "#f1e9fb",
660
+ "primary": "#8505a2",
661
+ "primaryBackground": "#f3e6f6",
653
662
  "success": "#017d6d",
654
663
  "successBackground": "#f0fef4",
655
- "warning": "#d98a2c",
656
- "warningBackground": "#fff6eb",
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": "#ccced1",
691
+ "disabled": "#bfc1c5",
683
692
  "error": "#de350b",
684
693
  "filled": "#de350b",
685
694
  "focused": "#de350b",
686
- "readonly": "#8b8d92",
695
+ "readonly": "#808f91",
687
696
  },
688
697
  "borders": Object {
689
- "default": "#292a2b",
690
- "disabled": "#ccced1",
698
+ "default": "#001f23",
699
+ "disabled": "#bfc1c5",
691
700
  "error": "#de350b",
692
- "filled": "#292a2b",
693
- "focused": "#292a2b",
694
- "readonly": "#8b8d92",
701
+ "filled": "#001f23",
702
+ "focused": "#001f23",
703
+ "readonly": "#808f91",
695
704
  },
696
- "disabledLabel": "#ccced1",
705
+ "disabledLabel": "#bfc1c5",
697
706
  "error": "#de350b",
698
- "label": "#292a2b",
707
+ "label": "#001f23",
699
708
  "labelBackground": "#ffffff",
700
709
  "labels": Object {
701
- "default": "#292a2b",
702
- "disabled": "#ccced1",
703
- "error": "#292a2b",
704
- "filled": "#292a2b",
705
- "focused": "#292a2b",
706
- "readonly": "#8b8d92",
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": "#292a2b",
710
- "disabled": "#ccced1",
711
- "error": "#292a2b",
712
- "filled": "#292a2b",
713
- "focused": "#292a2b",
714
- "readonly": "#8b8d92",
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": "#292a2b",
718
- "disabled": "#ccced1",
726
+ "default": "#001f23",
727
+ "disabled": "#bfc1c5",
719
728
  "error": "#de350b",
720
- "filled": "#292a2b",
721
- "focused": "#292a2b",
722
- "readonly": "#8b8d92",
729
+ "filled": "#001f23",
730
+ "focused": "#001f23",
731
+ "readonly": "#808f91",
723
732
  },
724
- "placeholderIfFocued": "#8b8d92",
725
- "placeholderIfNotFocused": "#292a2b",
726
- "readonlyLabel": "#8b8d92",
727
- "text": "#292a2b",
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": "#fafbfb",
764
- "error": "#de350b",
772
+ "divider": "#e8e9ea",
773
+ "error": "#f46363",
765
774
  "info": "#b5c3fd",
766
- "success": "#01b39c",
767
- "warning": "#ffa234",
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": "#dadbde",
787
- "danger": "#ffa234",
788
- "disabled": "#8b8d92",
795
+ "border": "#e8e9ea",
796
+ "danger": "#ffbe71",
797
+ "disabled": "#808f91",
789
798
  "error": "#de350b",
790
799
  "info": "#4568fb",
791
- "primary": "#7622d7",
792
- "success": "#01b39c",
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": "#292a2b",
810
+ "body": "#001f23",
802
811
  "danger": "#de350b",
803
812
  "info": "#4568fb",
804
813
  "inverted": "#ffffff",
805
- "primary": "#7622d7",
806
- "subdued": "#8b8d92",
807
- "success": "#01b39c",
808
- "warning": "#ffa234",
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": "#f1f2f3",
846
+ "archivedBackground": "#f6f6f7",
838
847
  "archivedDark": "#737479",
839
848
  "archivedLight": "#bfc1c5",
840
- "backgroundDark": "#292a2b",
841
- "backgroundLight": "#fafbfb",
849
+ "backgroundDark": "#001f23",
850
+ "backgroundLight": "#f6f6f7",
842
851
  "black": "#000000",
843
852
  "danger": "#de350b",
844
853
  "dangerBackground": "#fcebe7",
845
- "dangerLight": "#f2ae9d",
854
+ "dangerLight": "#f46363",
846
855
  "dangerMediumLight": "#e3602a",
847
- "disabledLightText": "#ccced1",
848
- "disabledText": "#8b8d92",
849
- "inactiveBackground": "#727478",
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": "#d1d9fe",
864
+ "infoLight": "#b5c3fd",
853
865
  "infoMediumLight": "#b5c3fd",
854
866
  "invertedText": "#ffffff",
855
- "outline": "#dadbde",
867
+ "outline": "#e8e9ea",
856
868
  "platformBackground": "#ffffff",
857
- "primary": "#7622d7",
858
- "primaryBackground": "#f1e9fb",
869
+ "primary": "#8505a2",
870
+ "primaryBackground": "#f3e6f6",
859
871
  "primaryBackgroundDark": "#4d6265",
860
- "primaryDark": "#a26fb0",
861
- "primaryLight": "#c8a7ef",
872
+ "primaryDark": "#795e90",
873
+ "primaryLight": "#c282d1",
862
874
  "secondary": "#4568fb",
863
875
  "secondaryBackground": "#ecf0ff",
864
- "secondaryLight": "#d1d9fe",
865
- "shadow": "#dadbde",
866
- "subduedText": "#727478",
867
- "success": "#01b39c",
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": "#292a2b",
872
- "warning": "#ffa234",
873
- "warningBackground": "#fff6eb",
874
- "warningDark": "#d98a2c",
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.danger,
9
- info: theme.colors.infoMediumLight,
10
- divider: theme.colors.backgroundLight,
8
+ error: theme.colors.dangerLight,
9
+ info: theme.colors.infoLight,
10
+ divider: theme.colors.outline,
11
11
  };
12
12
 
13
13
  const sizes = {