@hero-design/rn 7.22.2 → 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 (117) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +271 -242
  3. package/lib/index.js +271 -242
  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__/DatePickerIOS.spec.tsx.snap +1 -1
  23. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  24. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  25. package/src/components/Icon/HeroIcon/index.tsx +2 -0
  26. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  27. package/src/components/Icon/index.tsx +1 -0
  28. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
  29. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
  30. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  31. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
  32. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  33. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  34. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
  35. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +1 -1
  36. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -1
  37. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  38. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
  39. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +13 -9
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  43. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  44. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -8
  45. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  46. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  47. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  48. package/src/components/Spinner/StyledSpinner.tsx +8 -4
  49. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
  50. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
  51. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
  52. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
  53. package/src/components/Tabs/ScrollableTabs.tsx +2 -5
  54. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  55. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
  56. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +10 -10
  57. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  58. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  59. package/src/components/Toast/ToastProvider.tsx +2 -4
  60. package/src/components/Toast/__tests__/index.spec.tsx +138 -0
  61. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  62. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  63. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  64. package/src/components/Typography/Text/StyledText.tsx +1 -0
  65. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
  66. package/src/components/Typography/Text/index.tsx +1 -0
  67. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +92 -85
  68. package/src/theme/components/accordion.ts +1 -1
  69. package/src/theme/components/alert.ts +4 -4
  70. package/src/theme/components/avatar.ts +2 -2
  71. package/src/theme/components/badge.ts +6 -6
  72. package/src/theme/components/bottomNavigation.ts +2 -2
  73. package/src/theme/components/bottomSheet.ts +3 -3
  74. package/src/theme/components/button.ts +20 -20
  75. package/src/theme/components/calendar.ts +4 -4
  76. package/src/theme/components/card.ts +5 -5
  77. package/src/theme/components/checkbox.ts +1 -1
  78. package/src/theme/components/divider.ts +1 -1
  79. package/src/theme/components/drawer.ts +4 -4
  80. package/src/theme/components/empty.ts +3 -4
  81. package/src/theme/components/fab.ts +7 -7
  82. package/src/theme/components/icon.ts +4 -3
  83. package/src/theme/components/list.ts +6 -7
  84. package/src/theme/components/pinInput.ts +4 -4
  85. package/src/theme/components/progress.ts +3 -3
  86. package/src/theme/components/richTextEditor.ts +3 -3
  87. package/src/theme/components/sectionHeading.ts +1 -1
  88. package/src/theme/components/select.ts +1 -1
  89. package/src/theme/components/slider.ts +3 -3
  90. package/src/theme/components/spinner.ts +1 -4
  91. package/src/theme/components/switch.ts +7 -7
  92. package/src/theme/components/tabs.ts +5 -5
  93. package/src/theme/components/tag.ts +12 -12
  94. package/src/theme/components/textInput.ts +38 -38
  95. package/src/theme/components/toast.ts +6 -6
  96. package/src/theme/components/toolbar.ts +3 -2
  97. package/src/theme/components/typography.ts +4 -3
  98. package/src/theme/global/colors/global.ts +32 -0
  99. package/src/theme/global/colors/legacySystemPalette.ts +53 -0
  100. package/src/theme/global/colors/swag.ts +21 -35
  101. package/src/theme/global/colors/types.ts +46 -27
  102. package/src/theme/global/colors/work.ts +10 -9
  103. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  104. package/types/components/Icon/index.d.ts +1 -1
  105. package/types/components/Toast/__tests__/index.spec.d.ts +1 -0
  106. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  107. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  108. package/types/components/Typography/Text/index.d.ts +1 -1
  109. package/types/theme/components/empty.d.ts +0 -1
  110. package/types/theme/components/icon.d.ts +1 -0
  111. package/types/theme/components/spinner.d.ts +1 -4
  112. package/types/theme/components/toolbar.d.ts +1 -0
  113. package/types/theme/components/typography.d.ts +1 -0
  114. package/types/theme/global/colors/global.d.ts +3 -0
  115. package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
  116. package/types/theme/global/colors/types.d.ts +41 -21
  117. package/types/theme/global/index.d.ts +28 -20
package/es/index.js CHANGED
@@ -1257,90 +1257,115 @@ Object.assign(Object.assign({}, palette$5), {
1257
1257
  cornflowerBlue: cornflowerBlue.base,
1258
1258
  paua: paua.base
1259
1259
  });
1260
- var gold$1 = colorScales.gold;
1260
+ var gold$1 = colorScales.gold,
1261
+ violet$2 = colorScales.violet;
1261
1262
  var palette = Object.assign(Object.assign({}, palette$5), {
1262
1263
  goldLight20: gold$1.lighten20,
1263
1264
  goldLight50: gold$1.lighten50,
1264
1265
  goldLight70: gold$1.lighten70,
1265
1266
  goldLight90: gold$1.lighten90,
1266
- gold: gold$1.base
1267
+ gold: gold$1.base,
1268
+ violet: violet$2.base,
1269
+ violetLight50: violet$2.lighten50,
1270
+ violetLight80: violet$2.lighten80,
1271
+ violetLight90: violet$2.lighten90
1267
1272
  });
1268
1273
 
1269
- var swagSystemPalette = {
1274
+ var globalPalette = {
1270
1275
  globalPrimary: palette$5.maasstrichtBlue,
1271
- globalPrimaryLight: palette$5.maasstrichtBlueLight50,
1272
- globalPrimaryBackground: palette$5.maasstrichtBlueLight90,
1273
- primary: palette$2.violet,
1276
+ mutedGlobalPrimary: palette$5.maasstrichtBlueLight30,
1277
+ onGlobalPrimary: palette$5.white,
1278
+ globalSecondary: palette$5.maasstrichtBlueLight30,
1279
+ globalPrimaryOutline: palette$5.maasstrichtBlue,
1280
+ globalSecondaryOutline: palette$5.greyLight75,
1281
+ defaultGlobalSurface: palette$5.white,
1282
+ onDefaultGlobalSurface: palette$5.maasstrichtBlue,
1283
+ neutralGlobalSurface: palette$5.greyLight90,
1284
+ disabledOnDefaultGlobalSurface: palette$5.greyLight30,
1285
+ error: palette$5.pastelRed,
1286
+ errorSurface: palette$5.linen,
1287
+ onErrorSurface: palette$5.vermilion,
1288
+ warning: palette$5.mellowApricot,
1289
+ warningSurface: palette$5.seashell,
1290
+ onWarningSurface: palette$5.deepSaffron,
1291
+ success: palette$5.emerald,
1292
+ successSurface: palette$5.honeydew,
1293
+ onSuccessSurface: palette$5.pineGreen,
1294
+ info: palette$5.vodka,
1295
+ infoSurface: palette$5.aliceBlue,
1296
+ onInfoSurface: palette$5.ultramarineBlue,
1297
+ archived: palette$5.greyLight45,
1298
+ archivedSurface: palette$5.antiFlashWhite,
1299
+ onArchivedSurface: palette$5.sonicSilver
1300
+ };
1301
+
1302
+ var swagSystemPalette = _objectSpread2(_objectSpread2({
1303
+ // Legacy
1304
+ globalPrimary: palette$2.maasstrichtBlue,
1305
+ globalPrimaryLight: palette$2.maasstrichtBlueLight50,
1306
+ globalPrimaryBackground: palette$2.maasstrichtBlueLight90,
1274
1307
  primaryLight: palette$2.violetLight50,
1275
1308
  primaryDark: palette$2.scarletGumLight30,
1276
1309
  primaryBackground: palette$2.violetLight90,
1277
- primaryBackgroundDark: palette$5.maasstrichtBlueLight30,
1278
- secondary: palette$2.ultramarineBlue,
1310
+ primaryBackgroundDark: palette$2.maasstrichtBlueLight30,
1279
1311
  secondaryLight: palette$2.vodka,
1280
1312
  secondaryBackground: palette$2.aliceBlue,
1281
- info: palette$5.ultramarineBlue,
1282
- infoMediumLight: palette$5.vodka,
1283
- infoLight: palette$5.vodka,
1284
- infoBackground: palette$5.aliceBlue,
1285
- success: palette$5.emerald,
1286
- successLight: palette$5.emerald,
1287
- successDark: palette$5.pineGreen,
1288
- successBackground: palette$5.honeydew,
1289
- danger: palette$5.vermilion,
1290
- dangerMediumLight: palette$5.apple,
1291
- dangerLight: palette$5.pastelRed,
1292
- dangerBackground: palette$5.linen,
1293
- warning: palette$5.mellowApricot,
1294
- warningLight: palette$5.mellowApricot,
1295
- warningDark: palette$5.deepSaffron,
1296
- warningBackground: palette$5.seashell,
1297
- platformBackground: palette$5.white,
1298
- backgroundLight: palette$5.greyLight90,
1299
- backgroundDark: palette$5.maasstrichtBlue,
1300
- text: palette$5.maasstrichtBlue,
1301
- subduedText: palette$5.maasstrichtBlueLight30,
1302
- disabledText: palette$5.maasstrichtBlueLight50,
1303
- disabledLightText: palette$5.greyLight30,
1304
- invertedText: palette$5.white,
1305
- outline: palette$5.greyLight75,
1306
- archived: palette$5.greyLight45,
1307
- archivedLight: palette$5.greyLight30,
1308
- archivedDark: palette$5.sonicSilver,
1309
- archivedBackground: palette$5.greyLight90,
1310
- black: palette$5.black,
1311
- inactiveBackground: palette$5.maasstrichtBlueLight50,
1312
- shadow: palette$5.greyLight45,
1313
- __alpha__globalPrimary: palette$5.maasstrichtBlue,
1314
- __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1315
- __alpha__globalSecondary4: palette$5.maasstrichtBlueLight90,
1316
- __alpha__globalNeutral3: palette$5.greyLight90,
1317
- __alpha__globalLabel1: palette$5.vermilion,
1318
- __alpha__globalLabel2: palette$5.deepSaffron,
1319
- __alpha__globalLabel3: palette$5.pineGreen,
1320
- __alpha__globalLabel4: palette$5.ultramarineBlue,
1321
- __alpha__globalLabel5: palette$5.sonicSilver,
1322
- __alpha__globalLabel6: palette$5.linen,
1323
- __alpha__globalLabel7: palette$5.seashell,
1324
- __alpha__globalLabel8: palette$5.honeydew,
1325
- __alpha__globalLabel9: palette$5.aliceBlue,
1326
- __alpha__primary1: palette$2.scarletGum,
1327
- __alpha__primary2: palette$2.mauve,
1328
- __alpha__secondary1: palette$2.scarletGumLight30,
1329
- __alpha__secondary2: palette$2.scarletGumLight50,
1330
- __alpha__secondary3: palette$2.scarletGumLight80,
1331
- __alpha__secondary4: palette$2.scarletGumLight90,
1332
- __alpha__lightHighlightedSurface: '#ECE8EF'
1333
- };
1313
+ info: palette$2.ultramarineBlue,
1314
+ infoMediumLight: palette$2.vodka,
1315
+ infoLight: palette$2.vodka,
1316
+ infoBackground: palette$2.aliceBlue,
1317
+ success: palette$2.emerald,
1318
+ successLight: palette$2.emerald,
1319
+ successDark: palette$2.pineGreen,
1320
+ successBackground: palette$2.honeydew,
1321
+ danger: palette$2.vermilion,
1322
+ dangerMediumLight: palette$2.apple,
1323
+ dangerLight: palette$2.pastelRed,
1324
+ dangerBackground: palette$2.linen,
1325
+ warning: palette$2.mellowApricot,
1326
+ warningLight: palette$2.mellowApricot,
1327
+ warningDark: palette$2.deepSaffron,
1328
+ warningBackground: palette$2.seashell,
1329
+ platformBackground: palette$2.white,
1330
+ backgroundLight: palette$2.greyLight90,
1331
+ backgroundDark: palette$2.maasstrichtBlue,
1332
+ text: palette$2.maasstrichtBlue,
1333
+ subduedText: palette$2.maasstrichtBlueLight30,
1334
+ disabledText: palette$2.maasstrichtBlueLight50,
1335
+ disabledLightText: palette$2.greyLight30,
1336
+ invertedText: palette$2.white,
1337
+ outline: palette$2.greyLight75,
1338
+ archived: palette$2.greyLight45,
1339
+ archivedLight: palette$2.greyLight30,
1340
+ archivedDark: palette$2.sonicSilver,
1341
+ archivedBackground: palette$2.greyLight90,
1342
+ black: palette$2.black,
1343
+ inactiveBackground: palette$2.maasstrichtBlueLight50,
1344
+ shadow: palette$2.greyLight45
1345
+ }, globalPalette), {}, {
1346
+ // Brand
1347
+ primary: palette$2.maasstrichtBlue,
1348
+ mutedPrimary: palette$2.maasstrichtBlueLight90,
1349
+ onPrimary: palette$2.white,
1350
+ secondary: palette$2.scarletGum,
1351
+ onSecondary: palette$2.white,
1352
+ mutedSecondary: palette$2.maasstrichtBlueLight50,
1353
+ disabledSecondary: palette$2.scarletGumLight50,
1354
+ highlightedSurface: palette$2.scarletGumLight80,
1355
+ highlightedSecondarySurface: palette$2.aliceBlue,
1356
+ lightHighlightedSurface: palette$2.scarletGumLight90
1357
+ });
1334
1358
 
1335
1359
  var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1336
1360
  primary: palette.gold,
1337
- primaryLight: palette.goldLight50,
1338
- primaryDark: palette.goldLight20,
1339
- primaryBackground: palette.goldLight90,
1340
- __alpha__secondary1: palette.goldLight20,
1341
- __alpha__secondary2: palette.goldLight50,
1342
- __alpha__secondary3: palette.goldLight70,
1343
- __alpha__secondary4: palette.goldLight90
1361
+ mutedPrimary: palette.goldLight90,
1362
+ onPrimary: palette.maasstrichtBlue,
1363
+ secondary: palette.violet,
1364
+ onSecondary: palette.white,
1365
+ mutedSecondary: palette.maasstrichtBlueLight50,
1366
+ disabledSecondary: palette.violetLight50,
1367
+ highlightedSurface: palette.violetLight80,
1368
+ lightHighlightedSurface: palette.violetLight90
1344
1369
  });
1345
1370
 
1346
1371
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1487,7 +1512,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
1487
1512
 
1488
1513
  var getAccordionTheme = function getAccordionTheme(theme) {
1489
1514
  var colors = {
1490
- background: theme.colors.platformBackground
1515
+ background: theme.colors.defaultGlobalSurface
1491
1516
  };
1492
1517
  var space = {
1493
1518
  padding: theme.space.medium
@@ -1506,10 +1531,10 @@ var getAlertTheme = function getAlertTheme(theme) {
1506
1531
  var colors = {
1507
1532
  success: theme.colors.success,
1508
1533
  warning: theme.colors.warning,
1509
- error: theme.colors.dangerLight,
1510
- info: theme.colors.infoLight,
1511
- notification: theme.colors.platformBackground,
1512
- divider: theme.colors.outline
1534
+ error: theme.colors.error,
1535
+ info: theme.colors.info,
1536
+ notification: theme.colors.defaultGlobalSurface,
1537
+ divider: theme.colors.globalSecondaryOutline
1513
1538
  };
1514
1539
  var sizes = {
1515
1540
  height: theme.sizes.xxxlarge
@@ -1537,9 +1562,9 @@ var getAlertTheme = function getAlertTheme(theme) {
1537
1562
 
1538
1563
  var getAvatarTheme = function getAvatarTheme(theme) {
1539
1564
  var colors = {
1540
- primary: theme.colors.primary,
1565
+ primary: theme.colors.globalPrimary,
1541
1566
  info: theme.colors.info,
1542
- danger: theme.colors.danger,
1567
+ danger: theme.colors.error,
1543
1568
  success: theme.colors.success,
1544
1569
  warning: theme.colors.warning
1545
1570
  };
@@ -1580,12 +1605,12 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1580
1605
 
1581
1606
  var getBadgeTheme = function getBadgeTheme(theme) {
1582
1607
  var colors = {
1583
- danger: theme.colors.danger,
1584
- info: theme.colors.info,
1585
- success: theme.colors.successDark,
1586
- warning: theme.colors.warningDark,
1587
- archived: theme.colors.archivedDark,
1588
- text: theme.colors.invertedText
1608
+ danger: theme.colors.onErrorSurface,
1609
+ info: theme.colors.onInfoSurface,
1610
+ success: theme.colors.onSuccessSurface,
1611
+ warning: theme.colors.onWarningSurface,
1612
+ archived: theme.colors.onArchivedSurface,
1613
+ text: theme.colors.onGlobalPrimary
1589
1614
  };
1590
1615
  var fonts = {
1591
1616
  "default": theme.fonts.semiBold
@@ -1615,8 +1640,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1615
1640
 
1616
1641
  var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
1617
1642
  var colors = {
1618
- shadow: theme.colors.backgroundDark,
1619
- background: theme.colors.platformBackground
1643
+ shadow: theme.colors.globalPrimary,
1644
+ background: theme.colors.defaultGlobalSurface
1620
1645
  };
1621
1646
  var sizes = {
1622
1647
  height: theme.sizes['6xlarge']
@@ -1643,9 +1668,9 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
1643
1668
 
1644
1669
  var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1645
1670
  var colors = {
1646
- shadow: theme.colors.backgroundDark,
1647
- background: theme.colors.platformBackground,
1648
- backdrop: theme.colors.backgroundDark
1671
+ shadow: theme.colors.globalPrimary,
1672
+ background: theme.colors.defaultGlobalSurface,
1673
+ backdrop: theme.colors.globalPrimary
1649
1674
  };
1650
1675
  var sizes = {
1651
1676
  sectionHeight: theme.sizes.xxxxxlarge,
@@ -1709,28 +1734,28 @@ var getButtonTheme = function getButtonTheme(theme) {
1709
1734
  };
1710
1735
  var colors = {
1711
1736
  primary: theme.colors.globalPrimary,
1712
- pressedPrimary: theme.colors.globalPrimaryLight,
1737
+ pressedPrimary: theme.colors.globalSecondary,
1713
1738
  secondary: theme.colors.secondary,
1714
- pressedSecondary: theme.colors.secondaryLight,
1715
- danger: theme.colors.danger,
1716
- pressedDanger: theme.colors.dangerLight,
1717
- defaultText: theme.colors.text,
1718
- disabledText: theme.colors.disabledLightText,
1719
- disabledBorder: theme.colors.disabledLightText,
1720
- disabledBackground: theme.colors.disabledLightText,
1721
- invertedText: theme.colors.invertedText,
1722
- utilityBackground: theme.colors.backgroundLight,
1739
+ pressedSecondary: theme.colors.secondary,
1740
+ danger: theme.colors.onErrorSurface,
1741
+ pressedDanger: theme.colors.onErrorSurface,
1742
+ defaultText: theme.colors.onGlobalPrimary,
1743
+ disabledText: theme.colors.disabledOnDefaultGlobalSurface,
1744
+ disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
1745
+ disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
1746
+ invertedText: theme.colors.onGlobalPrimary,
1747
+ utilityBackground: theme.colors.neutralGlobalSurface,
1723
1748
  underlayColors: {
1724
- 'filled-primary': theme.colors.globalPrimaryLight,
1725
- 'filled-secondary': theme.colors.secondaryLight,
1726
- 'filled-danger': theme.colors.dangerLight,
1727
- 'outlined-primary': theme.colors.globalPrimaryBackground,
1728
- 'outlined-secondary': theme.colors.secondaryBackground,
1729
- 'outlined-danger': theme.colors.dangerBackground,
1730
- 'text-primary': theme.colors.globalPrimaryBackground,
1731
- 'text-secondary': theme.colors.secondaryBackground,
1732
- 'text-danger': theme.colors.dangerBackground,
1733
- 'basic-transparent': theme.colors.globalPrimaryLight
1749
+ 'filled-primary': theme.colors.mutedGlobalPrimary,
1750
+ 'filled-secondary': theme.colors.mutedSecondary,
1751
+ 'filled-danger': theme.colors.error,
1752
+ 'outlined-primary': theme.colors.neutralGlobalSurface,
1753
+ 'outlined-secondary': theme.colors.highlightedSecondarySurface,
1754
+ 'outlined-danger': theme.colors.errorSurface,
1755
+ 'text-primary': theme.colors.neutralGlobalSurface,
1756
+ 'text-secondary': theme.colors.highlightedSecondarySurface,
1757
+ 'text-danger': theme.colors.errorSurface,
1758
+ 'basic-transparent': theme.colors.mutedGlobalPrimary
1734
1759
  }
1735
1760
  };
1736
1761
  return {
@@ -1747,10 +1772,10 @@ var getButtonTheme = function getButtonTheme(theme) {
1747
1772
 
1748
1773
  var getCalendarTheme = function getCalendarTheme(theme) {
1749
1774
  var colors = {
1750
- background: theme.colors.backgroundLight,
1751
- border: theme.colors.text,
1752
- primary: theme.colors.primary,
1753
- inverted: theme.colors.invertedText
1775
+ background: theme.colors.defaultGlobalSurface,
1776
+ border: theme.colors.globalPrimaryOutline,
1777
+ primary: theme.colors.globalPrimary,
1778
+ inverted: theme.colors.onGlobalPrimary
1754
1779
  };
1755
1780
  var cellSize = theme.sizes.xxxlarge;
1756
1781
  var markSize = theme.sizes.xsmall;
@@ -1780,13 +1805,13 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1780
1805
 
1781
1806
  var getCardTheme = function getCardTheme(theme) {
1782
1807
  var colors = {
1783
- dataCardIndicator: theme.colors.primary,
1784
- primary: theme.colors.__alpha__primary2,
1785
- info: theme.colors.infoLight,
1808
+ dataCardIndicator: theme.colors.globalPrimary,
1809
+ primary: theme.colors.primary,
1810
+ info: theme.colors.info,
1786
1811
  success: theme.colors.success,
1787
1812
  warning: theme.colors.warning,
1788
- danger: theme.colors.dangerMediumLight,
1789
- archived: theme.colors.archivedLight
1813
+ danger: theme.colors.error,
1814
+ archived: theme.colors.archived
1790
1815
  };
1791
1816
  var sizes = {
1792
1817
  indicatorWidth: theme.sizes.medium
@@ -1804,7 +1829,7 @@ var getCardTheme = function getCardTheme(theme) {
1804
1829
  var getCheckboxTheme = function getCheckboxTheme(theme) {
1805
1830
  var colors = {
1806
1831
  "default": theme.colors.globalPrimary,
1807
- disabledBorder: theme.colors.globalPrimaryLight
1832
+ disabledBorder: theme.colors.mutedGlobalPrimary
1808
1833
  };
1809
1834
  var space = {
1810
1835
  iconTop: 0,
@@ -1851,7 +1876,7 @@ var getDatePickerTheme = function getDatePickerTheme(theme) {
1851
1876
 
1852
1877
  var getDividerTheme = function getDividerTheme(theme) {
1853
1878
  var colors = {
1854
- "default": theme.colors.outline
1879
+ "default": theme.colors.globalSecondaryOutline
1855
1880
  };
1856
1881
  var space = {
1857
1882
  xsmall: theme.space.xsmall,
@@ -1872,10 +1897,10 @@ var getDividerTheme = function getDividerTheme(theme) {
1872
1897
 
1873
1898
  var getDrawerTheme = function getDrawerTheme(theme) {
1874
1899
  var colors = {
1875
- shadow: theme.colors.backgroundDark,
1876
- background: theme.colors.platformBackground,
1877
- backdrop: theme.colors.backgroundDark,
1878
- handler: theme.colors.backgroundDark
1900
+ shadow: theme.colors.globalPrimary,
1901
+ background: theme.colors.defaultGlobalSurface,
1902
+ backdrop: theme.colors.defaultGlobalSurface,
1903
+ handler: theme.colors.globalPrimary
1879
1904
  };
1880
1905
  var radii = {
1881
1906
  "default": theme.radii.xlarge,
@@ -1916,10 +1941,9 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1916
1941
  image: theme.sizes['18xlarge']
1917
1942
  };
1918
1943
  var colors = {
1919
- text: theme.colors.text,
1920
- invertedText: theme.colors.invertedText,
1921
- subduedText: theme.colors.subduedText,
1922
- illustrationBackground: theme.colors.shadow
1944
+ text: theme.colors.globalPrimary,
1945
+ invertedText: theme.colors.onGlobalPrimary,
1946
+ subduedText: theme.colors.globalSecondary
1923
1947
  };
1924
1948
  var fontSizes = {
1925
1949
  title: theme.fontSizes.xxxxlarge,
@@ -1940,13 +1964,13 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1940
1964
 
1941
1965
  var getFABTheme = function getFABTheme(theme) {
1942
1966
  var colors = {
1943
- buttonBackground: theme.colors.backgroundDark,
1944
- icon: theme.colors.invertedText,
1945
- headerText: theme.colors.invertedText,
1946
- actionItemBackground: theme.colors.primaryBackgroundDark,
1947
- backdropBackground: theme.colors.backgroundDark,
1948
- titleText: theme.colors.invertedText,
1949
- actionItemText: theme.colors.invertedText
1967
+ buttonBackground: theme.colors.globalPrimary,
1968
+ icon: theme.colors.onGlobalPrimary,
1969
+ headerText: theme.colors.onGlobalPrimary,
1970
+ actionItemBackground: theme.colors.globalPrimary,
1971
+ backdropBackground: theme.colors.globalPrimary,
1972
+ titleText: theme.colors.onGlobalPrimary,
1973
+ actionItemText: theme.colors.onGlobalPrimary
1950
1974
  };
1951
1975
  var sizes = {
1952
1976
  width: theme.sizes.xxxxxlarge,
@@ -2000,14 +2024,15 @@ var getFABTheme = function getFABTheme(theme) {
2000
2024
 
2001
2025
  var getIconTheme = function getIconTheme(theme) {
2002
2026
  var colors = {
2003
- text: theme.colors.text,
2027
+ text: theme.colors.globalPrimary,
2004
2028
  primary: theme.colors.primary,
2029
+ secondary: theme.colors.secondary,
2005
2030
  info: theme.colors.info,
2006
2031
  danger: theme.colors.danger,
2007
2032
  success: theme.colors.success,
2008
2033
  warning: theme.colors.warning,
2009
- disabledText: theme.colors.disabledText,
2010
- invertedText: theme.colors.invertedText
2034
+ disabledText: theme.colors.mutedGlobalPrimary,
2035
+ invertedText: theme.colors.defaultGlobalSurface
2011
2036
  };
2012
2037
  var sizes = {
2013
2038
  xsmall: theme.fontSizes.large,
@@ -2034,15 +2059,15 @@ var getImageTheme = function getImageTheme(theme) {
2034
2059
 
2035
2060
  var getListTheme = function getListTheme(theme) {
2036
2061
  var colors = {
2037
- checkedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
2038
- highlightedListItemContainerBackground: theme.colors.__alpha__lightHighlightedSurface,
2039
- listItemContainerBackground: theme.colors.platformBackground,
2062
+ checkedListItemContainerBackground: theme.colors.highlightedSurface,
2063
+ highlightedListItemContainerBackground: theme.colors.lightHighlightedSurface,
2064
+ listItemContainerBackground: theme.colors.defaultGlobalSurface,
2040
2065
  leadingStatus: {
2041
- danger: theme.colors.dangerMediumLight,
2042
- info: theme.colors.infoLight,
2066
+ danger: theme.colors.error,
2067
+ info: theme.colors.info,
2043
2068
  success: theme.colors.success,
2044
2069
  warning: theme.colors.warning,
2045
- archived: theme.colors.archivedLight
2070
+ archived: theme.colors.archived
2046
2071
  }
2047
2072
  };
2048
2073
  var space = {
@@ -2088,10 +2113,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2088
2113
  focused: theme.borderWidths.medium
2089
2114
  };
2090
2115
  var colors = {
2091
- "default": theme.colors.text,
2092
- mask: theme.colors.subduedText,
2093
- error: theme.colors.danger,
2094
- disabled: theme.colors.archivedLight
2116
+ "default": theme.colors.globalPrimary,
2117
+ mask: theme.colors.mutedGlobalPrimary,
2118
+ error: theme.colors.error,
2119
+ disabled: theme.colors.mutedGlobalPrimary
2095
2120
  };
2096
2121
  var fonts = {
2097
2122
  cellText: theme.fonts.semiBold,
@@ -2129,11 +2154,11 @@ var getProgressTheme = function getProgressTheme(theme) {
2129
2154
  var colors = {
2130
2155
  primary: theme.colors.primary,
2131
2156
  success: theme.colors.success,
2132
- warning: theme.colors.warningDark,
2157
+ warning: theme.colors.warning,
2133
2158
  danger: theme.colors.danger,
2134
2159
  info: theme.colors.info,
2135
- background: theme.colors.outline,
2136
- innerBackground: theme.colors.platformBackground
2160
+ background: theme.colors.globalSecondaryOutline,
2161
+ innerBackground: theme.colors.defaultGlobalSurface
2137
2162
  };
2138
2163
  var sizes = {
2139
2164
  circleWidth: theme.sizes['6xlarge'],
@@ -2178,9 +2203,9 @@ var getRadioTheme = function getRadioTheme(theme) {
2178
2203
 
2179
2204
  var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2180
2205
  var colors = {
2181
- toolbarBorderColor: theme.colors.outline,
2182
- toolbarBackgroundColor: theme.colors.backgroundLight,
2183
- toolbarButtonSelectedBackground: theme.colors.outline
2206
+ toolbarBorderColor: theme.colors.globalSecondaryOutline,
2207
+ toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
2208
+ toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface
2184
2209
  };
2185
2210
  var borderWidths = {
2186
2211
  webViewBorderBottomWidth: 0.8
@@ -2210,7 +2235,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2210
2235
 
2211
2236
  var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2212
2237
  var colors = {
2213
- background: theme.colors.__alpha__globalNeutral3
2238
+ background: theme.colors.neutralGlobalSurface
2214
2239
  };
2215
2240
  var space = {
2216
2241
  headingVerticalPadding: theme.space.small,
@@ -2226,7 +2251,7 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2226
2251
 
2227
2252
  var getSelectTheme = function getSelectTheme(theme) {
2228
2253
  var colors = {
2229
- footerText: theme.colors.primary
2254
+ footerText: theme.colors.secondary
2230
2255
  };
2231
2256
  var space = {
2232
2257
  minimumOptionListHeight: theme.space.xxxxlarge * 5,
@@ -2249,9 +2274,9 @@ var getSelectTheme = function getSelectTheme(theme) {
2249
2274
 
2250
2275
  var getSliderTheme = function getSliderTheme(theme) {
2251
2276
  var colors = {
2252
- minimumTrackTint: theme.colors.__alpha__primary1,
2253
- thumbTint: theme.colors.__alpha__globalSecondary4,
2254
- maximumTrackTint: theme.colors.__alpha__secondary4
2277
+ minimumTrackTint: theme.colors.secondary,
2278
+ thumbTint: theme.colors.neutralGlobalSurface,
2279
+ maximumTrackTint: theme.colors.lightHighlightedSurface
2255
2280
  };
2256
2281
  return {
2257
2282
  colors: colors
@@ -2260,10 +2285,7 @@ var getSliderTheme = function getSliderTheme(theme) {
2260
2285
 
2261
2286
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2262
2287
  var colors = {
2263
- dot1: theme.colors.__alpha__secondary1,
2264
- dot2: theme.colors.__alpha__secondary2,
2265
- dot3: theme.colors.__alpha__secondary3,
2266
- dot4: theme.colors.__alpha__secondary4
2288
+ dot: theme.colors.primary
2267
2289
  };
2268
2290
  var space = {
2269
2291
  spinnerDot: {
@@ -2292,15 +2314,15 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
2292
2314
  var getSwitchTheme = function getSwitchTheme(theme) {
2293
2315
  var colors = {
2294
2316
  backgroundColors: {
2295
- checked: theme.colors.primary,
2296
- unchecked: theme.colors.globalPrimaryLight,
2297
- 'disabled-checked': theme.colors.primaryLight,
2298
- 'disabled-unchecked': theme.colors.archived
2317
+ checked: theme.colors.secondary,
2318
+ unchecked: theme.colors.mutedSecondary,
2319
+ 'disabled-checked': theme.colors.disabledSecondary,
2320
+ 'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface
2299
2321
  },
2300
- thumb: theme.colors.platformBackground,
2322
+ thumb: theme.colors.onSecondary,
2301
2323
  selector: {
2302
- background: theme.colors.__alpha__globalNeutral3,
2303
- textBackground: theme.colors.__alpha__primary1
2324
+ background: theme.colors.neutralGlobalSurface,
2325
+ textBackground: theme.colors.secondary
2304
2326
  }
2305
2327
  };
2306
2328
  var sizes = {
@@ -2344,11 +2366,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2344
2366
 
2345
2367
  var getTabsTheme = function getTabsTheme(theme) {
2346
2368
  var colors = {
2347
- active: theme.colors.text,
2348
- inactive: theme.colors.text,
2349
- activeBackground: theme.colors.__alpha__secondary4,
2350
- headerBottom: theme.colors.outline,
2351
- text: theme.colors.text
2369
+ active: theme.colors.globalPrimary,
2370
+ inactive: theme.colors.globalPrimary,
2371
+ activeBackground: theme.colors.mutedPrimary,
2372
+ headerBottom: theme.colors.globalSecondaryOutline,
2373
+ text: theme.colors.globalPrimary
2352
2374
  };
2353
2375
  var space = {
2354
2376
  flatListHorizontalPadding: theme.space.small,
@@ -2381,20 +2403,20 @@ var getTagTheme = function getTagTheme(theme) {
2381
2403
  "default": theme.borderWidths.base
2382
2404
  };
2383
2405
  var colors = {
2384
- "default": theme.colors.__alpha__globalPrimary,
2406
+ "default": theme.colors.globalPrimary,
2385
2407
  defaultBackground: undefined,
2386
- primary: theme.colors.__alpha__globalPrimary,
2408
+ primary: theme.colors.globalPrimary,
2387
2409
  primaryBackground: undefined,
2388
- info: theme.colors.__alpha__globalLabel4,
2389
- infoBackground: theme.colors.__alpha__globalLabel9,
2390
- success: theme.colors.__alpha__globalLabel3,
2391
- successBackground: theme.colors.__alpha__globalLabel8,
2392
- warning: theme.colors.__alpha__globalLabel2,
2393
- warningBackground: theme.colors.__alpha__globalLabel7,
2394
- danger: theme.colors.__alpha__globalLabel1,
2395
- dangerBackground: theme.colors.__alpha__globalLabel6,
2396
- archived: theme.colors.__alpha__globalLabel5,
2397
- archivedBackground: theme.colors.__alpha__globalNeutral3
2410
+ info: theme.colors.onInfoSurface,
2411
+ infoBackground: theme.colors.infoSurface,
2412
+ success: theme.colors.onSuccessSurface,
2413
+ successBackground: theme.colors.successSurface,
2414
+ warning: theme.colors.onWarningSurface,
2415
+ warningBackground: theme.colors.warningSurface,
2416
+ danger: theme.colors.onErrorSurface,
2417
+ dangerBackground: theme.colors.errorSurface,
2418
+ archived: theme.colors.onArchivedSurface,
2419
+ archivedBackground: theme.colors.archivedSurface
2398
2420
  };
2399
2421
  var fonts = {
2400
2422
  "default": theme.fonts.semiBold
@@ -2421,53 +2443,53 @@ var getTagTheme = function getTagTheme(theme) {
2421
2443
 
2422
2444
  var getTextInputTheme = function getTextInputTheme(theme) {
2423
2445
  var colors = {
2424
- labelBackground: theme.colors.platformBackground,
2446
+ labelBackground: theme.colors.defaultGlobalSurface,
2425
2447
  asterisks: {
2426
- "default": theme.colors.danger,
2427
- error: theme.colors.danger,
2428
- disabled: theme.colors.disabledLightText,
2429
- readonly: theme.colors.disabledText,
2430
- filled: theme.colors.danger,
2431
- focused: theme.colors.danger
2448
+ "default": theme.colors.error,
2449
+ error: theme.colors.error,
2450
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2451
+ readonly: theme.colors.mutedSecondary,
2452
+ filled: theme.colors.error,
2453
+ focused: theme.colors.error
2432
2454
  },
2433
- error: theme.colors.danger,
2434
- placeholderIfNotFocused: theme.colors.text,
2435
- placeholderIfFocued: theme.colors.disabledText,
2436
- label: theme.colors.text,
2437
- readonlyLabel: theme.colors.disabledText,
2438
- disabledLabel: theme.colors.disabledLightText,
2439
- text: theme.colors.text,
2455
+ error: theme.colors.error,
2456
+ placeholderIfNotFocused: theme.colors.globalPrimary,
2457
+ placeholderIfFocued: theme.colors.mutedSecondary,
2458
+ label: theme.colors.globalPrimary,
2459
+ readonlyLabel: theme.colors.mutedSecondary,
2460
+ disabledLabel: theme.colors.disabledOnDefaultGlobalSurface,
2461
+ text: theme.colors.globalPrimary,
2440
2462
  borders: {
2441
- "default": theme.colors.text,
2442
- error: theme.colors.danger,
2443
- disabled: theme.colors.disabledLightText,
2444
- readonly: theme.colors.disabledText,
2445
- filled: theme.colors.text,
2446
- focused: theme.colors.text
2463
+ "default": theme.colors.globalPrimary,
2464
+ error: theme.colors.error,
2465
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2466
+ readonly: theme.colors.mutedSecondary,
2467
+ filled: theme.colors.globalPrimary,
2468
+ focused: theme.colors.globalPrimary
2447
2469
  },
2448
2470
  labels: {
2449
- "default": theme.colors.text,
2450
- error: theme.colors.text,
2451
- disabled: theme.colors.disabledLightText,
2452
- readonly: theme.colors.disabledText,
2453
- filled: theme.colors.text,
2454
- focused: theme.colors.text
2471
+ "default": theme.colors.globalPrimary,
2472
+ error: theme.colors.globalPrimary,
2473
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2474
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2475
+ filled: theme.colors.globalPrimary,
2476
+ focused: theme.colors.globalPrimary
2455
2477
  },
2456
2478
  labelsInsideTextInput: {
2457
- "default": theme.colors.text,
2458
- error: theme.colors.text,
2459
- disabled: theme.colors.disabledLightText,
2460
- readonly: theme.colors.disabledText,
2461
- filled: theme.colors.text,
2462
- focused: theme.colors.text
2479
+ "default": theme.colors.globalPrimary,
2480
+ error: theme.colors.globalPrimary,
2481
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2482
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2483
+ filled: theme.colors.globalPrimary,
2484
+ focused: theme.colors.globalPrimary
2463
2485
  },
2464
2486
  maxLengthLabels: {
2465
- "default": theme.colors.text,
2466
- error: theme.colors.danger,
2467
- disabled: theme.colors.disabledLightText,
2468
- readonly: theme.colors.disabledText,
2469
- filled: theme.colors.text,
2470
- focused: theme.colors.text
2487
+ "default": theme.colors.globalPrimary,
2488
+ error: theme.colors.error,
2489
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2490
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2491
+ filled: theme.colors.globalPrimary,
2492
+ focused: theme.colors.globalPrimary
2471
2493
  }
2472
2494
  };
2473
2495
  var space = {
@@ -2521,12 +2543,12 @@ var getToastTheme = function getToastTheme(theme) {
2521
2543
  var colors = {
2522
2544
  success: theme.colors.success,
2523
2545
  warning: theme.colors.warning,
2524
- error: theme.colors.dangerLight,
2525
- info: theme.colors.infoLight,
2526
- notification: theme.colors.platformBackground,
2527
- snackbar: theme.colors.backgroundDark,
2528
- divider: theme.colors.outline,
2529
- shadow: theme.colors.backgroundDark
2546
+ error: theme.colors.error,
2547
+ info: theme.colors.info,
2548
+ notification: theme.colors.defaultGlobalSurface,
2549
+ snackbar: theme.colors.globalPrimary,
2550
+ divider: theme.colors.globalSecondaryOutline,
2551
+ shadow: theme.colors.globalPrimary
2530
2552
  };
2531
2553
  var sizes = {
2532
2554
  height: theme.sizes.xxxlarge
@@ -2566,9 +2588,10 @@ var getToastTheme = function getToastTheme(theme) {
2566
2588
 
2567
2589
  var getToolbarTheme = function getToolbarTheme(theme) {
2568
2590
  var colors = {
2569
- background: theme.colors.platformBackground,
2570
- border: theme.colors.outline,
2591
+ background: theme.colors.defaultGlobalSurface,
2592
+ border: theme.colors.globalSecondaryOutline,
2571
2593
  primary: theme.colors.primary,
2594
+ secondary: theme.colors.secondary,
2572
2595
  info: theme.colors.info,
2573
2596
  success: theme.colors.success,
2574
2597
  danger: theme.colors.warning,
@@ -2591,14 +2614,15 @@ var getToolbarTheme = function getToolbarTheme(theme) {
2591
2614
 
2592
2615
  var getTypographyTheme = function getTypographyTheme(theme) {
2593
2616
  var colors = {
2594
- body: theme.colors.text,
2595
- subdued: theme.colors.disabledText,
2617
+ body: theme.colors.globalPrimary,
2618
+ subdued: theme.colors.mutedGlobalPrimary,
2596
2619
  primary: theme.colors.primary,
2620
+ secondary: theme.colors.secondary,
2597
2621
  info: theme.colors.info,
2598
2622
  danger: theme.colors.danger,
2599
2623
  warning: theme.colors.warning,
2600
2624
  success: theme.colors.success,
2601
- inverted: theme.colors.invertedText
2625
+ inverted: theme.colors.onGlobalPrimary
2602
2626
  };
2603
2627
  var fonts = {
2604
2628
  light: theme.fonts.light,
@@ -14574,6 +14598,7 @@ var HeroIcon = createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icon
14574
14598
  var COLOR_INTENTS = {
14575
14599
  text: 'text',
14576
14600
  primary: 'primary',
14601
+ secondary: 'secondary',
14577
14602
  info: 'info',
14578
14603
  danger: 'danger',
14579
14604
  success: 'success',
@@ -14669,7 +14694,7 @@ var AccordionItem = function AccordionItem(_ref) {
14669
14694
  fontWeight: "semi-bold"
14670
14695
  }, header) : header, /*#__PURE__*/React.createElement(Icon, {
14671
14696
  icon: open ? 'arrow-up' : 'arrow-down',
14672
- intent: "primary",
14697
+ intent: "secondary",
14673
14698
  size: "small"
14674
14699
  })), /*#__PURE__*/React.createElement(StyledCollapse, {
14675
14700
  open: open
@@ -20970,24 +20995,28 @@ var StyledSpinnerDot = index$8(View)(function (_ref2) {
20970
20995
  switch (themePosition) {
20971
20996
  case 'topLeft':
20972
20997
  return {
20973
- backgroundColor: theme.__hd__.spinner.colors.dot1
20998
+ backgroundColor: theme.__hd__.spinner.colors.dot,
20999
+ opacity: 1
20974
21000
  };
20975
21001
 
20976
21002
  case 'topRight':
20977
21003
  return {
20978
21004
  marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20979
- backgroundColor: theme.__hd__.spinner.colors.dot2
21005
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21006
+ opacity: 0.75
20980
21007
  };
20981
21008
 
20982
21009
  case 'bottomLeft':
20983
21010
  return {
20984
- backgroundColor: theme.__hd__.spinner.colors.dot3
21011
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21012
+ opacity: 0.5
20985
21013
  };
20986
21014
 
20987
21015
  case 'bottomRight':
20988
21016
  return {
20989
21017
  marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20990
- backgroundColor: theme.__hd__.spinner.colors.dot4
21018
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21019
+ opacity: 0.25
20991
21020
  };
20992
21021
  }
20993
21022
  };
@@ -22168,9 +22197,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
22168
22197
  testID: componentTestID
22169
22198
  }, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
22170
22199
  themeInsets: insets,
22171
- style: barStyle,
22172
- testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
22200
+ style: barStyle
22173
22201
  }, /*#__PURE__*/React.createElement(FlatList, {
22202
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
22174
22203
  ref: flatListRef,
22175
22204
  horizontal: true,
22176
22205
  data: tabs,
@@ -22877,7 +22906,7 @@ var ToastProvider = function ToastProvider(_ref) {
22877
22906
  position = _ref$position === void 0 ? 'top' : _ref$position;
22878
22907
  var toastRef = useRef(null);
22879
22908
 
22880
- var _useState = useState({}),
22909
+ var _useState = useState(null),
22881
22910
  _useState2 = _slicedToArray(_useState, 2),
22882
22911
  refState = _useState2[0],
22883
22912
  setRefState = _useState2[1];
@@ -22899,7 +22928,7 @@ var ToastProvider = function ToastProvider(_ref) {
22899
22928
  style: {
22900
22929
  flex: 1
22901
22930
  }
22902
- }, children, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
22931
+ }, refState ? children : null, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
22903
22932
  value: config
22904
22933
  }, /*#__PURE__*/React.createElement(ToastContainer, {
22905
22934
  ref: toastRef,