@hero-design/rn 7.19.0 → 7.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/.eslintrc.json +6 -1
  2. package/.turbo/turbo-build.log +2 -2
  3. package/es/index.js +572 -194
  4. package/lib/index.js +572 -193
  5. package/package.json +4 -4
  6. package/src/components/Alert/StyledAlert.tsx +5 -5
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
  8. package/src/components/Alert/__tests__/index.spec.tsx +21 -0
  9. package/src/components/Alert/index.tsx +13 -6
  10. package/src/components/Avatar/StyledAvatar.tsx +2 -1
  11. package/src/components/Avatar/index.tsx +2 -1
  12. package/src/components/Box/StyledBox.tsx +54 -0
  13. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
  14. package/src/components/Box/__tests__/helpers.spec.ts +14 -0
  15. package/src/components/Box/__tests__/index.spec.tsx +155 -0
  16. package/src/components/Box/config.ts +201 -0
  17. package/src/components/Box/helpers.ts +10 -0
  18. package/src/components/Box/index.tsx +13 -0
  19. package/src/components/Box/types.ts +38 -0
  20. package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
  21. package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
  22. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
  23. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
  24. package/src/components/Card/DataCard/index.tsx +1 -1
  25. package/src/components/Card/StyledCard.tsx +12 -19
  26. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
  27. package/src/components/Card/__tests__/index.spec.tsx +18 -0
  28. package/src/components/Card/index.tsx +6 -1
  29. package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
  30. package/src/components/FAB/ActionGroup/index.tsx +6 -8
  31. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +4 -8
  32. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  33. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  34. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  35. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  36. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  37. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  38. package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
  39. package/src/components/Spinner/StyledSpinner.tsx +24 -19
  40. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
  41. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
  42. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
  43. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
  44. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
  45. package/src/components/Spinner/index.tsx +10 -2
  46. package/src/components/Tabs/ScrollableTabs.tsx +9 -4
  47. package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
  48. package/src/components/Tabs/StyledTabs.tsx +6 -0
  49. package/src/components/Tabs/TabWithBadge.tsx +68 -0
  50. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +13 -0
  51. package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
  52. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
  53. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
  54. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
  55. package/src/components/Tabs/__tests__/index.spec.tsx +12 -0
  56. package/src/components/Tabs/index.tsx +11 -4
  57. package/src/components/Tag/StyledTag.tsx +1 -11
  58. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
  59. package/src/components/Tag/index.tsx +2 -2
  60. package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
  61. package/src/components/Toast/StyledToast.tsx +13 -7
  62. package/src/components/Toast/Toast.tsx +34 -9
  63. package/src/components/Toast/ToastProvider.tsx +15 -12
  64. package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
  65. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
  66. package/src/components/Toast/types.ts +15 -1
  67. package/src/components/Typography/Text/StyledText.tsx +7 -1
  68. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  69. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  70. package/src/components/Typography/Text/index.tsx +7 -1
  71. package/src/index.ts +2 -0
  72. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +76 -23
  73. package/src/theme/components/.eslintrc.json +10 -0
  74. package/src/theme/components/alert.ts +5 -1
  75. package/src/theme/components/avatar.ts +2 -0
  76. package/src/theme/components/card.ts +6 -7
  77. package/src/theme/components/sectionHeading.ts +1 -1
  78. package/src/theme/components/spinner.ts +19 -7
  79. package/src/theme/components/tabs.ts +3 -2
  80. package/src/theme/components/tag.ts +13 -13
  81. package/src/theme/components/toast.ts +17 -3
  82. package/src/theme/components/typography.ts +2 -0
  83. package/src/theme/global/colors/swag.ts +23 -0
  84. package/src/theme/global/colors/types.ts +23 -0
  85. package/src/theme/global/colors/work.ts +5 -0
  86. package/tsconfig.json +4 -15
  87. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  88. package/types/components/Alert/StyledAlert.d.ts +16 -16
  89. package/types/components/Alert/index.d.ts +1 -1
  90. package/types/components/Avatar/StyledAvatar.d.ts +16 -16
  91. package/types/components/Avatar/index.d.ts +2 -2
  92. package/types/components/Badge/StyledBadge.d.ts +7 -7
  93. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  94. package/types/components/BottomSheet/Header.d.ts +1 -1
  95. package/types/components/BottomSheet/StyledBottomSheet.d.ts +19 -19
  96. package/types/components/Box/StyledBox.d.ts +15 -0
  97. package/types/components/Box/__tests__/helpers.spec.d.ts +1 -0
  98. package/types/components/Box/__tests__/index.spec.d.ts +1 -0
  99. package/types/components/Box/config.d.ts +170 -0
  100. package/types/components/Box/helpers.d.ts +1 -0
  101. package/types/components/Box/index.d.ts +5 -0
  102. package/types/components/Box/types.d.ts +31 -0
  103. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  104. package/types/components/Button/StyledButton.d.ts +16 -16
  105. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  106. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  107. package/types/components/Calendar/helpers.d.ts +2 -2
  108. package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -7
  109. package/types/components/Card/DataCard/index.d.ts +1 -1
  110. package/types/components/Card/StyledCard.d.ts +7 -6
  111. package/types/components/Card/index.d.ts +5 -1
  112. package/types/components/Checkbox/StyledCheckbox.d.ts +10 -10
  113. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  114. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  115. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  116. package/types/components/Divider/StyledDivider.d.ts +5 -5
  117. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  118. package/types/components/Empty/StyledEmpty.d.ts +12 -12
  119. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  120. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  121. package/types/components/FAB/StyledFAB.d.ts +8 -8
  122. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  123. package/types/components/List/StyledBasicListItem.d.ts +14 -14
  124. package/types/components/List/StyledListItem.d.ts +23 -23
  125. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  126. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  127. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  128. package/types/components/Radio/StyledRadio.d.ts +9 -9
  129. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  130. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  131. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  132. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  133. package/types/components/RichTextEditor/index.d.ts +2 -2
  134. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  135. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  136. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  137. package/types/components/Select/StyledSelect.d.ts +11 -11
  138. package/types/components/Select/helpers.d.ts +1 -1
  139. package/types/components/Spinner/AnimatedSpinner.d.ts +3 -1
  140. package/types/components/Spinner/StyledSpinner.d.ts +14 -12
  141. package/types/components/Spinner/index.d.ts +5 -1
  142. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  143. package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
  144. package/types/components/Tabs/StyledTabs.d.ts +26 -20
  145. package/types/components/Tabs/TabWithBadge.d.ts +17 -0
  146. package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
  147. package/types/components/Tabs/index.d.ts +3 -1
  148. package/types/components/Tag/StyledTag.d.ts +6 -6
  149. package/types/components/Tag/index.d.ts +1 -1
  150. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  151. package/types/components/TextInput/index.d.ts +5 -5
  152. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  153. package/types/components/Toast/StyledToast.d.ts +19 -18
  154. package/types/components/Toast/types.d.ts +2 -1
  155. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  156. package/types/components/Typography/Text/StyledText.d.ts +4 -4
  157. package/types/components/Typography/Text/index.d.ts +1 -1
  158. package/types/index.d.ts +2 -1
  159. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  160. package/types/theme/ThemeSwitcher.d.ts +1 -1
  161. package/types/theme/components/alert.d.ts +5 -1
  162. package/types/theme/components/avatar.d.ts +2 -0
  163. package/types/theme/components/card.d.ts +6 -7
  164. package/types/theme/components/spinner.d.ts +17 -5
  165. package/types/theme/components/tabs.d.ts +1 -0
  166. package/types/theme/components/tag.d.ts +2 -2
  167. package/types/theme/components/toast.d.ts +18 -2
  168. package/types/theme/components/typography.d.ts +2 -0
  169. package/types/theme/global/colors/types.d.ts +17 -0
  170. package/types/theme/global/index.d.ts +17 -0
  171. package/types/utils/hooks.d.ts +1 -1
package/lib/index.js CHANGED
@@ -1018,11 +1018,11 @@ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85,
1018
1018
 
1019
1019
  var createColorScales = function createColorScales(base) {
1020
1020
  var colorValues = new Values$1(base);
1021
- return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
1022
- var _objectSpread2$1;
1021
+ return Object.assign(Object.assign({}, STEPS.reduce(function (acc, step) {
1022
+ var _Object$assign;
1023
1023
 
1024
- return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty(_objectSpread2$1, "darken".concat(step), colorValues.shade(step).hexString()), _objectSpread2$1));
1025
- }, {})), {}, {
1024
+ return Object.assign(Object.assign({}, acc), (_Object$assign = {}, _defineProperty(_Object$assign, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty(_Object$assign, "darken".concat(step), colorValues.shade(step).hexString()), _Object$assign));
1025
+ }, {})), {
1026
1026
  base: colorValues.hexString()
1027
1027
  });
1028
1028
  };
@@ -1064,7 +1064,7 @@ var BASE_COLORS = {
1064
1064
  violet1: '#8505a2',
1065
1065
  mauve: '#c38cee',
1066
1066
  yellow: '#fadb14',
1067
- seashell: '#ebf4ff',
1067
+ seashell: '#fff6eb',
1068
1068
  gold: '#ffd500'
1069
1069
  };
1070
1070
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
@@ -1072,7 +1072,7 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1072
1072
  key = _ref17[0],
1073
1073
  value = _ref17[1];
1074
1074
 
1075
- return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, key, createColorScales(value)));
1075
+ return Object.assign(Object.assign({}, acc), _defineProperty({}, key, createColorScales(value)));
1076
1076
  }, {});
1077
1077
  var blue$1 = colorScales.blue,
1078
1078
  ultramarineBlue$1 = colorScales.ultramarineBlue,
@@ -1228,9 +1228,8 @@ var emerald = colorScales.emerald,
1228
1228
  peach = colorScales.peach,
1229
1229
  vermilion = colorScales.vermilion,
1230
1230
  pastelRed = colorScales.pastelRed,
1231
- mauve = colorScales.mauve;
1232
-
1233
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1231
+ mauve$1 = colorScales.mauve;
1232
+ Object.assign(Object.assign({}, palette$5), {
1234
1233
  nightBlue: nightBlue.base,
1235
1234
  blueLight60: blue1.lighten60,
1236
1235
  blue: blue1.base,
@@ -1247,21 +1246,18 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1247
1246
  peachLight75: peach.lighten75,
1248
1247
  red: vermilion.base,
1249
1248
  pastelRed: pastelRed.base,
1250
- mauve: mauve.base
1249
+ mauve: mauve$1.base
1251
1250
  });
1252
-
1253
1251
  var apple = colorScales.apple,
1254
1252
  currant = colorScales.currant;
1255
-
1256
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1253
+ Object.assign(Object.assign({}, palette$5), {
1257
1254
  apple: apple.base,
1258
1255
  currant: currant.base
1259
1256
  });
1260
-
1261
1257
  var scarletGum = colorScales.scarletGum,
1262
- violet1 = colorScales.violet1;
1263
-
1264
- var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1258
+ violet1 = colorScales.violet1,
1259
+ mauve = colorScales.mauve;
1260
+ var palette$2 = Object.assign(Object.assign({}, palette$5), {
1265
1261
  scarletGumLight30: scarletGum.lighten30,
1266
1262
  scarletGumLight50: scarletGum.lighten50,
1267
1263
  scarletGumLight80: scarletGum.lighten80,
@@ -1271,14 +1267,13 @@ var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1271
1267
  violetLight50: violet1.lighten50,
1272
1268
  violetLight80: violet1.lighten80,
1273
1269
  violetLight90: violet1.lighten90,
1274
- violet: violet1.base
1270
+ violet: violet1.base,
1271
+ mauve: mauve.base
1275
1272
  });
1276
-
1277
1273
  var jordyBlue = colorScales.jordyBlue,
1278
1274
  cornflowerBlue = colorScales.cornflowerBlue,
1279
1275
  paua = colorScales.paua;
1280
-
1281
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
1276
+ Object.assign(Object.assign({}, palette$5), {
1282
1277
  jordyBlueLight30: jordyBlue.lighten30,
1283
1278
  jordyBlueLight50: jordyBlue.lighten50,
1284
1279
  jordyBlueLight70: jordyBlue.lighten70,
@@ -1287,10 +1282,8 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
1287
1282
  cornflowerBlue: cornflowerBlue.base,
1288
1283
  paua: paua.base
1289
1284
  });
1290
-
1291
1285
  var gold$1 = colorScales.gold;
1292
-
1293
- var palette = _objectSpread2(_objectSpread2({}, palette$5), {}, {
1286
+ var palette = Object.assign(Object.assign({}, palette$5), {
1294
1287
  goldLight20: gold$1.lighten20,
1295
1288
  goldLight50: gold$1.lighten50,
1296
1289
  goldLight70: gold$1.lighten70,
@@ -1341,15 +1334,35 @@ var swagSystemPalette = {
1341
1334
  archivedBackground: palette$5.greyLight90,
1342
1335
  black: palette$5.black,
1343
1336
  inactiveBackground: palette$5.maasstrichtBlueLight50,
1344
- shadow: palette$5.greyLight45 // waiting for new color
1345
-
1337
+ shadow: palette$5.greyLight45,
1338
+ __alpha__globalPrimary: palette$5.maasstrichtBlue,
1339
+ __alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
1340
+ __alpha__globalNeutral3: palette$5.greyLight90,
1341
+ __alpha__globalLabel1: palette$5.vermilion,
1342
+ __alpha__globalLabel2: palette$5.deepSaffron,
1343
+ __alpha__globalLabel3: palette$5.pineGreen,
1344
+ __alpha__globalLabel4: palette$5.ultramarineBlue,
1345
+ __alpha__globalLabel5: palette$5.sonicSilver,
1346
+ __alpha__globalLabel6: palette$5.linen,
1347
+ __alpha__globalLabel7: palette$5.seashell,
1348
+ __alpha__globalLabel8: palette$5.honeydew,
1349
+ __alpha__globalLabel9: palette$5.aliceBlue,
1350
+ __alpha__primary2: palette$2.mauve,
1351
+ __alpha__secondary1: palette$2.scarletGumLight30,
1352
+ __alpha__secondary2: palette$2.scarletGumLight50,
1353
+ __alpha__secondary3: palette$2.scarletGumLight80,
1354
+ __alpha__secondary4: palette$2.scarletGumLight90
1346
1355
  };
1347
1356
 
1348
1357
  var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1349
1358
  primary: palette.gold,
1350
1359
  primaryLight: palette.goldLight50,
1351
1360
  primaryDark: palette.goldLight20,
1352
- primaryBackground: palette.goldLight90
1361
+ primaryBackground: palette.goldLight90,
1362
+ __alpha__secondary1: palette.goldLight20,
1363
+ __alpha__secondary2: palette.goldLight50,
1364
+ __alpha__secondary3: palette.goldLight70,
1365
+ __alpha__secondary4: palette.goldLight90
1353
1366
  });
1354
1367
 
1355
1368
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1501,13 +1514,17 @@ var getAlertTheme = function getAlertTheme(theme) {
1501
1514
  warning: theme.colors.warning,
1502
1515
  error: theme.colors.dangerLight,
1503
1516
  info: theme.colors.infoLight,
1517
+ notification: theme.colors.platformBackground,
1504
1518
  divider: theme.colors.outline
1505
1519
  };
1506
1520
  var sizes = {
1507
1521
  height: scale(48)
1508
1522
  };
1509
1523
  var space = {
1510
- padding: theme.space.medium
1524
+ contentPaddingHorizontal: theme.space.smallMedium,
1525
+ textPaddingHorizontal: theme.space.smallMedium,
1526
+ iconLeftPadding: theme.space.smallMedium,
1527
+ ctaPadding: theme.space.smallMedium
1511
1528
  };
1512
1529
  var radii = {
1513
1530
  "default": theme.radii.xlarge
@@ -1539,7 +1556,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1539
1556
  xlarge: theme.space.xxxxlarge,
1540
1557
  xxlarge: theme.space.xlarge * 2,
1541
1558
  xxxlarge: theme.space.xxlarge * 2,
1542
- xxxxlarge: theme.space.xxxlarge * 2
1559
+ xxxxlarge: theme.space.xxxlarge * 2,
1560
+ xxxxxlarge: theme.space.small * 17
1543
1561
  };
1544
1562
  var fontSizes = {
1545
1563
  small: theme.fontSizes.large,
@@ -1548,7 +1566,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1548
1566
  xlarge: theme.fontSizes.xxxlarge,
1549
1567
  xxlarge: theme.space.medium * 2,
1550
1568
  xxxlarge: theme.space.large * 1.5,
1551
- xxxxlarge: theme.space.xlarge * 1.5
1569
+ xxxxlarge: theme.space.xlarge * 1.5,
1570
+ xxxxxlarge: theme.space.xxlarge * 1.5
1552
1571
  };
1553
1572
  var radii = {
1554
1573
  rounded: theme.radii.rounded
@@ -1766,13 +1785,12 @@ var getCalendarTheme = function getCalendarTheme(theme) {
1766
1785
  var getCardTheme = function getCardTheme(theme) {
1767
1786
  var colors = {
1768
1787
  dataCardIndicator: theme.colors.primary,
1769
- indicator: {
1770
- archived: theme.colors.archivedLight,
1771
- info: theme.colors.infoLight,
1772
- success: theme.colors.success,
1773
- warning: theme.colors.warning,
1774
- danger: theme.colors.dangerMediumLight
1775
- }
1788
+ primary: theme.colors.__alpha__primary2,
1789
+ info: theme.colors.infoLight,
1790
+ success: theme.colors.success,
1791
+ warning: theme.colors.warning,
1792
+ danger: theme.colors.dangerMediumLight,
1793
+ archived: theme.colors.archivedLight
1776
1794
  };
1777
1795
  var sizes = {
1778
1796
  indicatorWidth: theme.space.medium
@@ -2187,7 +2205,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
2187
2205
 
2188
2206
  var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
2189
2207
  var colors = {
2190
- background: theme.colors.outline
2208
+ background: theme.colors.__alpha__globalNeutral3
2191
2209
  };
2192
2210
  var space = {
2193
2211
  headingVerticalPadding: theme.space.small,
@@ -2225,19 +2243,31 @@ var getSelectTheme = function getSelectTheme(theme) {
2225
2243
  };
2226
2244
 
2227
2245
  var getSpinnerTheme = function getSpinnerTheme(theme) {
2228
- var color = {
2229
- "default": theme.colors.primary
2246
+ var colors = {
2247
+ dot1: theme.colors.__alpha__secondary1,
2248
+ dot2: theme.colors.__alpha__secondary2,
2249
+ dot3: theme.colors.__alpha__secondary3,
2250
+ dot4: theme.colors.__alpha__secondary4
2230
2251
  };
2231
2252
  var space = {
2232
- spinnerDot: theme.space.medium,
2233
- spinnerDotPadding: theme.space.small,
2234
- spinnerTextPaddingTop: theme.space.small
2253
+ spinnerDot: {
2254
+ small: theme.space.small,
2255
+ medium: theme.space.medium
2256
+ },
2257
+ spinnerDotPadding: {
2258
+ small: theme.space.xsmall,
2259
+ medium: theme.space.small
2260
+ },
2261
+ spinnerTextPaddingTop: {
2262
+ small: theme.space.xsmall,
2263
+ medium: theme.space.small
2264
+ }
2235
2265
  };
2236
2266
  var radii = {
2237
- "default": theme.radii.medium
2267
+ "default": theme.radii.rounded
2238
2268
  };
2239
2269
  return {
2240
- color: color,
2270
+ colors: colors,
2241
2271
  space: space,
2242
2272
  radii: radii
2243
2273
  };
@@ -2285,9 +2315,9 @@ var getSwitchTheme = function getSwitchTheme(theme) {
2285
2315
 
2286
2316
  var getTabsTheme = function getTabsTheme(theme) {
2287
2317
  var colors = {
2288
- active: theme.colors.primary,
2318
+ active: theme.colors.text,
2289
2319
  inactive: theme.colors.text,
2290
- activeBackground: theme.colors.primaryBackground,
2320
+ activeBackground: theme.colors.__alpha__secondary4,
2291
2321
  headerBottom: theme.colors.outline,
2292
2322
  text: theme.colors.text
2293
2323
  };
@@ -2295,6 +2325,7 @@ var getTabsTheme = function getTabsTheme(theme) {
2295
2325
  flatListHorizontalPadding: theme.space.small,
2296
2326
  itemHorizontalPadding: theme.space.small,
2297
2327
  itemVerticalPadding: theme.space.small,
2328
+ itemMargin: theme.space.smallMedium,
2298
2329
  outlineHorizontalPadding: theme.space.small,
2299
2330
  outlineVerticalPadding: theme.space.xsmall
2300
2331
  };
@@ -2321,20 +2352,20 @@ var getTagTheme = function getTagTheme(theme) {
2321
2352
  "default": theme.borderWidths.base
2322
2353
  };
2323
2354
  var colors = {
2324
- "default": theme.colors.text,
2355
+ "default": theme.colors.__alpha__globalPrimary,
2325
2356
  defaultBackground: undefined,
2326
- primary: theme.colors.primary,
2327
- primaryBackground: theme.colors.primaryBackground,
2328
- info: theme.colors.info,
2329
- infoBackground: theme.colors.infoBackground,
2330
- success: theme.colors.successDark,
2331
- successBackground: theme.colors.successBackground,
2332
- warning: theme.colors.warningDark,
2333
- warningBackground: theme.colors.warningBackground,
2334
- danger: theme.colors.danger,
2335
- dangerBackground: theme.colors.dangerBackground,
2336
- archived: theme.colors.archivedDark,
2337
- archivedBackground: theme.colors.archivedBackground
2357
+ primary: theme.colors.__alpha__globalPrimary,
2358
+ primaryBackground: undefined,
2359
+ info: theme.colors.__alpha__globalLabel4,
2360
+ infoBackground: theme.colors.__alpha__globalLabel9,
2361
+ success: theme.colors.__alpha__globalLabel3,
2362
+ successBackground: theme.colors.__alpha__globalLabel8,
2363
+ warning: theme.colors.__alpha__globalLabel2,
2364
+ warningBackground: theme.colors.__alpha__globalLabel7,
2365
+ danger: theme.colors.__alpha__globalLabel1,
2366
+ dangerBackground: theme.colors.__alpha__globalLabel6,
2367
+ archived: theme.colors.__alpha__globalLabel5,
2368
+ archivedBackground: theme.colors.__alpha__globalNeutral3
2338
2369
  };
2339
2370
  var fonts = {
2340
2371
  "default": theme.fonts.semiBold
@@ -2463,14 +2494,21 @@ var getToastTheme = function getToastTheme(theme) {
2463
2494
  warning: theme.colors.warning,
2464
2495
  error: theme.colors.dangerLight,
2465
2496
  info: theme.colors.infoLight,
2466
- divider: theme.colors.outline
2497
+ notification: theme.colors.platformBackground,
2498
+ snackbar: theme.colors.backgroundDark,
2499
+ divider: theme.colors.outline,
2500
+ shadow: theme.colors.backgroundDark
2467
2501
  };
2468
2502
  var sizes = {
2469
2503
  height: scale(48)
2470
2504
  };
2471
2505
  var space = {
2472
- mediumPadding: theme.space.medium,
2473
- largePadding: theme.space.large
2506
+ wrapperVerticalPadding: theme.space.large,
2507
+ wrapperHorizontalPadding: theme.space.medium,
2508
+ contentVerticalPadding: theme.space.smallMedium,
2509
+ textHorizontalPadding: theme.space.smallMedium,
2510
+ iconLeftPadding: theme.space.smallMedium,
2511
+ ctaPadding: theme.space.smallMedium
2474
2512
  };
2475
2513
  var radii = {
2476
2514
  "default": theme.radii.xlarge
@@ -2478,12 +2516,22 @@ var getToastTheme = function getToastTheme(theme) {
2478
2516
  var borderWidths = {
2479
2517
  base: theme.borderWidths.base
2480
2518
  };
2519
+ var shadows = {
2520
+ offset: {
2521
+ width: 0,
2522
+ height: 2
2523
+ },
2524
+ opacity: 0.12,
2525
+ radius: 4,
2526
+ elevation: 4
2527
+ };
2481
2528
  return {
2482
2529
  colors: colors,
2483
2530
  radii: radii,
2484
2531
  sizes: sizes,
2485
2532
  space: space,
2486
- borderWidths: borderWidths
2533
+ borderWidths: borderWidths,
2534
+ shadows: shadows
2487
2535
  };
2488
2536
  };
2489
2537
 
@@ -2533,6 +2581,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2533
2581
  medium: theme.fontSizes.medium,
2534
2582
  large: theme.fontSizes.large,
2535
2583
  xlarge: theme.fontSizes.xlarge,
2584
+ xxxlarge: theme.fontSizes.xxxlarge,
2536
2585
  xxxxxlarge: theme.fontSizes.xxxxxlarge
2537
2586
  };
2538
2587
  var lineHeights = {
@@ -2540,6 +2589,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2540
2589
  medium: theme.lineHeights.medium,
2541
2590
  large: theme.lineHeights.large,
2542
2591
  xlarge: theme.lineHeights.xlarge,
2592
+ xxxlarge: theme.lineHeights.xxxlarge,
2543
2593
  xxxxxlarge: theme.lineHeights.xxxxxlarge
2544
2594
  };
2545
2595
  return {
@@ -5955,7 +6005,7 @@ var StyledText$3 = index$7(reactNative.Text)(function (_ref) {
5955
6005
  });
5956
6006
  });
5957
6007
 
5958
- var _excluded$f = ["children", "fontSize", "fontWeight", "intent"];
6008
+ var _excluded$h = ["children", "fontSize", "fontWeight", "intent"];
5959
6009
 
5960
6010
  var Text = function Text(_ref) {
5961
6011
  var children = _ref.children,
@@ -5965,7 +6015,7 @@ var Text = function Text(_ref) {
5965
6015
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
5966
6016
  _ref$intent = _ref.intent,
5967
6017
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5968
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
6018
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
5969
6019
 
5970
6020
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
5971
6021
  themeFontSize: fontSize,
@@ -14510,11 +14560,11 @@ var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
14510
14560
  };
14511
14561
  });
14512
14562
 
14513
- var _excluded$e = ["style"];
14563
+ var _excluded$g = ["style"];
14514
14564
 
14515
14565
  var AnimatedIcon = function AnimatedIcon(_ref) {
14516
14566
  var style = _ref.style,
14517
- otherProps = _objectWithoutProperties(_ref, _excluded$e);
14567
+ otherProps = _objectWithoutProperties(_ref, _excluded$g);
14518
14568
 
14519
14569
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
14520
14570
  React.useEffect(function () {
@@ -14604,7 +14654,7 @@ function usePropsOrInternalState(initialState, state, setState) {
14604
14654
  return [state || internalState, setState || setInternalState];
14605
14655
  }
14606
14656
 
14607
- var _excluded$d = ["key"];
14657
+ var _excluded$f = ["key"];
14608
14658
 
14609
14659
  var Accordion = function Accordion(_ref) {
14610
14660
  var items = _ref.items,
@@ -14628,7 +14678,7 @@ var Accordion = function Accordion(_ref) {
14628
14678
  testID: testID
14629
14679
  }, items.map(function (_ref2, index) {
14630
14680
  var key = _ref2.key,
14631
- props = _objectWithoutProperties(_ref2, _excluded$d);
14681
+ props = _objectWithoutProperties(_ref2, _excluded$f);
14632
14682
 
14633
14683
  var open = _activeItemKey === key;
14634
14684
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
@@ -14661,13 +14711,13 @@ var IconContainer$1 = index$7(reactNative.View)(function (_ref2) {
14661
14711
  var theme = _ref2.theme;
14662
14712
  return {
14663
14713
  alignItems: 'center',
14664
- paddingLeft: theme.__hd__.alert.space.padding
14714
+ paddingLeft: theme.__hd__.alert.space.iconLeftPadding
14665
14715
  };
14666
14716
  });
14667
14717
  var TextContainer$1 = index$7(reactNative.View)(function (_ref3) {
14668
14718
  var theme = _ref3.theme;
14669
14719
  return {
14670
- paddingHorizontal: theme.__hd__.alert.space.padding,
14720
+ paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
14671
14721
  flex: 1
14672
14722
  };
14673
14723
  });
@@ -14675,7 +14725,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14675
14725
  var theme = _ref4.theme,
14676
14726
  showDivider = _ref4.showDivider;
14677
14727
  return {
14678
- paddingVertical: theme.__hd__.alert.space.padding,
14728
+ paddingVertical: theme.__hd__.alert.space.contentPaddingHorizontal,
14679
14729
  flex: 1,
14680
14730
  borderRightWidth: showDivider ? theme.__hd__.alert.borderWidths.base : 0,
14681
14731
  borderColor: theme.__hd__.alert.colors.divider,
@@ -14685,7 +14735,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
14685
14735
  var CTAWrapper$1 = index$7(reactNative.TouchableOpacity)(function (_ref5) {
14686
14736
  var theme = _ref5.theme;
14687
14737
  return {
14688
- paddingHorizontal: theme.__hd__.alert.space.padding,
14738
+ paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
14689
14739
  justifyContent: 'center'
14690
14740
  };
14691
14741
  });
@@ -14703,20 +14753,33 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
14703
14753
 
14704
14754
  case 'error':
14705
14755
  return 'circle-warning';
14756
+
14757
+ default:
14758
+ return undefined;
14706
14759
  }
14707
14760
  };
14708
14761
 
14709
- var Alert = function Alert(_ref) {
14710
- var content = _ref.content,
14711
- icon = _ref.icon,
14712
- title = _ref.title,
14713
- _ref$intent = _ref.intent,
14714
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
14715
- onClose = _ref.onClose,
14716
- _ref$variant = _ref.variant,
14717
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
14718
- style = _ref.style,
14719
- testID = _ref.testID;
14762
+ var AlertIcon = function AlertIcon(_ref) {
14763
+ var icon = _ref.icon;
14764
+ return icon ? /*#__PURE__*/React__default["default"].createElement(IconContainer$1, {
14765
+ testID: "alert-left-icon"
14766
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
14767
+ icon: icon,
14768
+ size: "small"
14769
+ })) : null;
14770
+ };
14771
+
14772
+ var Alert = function Alert(_ref2) {
14773
+ var content = _ref2.content,
14774
+ icon = _ref2.icon,
14775
+ title = _ref2.title,
14776
+ _ref2$intent = _ref2.intent,
14777
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
14778
+ onClose = _ref2.onClose,
14779
+ _ref2$variant = _ref2.variant,
14780
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
14781
+ style = _ref2.style,
14782
+ testID = _ref2.testID;
14720
14783
  return /*#__PURE__*/React__default["default"].createElement(Container$1, {
14721
14784
  themeVariant: variant,
14722
14785
  themeIntent: intent,
@@ -14724,12 +14787,9 @@ var Alert = function Alert(_ref) {
14724
14787
  testID: testID
14725
14788
  }, /*#__PURE__*/React__default["default"].createElement(ContentContainer$1, {
14726
14789
  showDivider: !!onClose
14727
- }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer$1, {
14728
- testID: "alert-left-icon"
14729
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
14730
- icon: icon || getIntentIcon$1(intent),
14731
- size: "small"
14732
- })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14790
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(AlertIcon, {
14791
+ icon: icon || getIntentIcon$1(intent)
14792
+ }) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
14733
14793
  fontWeight: "semi-bold"
14734
14794
  }, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper$1, {
14735
14795
  onPress: onClose,
@@ -14860,7 +14920,7 @@ var StyledStatus = index$7(reactNative.Animated.View)(function (_ref3) {
14860
14920
  };
14861
14921
  });
14862
14922
 
14863
- var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14923
+ var _excluded$e = ["children", "visible", "intent", "style", "testID"];
14864
14924
 
14865
14925
  var Status = function Status(_ref) {
14866
14926
  var children = _ref.children,
@@ -14870,7 +14930,7 @@ var Status = function Status(_ref) {
14870
14930
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14871
14931
  style = _ref.style,
14872
14932
  testID = _ref.testID,
14873
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
14933
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
14874
14934
 
14875
14935
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14876
14936
  opacity = _React$useRef.current;
@@ -14906,7 +14966,7 @@ var Status = function Status(_ref) {
14906
14966
  }));
14907
14967
  };
14908
14968
 
14909
- var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14969
+ var _excluded$d = ["content", "visible", "max", "intent", "style", "testID"];
14910
14970
  var DEFAULT_MAX_NUMBER = 99;
14911
14971
 
14912
14972
  var getPaddingState = function getPaddingState(content) {
@@ -14923,7 +14983,7 @@ var Badge = function Badge(_ref) {
14923
14983
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14924
14984
  style = _ref.style,
14925
14985
  testID = _ref.testID,
14926
- nativeProps = _objectWithoutProperties(_ref, _excluded$b);
14986
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
14927
14987
 
14928
14988
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
14929
14989
  opacity = _React$useRef.current;
@@ -15019,7 +15079,7 @@ var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
15019
15079
  var isIOS = reactNative.Platform.OS === 'ios';
15020
15080
  var isAndroid = reactNative.Platform.OS === 'android';
15021
15081
 
15022
- var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15082
+ var _excluded$c = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15023
15083
 
15024
15084
  var getInactiveIcon = function getInactiveIcon(icon) {
15025
15085
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -15032,7 +15092,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
15032
15092
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
15033
15093
  selectedTabKey = _ref.selectedTabKey,
15034
15094
  tabs = _ref.tabs,
15035
- nativeProps = _objectWithoutProperties(_ref, _excluded$a);
15095
+ nativeProps = _objectWithoutProperties(_ref, _excluded$c);
15036
15096
 
15037
15097
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
15038
15098
  /**
@@ -15123,14 +15183,14 @@ var StyledDivider = index$7(reactNative.View)(function (_ref) {
15123
15183
  }, horizontalMargin), verticalMargin);
15124
15184
  });
15125
15185
 
15126
- var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
15186
+ var _excluded$b = ["marginHorizontal", "marginVertical", "style", "testID"];
15127
15187
 
15128
15188
  var Divider = function Divider(_ref) {
15129
15189
  var marginHorizontal = _ref.marginHorizontal,
15130
15190
  marginVertical = _ref.marginVertical,
15131
15191
  style = _ref.style,
15132
15192
  testID = _ref.testID,
15133
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
15193
+ nativeProps = _objectWithoutProperties(_ref, _excluded$b);
15134
15194
 
15135
15195
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
15136
15196
  themeMarginHorizontal: marginHorizontal,
@@ -15262,7 +15322,7 @@ var StyledLoadingDot = index$7(reactNative.View)(function (_ref2) {
15262
15322
  }, themeStyling());
15263
15323
  });
15264
15324
 
15265
- var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15325
+ var _excluded$a = ["count", "size", "testID", "themeVariant"];
15266
15326
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15267
15327
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
15268
15328
 
@@ -15296,7 +15356,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15296
15356
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15297
15357
  testID = _ref2.testID,
15298
15358
  themeVariant = _ref2.themeVariant,
15299
- nativeProps = _objectWithoutProperties(_ref2, _excluded$8);
15359
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
15300
15360
 
15301
15361
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
15302
15362
  React.useEffect(function () {
@@ -15937,6 +15997,245 @@ var BottomSheet = function BottomSheet(_ref) {
15937
15997
  }, footer) : null)));
15938
15998
  };
15939
15999
 
16000
+ var colors = {
16001
+ backgroundColor: {
16002
+ property: 'backgroundColor',
16003
+ scale: 'colors'
16004
+ },
16005
+ bgColor: {
16006
+ property: 'backgroundColor',
16007
+ scale: 'colors'
16008
+ },
16009
+ borderColor: {
16010
+ property: 'borderColor',
16011
+ scale: 'colors'
16012
+ },
16013
+ borderTopColor: {
16014
+ property: 'borderTopColor',
16015
+ scale: 'colors'
16016
+ },
16017
+ borderBottomColor: {
16018
+ property: 'borderBottomColor',
16019
+ scale: 'colors'
16020
+ },
16021
+ borderStartColor: {
16022
+ property: 'borderStartColor',
16023
+ scale: 'colors'
16024
+ },
16025
+ borderEndColor: {
16026
+ property: 'borderEndColor',
16027
+ scale: 'colors'
16028
+ },
16029
+ borderLeftColor: {
16030
+ property: 'borderLeftColor',
16031
+ scale: 'colors'
16032
+ },
16033
+ borderRightColor: {
16034
+ property: 'borderRightColor',
16035
+ scale: 'colors'
16036
+ }
16037
+ };
16038
+ var space = {
16039
+ margin: {
16040
+ property: 'margin',
16041
+ scale: 'space'
16042
+ },
16043
+ marginBottom: {
16044
+ property: 'marginBottom',
16045
+ scale: 'space'
16046
+ },
16047
+ marginEnd: {
16048
+ property: 'marginEnd',
16049
+ scale: 'space'
16050
+ },
16051
+ marginHorizontal: {
16052
+ property: 'marginHorizontal',
16053
+ scale: 'space'
16054
+ },
16055
+ marginLeft: {
16056
+ property: 'marginLeft',
16057
+ scale: 'space'
16058
+ },
16059
+ marginRight: {
16060
+ property: 'marginRight',
16061
+ scale: 'space'
16062
+ },
16063
+ marginStart: {
16064
+ property: 'marginStart',
16065
+ scale: 'space'
16066
+ },
16067
+ marginTop: {
16068
+ property: 'marginTop',
16069
+ scale: 'space'
16070
+ },
16071
+ marginVertical: {
16072
+ property: 'marginVertical',
16073
+ scale: 'space'
16074
+ },
16075
+ padding: {
16076
+ property: 'padding',
16077
+ scale: 'space'
16078
+ },
16079
+ paddingBottom: {
16080
+ property: 'paddingBottom',
16081
+ scale: 'space'
16082
+ },
16083
+ paddingEnd: {
16084
+ property: 'paddingEnd',
16085
+ scale: 'space'
16086
+ },
16087
+ paddingHorizontal: {
16088
+ property: 'paddingHorizontal',
16089
+ scale: 'space'
16090
+ },
16091
+ paddingLeft: {
16092
+ property: 'paddingLeft',
16093
+ scale: 'space'
16094
+ },
16095
+ paddingRight: {
16096
+ property: 'paddingRight',
16097
+ scale: 'space'
16098
+ },
16099
+ paddingStart: {
16100
+ property: 'paddingStart',
16101
+ scale: 'space'
16102
+ },
16103
+ paddingTop: {
16104
+ property: 'paddingTop',
16105
+ scale: 'space'
16106
+ },
16107
+ paddingVertical: {
16108
+ property: 'paddingVertical',
16109
+ scale: 'space'
16110
+ }
16111
+ };
16112
+ var radii = {
16113
+ borderBottomEndRadius: {
16114
+ property: 'borderBottomEndRadius',
16115
+ scale: 'radii'
16116
+ },
16117
+ borderBottomLeftRadius: {
16118
+ property: 'borderBottomLeftRadius',
16119
+ scale: 'radii'
16120
+ },
16121
+ borderBottomRightRadius: {
16122
+ property: 'borderBottomRightRadius',
16123
+ scale: 'radii'
16124
+ },
16125
+ borderBottomStartRadius: {
16126
+ property: 'borderBottomStartRadius',
16127
+ scale: 'radii'
16128
+ },
16129
+ borderTopEndRadius: {
16130
+ property: 'borderTopEndRadius',
16131
+ scale: 'radii'
16132
+ },
16133
+ borderTopLeftRadius: {
16134
+ property: 'borderTopLeftRadius',
16135
+ scale: 'radii'
16136
+ },
16137
+ borderTopRightRadius: {
16138
+ property: 'borderTopRightRadius',
16139
+ scale: 'radii'
16140
+ },
16141
+ borderTopStartRadius: {
16142
+ property: 'borderTopStartRadius',
16143
+ scale: 'radii'
16144
+ },
16145
+ borderRadius: {
16146
+ property: 'borderRadius',
16147
+ scale: 'radii'
16148
+ }
16149
+ };
16150
+ var borderWidths = {
16151
+ borderWidth: {
16152
+ property: 'borderWidth',
16153
+ scale: 'borderWidths'
16154
+ },
16155
+ borderBottomWidth: {
16156
+ property: 'borderBottomWidth',
16157
+ scale: 'borderWidths'
16158
+ },
16159
+ borderTopWidth: {
16160
+ property: 'borderTopWidth',
16161
+ scale: 'borderWidths'
16162
+ },
16163
+ borderLeftWidth: {
16164
+ property: 'borderLeftWidth',
16165
+ scale: 'borderWidths'
16166
+ },
16167
+ borderRightWidth: {
16168
+ property: 'borderRightWidth',
16169
+ scale: 'borderWidths'
16170
+ }
16171
+ };
16172
+
16173
+ var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
16174
+
16175
+ var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
16176
+
16177
+ var pick = function pick(keys, props) {
16178
+ return keys.filter(function (key) {
16179
+ return key in props;
16180
+ }).reduce(function (result, cur) {
16181
+ return _objectSpread2(_objectSpread2({}, result), {}, _defineProperty({}, cur, props[cur]));
16182
+ }, {});
16183
+ };
16184
+
16185
+ var _excluded$9 = ["theme"];
16186
+ var getThemeValue = function getThemeValue(theme, key, props) {
16187
+ var propConfig = config[key];
16188
+ var propValue = props[key];
16189
+ if (!propValue) return undefined;
16190
+ var scale = propConfig.scale,
16191
+ property = propConfig.property;
16192
+
16193
+ switch (scale) {
16194
+ case 'colors':
16195
+ return _defineProperty({}, property, theme.colors[propValue]);
16196
+
16197
+ case 'space':
16198
+ return _defineProperty({}, property, theme.space[propValue]);
16199
+
16200
+ case 'radii':
16201
+ return _defineProperty({}, property, theme.radii[propValue]);
16202
+
16203
+ case 'borderWidths':
16204
+ return _defineProperty({}, property, theme.borderWidths[propValue]);
16205
+ }
16206
+ };
16207
+
16208
+ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
16209
+ var entries = Object.keys(props);
16210
+ return entries.reduce(function (result, key) {
16211
+ return _objectSpread2(_objectSpread2({}, result), getThemeValue(theme, key, props));
16212
+ }, {});
16213
+ };
16214
+
16215
+ var configKeys = Object.keys(config);
16216
+ var StyledBox = index$7(reactNative.View)(function (_ref5) {
16217
+ var theme = _ref5.theme,
16218
+ otherProps = _objectWithoutProperties(_ref5, _excluded$9);
16219
+
16220
+ var styleProps = pick(configKeys, otherProps);
16221
+ var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
16222
+ return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
16223
+ });
16224
+
16225
+ var _excluded$8 = ["children", "style", "testID"];
16226
+
16227
+ var Box = function Box(_ref) {
16228
+ var children = _ref.children,
16229
+ style = _ref.style,
16230
+ testID = _ref.testID,
16231
+ otherProps = _objectWithoutProperties(_ref, _excluded$8);
16232
+
16233
+ return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
16234
+ style: style,
16235
+ testID: testID
16236
+ }), children);
16237
+ };
16238
+
15940
16239
  function requiredArgs(required, args) {
15941
16240
  if (args.length < required) {
15942
16241
  throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
@@ -18638,7 +18937,7 @@ var Indicator = index$7(reactNative.View)(function (_ref2) {
18638
18937
  var theme = _ref2.theme,
18639
18938
  themeIntent = _ref2.themeIntent;
18640
18939
  return {
18641
- backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
18940
+ backgroundColor: theme.__hd__.card.colors[themeIntent],
18642
18941
  width: theme.__hd__.card.sizes.indicatorWidth,
18643
18942
  height: '100%'
18644
18943
  };
@@ -18660,23 +18959,18 @@ var DataCard = function DataCard(_ref) {
18660
18959
 
18661
18960
  var StyledCard = index$7(reactNative.View)(function (_ref) {
18662
18961
  var themeVariant = _ref.themeVariant,
18663
- theme = _ref.theme;
18664
- var sharedStyles = {
18962
+ theme = _ref.theme,
18963
+ themeIntent = _ref.themeIntent;
18964
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, themeVariant === 'data' && {
18965
+ flexDirection: 'row'
18966
+ }), themeIntent !== undefined && {
18967
+ backgroundColor: theme.__hd__.card.colors[themeIntent]
18968
+ }), {}, {
18665
18969
  borderRadius: theme.__hd__.card.radii["default"],
18666
18970
  overflow: 'hidden'
18667
- };
18668
- var dataStyles = {
18669
- flexDirection: 'row'
18670
- };
18671
-
18672
- switch (themeVariant) {
18673
- case 'basic':
18674
- return sharedStyles;
18971
+ });
18972
+ }); // DEPRECATED
18675
18973
 
18676
- case 'data':
18677
- return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
18678
- }
18679
- });
18680
18974
  var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
18681
18975
  var theme = _ref2.theme;
18682
18976
  return {
@@ -18686,16 +18980,18 @@ var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
18686
18980
  };
18687
18981
  });
18688
18982
 
18689
- var _excluded$6 = ["variant", "children"];
18983
+ var _excluded$6 = ["variant", "intent", "children"];
18690
18984
 
18691
18985
  var Card = function Card(_ref) {
18692
18986
  var _ref$variant = _ref.variant,
18693
18987
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
18988
+ intent = _ref.intent,
18694
18989
  children = _ref.children,
18695
18990
  nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18696
18991
 
18697
18992
  return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
18698
- themeVariant: variant
18993
+ themeVariant: variant,
18994
+ themeIntent: intent
18699
18995
  }), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
18700
18996
  testID: "data-card-indicator"
18701
18997
  }), children);
@@ -20572,54 +20868,59 @@ var StyledSpinnerContainer = index$7(reactNative.View)({
20572
20868
  });
20573
20869
  var StyledSpinnerRow = index$7(reactNative.View)(function (_ref) {
20574
20870
  var themePosition = _ref.themePosition,
20871
+ _ref$themeSize = _ref.themeSize,
20872
+ themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
20575
20873
  theme = _ref.theme;
20576
20874
  return {
20577
20875
  flexDirection: 'row',
20578
- marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
20876
+ marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
20579
20877
  };
20580
20878
  });
20581
20879
  var StyledSpinnerDot = index$7(reactNative.View)(function (_ref2) {
20582
20880
  var themePosition = _ref2.themePosition,
20881
+ _ref2$themeSize = _ref2.themeSize,
20882
+ themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
20583
20883
  theme = _ref2.theme;
20584
20884
 
20585
20885
  var themeStyling = function themeStyling() {
20586
20886
  switch (themePosition) {
20587
20887
  case 'topLeft':
20588
20888
  return {
20589
- opacity: 1
20889
+ backgroundColor: theme.__hd__.spinner.colors.dot1
20590
20890
  };
20591
20891
 
20592
20892
  case 'topRight':
20593
20893
  return {
20594
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20595
- opacity: 0.7
20894
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20895
+ backgroundColor: theme.__hd__.spinner.colors.dot2
20596
20896
  };
20597
20897
 
20598
20898
  case 'bottomLeft':
20599
20899
  return {
20600
- opacity: 0.5
20900
+ backgroundColor: theme.__hd__.spinner.colors.dot3
20601
20901
  };
20602
20902
 
20603
20903
  case 'bottomRight':
20604
20904
  return {
20605
- marginLeft: theme.__hd__.spinner.space.spinnerDotPadding,
20606
- opacity: 0.3
20905
+ marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
20906
+ backgroundColor: theme.__hd__.spinner.colors.dot4
20607
20907
  };
20608
20908
  }
20609
20909
  };
20610
20910
 
20611
20911
  return _objectSpread2({
20612
- height: scale(theme.__hd__.spinner.space.spinnerDot),
20613
- width: scale(theme.__hd__.spinner.space.spinnerDot),
20614
- borderRadius: theme.__hd__.spinner.radii["default"],
20615
- backgroundColor: theme.__hd__.spinner.color["default"]
20912
+ height: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20913
+ width: scale(theme.__hd__.spinner.space.spinnerDot[themeSize]),
20914
+ borderRadius: theme.__hd__.spinner.radii["default"]
20616
20915
  }, themeStyling());
20617
20916
  });
20618
20917
 
20619
20918
  var AnimatedRow = reactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
20620
20919
  var AnimatedDot = reactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
20621
20920
 
20622
- var AnimatedSpinner = function AnimatedSpinner() {
20921
+ var AnimatedSpinner = function AnimatedSpinner(_ref) {
20922
+ var _ref$size = _ref.size,
20923
+ size = _ref$size === void 0 ? 'medium' : _ref$size;
20623
20924
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
20624
20925
  React.useEffect(function () {
20625
20926
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -20644,29 +20945,39 @@ var AnimatedSpinner = function AnimatedSpinner() {
20644
20945
  }]
20645
20946
  }])
20646
20947
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedRow, {
20647
- themePosition: "top"
20948
+ themePosition: "top",
20949
+ themeSize: size
20648
20950
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20649
- themePosition: "topLeft"
20951
+ themePosition: "topLeft",
20952
+ themeSize: size
20650
20953
  }), /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20651
- themePosition: "topRight"
20954
+ themePosition: "topRight",
20955
+ themeSize: size
20652
20956
  })), /*#__PURE__*/React__default["default"].createElement(AnimatedRow, {
20653
- themePosition: "bottom"
20957
+ themePosition: "bottom",
20958
+ themeSize: size
20654
20959
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20655
- themePosition: "bottomLeft"
20960
+ themePosition: "bottomLeft",
20961
+ themeSize: size
20656
20962
  }), /*#__PURE__*/React__default["default"].createElement(AnimatedDot, {
20657
- themePosition: "bottomRight"
20963
+ themePosition: "bottomRight",
20964
+ themeSize: size
20658
20965
  })));
20659
20966
  };
20660
20967
 
20661
- var _excluded$1 = ["testID"];
20968
+ var _excluded$1 = ["testID", "size"];
20662
20969
 
20663
20970
  var Spinner = function Spinner(_ref) {
20664
20971
  var testID = _ref.testID,
20972
+ _ref$size = _ref.size,
20973
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
20665
20974
  nativeProps = _objectWithoutProperties(_ref, _excluded$1);
20666
20975
 
20667
20976
  return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
20668
20977
  testID: testID
20669
- }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
20978
+ }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
20979
+ size: size
20980
+ })));
20670
20981
  };
20671
20982
 
20672
20983
  var Circle = index$7(reactNative.View)(function (_ref) {
@@ -21442,6 +21753,10 @@ var StyledIndicator = index$7(reactNative.Animated.View)(function (_ref3) {
21442
21753
  bottom: 0
21443
21754
  };
21444
21755
  });
21756
+ var StyledBadgeWrapper = index$7(reactNative.View)({
21757
+ flexDirection: 'row',
21758
+ alignItems: 'center'
21759
+ });
21445
21760
 
21446
21761
  var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
21447
21762
  var scrollOffsetAnimatedValue = _ref.scrollOffsetAnimatedValue,
@@ -21484,16 +21799,16 @@ var HeaderTabWrapper = index$7(reactNative.View)(function (_ref) {
21484
21799
  };
21485
21800
  });
21486
21801
  var HeaderTabItem = index$7(reactNative.Animated.View)(function (_ref2) {
21487
- var theme = _ref2.theme;
21802
+ var theme = _ref2.theme,
21803
+ isFirstItem = _ref2.isFirstItem;
21488
21804
  return {
21489
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21805
+ marginLeft: isFirstItem ? 0 : theme.__hd__.tabs.space.itemMargin,
21490
21806
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21491
21807
  };
21492
21808
  });
21493
21809
  var HeaderTabItemOutlineWrapper = index$7(reactNative.View)(function (_ref3) {
21494
21810
  var theme = _ref3.theme;
21495
21811
  return _objectSpread2({
21496
- paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
21497
21812
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
21498
21813
  }, reactNative.StyleSheet.absoluteFillObject);
21499
21814
  });
@@ -21524,6 +21839,47 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
21524
21839
  return refs.current;
21525
21840
  };
21526
21841
 
21842
+ var TabWithBadge = function TabWithBadge(_ref) {
21843
+ var showBadge = _ref.showBadge,
21844
+ config = _ref.config,
21845
+ tabItem = _ref.tabItem;
21846
+ var theme = useTheme$1(); // Deprecated. To be removed.
21847
+
21848
+ if (showBadge !== undefined) {
21849
+ return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21850
+ testID: "deprecated-badge",
21851
+ visible: showBadge,
21852
+ style: {
21853
+ paddingHorizontal: theme.space.small
21854
+ }
21855
+ }, tabItem);
21856
+ }
21857
+
21858
+ if (!config) return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, tabItem);
21859
+
21860
+ if (config.type === 'status') {
21861
+ return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21862
+ visible: true,
21863
+ style: {
21864
+ paddingHorizontal: theme.space.xsmall
21865
+ }
21866
+ }, tabItem);
21867
+ }
21868
+
21869
+ if (config.type === 'counter') {
21870
+ return /*#__PURE__*/React__default["default"].createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__default["default"].createElement(Badge$1, {
21871
+ content: config.value,
21872
+ max: config.max,
21873
+ intent: "info",
21874
+ style: {
21875
+ marginLeft: theme.space.xsmall
21876
+ }
21877
+ }));
21878
+ }
21879
+
21880
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, tabItem);
21881
+ };
21882
+
21527
21883
  var getTabItem$1 = function getTabItem(_ref) {
21528
21884
  var item = _ref.item,
21529
21885
  color = _ref.color,
@@ -21630,8 +21986,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21630
21986
  testID = tab.testID,
21631
21987
  activeItem = tab.activeItem,
21632
21988
  originalInactiveItem = tab.inactiveItem,
21633
- _tab$showBadge = tab.showBadge,
21634
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
21989
+ showBadge = tab.showBadge,
21990
+ badge = tab.badge;
21635
21991
  var active = selectedTabKey === key;
21636
21992
  var activeAnimated = tabsAnims[index];
21637
21993
  var outlineScale = active ? activeAnimated.interpolate({
@@ -21650,7 +22006,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21650
22006
  onTabPress(key);
21651
22007
  },
21652
22008
  testID: testID
21653
- }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutline, {
22009
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem, {
22010
+ isFirstItem: index === 0
22011
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default["default"].createElement(HeaderTabItemOutline, {
21654
22012
  themeActive: active,
21655
22013
  style: {
21656
22014
  flex: 1,
@@ -21658,9 +22016,11 @@ var ScrollableTab = function ScrollableTab(_ref2) {
21658
22016
  scaleX: outlineScale
21659
22017
  }]
21660
22018
  }
21661
- })), /*#__PURE__*/React__default["default"].createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21662
- visible: showBadge
21663
- }, tabItem))));
22019
+ })), /*#__PURE__*/React__default["default"].createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default["default"].createElement(TabWithBadge, {
22020
+ showBadge: showBadge,
22021
+ config: badge,
22022
+ tabItem: tabItem
22023
+ }))));
21664
22024
  }
21665
22025
  })), /*#__PURE__*/React__default["default"].createElement(ContentWrapper, {
21666
22026
  initialPage: selectedTabIndex,
@@ -21759,8 +22119,8 @@ var Tabs = function Tabs(_ref2) {
21759
22119
  testID = tab.testID,
21760
22120
  activeItem = tab.activeItem,
21761
22121
  originalInactiveItem = tab.inactiveItem,
21762
- _tab$showBadge = tab.showBadge,
21763
- showBadge = _tab$showBadge === void 0 ? false : _tab$showBadge;
22122
+ showBadge = tab.showBadge,
22123
+ badge = tab.badge;
21764
22124
  var active = selectedTabKey === key;
21765
22125
  var inactiveItem = originalInactiveItem !== null && originalInactiveItem !== void 0 ? originalInactiveItem : activeItem;
21766
22126
  var tabItem = getTabItem({
@@ -21774,9 +22134,11 @@ var Tabs = function Tabs(_ref2) {
21774
22134
  onTabPress(key);
21775
22135
  },
21776
22136
  testID: testID
21777
- }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
21778
- visible: showBadge
21779
- }, tabItem)));
22137
+ }, /*#__PURE__*/React__default["default"].createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default["default"].createElement(TabWithBadge, {
22138
+ showBadge: showBadge,
22139
+ config: badge,
22140
+ tabItem: tabItem
22141
+ })));
21780
22142
  })), /*#__PURE__*/React__default["default"].createElement(ActiveTabIndicator, {
21781
22143
  positionAnimatedValue: positionAnimatedValue,
21782
22144
  scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
@@ -21822,15 +22184,6 @@ var index$2 = Object.assign(Tabs, {
21822
22184
  Scroll: ScrollableTab
21823
22185
  });
21824
22186
 
21825
- var BACKGROUND_INTENTS = {
21826
- "default": 'defaultBackground',
21827
- primary: 'primaryBackground',
21828
- info: 'infoBackground',
21829
- success: 'successBackground',
21830
- warning: 'warningBackground',
21831
- danger: 'dangerBackground',
21832
- archived: 'archivedBackground'
21833
- };
21834
22187
  var StyledView = index$7(reactNative.View)(function (_ref) {
21835
22188
  var themeIntent = _ref.themeIntent,
21836
22189
  theme = _ref.theme;
@@ -21840,7 +22193,7 @@ var StyledView = index$7(reactNative.View)(function (_ref) {
21840
22193
  paddingVertical: theme.__hd__.tag.space.verticalPadding,
21841
22194
  paddingHorizontal: theme.__hd__.tag.space.horizontalPadding,
21842
22195
  borderColor: theme.__hd__.tag.colors[themeIntent],
21843
- backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
22196
+ backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
21844
22197
  };
21845
22198
  });
21846
22199
  var StyledText = index$7(reactNative.Text)(function (_ref2) {
@@ -21861,7 +22214,7 @@ var _excluded = ["content", "intent", "style", "testID"];
21861
22214
  var Tag = function Tag(_ref) {
21862
22215
  var content = _ref.content,
21863
22216
  _ref$intent = _ref.intent,
21864
- intent = _ref$intent === void 0 ? 'default' : _ref$intent,
22217
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
21865
22218
  style = _ref.style,
21866
22219
  testID = _ref.testID,
21867
22220
  nativeProps = _objectWithoutProperties(_ref, _excluded);
@@ -22037,8 +22390,8 @@ var ToastContainerWrapper = index$7(reactNative.View)(function (_ref) {
22037
22390
  var theme = _ref.theme,
22038
22391
  position = _ref.position;
22039
22392
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
22040
- paddingHorizontal: theme.__hd__.toast.space.largePadding,
22041
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22393
+ paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
22394
+ paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
22042
22395
  flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
22043
22396
  elevation: 9999
22044
22397
  });
@@ -22051,20 +22404,25 @@ var Container = index$7(reactNative.Animated.View)(function (_ref2) {
22051
22404
  borderRadius: themeVariant === 'round' ? theme.__hd__.toast.radii["default"] : 0,
22052
22405
  backgroundColor: theme.__hd__.toast.colors[themeIntent],
22053
22406
  minHeight: theme.__hd__.toast.sizes.height,
22054
- flexDirection: 'row'
22407
+ flexDirection: 'row',
22408
+ shadowColor: theme.__hd__.toast.colors.shadow,
22409
+ shadowOffset: theme.__hd__.toast.shadows.offset,
22410
+ shadowRadius: theme.__hd__.toast.shadows.radius,
22411
+ shadowOpacity: theme.__hd__.toast.shadows.opacity,
22412
+ elevation: theme.__hd__.toast.shadows.elevation
22055
22413
  };
22056
22414
  });
22057
22415
  var IconContainer = index$7(reactNative.View)(function (_ref3) {
22058
22416
  var theme = _ref3.theme;
22059
22417
  return {
22060
22418
  alignItems: 'center',
22061
- paddingLeft: theme.__hd__.toast.space.mediumPadding
22419
+ paddingLeft: theme.__hd__.toast.space.iconLeftPadding
22062
22420
  };
22063
22421
  });
22064
22422
  var TextContainer = index$7(reactNative.View)(function (_ref4) {
22065
22423
  var theme = _ref4.theme;
22066
22424
  return {
22067
- paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
22425
+ paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
22068
22426
  flex: 1
22069
22427
  };
22070
22428
  });
@@ -22072,7 +22430,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22072
22430
  var theme = _ref5.theme,
22073
22431
  showDivider = _ref5.showDivider;
22074
22432
  return {
22075
- paddingVertical: theme.__hd__.toast.space.mediumPadding,
22433
+ paddingVertical: theme.__hd__.toast.space.contentVerticalPadding,
22076
22434
  flex: 1,
22077
22435
  borderRightWidth: showDivider ? theme.__hd__.toast.borderWidths.base : 0,
22078
22436
  borderColor: theme.__hd__.toast.colors.divider,
@@ -22082,7 +22440,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
22082
22440
  var CTAWrapper = index$7(reactNative.TouchableOpacity)(function (_ref6) {
22083
22441
  var theme = _ref6.theme;
22084
22442
  return {
22085
- paddingHorizontal: theme.__hd__.alert.space.padding,
22443
+ paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
22086
22444
  justifyContent: 'center'
22087
22445
  };
22088
22446
  });
@@ -22109,24 +22467,39 @@ var getIntentIcon = function getIntentIcon(intent) {
22109
22467
 
22110
22468
  case 'error':
22111
22469
  return 'circle-warning';
22470
+
22471
+ default:
22472
+ return undefined;
22112
22473
  }
22113
22474
  };
22114
22475
 
22115
- var Toast$1 = function Toast(_ref) {
22116
- var content = _ref.content,
22117
- icon = _ref.icon,
22118
- _ref$variant = _ref.variant,
22119
- variant = _ref$variant === void 0 ? 'default' : _ref$variant,
22120
- _ref$intent = _ref.intent,
22121
- intent = _ref$intent === void 0 ? 'info' : _ref$intent,
22122
- style = _ref.style,
22123
- _ref$duration = _ref.duration,
22124
- duration = _ref$duration === void 0 ? 2000 : _ref$duration,
22125
- _ref$autoDismiss = _ref.autoDismiss,
22126
- autoDismiss = _ref$autoDismiss === void 0 ? true : _ref$autoDismiss,
22127
- onAction = _ref.onAction,
22128
- actionLabel = _ref.actionLabel,
22129
- onDismiss = _ref.onDismiss;
22476
+ var ToastIcon = function ToastIcon(_ref) {
22477
+ var themeIntent = _ref.themeIntent,
22478
+ icon = _ref.icon;
22479
+ return icon ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
22480
+ testID: "toast-left-icon"
22481
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
22482
+ icon: icon,
22483
+ size: "small",
22484
+ intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
22485
+ })) : null;
22486
+ };
22487
+
22488
+ var Toast$1 = function Toast(_ref2) {
22489
+ var content = _ref2.content,
22490
+ icon = _ref2.icon,
22491
+ _ref2$variant = _ref2.variant,
22492
+ variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
22493
+ _ref2$intent = _ref2.intent,
22494
+ intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
22495
+ style = _ref2.style,
22496
+ _ref2$duration = _ref2.duration,
22497
+ duration = _ref2$duration === void 0 ? 2000 : _ref2$duration,
22498
+ _ref2$autoDismiss = _ref2.autoDismiss,
22499
+ autoDismiss = _ref2$autoDismiss === void 0 ? true : _ref2$autoDismiss,
22500
+ onAction = _ref2.onAction,
22501
+ actionLabel = _ref2.actionLabel,
22502
+ onDismiss = _ref2.onDismiss;
22130
22503
  var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
22131
22504
  var toastConfig = useToastConfig();
22132
22505
  React.useEffect(function () {
@@ -22170,19 +22543,20 @@ var Toast$1 = function Toast(_ref) {
22170
22543
  }]
22171
22544
  }, /*#__PURE__*/React__default["default"].createElement(ContentContainer, {
22172
22545
  showDivider: !!actionLabel
22173
- }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(IconContainer, {
22174
- testID: "toast-left-icon"
22175
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
22176
- icon: icon || getIntentIcon(intent),
22177
- size: "small"
22178
- })) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
22546
+ }, icon !== null ? /*#__PURE__*/React__default["default"].createElement(ToastIcon, {
22547
+ themeIntent: intent,
22548
+ icon: icon || getIntentIcon(intent)
22549
+ }) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
22550
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22551
+ }, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
22179
22552
  testID: "toast-action-button",
22180
22553
  onPress: function onPress() {
22181
22554
  onAction === null || onAction === void 0 ? void 0 : onAction();
22182
22555
  onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
22183
22556
  }
22184
22557
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
22185
- fontWeight: "semi-bold"
22558
+ fontWeight: "semi-bold",
22559
+ intent: intent === 'snackbar' ? 'inverted' : 'body'
22186
22560
  }, actionLabel) : actionLabel) : null);
22187
22561
  };
22188
22562
 
@@ -22305,13 +22679,17 @@ var ToastProvider = function ToastProvider(_ref) {
22305
22679
  }, [displayType, position]);
22306
22680
  return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
22307
22681
  value: refState
22682
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
22683
+ style: {
22684
+ flex: 1
22685
+ }
22308
22686
  }, children, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
22309
22687
  value: config
22310
22688
  }, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
22311
22689
  ref: toastRef,
22312
22690
  displayType: displayType,
22313
22691
  position: position
22314
- })));
22692
+ }))));
22315
22693
  };
22316
22694
 
22317
22695
  var Toast = {
@@ -40700,6 +41078,7 @@ exports.Avatar = Avatar;
40700
41078
  exports.Badge = Badge$1;
40701
41079
  exports.BottomNavigation = BottomNavigation;
40702
41080
  exports.BottomSheet = BottomSheet;
41081
+ exports.Box = Box;
40703
41082
  exports.Button = CompoundButton;
40704
41083
  exports.Calendar = Calendar;
40705
41084
  exports.Card = index$6;