@hero-design/rn 7.22.1 → 7.22.3

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 (128) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +309 -284
  3. package/lib/index.js +309 -284
  4. package/package.json +4 -4
  5. package/src/components/Accordion/AccordionItem.tsx +1 -1
  6. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
  7. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  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/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  12. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  13. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +24 -24
  14. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +6 -6
  15. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +3 -3
  16. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  17. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  18. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  19. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +2 -2
  20. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  21. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -18
  23. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +5 -19
  24. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  25. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  26. package/src/components/Icon/HeroIcon/index.tsx +2 -0
  27. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  28. package/src/components/Icon/index.tsx +1 -0
  29. package/src/components/List/StyledBasicListItem.tsx +1 -0
  30. package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -13
  31. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +163 -2
  32. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
  33. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -2
  34. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
  35. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  36. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  37. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
  38. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +3 -1
  39. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +4 -1
  40. package/src/components/RichTextEditor/RichTextEditor.tsx +1 -3
  41. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  42. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +10 -38
  43. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  44. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
  45. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +25 -9
  46. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +66 -108
  47. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
  48. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -8
  49. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +57 -99
  50. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  51. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  52. package/src/components/Spinner/StyledSpinner.tsx +8 -4
  53. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
  54. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
  55. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
  56. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
  57. package/src/components/Tabs/ScrollableTabs.tsx +2 -5
  58. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  59. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
  60. package/src/components/TextInput/StyledTextInput.tsx +11 -16
  61. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +3 -3
  62. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +28 -46
  63. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +67 -249
  64. package/src/components/TextInput/index.tsx +27 -27
  65. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -18
  66. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -19
  67. package/src/components/Toast/ToastProvider.tsx +2 -4
  68. package/src/components/Toast/__tests__/index.spec.tsx +138 -0
  69. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  70. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  71. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  72. package/src/components/Typography/Text/StyledText.tsx +1 -0
  73. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
  74. package/src/components/Typography/Text/index.tsx +1 -0
  75. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +93 -84
  76. package/src/theme/components/accordion.ts +1 -1
  77. package/src/theme/components/alert.ts +4 -4
  78. package/src/theme/components/avatar.ts +2 -2
  79. package/src/theme/components/badge.ts +6 -6
  80. package/src/theme/components/bottomNavigation.ts +2 -2
  81. package/src/theme/components/bottomSheet.ts +3 -3
  82. package/src/theme/components/button.ts +20 -20
  83. package/src/theme/components/calendar.ts +4 -4
  84. package/src/theme/components/card.ts +5 -5
  85. package/src/theme/components/checkbox.ts +1 -1
  86. package/src/theme/components/divider.ts +1 -1
  87. package/src/theme/components/drawer.ts +4 -4
  88. package/src/theme/components/empty.ts +3 -4
  89. package/src/theme/components/fab.ts +7 -7
  90. package/src/theme/components/icon.ts +4 -3
  91. package/src/theme/components/list.ts +8 -6
  92. package/src/theme/components/pinInput.ts +4 -4
  93. package/src/theme/components/progress.ts +3 -3
  94. package/src/theme/components/richTextEditor.ts +3 -3
  95. package/src/theme/components/sectionHeading.ts +1 -1
  96. package/src/theme/components/select.ts +1 -1
  97. package/src/theme/components/slider.ts +3 -3
  98. package/src/theme/components/spinner.ts +1 -4
  99. package/src/theme/components/switch.ts +7 -7
  100. package/src/theme/components/tabs.ts +5 -5
  101. package/src/theme/components/tag.ts +12 -12
  102. package/src/theme/components/textInput.ts +38 -38
  103. package/src/theme/components/toast.ts +6 -6
  104. package/src/theme/components/toolbar.ts +3 -2
  105. package/src/theme/components/typography.ts +4 -3
  106. package/src/theme/global/colors/global.ts +32 -0
  107. package/src/theme/global/colors/legacySystemPalette.ts +53 -0
  108. package/src/theme/global/colors/swag.ts +21 -34
  109. package/src/theme/global/colors/types.ts +46 -26
  110. package/src/theme/global/colors/work.ts +10 -9
  111. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  112. package/types/components/Icon/index.d.ts +1 -1
  113. package/types/components/TextInput/StyledTextInput.d.ts +3 -9
  114. package/types/components/TextInput/index.d.ts +4 -4
  115. package/types/components/Toast/__tests__/index.spec.d.ts +1 -0
  116. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  117. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  118. package/types/components/Typography/Text/index.d.ts +1 -1
  119. package/types/theme/components/empty.d.ts +0 -1
  120. package/types/theme/components/icon.d.ts +1 -0
  121. package/types/theme/components/list.d.ts +1 -0
  122. package/types/theme/components/spinner.d.ts +1 -4
  123. package/types/theme/components/toolbar.d.ts +1 -0
  124. package/types/theme/components/typography.d.ts +1 -0
  125. package/types/theme/global/colors/global.d.ts +3 -0
  126. package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
  127. package/types/theme/global/colors/types.d.ts +41 -20
  128. package/types/theme/global/index.d.ts +28 -19
@@ -44,9 +44,9 @@ Object {
44
44
  "default": 1,
45
45
  },
46
46
  "colors": Object {
47
- "danger": "#de350b",
48
- "info": "#4568fb",
49
- "primary": "#8505a2",
47
+ "danger": "#f46363",
48
+ "info": "#b5c3fd",
49
+ "primary": "#001f23",
50
50
  "success": "#5ace7d",
51
51
  "warning": "#ffbe71",
52
52
  },
@@ -158,26 +158,26 @@ Object {
158
158
  },
159
159
  "colors": Object {
160
160
  "danger": "#de350b",
161
- "defaultText": "#001f23",
161
+ "defaultText": "#ffffff",
162
162
  "disabledBackground": "#bfc1c5",
163
163
  "disabledBorder": "#bfc1c5",
164
164
  "disabledText": "#bfc1c5",
165
165
  "invertedText": "#ffffff",
166
- "pressedDanger": "#f46363",
167
- "pressedPrimary": "#808f91",
168
- "pressedSecondary": "#b5c3fd",
166
+ "pressedDanger": "#de350b",
167
+ "pressedPrimary": "#4d6265",
168
+ "pressedSecondary": "#401960",
169
169
  "primary": "#001f23",
170
- "secondary": "#4568fb",
170
+ "secondary": "#401960",
171
171
  "underlayColors": Object {
172
- "basic-transparent": "#808f91",
172
+ "basic-transparent": "#4d6265",
173
173
  "filled-danger": "#f46363",
174
- "filled-primary": "#808f91",
175
- "filled-secondary": "#b5c3fd",
174
+ "filled-primary": "#4d6265",
175
+ "filled-secondary": "#808f91",
176
176
  "outlined-danger": "#fcebe7",
177
- "outlined-primary": "#e6e9e9",
177
+ "outlined-primary": "#f6f6f7",
178
178
  "outlined-secondary": "#ecf0ff",
179
179
  "text-danger": "#fcebe7",
180
- "text-primary": "#e6e9e9",
180
+ "text-primary": "#f6f6f7",
181
181
  "text-secondary": "#ecf0ff",
182
182
  },
183
183
  "utilityBackground": "#f6f6f7",
@@ -209,10 +209,10 @@ Object {
209
209
  },
210
210
  "calendar": Object {
211
211
  "colors": Object {
212
- "background": "#f6f6f7",
212
+ "background": "#ffffff",
213
213
  "border": "#001f23",
214
214
  "inverted": "#ffffff",
215
- "primary": "#8505a2",
215
+ "primary": "#001f23",
216
216
  },
217
217
  "radii": Object {
218
218
  "default": 999,
@@ -233,11 +233,11 @@ Object {
233
233
  },
234
234
  "card": Object {
235
235
  "colors": Object {
236
- "archived": "#bfc1c5",
237
- "danger": "#e3602a",
238
- "dataCardIndicator": "#8505a2",
236
+ "archived": "#ccced1",
237
+ "danger": "#f46363",
238
+ "dataCardIndicator": "#001f23",
239
239
  "info": "#b5c3fd",
240
- "primary": "#c38cee",
240
+ "primary": "#001f23",
241
241
  "success": "#5ace7d",
242
242
  "warning": "#ffbe71",
243
243
  },
@@ -255,7 +255,7 @@ Object {
255
255
  },
256
256
  "colors": Object {
257
257
  "default": "#001f23",
258
- "disabledBorder": "#808f91",
258
+ "disabledBorder": "#4d6265",
259
259
  },
260
260
  "radii": Object {
261
261
  "icon": 4,
@@ -297,7 +297,7 @@ Object {
297
297
  },
298
298
  "drawer": Object {
299
299
  "colors": Object {
300
- "backdrop": "#001f23",
300
+ "backdrop": "#ffffff",
301
301
  "background": "#ffffff",
302
302
  "handler": "#001f23",
303
303
  "shadow": "#001f23",
@@ -325,7 +325,6 @@ Object {
325
325
  },
326
326
  "empty": Object {
327
327
  "colors": Object {
328
- "illustrationBackground": "#ccced1",
329
328
  "invertedText": "#ffffff",
330
329
  "subduedText": "#4d6265",
331
330
  "text": "#001f23",
@@ -349,7 +348,7 @@ Object {
349
348
  },
350
349
  "fab": Object {
351
350
  "colors": Object {
352
- "actionItemBackground": "#4d6265",
351
+ "actionItemBackground": "#001f23",
353
352
  "actionItemText": "#ffffff",
354
353
  "backdropBackground": "#001f23",
355
354
  "buttonBackground": "#001f23",
@@ -400,10 +399,11 @@ Object {
400
399
  "icon": Object {
401
400
  "colors": Object {
402
401
  "danger": "#de350b",
403
- "disabledText": "#808f91",
404
- "info": "#4568fb",
402
+ "disabledText": "#4d6265",
403
+ "info": "#b5c3fd",
405
404
  "invertedText": "#ffffff",
406
- "primary": "#8505a2",
405
+ "primary": "#001f23",
406
+ "secondary": "#401960",
407
407
  "success": "#5ace7d",
408
408
  "text": "#001f23",
409
409
  "warning": "#ffbe71",
@@ -424,11 +424,11 @@ Object {
424
424
  },
425
425
  "list": Object {
426
426
  "colors": Object {
427
- "checkedListItemContainerBackground": "#f3e6f6",
428
- "highlightedListItemContainerBackground": "#f3e6f6",
427
+ "checkedListItemContainerBackground": "#d9d1df",
428
+ "highlightedListItemContainerBackground": "#ece8ef",
429
429
  "leadingStatus": Object {
430
- "archived": "#bfc1c5",
431
- "danger": "#e3602a",
430
+ "archived": "#ccced1",
431
+ "danger": "#f46363",
432
432
  "info": "#b5c3fd",
433
433
  "success": "#5ace7d",
434
434
  "warning": "#ffbe71",
@@ -441,6 +441,7 @@ Object {
441
441
  "enabled": 1,
442
442
  },
443
443
  "radii": Object {
444
+ "basicItem": 4,
444
445
  "card": 8,
445
446
  "cardShadow": 4,
446
447
  "leadingStatus": 999,
@@ -469,8 +470,8 @@ Object {
469
470
  },
470
471
  "colors": Object {
471
472
  "default": "#001f23",
472
- "disabled": "#bfc1c5",
473
- "error": "#de350b",
473
+ "disabled": "#4d6265",
474
+ "error": "#f46363",
474
475
  "mask": "#4d6265",
475
476
  },
476
477
  "fontSizes": Object {
@@ -499,11 +500,11 @@ Object {
499
500
  "colors": Object {
500
501
  "background": "#e8e9ea",
501
502
  "danger": "#de350b",
502
- "info": "#4568fb",
503
+ "info": "#b5c3fd",
503
504
  "innerBackground": "#ffffff",
504
- "primary": "#8505a2",
505
+ "primary": "#001f23",
505
506
  "success": "#5ace7d",
506
- "warning": "#ffa234",
507
+ "warning": "#ffbe71",
507
508
  },
508
509
  "radii": Object {
509
510
  "default": 999,
@@ -536,7 +537,7 @@ Object {
536
537
  "colors": Object {
537
538
  "toolbarBackgroundColor": "#f6f6f7",
538
539
  "toolbarBorderColor": "#e8e9ea",
539
- "toolbarButtonSelectedBackground": "#e8e9ea",
540
+ "toolbarButtonSelectedBackground": "#ece8ef",
540
541
  },
541
542
  "fontSizes": Object {
542
543
  "editor": 14,
@@ -566,7 +567,7 @@ Object {
566
567
  },
567
568
  "select": Object {
568
569
  "colors": Object {
569
- "footerText": "#8505a2",
570
+ "footerText": "#401960",
570
571
  },
571
572
  "radii": Object {
572
573
  "option": 4,
@@ -585,15 +586,12 @@ Object {
585
586
  "colors": Object {
586
587
  "maximumTrackTint": "#ece8ef",
587
588
  "minimumTrackTint": "#401960",
588
- "thumbTint": "#e6e9e9",
589
+ "thumbTint": "#f6f6f7",
589
590
  },
590
591
  },
591
592
  "spinner": Object {
592
593
  "colors": Object {
593
- "dot1": "#795e90",
594
- "dot2": "#a08cb0",
595
- "dot3": "#d9d1df",
596
- "dot4": "#ece8ef",
594
+ "dot": "#001f23",
597
595
  },
598
596
  "radii": Object {
599
597
  "default": 999,
@@ -616,9 +614,9 @@ Object {
616
614
  "switch": Object {
617
615
  "colors": Object {
618
616
  "backgroundColors": Object {
619
- "checked": "#8505a2",
620
- "disabled-checked": "#c282d1",
621
- "disabled-unchecked": "#ccced1",
617
+ "checked": "#401960",
618
+ "disabled-checked": "#a08cb0",
619
+ "disabled-unchecked": "#bfc1c5",
622
620
  "unchecked": "#808f91",
623
621
  },
624
622
  "selector": Object {
@@ -665,7 +663,7 @@ Object {
665
663
  },
666
664
  "colors": Object {
667
665
  "active": "#001f23",
668
- "activeBackground": "#ece8ef",
666
+ "activeBackground": "#e6e9e9",
669
667
  "headerBottom": "#e8e9ea",
670
668
  "inactive": "#001f23",
671
669
  "text": "#001f23",
@@ -691,7 +689,7 @@ Object {
691
689
  },
692
690
  "colors": Object {
693
691
  "archived": "#737479",
694
- "archivedBackground": "#f6f6f7",
692
+ "archivedBackground": "#f1f2f3",
695
693
  "danger": "#de350b",
696
694
  "dangerBackground": "#fcebe7",
697
695
  "default": "#001f23",
@@ -728,23 +726,23 @@ Object {
728
726
  },
729
727
  "colors": Object {
730
728
  "asterisks": Object {
731
- "default": "#de350b",
729
+ "default": "#f46363",
732
730
  "disabled": "#bfc1c5",
733
- "error": "#de350b",
734
- "filled": "#de350b",
735
- "focused": "#de350b",
731
+ "error": "#f46363",
732
+ "filled": "#f46363",
733
+ "focused": "#f46363",
736
734
  "readonly": "#808f91",
737
735
  },
738
736
  "borders": Object {
739
737
  "default": "#001f23",
740
738
  "disabled": "#bfc1c5",
741
- "error": "#de350b",
739
+ "error": "#f46363",
742
740
  "filled": "#001f23",
743
741
  "focused": "#001f23",
744
742
  "readonly": "#808f91",
745
743
  },
746
744
  "disabledLabel": "#bfc1c5",
747
- "error": "#de350b",
745
+ "error": "#f46363",
748
746
  "label": "#001f23",
749
747
  "labelBackground": "#ffffff",
750
748
  "labels": Object {
@@ -753,7 +751,7 @@ Object {
753
751
  "error": "#001f23",
754
752
  "filled": "#001f23",
755
753
  "focused": "#001f23",
756
- "readonly": "#808f91",
754
+ "readonly": "#bfc1c5",
757
755
  },
758
756
  "labelsInsideTextInput": Object {
759
757
  "default": "#001f23",
@@ -761,15 +759,15 @@ Object {
761
759
  "error": "#001f23",
762
760
  "filled": "#001f23",
763
761
  "focused": "#001f23",
764
- "readonly": "#808f91",
762
+ "readonly": "#bfc1c5",
765
763
  },
766
764
  "maxLengthLabels": Object {
767
765
  "default": "#001f23",
768
766
  "disabled": "#bfc1c5",
769
- "error": "#de350b",
767
+ "error": "#f46363",
770
768
  "filled": "#001f23",
771
769
  "focused": "#001f23",
772
- "readonly": "#808f91",
770
+ "readonly": "#bfc1c5",
773
771
  },
774
772
  "placeholderIfFocued": "#808f91",
775
773
  "placeholderIfNotFocused": "#001f23",
@@ -853,8 +851,9 @@ Object {
853
851
  "danger": "#ffbe71",
854
852
  "disabled": "#808f91",
855
853
  "error": "#de350b",
856
- "info": "#4568fb",
857
- "primary": "#8505a2",
854
+ "info": "#b5c3fd",
855
+ "primary": "#001f23",
856
+ "secondary": "#401960",
858
857
  "success": "#5ace7d",
859
858
  },
860
859
  "space": Object {
@@ -866,10 +865,11 @@ Object {
866
865
  "colors": Object {
867
866
  "body": "#001f23",
868
867
  "danger": "#de350b",
869
- "info": "#4568fb",
868
+ "info": "#b5c3fd",
870
869
  "inverted": "#ffffff",
871
- "primary": "#8505a2",
872
- "subdued": "#808f91",
870
+ "primary": "#001f23",
871
+ "secondary": "#401960",
872
+ "subdued": "#4d6265",
873
873
  "success": "#5ace7d",
874
874
  "warning": "#ffbe71",
875
875
  },
@@ -901,29 +901,11 @@ Object {
901
901
  "medium": 2,
902
902
  },
903
903
  "colors": Object {
904
- "__alpha__globalLabel1": "#de350b",
905
- "__alpha__globalLabel2": "#ffa234",
906
- "__alpha__globalLabel3": "#017d6d",
907
- "__alpha__globalLabel4": "#4568fb",
908
- "__alpha__globalLabel5": "#737479",
909
- "__alpha__globalLabel6": "#fcebe7",
910
- "__alpha__globalLabel7": "#fff6eb",
911
- "__alpha__globalLabel8": "#f0fef4",
912
- "__alpha__globalLabel9": "#ecf0ff",
913
- "__alpha__globalNeutral3": "#f6f6f7",
914
- "__alpha__globalPrimary": "#001f23",
915
- "__alpha__globalSecondary1": "#4d6265",
916
- "__alpha__globalSecondary4": "#e6e9e9",
917
- "__alpha__primary1": "#401960",
918
- "__alpha__primary2": "#c38cee",
919
- "__alpha__secondary1": "#795e90",
920
- "__alpha__secondary2": "#a08cb0",
921
- "__alpha__secondary3": "#d9d1df",
922
- "__alpha__secondary4": "#ece8ef",
923
904
  "archived": "#ccced1",
924
905
  "archivedBackground": "#f6f6f7",
925
906
  "archivedDark": "#737479",
926
907
  "archivedLight": "#bfc1c5",
908
+ "archivedSurface": "#f1f2f3",
927
909
  "backgroundDark": "#001f23",
928
910
  "backgroundLight": "#f6f6f7",
929
911
  "black": "#000000",
@@ -931,25 +913,50 @@ Object {
931
913
  "dangerBackground": "#fcebe7",
932
914
  "dangerLight": "#f46363",
933
915
  "dangerMediumLight": "#e3602a",
916
+ "defaultGlobalSurface": "#ffffff",
934
917
  "disabledLightText": "#bfc1c5",
918
+ "disabledOnDefaultGlobalSurface": "#bfc1c5",
919
+ "disabledSecondary": "#a08cb0",
935
920
  "disabledText": "#808f91",
921
+ "error": "#f46363",
922
+ "errorSurface": "#fcebe7",
936
923
  "globalPrimary": "#001f23",
937
924
  "globalPrimaryBackground": "#e6e9e9",
938
925
  "globalPrimaryLight": "#808f91",
926
+ "globalPrimaryOutline": "#001f23",
927
+ "globalSecondary": "#4d6265",
928
+ "globalSecondaryOutline": "#e8e9ea",
929
+ "highlightedSecondarySurface": "#ecf0ff",
930
+ "highlightedSurface": "#d9d1df",
939
931
  "inactiveBackground": "#808f91",
940
- "info": "#4568fb",
932
+ "info": "#b5c3fd",
941
933
  "infoBackground": "#ecf0ff",
942
934
  "infoLight": "#b5c3fd",
943
935
  "infoMediumLight": "#b5c3fd",
936
+ "infoSurface": "#ecf0ff",
944
937
  "invertedText": "#ffffff",
938
+ "lightHighlightedSurface": "#ece8ef",
939
+ "mutedGlobalPrimary": "#4d6265",
940
+ "mutedPrimary": "#e6e9e9",
941
+ "mutedSecondary": "#808f91",
942
+ "neutralGlobalSurface": "#f6f6f7",
943
+ "onArchivedSurface": "#737479",
944
+ "onDefaultGlobalSurface": "#001f23",
945
+ "onErrorSurface": "#de350b",
946
+ "onGlobalPrimary": "#ffffff",
947
+ "onInfoSurface": "#4568fb",
948
+ "onPrimary": "#ffffff",
949
+ "onSecondary": "#ffffff",
950
+ "onSuccessSurface": "#017d6d",
951
+ "onWarningSurface": "#ffa234",
945
952
  "outline": "#e8e9ea",
946
953
  "platformBackground": "#ffffff",
947
- "primary": "#8505a2",
954
+ "primary": "#001f23",
948
955
  "primaryBackground": "#f3e6f6",
949
956
  "primaryBackgroundDark": "#4d6265",
950
957
  "primaryDark": "#795e90",
951
958
  "primaryLight": "#c282d1",
952
- "secondary": "#4568fb",
959
+ "secondary": "#401960",
953
960
  "secondaryBackground": "#ecf0ff",
954
961
  "secondaryLight": "#b5c3fd",
955
962
  "shadow": "#ccced1",
@@ -958,11 +965,13 @@ Object {
958
965
  "successBackground": "#f0fef4",
959
966
  "successDark": "#017d6d",
960
967
  "successLight": "#5ace7d",
968
+ "successSurface": "#f0fef4",
961
969
  "text": "#001f23",
962
970
  "warning": "#ffbe71",
963
971
  "warningBackground": "#fff6eb",
964
972
  "warningDark": "#ffa234",
965
973
  "warningLight": "#ffbe71",
974
+ "warningSurface": "#fff6eb",
966
975
  },
967
976
  "fontSizes": Object {
968
977
  "large": 16,
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getAccordionTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- background: theme.colors.platformBackground,
5
+ background: theme.colors.defaultGlobalSurface,
6
6
  };
7
7
 
8
8
  const space = {
@@ -4,10 +4,10 @@ const getAlertTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  success: theme.colors.success,
6
6
  warning: theme.colors.warning,
7
- error: theme.colors.dangerLight,
8
- info: theme.colors.infoLight,
9
- notification: theme.colors.platformBackground,
10
- divider: theme.colors.outline,
7
+ error: theme.colors.error,
8
+ info: theme.colors.info,
9
+ notification: theme.colors.defaultGlobalSurface,
10
+ divider: theme.colors.globalSecondaryOutline,
11
11
  };
12
12
 
13
13
  const sizes = {
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getAvatarTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- primary: theme.colors.primary,
5
+ primary: theme.colors.globalPrimary,
6
6
  info: theme.colors.info,
7
- danger: theme.colors.danger,
7
+ danger: theme.colors.error,
8
8
  success: theme.colors.success,
9
9
  warning: theme.colors.warning,
10
10
  };
@@ -2,12 +2,12 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBadgeTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- danger: theme.colors.danger,
6
- info: theme.colors.info,
7
- success: theme.colors.successDark,
8
- warning: theme.colors.warningDark,
9
- archived: theme.colors.archivedDark,
10
- text: theme.colors.invertedText,
5
+ danger: theme.colors.onErrorSurface,
6
+ info: theme.colors.onInfoSurface,
7
+ success: theme.colors.onSuccessSurface,
8
+ warning: theme.colors.onWarningSurface,
9
+ archived: theme.colors.onArchivedSurface,
10
+ text: theme.colors.onGlobalPrimary,
11
11
  };
12
12
 
13
13
  const fonts = {
@@ -2,8 +2,8 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBottomNavigationTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.backgroundDark,
6
- background: theme.colors.platformBackground,
5
+ shadow: theme.colors.globalPrimary,
6
+ background: theme.colors.defaultGlobalSurface,
7
7
  };
8
8
 
9
9
  const sizes = {
@@ -2,9 +2,9 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getBottomSheetTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.backgroundDark,
6
- background: theme.colors.platformBackground,
7
- backdrop: theme.colors.backgroundDark,
5
+ shadow: theme.colors.globalPrimary,
6
+ background: theme.colors.defaultGlobalSurface,
7
+ backdrop: theme.colors.globalPrimary,
8
8
  };
9
9
 
10
10
  const sizes = {
@@ -37,29 +37,29 @@ const getButtonTheme = (theme: GlobalTheme) => {
37
37
 
38
38
  const colors = {
39
39
  primary: theme.colors.globalPrimary,
40
- pressedPrimary: theme.colors.globalPrimaryLight,
40
+ pressedPrimary: theme.colors.globalSecondary,
41
41
  secondary: theme.colors.secondary,
42
- pressedSecondary: theme.colors.secondaryLight,
43
- danger: theme.colors.danger,
44
- pressedDanger: theme.colors.dangerLight,
45
- defaultText: theme.colors.text,
46
- disabledText: theme.colors.disabledLightText,
47
- disabledBorder: theme.colors.disabledLightText,
48
- disabledBackground: theme.colors.disabledLightText,
49
- invertedText: theme.colors.invertedText,
50
- utilityBackground: theme.colors.backgroundLight,
42
+ pressedSecondary: theme.colors.secondary,
43
+ danger: theme.colors.onErrorSurface, // FIXME: This doesn't make sense
44
+ pressedDanger: theme.colors.onErrorSurface, // FIXME: This doesn't make sense
45
+ defaultText: theme.colors.onGlobalPrimary,
46
+ disabledText: theme.colors.disabledOnDefaultGlobalSurface,
47
+ disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
48
+ disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
49
+ invertedText: theme.colors.onGlobalPrimary,
50
+ utilityBackground: theme.colors.neutralGlobalSurface,
51
51
  underlayColors: {
52
- 'filled-primary': theme.colors.globalPrimaryLight,
53
- 'filled-secondary': theme.colors.secondaryLight,
54
- 'filled-danger': theme.colors.dangerLight,
55
- 'outlined-primary': theme.colors.globalPrimaryBackground,
56
- 'outlined-secondary': theme.colors.secondaryBackground,
52
+ 'filled-primary': theme.colors.mutedGlobalPrimary,
53
+ 'filled-secondary': theme.colors.mutedSecondary,
54
+ 'filled-danger': theme.colors.error,
55
+ 'outlined-primary': theme.colors.neutralGlobalSurface,
56
+ 'outlined-secondary': theme.colors.highlightedSecondarySurface,
57
57
 
58
- 'outlined-danger': theme.colors.dangerBackground,
59
- 'text-primary': theme.colors.globalPrimaryBackground,
60
- 'text-secondary': theme.colors.secondaryBackground,
61
- 'text-danger': theme.colors.dangerBackground,
62
- 'basic-transparent': theme.colors.globalPrimaryLight,
58
+ 'outlined-danger': theme.colors.errorSurface,
59
+ 'text-primary': theme.colors.neutralGlobalSurface,
60
+ 'text-secondary': theme.colors.highlightedSecondarySurface,
61
+ 'text-danger': theme.colors.errorSurface,
62
+ 'basic-transparent': theme.colors.mutedGlobalPrimary,
63
63
  },
64
64
  };
65
65
 
@@ -2,10 +2,10 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getCalendarTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- background: theme.colors.backgroundLight,
6
- border: theme.colors.text,
7
- primary: theme.colors.primary,
8
- inverted: theme.colors.invertedText,
5
+ background: theme.colors.defaultGlobalSurface,
6
+ border: theme.colors.globalPrimaryOutline,
7
+ primary: theme.colors.globalPrimary,
8
+ inverted: theme.colors.onGlobalPrimary,
9
9
  };
10
10
 
11
11
  const cellSize = theme.sizes.xxxlarge;
@@ -2,13 +2,13 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getCardTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- dataCardIndicator: theme.colors.primary,
6
- primary: theme.colors.__alpha__primary2,
7
- info: theme.colors.infoLight,
5
+ dataCardIndicator: theme.colors.globalPrimary,
6
+ primary: theme.colors.primary,
7
+ info: theme.colors.info,
8
8
  success: theme.colors.success,
9
9
  warning: theme.colors.warning,
10
- danger: theme.colors.dangerMediumLight,
11
- archived: theme.colors.archivedLight,
10
+ danger: theme.colors.error,
11
+ archived: theme.colors.archived,
12
12
  };
13
13
 
14
14
  const sizes = {
@@ -3,7 +3,7 @@ import type { GlobalTheme } from '../global';
3
3
  const getCheckboxTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  default: theme.colors.globalPrimary,
6
- disabledBorder: theme.colors.globalPrimaryLight,
6
+ disabledBorder: theme.colors.mutedGlobalPrimary,
7
7
  };
8
8
 
9
9
  const space = {
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getDividerTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- default: theme.colors.outline,
5
+ default: theme.colors.globalSecondaryOutline,
6
6
  };
7
7
 
8
8
  const space = {
@@ -2,10 +2,10 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getDrawerTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- shadow: theme.colors.backgroundDark,
6
- background: theme.colors.platformBackground,
7
- backdrop: theme.colors.backgroundDark,
8
- handler: theme.colors.backgroundDark,
5
+ shadow: theme.colors.globalPrimary,
6
+ background: theme.colors.defaultGlobalSurface,
7
+ backdrop: theme.colors.defaultGlobalSurface,
8
+ handler: theme.colors.globalPrimary,
9
9
  };
10
10
 
11
11
  const radii = {
@@ -12,10 +12,9 @@ const getEmptyTheme = (theme: GlobalTheme) => {
12
12
  };
13
13
 
14
14
  const colors = {
15
- text: theme.colors.text,
16
- invertedText: theme.colors.invertedText,
17
- subduedText: theme.colors.subduedText,
18
- illustrationBackground: theme.colors.shadow,
15
+ text: theme.colors.globalPrimary,
16
+ invertedText: theme.colors.onGlobalPrimary,
17
+ subduedText: theme.colors.globalSecondary,
19
18
  };
20
19
 
21
20
  const fontSizes = {