@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
package/lib/index.js CHANGED
@@ -1286,89 +1286,115 @@ Object.assign(Object.assign({}, palette$5), {
1286
1286
  cornflowerBlue: cornflowerBlue.base,
1287
1287
  paua: paua.base
1288
1288
  });
1289
- var gold$1 = colorScales.gold;
1289
+ var gold$1 = colorScales.gold,
1290
+ violet$2 = colorScales.violet;
1290
1291
  var palette = Object.assign(Object.assign({}, palette$5), {
1291
1292
  goldLight20: gold$1.lighten20,
1292
1293
  goldLight50: gold$1.lighten50,
1293
1294
  goldLight70: gold$1.lighten70,
1294
1295
  goldLight90: gold$1.lighten90,
1295
- gold: gold$1.base
1296
+ gold: gold$1.base,
1297
+ violet: violet$2.base,
1298
+ violetLight50: violet$2.lighten50,
1299
+ violetLight80: violet$2.lighten80,
1300
+ violetLight90: violet$2.lighten90
1296
1301
  });
1297
1302
 
1298
- var swagSystemPalette = {
1303
+ var globalPalette = {
1299
1304
  globalPrimary: palette$5.maasstrichtBlue,
1300
- globalPrimaryLight: palette$5.maasstrichtBlueLight50,
1301
- globalPrimaryBackground: palette$5.maasstrichtBlueLight90,
1302
- primary: palette$2.violet,
1305
+ mutedGlobalPrimary: palette$5.maasstrichtBlueLight30,
1306
+ onGlobalPrimary: palette$5.white,
1307
+ globalSecondary: palette$5.maasstrichtBlueLight30,
1308
+ globalPrimaryOutline: palette$5.maasstrichtBlue,
1309
+ globalSecondaryOutline: palette$5.greyLight75,
1310
+ defaultGlobalSurface: palette$5.white,
1311
+ onDefaultGlobalSurface: palette$5.maasstrichtBlue,
1312
+ neutralGlobalSurface: palette$5.greyLight90,
1313
+ disabledOnDefaultGlobalSurface: palette$5.greyLight30,
1314
+ error: palette$5.pastelRed,
1315
+ errorSurface: palette$5.linen,
1316
+ onErrorSurface: palette$5.vermilion,
1317
+ warning: palette$5.mellowApricot,
1318
+ warningSurface: palette$5.seashell,
1319
+ onWarningSurface: palette$5.deepSaffron,
1320
+ success: palette$5.emerald,
1321
+ successSurface: palette$5.honeydew,
1322
+ onSuccessSurface: palette$5.pineGreen,
1323
+ info: palette$5.vodka,
1324
+ infoSurface: palette$5.aliceBlue,
1325
+ onInfoSurface: palette$5.ultramarineBlue,
1326
+ archived: palette$5.greyLight45,
1327
+ archivedSurface: palette$5.antiFlashWhite,
1328
+ onArchivedSurface: palette$5.sonicSilver
1329
+ };
1330
+
1331
+ var swagSystemPalette = _objectSpread2(_objectSpread2({
1332
+ // Legacy
1333
+ globalPrimary: palette$2.maasstrichtBlue,
1334
+ globalPrimaryLight: palette$2.maasstrichtBlueLight50,
1335
+ globalPrimaryBackground: palette$2.maasstrichtBlueLight90,
1303
1336
  primaryLight: palette$2.violetLight50,
1304
1337
  primaryDark: palette$2.scarletGumLight30,
1305
1338
  primaryBackground: palette$2.violetLight90,
1306
- primaryBackgroundDark: palette$5.maasstrichtBlueLight30,
1307
- secondary: palette$2.ultramarineBlue,
1339
+ primaryBackgroundDark: palette$2.maasstrichtBlueLight30,
1308
1340
  secondaryLight: palette$2.vodka,
1309
1341
  secondaryBackground: palette$2.aliceBlue,
1310
- info: palette$5.ultramarineBlue,
1311
- infoMediumLight: palette$5.vodka,
1312
- infoLight: palette$5.vodka,
1313
- infoBackground: palette$5.aliceBlue,
1314
- success: palette$5.emerald,
1315
- successLight: palette$5.emerald,
1316
- successDark: palette$5.pineGreen,
1317
- successBackground: palette$5.honeydew,
1318
- danger: palette$5.vermilion,
1319
- dangerMediumLight: palette$5.apple,
1320
- dangerLight: palette$5.pastelRed,
1321
- dangerBackground: palette$5.linen,
1322
- warning: palette$5.mellowApricot,
1323
- warningLight: palette$5.mellowApricot,
1324
- warningDark: palette$5.deepSaffron,
1325
- warningBackground: palette$5.seashell,
1326
- platformBackground: palette$5.white,
1327
- backgroundLight: palette$5.greyLight90,
1328
- backgroundDark: palette$5.maasstrichtBlue,
1329
- text: palette$5.maasstrichtBlue,
1330
- subduedText: palette$5.maasstrichtBlueLight30,
1331
- disabledText: palette$5.maasstrichtBlueLight50,
1332
- disabledLightText: palette$5.greyLight30,
1333
- invertedText: palette$5.white,
1334
- outline: palette$5.greyLight75,
1335
- archived: palette$5.greyLight45,
1336
- archivedLight: palette$5.greyLight30,
1337
- archivedDark: palette$5.sonicSilver,
1338
- archivedBackground: palette$5.greyLight90,
1339
- black: palette$5.black,
1340
- inactiveBackground: palette$5.maasstrichtBlueLight50,
1341
- shadow: palette$5.greyLight45,
1342
- __alpha__globalPrimary: palette$5.maasstrichtBlue,
1343
- __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1344
- __alpha__globalSecondary4: palette$5.maasstrichtBlueLight90,
1345
- __alpha__globalNeutral3: palette$5.greyLight90,
1346
- __alpha__globalLabel1: palette$5.vermilion,
1347
- __alpha__globalLabel2: palette$5.deepSaffron,
1348
- __alpha__globalLabel3: palette$5.pineGreen,
1349
- __alpha__globalLabel4: palette$5.ultramarineBlue,
1350
- __alpha__globalLabel5: palette$5.sonicSilver,
1351
- __alpha__globalLabel6: palette$5.linen,
1352
- __alpha__globalLabel7: palette$5.seashell,
1353
- __alpha__globalLabel8: palette$5.honeydew,
1354
- __alpha__globalLabel9: palette$5.aliceBlue,
1355
- __alpha__primary1: palette$2.scarletGum,
1356
- __alpha__primary2: palette$2.mauve,
1357
- __alpha__secondary1: palette$2.scarletGumLight30,
1358
- __alpha__secondary2: palette$2.scarletGumLight50,
1359
- __alpha__secondary3: palette$2.scarletGumLight80,
1360
- __alpha__secondary4: palette$2.scarletGumLight90
1361
- };
1342
+ info: palette$2.ultramarineBlue,
1343
+ infoMediumLight: palette$2.vodka,
1344
+ infoLight: palette$2.vodka,
1345
+ infoBackground: palette$2.aliceBlue,
1346
+ success: palette$2.emerald,
1347
+ successLight: palette$2.emerald,
1348
+ successDark: palette$2.pineGreen,
1349
+ successBackground: palette$2.honeydew,
1350
+ danger: palette$2.vermilion,
1351
+ dangerMediumLight: palette$2.apple,
1352
+ dangerLight: palette$2.pastelRed,
1353
+ dangerBackground: palette$2.linen,
1354
+ warning: palette$2.mellowApricot,
1355
+ warningLight: palette$2.mellowApricot,
1356
+ warningDark: palette$2.deepSaffron,
1357
+ warningBackground: palette$2.seashell,
1358
+ platformBackground: palette$2.white,
1359
+ backgroundLight: palette$2.greyLight90,
1360
+ backgroundDark: palette$2.maasstrichtBlue,
1361
+ text: palette$2.maasstrichtBlue,
1362
+ subduedText: palette$2.maasstrichtBlueLight30,
1363
+ disabledText: palette$2.maasstrichtBlueLight50,
1364
+ disabledLightText: palette$2.greyLight30,
1365
+ invertedText: palette$2.white,
1366
+ outline: palette$2.greyLight75,
1367
+ archived: palette$2.greyLight45,
1368
+ archivedLight: palette$2.greyLight30,
1369
+ archivedDark: palette$2.sonicSilver,
1370
+ archivedBackground: palette$2.greyLight90,
1371
+ black: palette$2.black,
1372
+ inactiveBackground: palette$2.maasstrichtBlueLight50,
1373
+ shadow: palette$2.greyLight45
1374
+ }, globalPalette), {}, {
1375
+ // Brand
1376
+ primary: palette$2.maasstrichtBlue,
1377
+ mutedPrimary: palette$2.maasstrichtBlueLight90,
1378
+ onPrimary: palette$2.white,
1379
+ secondary: palette$2.scarletGum,
1380
+ onSecondary: palette$2.white,
1381
+ mutedSecondary: palette$2.maasstrichtBlueLight50,
1382
+ disabledSecondary: palette$2.scarletGumLight50,
1383
+ highlightedSurface: palette$2.scarletGumLight80,
1384
+ highlightedSecondarySurface: palette$2.aliceBlue,
1385
+ lightHighlightedSurface: palette$2.scarletGumLight90
1386
+ });
1362
1387
 
1363
1388
  var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1364
1389
  primary: palette.gold,
1365
- primaryLight: palette.goldLight50,
1366
- primaryDark: palette.goldLight20,
1367
- primaryBackground: palette.goldLight90,
1368
- __alpha__secondary1: palette.goldLight20,
1369
- __alpha__secondary2: palette.goldLight50,
1370
- __alpha__secondary3: palette.goldLight70,
1371
- __alpha__secondary4: palette.goldLight90
1390
+ mutedPrimary: palette.goldLight90,
1391
+ onPrimary: palette.maasstrichtBlue,
1392
+ secondary: palette.violet,
1393
+ onSecondary: palette.white,
1394
+ mutedSecondary: palette.maasstrichtBlueLight50,
1395
+ disabledSecondary: palette.violetLight50,
1396
+ highlightedSurface: palette.violetLight80,
1397
+ lightHighlightedSurface: palette.violetLight90
1372
1398
  });
1373
1399
 
1374
1400
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1515,7 +1541,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
1515
1541
 
1516
1542
  var getAccordionTheme = function getAccordionTheme(theme) {
1517
1543
  var colors = {
1518
- background: theme.colors.platformBackground
1544
+ background: theme.colors.defaultGlobalSurface
1519
1545
  };
1520
1546
  var space = {
1521
1547
  padding: theme.space.medium
@@ -1534,10 +1560,10 @@ var getAlertTheme = function getAlertTheme(theme) {
1534
1560
  var colors = {
1535
1561
  success: theme.colors.success,
1536
1562
  warning: theme.colors.warning,
1537
- error: theme.colors.dangerLight,
1538
- info: theme.colors.infoLight,
1539
- notification: theme.colors.platformBackground,
1540
- divider: theme.colors.outline
1563
+ error: theme.colors.error,
1564
+ info: theme.colors.info,
1565
+ notification: theme.colors.defaultGlobalSurface,
1566
+ divider: theme.colors.globalSecondaryOutline
1541
1567
  };
1542
1568
  var sizes = {
1543
1569
  height: theme.sizes.xxxlarge
@@ -1565,9 +1591,9 @@ var getAlertTheme = function getAlertTheme(theme) {
1565
1591
 
1566
1592
  var getAvatarTheme = function getAvatarTheme(theme) {
1567
1593
  var colors = {
1568
- primary: theme.colors.primary,
1594
+ primary: theme.colors.globalPrimary,
1569
1595
  info: theme.colors.info,
1570
- danger: theme.colors.danger,
1596
+ danger: theme.colors.error,
1571
1597
  success: theme.colors.success,
1572
1598
  warning: theme.colors.warning
1573
1599
  };
@@ -1608,12 +1634,12 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1608
1634
 
1609
1635
  var getBadgeTheme = function getBadgeTheme(theme) {
1610
1636
  var colors = {
1611
- danger: theme.colors.danger,
1612
- info: theme.colors.info,
1613
- success: theme.colors.successDark,
1614
- warning: theme.colors.warningDark,
1615
- archived: theme.colors.archivedDark,
1616
- text: theme.colors.invertedText
1637
+ danger: theme.colors.onErrorSurface,
1638
+ info: theme.colors.onInfoSurface,
1639
+ success: theme.colors.onSuccessSurface,
1640
+ warning: theme.colors.onWarningSurface,
1641
+ archived: theme.colors.onArchivedSurface,
1642
+ text: theme.colors.onGlobalPrimary
1617
1643
  };
1618
1644
  var fonts = {
1619
1645
  "default": theme.fonts.semiBold
@@ -1643,8 +1669,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1643
1669
 
1644
1670
  var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
1645
1671
  var colors = {
1646
- shadow: theme.colors.backgroundDark,
1647
- background: theme.colors.platformBackground
1672
+ shadow: theme.colors.globalPrimary,
1673
+ background: theme.colors.defaultGlobalSurface
1648
1674
  };
1649
1675
  var sizes = {
1650
1676
  height: theme.sizes['6xlarge']
@@ -1671,9 +1697,9 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
1671
1697
 
1672
1698
  var getBottomSheetTheme = function getBottomSheetTheme(theme) {
1673
1699
  var colors = {
1674
- shadow: theme.colors.backgroundDark,
1675
- background: theme.colors.platformBackground,
1676
- backdrop: theme.colors.backgroundDark
1700
+ shadow: theme.colors.globalPrimary,
1701
+ background: theme.colors.defaultGlobalSurface,
1702
+ backdrop: theme.colors.globalPrimary
1677
1703
  };
1678
1704
  var sizes = {
1679
1705
  sectionHeight: theme.sizes.xxxxxlarge,
@@ -1737,28 +1763,28 @@ var getButtonTheme = function getButtonTheme(theme) {
1737
1763
  };
1738
1764
  var colors = {
1739
1765
  primary: theme.colors.globalPrimary,
1740
- pressedPrimary: theme.colors.globalPrimaryLight,
1766
+ pressedPrimary: theme.colors.globalSecondary,
1741
1767
  secondary: theme.colors.secondary,
1742
- pressedSecondary: theme.colors.secondaryLight,
1743
- danger: theme.colors.danger,
1744
- pressedDanger: theme.colors.dangerLight,
1745
- defaultText: theme.colors.text,
1746
- disabledText: theme.colors.disabledLightText,
1747
- disabledBorder: theme.colors.disabledLightText,
1748
- disabledBackground: theme.colors.disabledLightText,
1749
- invertedText: theme.colors.invertedText,
1750
- utilityBackground: theme.colors.backgroundLight,
1768
+ pressedSecondary: theme.colors.secondary,
1769
+ danger: theme.colors.onErrorSurface,
1770
+ pressedDanger: theme.colors.onErrorSurface,
1771
+ defaultText: theme.colors.onGlobalPrimary,
1772
+ disabledText: theme.colors.disabledOnDefaultGlobalSurface,
1773
+ disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
1774
+ disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
1775
+ invertedText: theme.colors.onGlobalPrimary,
1776
+ utilityBackground: theme.colors.neutralGlobalSurface,
1751
1777
  underlayColors: {
1752
- 'filled-primary': theme.colors.globalPrimaryLight,
1753
- 'filled-secondary': theme.colors.secondaryLight,
1754
- 'filled-danger': theme.colors.dangerLight,
1755
- 'outlined-primary': theme.colors.globalPrimaryBackground,
1756
- 'outlined-secondary': theme.colors.secondaryBackground,
1757
- 'outlined-danger': theme.colors.dangerBackground,
1758
- 'text-primary': theme.colors.globalPrimaryBackground,
1759
- 'text-secondary': theme.colors.secondaryBackground,
1760
- 'text-danger': theme.colors.dangerBackground,
1761
- 'basic-transparent': theme.colors.globalPrimaryLight
1778
+ 'filled-primary': theme.colors.mutedGlobalPrimary,
1779
+ 'filled-secondary': theme.colors.mutedSecondary,
1780
+ 'filled-danger': theme.colors.error,
1781
+ 'outlined-primary': theme.colors.neutralGlobalSurface,
1782
+ 'outlined-secondary': theme.colors.highlightedSecondarySurface,
1783
+ 'outlined-danger': theme.colors.errorSurface,
1784
+ 'text-primary': theme.colors.neutralGlobalSurface,
1785
+ 'text-secondary': theme.colors.highlightedSecondarySurface,
1786
+ 'text-danger': theme.colors.errorSurface,
1787
+ 'basic-transparent': theme.colors.mutedGlobalPrimary
1762
1788
  }
1763
1789
  };
1764
1790
  return {
@@ -1775,10 +1801,10 @@ var getButtonTheme = function getButtonTheme(theme) {
1775
1801
 
1776
1802
  var getCalendarTheme = function getCalendarTheme(theme) {
1777
1803
  var colors = {
1778
- background: theme.colors.backgroundLight,
1779
- border: theme.colors.text,
1780
- primary: theme.colors.primary,
1781
- inverted: theme.colors.invertedText
1804
+ background: theme.colors.defaultGlobalSurface,
1805
+ border: theme.colors.globalPrimaryOutline,
1806
+ primary: theme.colors.globalPrimary,
1807
+ inverted: theme.colors.onGlobalPrimary
1782
1808
  };
1783
1809
  var cellSize = theme.sizes.xxxlarge;
1784
1810
  var markSize = theme.sizes.xsmall;
@@ -1808,13 +1834,13 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1808
1834
 
1809
1835
  var getCardTheme = function getCardTheme(theme) {
1810
1836
  var colors = {
1811
- dataCardIndicator: theme.colors.primary,
1812
- primary: theme.colors.__alpha__primary2,
1813
- info: theme.colors.infoLight,
1837
+ dataCardIndicator: theme.colors.globalPrimary,
1838
+ primary: theme.colors.primary,
1839
+ info: theme.colors.info,
1814
1840
  success: theme.colors.success,
1815
1841
  warning: theme.colors.warning,
1816
- danger: theme.colors.dangerMediumLight,
1817
- archived: theme.colors.archivedLight
1842
+ danger: theme.colors.error,
1843
+ archived: theme.colors.archived
1818
1844
  };
1819
1845
  var sizes = {
1820
1846
  indicatorWidth: theme.sizes.medium
@@ -1832,7 +1858,7 @@ var getCardTheme = function getCardTheme(theme) {
1832
1858
  var getCheckboxTheme = function getCheckboxTheme(theme) {
1833
1859
  var colors = {
1834
1860
  "default": theme.colors.globalPrimary,
1835
- disabledBorder: theme.colors.globalPrimaryLight
1861
+ disabledBorder: theme.colors.mutedGlobalPrimary
1836
1862
  };
1837
1863
  var space = {
1838
1864
  iconTop: 0,
@@ -1879,7 +1905,7 @@ var getDatePickerTheme = function getDatePickerTheme(theme) {
1879
1905
 
1880
1906
  var getDividerTheme = function getDividerTheme(theme) {
1881
1907
  var colors = {
1882
- "default": theme.colors.outline
1908
+ "default": theme.colors.globalSecondaryOutline
1883
1909
  };
1884
1910
  var space = {
1885
1911
  xsmall: theme.space.xsmall,
@@ -1900,10 +1926,10 @@ var getDividerTheme = function getDividerTheme(theme) {
1900
1926
 
1901
1927
  var getDrawerTheme = function getDrawerTheme(theme) {
1902
1928
  var colors = {
1903
- shadow: theme.colors.backgroundDark,
1904
- background: theme.colors.platformBackground,
1905
- backdrop: theme.colors.backgroundDark,
1906
- handler: theme.colors.backgroundDark
1929
+ shadow: theme.colors.globalPrimary,
1930
+ background: theme.colors.defaultGlobalSurface,
1931
+ backdrop: theme.colors.defaultGlobalSurface,
1932
+ handler: theme.colors.globalPrimary
1907
1933
  };
1908
1934
  var radii = {
1909
1935
  "default": theme.radii.xlarge,
@@ -1944,10 +1970,9 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1944
1970
  image: theme.sizes['18xlarge']
1945
1971
  };
1946
1972
  var colors = {
1947
- text: theme.colors.text,
1948
- invertedText: theme.colors.invertedText,
1949
- subduedText: theme.colors.subduedText,
1950
- illustrationBackground: theme.colors.shadow
1973
+ text: theme.colors.globalPrimary,
1974
+ invertedText: theme.colors.onGlobalPrimary,
1975
+ subduedText: theme.colors.globalSecondary
1951
1976
  };
1952
1977
  var fontSizes = {
1953
1978
  title: theme.fontSizes.xxxxlarge,
@@ -1968,13 +1993,13 @@ var getEmptyTheme = function getEmptyTheme(theme) {
1968
1993
 
1969
1994
  var getFABTheme = function getFABTheme(theme) {
1970
1995
  var colors = {
1971
- buttonBackground: theme.colors.backgroundDark,
1972
- icon: theme.colors.invertedText,
1973
- headerText: theme.colors.invertedText,
1974
- actionItemBackground: theme.colors.primaryBackgroundDark,
1975
- backdropBackground: theme.colors.backgroundDark,
1976
- titleText: theme.colors.invertedText,
1977
- actionItemText: theme.colors.invertedText
1996
+ buttonBackground: theme.colors.globalPrimary,
1997
+ icon: theme.colors.onGlobalPrimary,
1998
+ headerText: theme.colors.onGlobalPrimary,
1999
+ actionItemBackground: theme.colors.globalPrimary,
2000
+ backdropBackground: theme.colors.globalPrimary,
2001
+ titleText: theme.colors.onGlobalPrimary,
2002
+ actionItemText: theme.colors.onGlobalPrimary
1978
2003
  };
1979
2004
  var sizes = {
1980
2005
  width: theme.sizes.xxxxxlarge,
@@ -2028,14 +2053,15 @@ var getFABTheme = function getFABTheme(theme) {
2028
2053
 
2029
2054
  var getIconTheme = function getIconTheme(theme) {
2030
2055
  var colors = {
2031
- text: theme.colors.text,
2056
+ text: theme.colors.globalPrimary,
2032
2057
  primary: theme.colors.primary,
2058
+ secondary: theme.colors.secondary,
2033
2059
  info: theme.colors.info,
2034
2060
  danger: theme.colors.danger,
2035
2061
  success: theme.colors.success,
2036
2062
  warning: theme.colors.warning,
2037
- disabledText: theme.colors.disabledText,
2038
- invertedText: theme.colors.invertedText
2063
+ disabledText: theme.colors.mutedGlobalPrimary,
2064
+ invertedText: theme.colors.defaultGlobalSurface
2039
2065
  };
2040
2066
  var sizes = {
2041
2067
  xsmall: theme.fontSizes.large,
@@ -2062,15 +2088,15 @@ var getImageTheme = function getImageTheme(theme) {
2062
2088
 
2063
2089
  var getListTheme = function getListTheme(theme) {
2064
2090
  var colors = {
2065
- checkedListItemContainerBackground: theme.colors.primaryBackground,
2066
- highlightedListItemContainerBackground: theme.colors.primaryBackground,
2067
- listItemContainerBackground: theme.colors.platformBackground,
2091
+ checkedListItemContainerBackground: theme.colors.highlightedSurface,
2092
+ highlightedListItemContainerBackground: theme.colors.lightHighlightedSurface,
2093
+ listItemContainerBackground: theme.colors.defaultGlobalSurface,
2068
2094
  leadingStatus: {
2069
- danger: theme.colors.dangerMediumLight,
2070
- info: theme.colors.infoLight,
2095
+ danger: theme.colors.error,
2096
+ info: theme.colors.info,
2071
2097
  success: theme.colors.success,
2072
2098
  warning: theme.colors.warning,
2073
- archived: theme.colors.archivedLight
2099
+ archived: theme.colors.archived
2074
2100
  }
2075
2101
  };
2076
2102
  var space = {
@@ -2081,6 +2107,7 @@ var getListTheme = function getListTheme(theme) {
2081
2107
  };
2082
2108
  var radii = {
2083
2109
  card: theme.radii.medium,
2110
+ basicItem: theme.radii.base,
2084
2111
  cardShadow: theme.radii.base,
2085
2112
  leadingStatus: theme.radii.rounded
2086
2113
  };
@@ -2115,10 +2142,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2115
2142
  focused: theme.borderWidths.medium
2116
2143
  };
2117
2144
  var colors = {
2118
- "default": theme.colors.text,
2119
- mask: theme.colors.subduedText,
2120
- error: theme.colors.danger,
2121
- disabled: theme.colors.archivedLight
2145
+ "default": theme.colors.globalPrimary,
2146
+ mask: theme.colors.mutedGlobalPrimary,
2147
+ error: theme.colors.error,
2148
+ disabled: theme.colors.mutedGlobalPrimary
2122
2149
  };
2123
2150
  var fonts = {
2124
2151
  cellText: theme.fonts.semiBold,
@@ -2156,11 +2183,11 @@ var getProgressTheme = function getProgressTheme(theme) {
2156
2183
  var colors = {
2157
2184
  primary: theme.colors.primary,
2158
2185
  success: theme.colors.success,
2159
- warning: theme.colors.warningDark,
2186
+ warning: theme.colors.warning,
2160
2187
  danger: theme.colors.danger,
2161
2188
  info: theme.colors.info,
2162
- background: theme.colors.outline,
2163
- innerBackground: theme.colors.platformBackground
2189
+ background: theme.colors.globalSecondaryOutline,
2190
+ innerBackground: theme.colors.defaultGlobalSurface
2164
2191
  };
2165
2192
  var sizes = {
2166
2193
  circleWidth: theme.sizes['6xlarge'],
@@ -2205,9 +2232,9 @@ var getRadioTheme = function getRadioTheme(theme) {
2205
2232
 
2206
2233
  var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2207
2234
  var colors = {
2208
- toolbarBorderColor: theme.colors.outline,
2209
- toolbarBackgroundColor: theme.colors.backgroundLight,
2210
- toolbarButtonSelectedBackground: theme.colors.outline
2235
+ toolbarBorderColor: theme.colors.globalSecondaryOutline,
2236
+ toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
2237
+ toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface
2211
2238
  };
2212
2239
  var borderWidths = {
2213
2240
  webViewBorderBottomWidth: 0.8
@@ -2237,7 +2264,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2237
2264
 
2238
2265
  var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2239
2266
  var colors = {
2240
- background: theme.colors.__alpha__globalNeutral3
2267
+ background: theme.colors.neutralGlobalSurface
2241
2268
  };
2242
2269
  var space = {
2243
2270
  headingVerticalPadding: theme.space.small,
@@ -2253,7 +2280,7 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2253
2280
 
2254
2281
  var getSelectTheme = function getSelectTheme(theme) {
2255
2282
  var colors = {
2256
- footerText: theme.colors.primary
2283
+ footerText: theme.colors.secondary
2257
2284
  };
2258
2285
  var space = {
2259
2286
  minimumOptionListHeight: theme.space.xxxxlarge * 5,
@@ -2276,9 +2303,9 @@ var getSelectTheme = function getSelectTheme(theme) {
2276
2303
 
2277
2304
  var getSliderTheme = function getSliderTheme(theme) {
2278
2305
  var colors = {
2279
- minimumTrackTint: theme.colors.__alpha__primary1,
2280
- thumbTint: theme.colors.__alpha__globalSecondary4,
2281
- maximumTrackTint: theme.colors.__alpha__secondary4
2306
+ minimumTrackTint: theme.colors.secondary,
2307
+ thumbTint: theme.colors.neutralGlobalSurface,
2308
+ maximumTrackTint: theme.colors.lightHighlightedSurface
2282
2309
  };
2283
2310
  return {
2284
2311
  colors: colors
@@ -2287,10 +2314,7 @@ var getSliderTheme = function getSliderTheme(theme) {
2287
2314
 
2288
2315
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2289
2316
  var colors = {
2290
- dot1: theme.colors.__alpha__secondary1,
2291
- dot2: theme.colors.__alpha__secondary2,
2292
- dot3: theme.colors.__alpha__secondary3,
2293
- dot4: theme.colors.__alpha__secondary4
2317
+ dot: theme.colors.primary
2294
2318
  };
2295
2319
  var space = {
2296
2320
  spinnerDot: {
@@ -2319,15 +2343,15 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
2319
2343
  var getSwitchTheme = function getSwitchTheme(theme) {
2320
2344
  var colors = {
2321
2345
  backgroundColors: {
2322
- checked: theme.colors.primary,
2323
- unchecked: theme.colors.globalPrimaryLight,
2324
- 'disabled-checked': theme.colors.primaryLight,
2325
- 'disabled-unchecked': theme.colors.archived
2346
+ checked: theme.colors.secondary,
2347
+ unchecked: theme.colors.mutedSecondary,
2348
+ 'disabled-checked': theme.colors.disabledSecondary,
2349
+ 'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface
2326
2350
  },
2327
- thumb: theme.colors.platformBackground,
2351
+ thumb: theme.colors.onSecondary,
2328
2352
  selector: {
2329
- background: theme.colors.__alpha__globalNeutral3,
2330
- textBackground: theme.colors.__alpha__primary1
2353
+ background: theme.colors.neutralGlobalSurface,
2354
+ textBackground: theme.colors.secondary
2331
2355
  }
2332
2356
  };
2333
2357
  var sizes = {
@@ -2371,11 +2395,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2371
2395
 
2372
2396
  var getTabsTheme = function getTabsTheme(theme) {
2373
2397
  var colors = {
2374
- active: theme.colors.text,
2375
- inactive: theme.colors.text,
2376
- activeBackground: theme.colors.__alpha__secondary4,
2377
- headerBottom: theme.colors.outline,
2378
- text: theme.colors.text
2398
+ active: theme.colors.globalPrimary,
2399
+ inactive: theme.colors.globalPrimary,
2400
+ activeBackground: theme.colors.mutedPrimary,
2401
+ headerBottom: theme.colors.globalSecondaryOutline,
2402
+ text: theme.colors.globalPrimary
2379
2403
  };
2380
2404
  var space = {
2381
2405
  flatListHorizontalPadding: theme.space.small,
@@ -2408,20 +2432,20 @@ var getTagTheme = function getTagTheme(theme) {
2408
2432
  "default": theme.borderWidths.base
2409
2433
  };
2410
2434
  var colors = {
2411
- "default": theme.colors.__alpha__globalPrimary,
2435
+ "default": theme.colors.globalPrimary,
2412
2436
  defaultBackground: undefined,
2413
- primary: theme.colors.__alpha__globalPrimary,
2437
+ primary: theme.colors.globalPrimary,
2414
2438
  primaryBackground: undefined,
2415
- info: theme.colors.__alpha__globalLabel4,
2416
- infoBackground: theme.colors.__alpha__globalLabel9,
2417
- success: theme.colors.__alpha__globalLabel3,
2418
- successBackground: theme.colors.__alpha__globalLabel8,
2419
- warning: theme.colors.__alpha__globalLabel2,
2420
- warningBackground: theme.colors.__alpha__globalLabel7,
2421
- danger: theme.colors.__alpha__globalLabel1,
2422
- dangerBackground: theme.colors.__alpha__globalLabel6,
2423
- archived: theme.colors.__alpha__globalLabel5,
2424
- archivedBackground: theme.colors.__alpha__globalNeutral3
2439
+ info: theme.colors.onInfoSurface,
2440
+ infoBackground: theme.colors.infoSurface,
2441
+ success: theme.colors.onSuccessSurface,
2442
+ successBackground: theme.colors.successSurface,
2443
+ warning: theme.colors.onWarningSurface,
2444
+ warningBackground: theme.colors.warningSurface,
2445
+ danger: theme.colors.onErrorSurface,
2446
+ dangerBackground: theme.colors.errorSurface,
2447
+ archived: theme.colors.onArchivedSurface,
2448
+ archivedBackground: theme.colors.archivedSurface
2425
2449
  };
2426
2450
  var fonts = {
2427
2451
  "default": theme.fonts.semiBold
@@ -2448,53 +2472,53 @@ var getTagTheme = function getTagTheme(theme) {
2448
2472
 
2449
2473
  var getTextInputTheme = function getTextInputTheme(theme) {
2450
2474
  var colors = {
2451
- labelBackground: theme.colors.platformBackground,
2475
+ labelBackground: theme.colors.defaultGlobalSurface,
2452
2476
  asterisks: {
2453
- "default": theme.colors.danger,
2454
- error: theme.colors.danger,
2455
- disabled: theme.colors.disabledLightText,
2456
- readonly: theme.colors.disabledText,
2457
- filled: theme.colors.danger,
2458
- focused: theme.colors.danger
2477
+ "default": theme.colors.error,
2478
+ error: theme.colors.error,
2479
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2480
+ readonly: theme.colors.mutedSecondary,
2481
+ filled: theme.colors.error,
2482
+ focused: theme.colors.error
2459
2483
  },
2460
- error: theme.colors.danger,
2461
- placeholderIfNotFocused: theme.colors.text,
2462
- placeholderIfFocued: theme.colors.disabledText,
2463
- label: theme.colors.text,
2464
- readonlyLabel: theme.colors.disabledText,
2465
- disabledLabel: theme.colors.disabledLightText,
2466
- text: theme.colors.text,
2484
+ error: theme.colors.error,
2485
+ placeholderIfNotFocused: theme.colors.globalPrimary,
2486
+ placeholderIfFocued: theme.colors.mutedSecondary,
2487
+ label: theme.colors.globalPrimary,
2488
+ readonlyLabel: theme.colors.mutedSecondary,
2489
+ disabledLabel: theme.colors.disabledOnDefaultGlobalSurface,
2490
+ text: theme.colors.globalPrimary,
2467
2491
  borders: {
2468
- "default": theme.colors.text,
2469
- error: theme.colors.danger,
2470
- disabled: theme.colors.disabledLightText,
2471
- readonly: theme.colors.disabledText,
2472
- filled: theme.colors.text,
2473
- focused: theme.colors.text
2492
+ "default": theme.colors.globalPrimary,
2493
+ error: theme.colors.error,
2494
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2495
+ readonly: theme.colors.mutedSecondary,
2496
+ filled: theme.colors.globalPrimary,
2497
+ focused: theme.colors.globalPrimary
2474
2498
  },
2475
2499
  labels: {
2476
- "default": theme.colors.text,
2477
- error: theme.colors.text,
2478
- disabled: theme.colors.disabledLightText,
2479
- readonly: theme.colors.disabledText,
2480
- filled: theme.colors.text,
2481
- focused: theme.colors.text
2500
+ "default": theme.colors.globalPrimary,
2501
+ error: theme.colors.globalPrimary,
2502
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2503
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2504
+ filled: theme.colors.globalPrimary,
2505
+ focused: theme.colors.globalPrimary
2482
2506
  },
2483
2507
  labelsInsideTextInput: {
2484
- "default": theme.colors.text,
2485
- error: theme.colors.text,
2486
- disabled: theme.colors.disabledLightText,
2487
- readonly: theme.colors.disabledText,
2488
- filled: theme.colors.text,
2489
- focused: theme.colors.text
2508
+ "default": theme.colors.globalPrimary,
2509
+ error: theme.colors.globalPrimary,
2510
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2511
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2512
+ filled: theme.colors.globalPrimary,
2513
+ focused: theme.colors.globalPrimary
2490
2514
  },
2491
2515
  maxLengthLabels: {
2492
- "default": theme.colors.text,
2493
- error: theme.colors.danger,
2494
- disabled: theme.colors.disabledLightText,
2495
- readonly: theme.colors.disabledText,
2496
- filled: theme.colors.text,
2497
- focused: theme.colors.text
2516
+ "default": theme.colors.globalPrimary,
2517
+ error: theme.colors.error,
2518
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
2519
+ readonly: theme.colors.disabledOnDefaultGlobalSurface,
2520
+ filled: theme.colors.globalPrimary,
2521
+ focused: theme.colors.globalPrimary
2498
2522
  }
2499
2523
  };
2500
2524
  var space = {
@@ -2548,12 +2572,12 @@ var getToastTheme = function getToastTheme(theme) {
2548
2572
  var colors = {
2549
2573
  success: theme.colors.success,
2550
2574
  warning: theme.colors.warning,
2551
- error: theme.colors.dangerLight,
2552
- info: theme.colors.infoLight,
2553
- notification: theme.colors.platformBackground,
2554
- snackbar: theme.colors.backgroundDark,
2555
- divider: theme.colors.outline,
2556
- shadow: theme.colors.backgroundDark
2575
+ error: theme.colors.error,
2576
+ info: theme.colors.info,
2577
+ notification: theme.colors.defaultGlobalSurface,
2578
+ snackbar: theme.colors.globalPrimary,
2579
+ divider: theme.colors.globalSecondaryOutline,
2580
+ shadow: theme.colors.globalPrimary
2557
2581
  };
2558
2582
  var sizes = {
2559
2583
  height: theme.sizes.xxxlarge
@@ -2593,9 +2617,10 @@ var getToastTheme = function getToastTheme(theme) {
2593
2617
 
2594
2618
  var getToolbarTheme = function getToolbarTheme(theme) {
2595
2619
  var colors = {
2596
- background: theme.colors.platformBackground,
2597
- border: theme.colors.outline,
2620
+ background: theme.colors.defaultGlobalSurface,
2621
+ border: theme.colors.globalSecondaryOutline,
2598
2622
  primary: theme.colors.primary,
2623
+ secondary: theme.colors.secondary,
2599
2624
  info: theme.colors.info,
2600
2625
  success: theme.colors.success,
2601
2626
  danger: theme.colors.warning,
@@ -2618,14 +2643,15 @@ var getToolbarTheme = function getToolbarTheme(theme) {
2618
2643
 
2619
2644
  var getTypographyTheme = function getTypographyTheme(theme) {
2620
2645
  var colors = {
2621
- body: theme.colors.text,
2622
- subdued: theme.colors.disabledText,
2646
+ body: theme.colors.globalPrimary,
2647
+ subdued: theme.colors.mutedGlobalPrimary,
2623
2648
  primary: theme.colors.primary,
2649
+ secondary: theme.colors.secondary,
2624
2650
  info: theme.colors.info,
2625
2651
  danger: theme.colors.danger,
2626
2652
  warning: theme.colors.warning,
2627
2653
  success: theme.colors.success,
2628
- inverted: theme.colors.invertedText
2654
+ inverted: theme.colors.onGlobalPrimary
2629
2655
  };
2630
2656
  var fonts = {
2631
2657
  light: theme.fonts.light,
@@ -14601,6 +14627,7 @@ var HeroIcon = reactNativeVectorIcons.createIconSetFromIcoMoon(heroIconConfig, '
14601
14627
  var COLOR_INTENTS = {
14602
14628
  text: 'text',
14603
14629
  primary: 'primary',
14630
+ secondary: 'secondary',
14604
14631
  info: 'info',
14605
14632
  danger: 'danger',
14606
14633
  success: 'success',
@@ -14696,7 +14723,7 @@ var AccordionItem = function AccordionItem(_ref) {
14696
14723
  fontWeight: "semi-bold"
14697
14724
  }, header) : header, /*#__PURE__*/React__default["default"].createElement(Icon, {
14698
14725
  icon: open ? 'arrow-up' : 'arrow-down',
14699
- intent: "primary",
14726
+ intent: "secondary",
14700
14727
  size: "small"
14701
14728
  })), /*#__PURE__*/React__default["default"].createElement(StyledCollapse, {
14702
14729
  open: open
@@ -19136,10 +19163,16 @@ var Checkbox = function Checkbox(_ref) {
19136
19163
  };
19137
19164
 
19138
19165
  var StyledContainer$3 = index$8(reactNative.View)(function (_ref) {
19139
- var theme = _ref.theme;
19166
+ var _theme$__hd__$textInp;
19167
+
19168
+ var theme = _ref.theme,
19169
+ themeVariant = _ref.themeVariant;
19140
19170
  return {
19141
19171
  width: '100%',
19142
- marginVertical: theme.__hd__.textInput.space.containerMarginVertical
19172
+ marginVertical: theme.__hd__.textInput.space.containerMarginVertical,
19173
+ borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
19174
+ borderRadius: theme.__hd__.textInput.radii.container,
19175
+ borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
19143
19176
  };
19144
19177
  });
19145
19178
  var StyledLabelContainer = index$8(reactNative.View)(function (_ref2) {
@@ -19241,19 +19274,8 @@ var StyledTextInput = index$8(reactNative.TextInput)(function (_ref11) {
19241
19274
  marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
19242
19275
  };
19243
19276
  });
19244
- var StyledBorderBackDrop = index$8(reactNative.View)(function (_ref12) {
19245
- var _theme$__hd__$textInp;
19246
-
19247
- var theme = _ref12.theme,
19248
- themeVariant = _ref12.themeVariant;
19249
- return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
19250
- borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
19251
- borderRadius: theme.__hd__.textInput.radii.container,
19252
- borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
19253
- });
19254
- });
19255
- var StyledTextInputContainer = index$8(reactNative.View)(function (_ref13) {
19256
- var theme = _ref13.theme;
19277
+ var StyledTextInputContainer = index$8(reactNative.View)(function (_ref12) {
19278
+ var theme = _ref12.theme;
19257
19279
  return {
19258
19280
  flexDirection: 'row',
19259
19281
  alignItems: 'center',
@@ -19269,8 +19291,8 @@ var StyledTextInputAndLabelContainer = index$8(reactNative.View)(function () {
19269
19291
  flexShrink: 1
19270
19292
  };
19271
19293
  });
19272
- var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (_ref14) {
19273
- var theme = _ref14.theme;
19294
+ var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (_ref13) {
19295
+ var theme = _ref13.theme;
19274
19296
  return {
19275
19297
  paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
19276
19298
  };
@@ -19292,26 +19314,26 @@ var getVariant$1 = function getVariant(_ref) {
19292
19314
  isEmptyValue = _ref.isEmptyValue;
19293
19315
 
19294
19316
  if (disabled) {
19295
- return "disabled";
19317
+ return 'disabled';
19296
19318
  }
19297
19319
 
19298
19320
  if (error) {
19299
- return "error";
19321
+ return 'error';
19300
19322
  }
19301
19323
 
19302
19324
  if (!editable || loading) {
19303
- return "readonly";
19325
+ return 'readonly';
19304
19326
  }
19305
19327
 
19306
19328
  if (isFocused) {
19307
- return "focused";
19329
+ return 'focused';
19308
19330
  }
19309
19331
 
19310
19332
  if (!isEmptyValue) {
19311
- return "filled";
19333
+ return 'filled';
19312
19334
  }
19313
19335
 
19314
- return "default";
19336
+ return 'default';
19315
19337
  };
19316
19338
 
19317
19339
  var TextInput = function TextInput(_ref2) {
@@ -19339,9 +19361,9 @@ var TextInput = function TextInput(_ref2) {
19339
19361
  renderInputValue = _ref2.renderInputValue,
19340
19362
  nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
19341
19363
 
19342
- var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "";
19364
+ var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
19343
19365
  var isEmptyValue = displayText.length === 0;
19344
- var actualSuffix = loading ? "loading" : suffix;
19366
+ var actualSuffix = loading ? 'loading' : suffix;
19345
19367
 
19346
19368
  var _React$useState = React__default["default"].useState(false),
19347
19369
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -19363,9 +19385,9 @@ var TextInput = function TextInput(_ref2) {
19363
19385
  style: reactNative.StyleSheet.flatten([{
19364
19386
  color: theme.__hd__.textInput.colors.text
19365
19387
  }, textStyle]),
19366
- testID: "text-input",
19388
+ testID: 'text-input',
19367
19389
  accessibilityState: {
19368
- disabled: variant === "disabled" || variant === "readonly"
19390
+ disabled: variant === 'disabled' || variant === 'readonly'
19369
19391
  },
19370
19392
  // @ts-ignore
19371
19393
  accessibilityLabelledBy: accessibilityLabelledBy
@@ -19391,16 +19413,15 @@ var TextInput = function TextInput(_ref2) {
19391
19413
  (_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
19392
19414
  },
19393
19415
  defaultValue: defaultValue,
19394
- placeholder: variant === "focused" ? nativeProps.placeholder : undefined
19416
+ placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
19395
19417
  });
19396
19418
 
19397
19419
  return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
19398
- pointerEvents: variant === "disabled" || variant === "readonly" ? "none" : "auto",
19399
- testID: testID
19400
- }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
19401
- themeVariant: variant,
19402
- style: style
19403
- }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
19420
+ pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
19421
+ testID: testID,
19422
+ style: style,
19423
+ themeVariant: variant
19424
+ }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
19404
19425
  pointerEvents: "none"
19405
19426
  }, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
19406
19427
  themeVariant: variant,
@@ -19410,8 +19431,8 @@ var TextInput = function TextInput(_ref2) {
19410
19431
  testID: "input-label",
19411
19432
  fontSize: "small",
19412
19433
  themeVariant: variant
19413
- }, label)), typeof prefix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19414
- intent: variant === "disabled" ? "disabled-text" : "text",
19434
+ }, label)), typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19435
+ intent: variant === 'disabled' ? 'disabled-text' : 'text',
19415
19436
  testID: "input-prefix",
19416
19437
  icon: prefix,
19417
19438
  size: "xsmall"
@@ -19424,11 +19445,11 @@ var TextInput = function TextInput(_ref2) {
19424
19445
  testID: "input-label",
19425
19446
  fontSize: "medium",
19426
19447
  themeVariant: variant
19427
- }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19428
- intent: variant === "disabled" ? "disabled-text" : "text",
19448
+ }, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19449
+ intent: variant === 'disabled' ? 'disabled-text' : 'text',
19429
19450
  testID: "input-suffix",
19430
19451
  icon: actualSuffix,
19431
- spin: actualSuffix === "loading",
19452
+ spin: actualSuffix === 'loading',
19432
19453
  size: "xsmall"
19433
19454
  }) : suffix), /*#__PURE__*/React__default["default"].createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React__default["default"].createElement(StyledErrorContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
19434
19455
  testID: "input-error-icon",
@@ -20416,7 +20437,8 @@ var StyledListItemContainer = index$8(reactNative.TouchableHighlight)(function (
20416
20437
  flexDirection: 'row',
20417
20438
  backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
20418
20439
  padding: theme.__hd__.list.space.listItemContainerPadding,
20419
- opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
20440
+ opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
20441
+ borderRadius: theme.__hd__.list.radii.basicItem
20420
20442
  };
20421
20443
  });
20422
20444
 
@@ -21002,24 +21024,28 @@ var StyledSpinnerDot = index$8(reactNative.View)(function (_ref2) {
21002
21024
  switch (themePosition) {
21003
21025
  case 'topLeft':
21004
21026
  return {
21005
- backgroundColor: theme.__hd__.spinner.colors.dot1
21027
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21028
+ opacity: 1
21006
21029
  };
21007
21030
 
21008
21031
  case 'topRight':
21009
21032
  return {
21010
21033
  marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
21011
- backgroundColor: theme.__hd__.spinner.colors.dot2
21034
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21035
+ opacity: 0.75
21012
21036
  };
21013
21037
 
21014
21038
  case 'bottomLeft':
21015
21039
  return {
21016
- backgroundColor: theme.__hd__.spinner.colors.dot3
21040
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21041
+ opacity: 0.5
21017
21042
  };
21018
21043
 
21019
21044
  case 'bottomRight':
21020
21045
  return {
21021
21046
  marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
21022
- backgroundColor: theme.__hd__.spinner.colors.dot4
21047
+ backgroundColor: theme.__hd__.spinner.colors.dot,
21048
+ opacity: 0.25
21023
21049
  };
21024
21050
  }
21025
21051
  };
@@ -22200,9 +22226,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
22200
22226
  testID: componentTestID
22201
22227
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
22202
22228
  themeInsets: insets,
22203
- style: barStyle,
22204
- testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
22229
+ style: barStyle
22205
22230
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
22231
+ testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
22206
22232
  ref: flatListRef,
22207
22233
  horizontal: true,
22208
22234
  data: tabs,
@@ -22909,7 +22935,7 @@ var ToastProvider = function ToastProvider(_ref) {
22909
22935
  position = _ref$position === void 0 ? 'top' : _ref$position;
22910
22936
  var toastRef = React.useRef(null);
22911
22937
 
22912
- var _useState = React.useState({}),
22938
+ var _useState = React.useState(null),
22913
22939
  _useState2 = _slicedToArray(_useState, 2),
22914
22940
  refState = _useState2[0],
22915
22941
  setRefState = _useState2[1];
@@ -22931,7 +22957,7 @@ var ToastProvider = function ToastProvider(_ref) {
22931
22957
  style: {
22932
22958
  flex: 1
22933
22959
  }
22934
- }, children, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
22960
+ }, refState ? children : null, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
22935
22961
  value: config
22936
22962
  }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
22937
22963
  ref: toastRef,
@@ -41254,10 +41280,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
41254
41280
  }
41255
41281
  }, []);
41256
41282
  return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
41257
- testID: testID
41258
- }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
41283
+ testID: testID,
41259
41284
  themeVariant: variant
41260
- }), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
41285
+ }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
41261
41286
  pointerEvents: "none"
41262
41287
  }, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
41263
41288
  themeVariant: variant,