@hero-design/rn 8.34.2 → 8.34.4

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 (56) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/es/index.js +43 -16
  3. package/lib/index.js +43 -16
  4. package/package.json +7 -7
  5. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  6. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +3 -3
  7. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -1
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  9. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  10. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +4 -4
  11. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
  12. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  13. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  14. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  15. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  16. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  17. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
  18. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  19. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -7
  20. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  21. package/src/components/Swipeable/index.tsx +6 -1
  22. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  23. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  24. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
  25. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -2
  26. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -2
  27. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  28. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +9 -9
  29. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -7
  30. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
  31. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +1 -1
  32. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
  33. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  34. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
  35. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  36. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
  37. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  38. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  39. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +3 -3
  40. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  41. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +39 -36
  42. package/src/theme/components/swipeable.ts +5 -1
  43. package/src/theme/components/typography.ts +2 -2
  44. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +7 -7
  45. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +5 -5
  46. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +6 -6
  47. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +6 -6
  48. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +7 -7
  49. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +5 -5
  50. package/src/theme/global/colors/eBens.ts +2 -2
  51. package/src/theme/global/colors/global.ts +5 -5
  52. package/src/theme/global/colors/jobs.ts +1 -1
  53. package/src/theme/global/colors/swag.ts +1 -1
  54. package/src/theme/global/colors/wallet.ts +2 -2
  55. package/types/components/Swipeable/index.d.ts +1 -1
  56. package/types/theme/components/swipeable.d.ts +3 -0
@@ -4,5 +4,5 @@ $ rollup -c
4
4
  src/index.ts → lib/index.js, es/index.js...
5
5
  (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
6
6
  (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
7
- created lib/index.js, es/index.js in 25.2s
7
+ created lib/index.js, es/index.js in 24.7s
8
8
  $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -914,6 +914,7 @@ var createColorScales = function createColorScales(base) {
914
914
  };
915
915
  var BASE_COLORS = {
916
916
  aliceBlue: '#ecf0ff',
917
+ amaranthaRed: '#cb300a',
917
918
  antiFlashWhite: '#f1f2f3',
918
919
  apple: '#e3602a',
919
920
  bigStone: '#344348',
@@ -923,6 +924,7 @@ var BASE_COLORS = {
923
924
  blueOblivion: '#23438f',
924
925
  blazingBonfire: '#ffa234',
925
926
  cornflowerBlue: '#5d80f0',
927
+ cumberlandFog: '#dadbde',
926
928
  currant: '#48000a',
927
929
  darkBlue: '#25006e',
928
930
  deepSaffron: '#ffa234',
@@ -930,6 +932,7 @@ var BASE_COLORS = {
930
932
  emerald: '#5ace7d',
931
933
  flagstone: '#acacaf',
932
934
  frenchSky: '#8999ff',
935
+ gentianFlower: '#355bfb',
933
936
  gold: '#ffd500',
934
937
  green: '#01b39c',
935
938
  grey: '#a3a6ac',
@@ -945,6 +948,7 @@ var BASE_COLORS = {
945
948
  mellowApricot: '#ffbe71',
946
949
  mintLeaf: '#01cbb0',
947
950
  nightBlue: '#353957',
951
+ orangeBrown: '#ac5d00',
948
952
  pastelRed: '#f46363',
949
953
  pastelBlue: '#a1b5fc',
950
954
  paua: '#130066',
@@ -966,7 +970,8 @@ var BASE_COLORS = {
966
970
  vodka: '#b5c3fd',
967
971
  theatreGold: '#a56822',
968
972
  uniformGreen: '#4d4628',
969
- yellow: '#fadb14'
973
+ yellow: '#fadb14',
974
+ windsorGrey: '#606065'
970
975
  };
971
976
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
972
977
  var _ref17 = _slicedToArray(_ref16, 2),
@@ -1099,15 +1104,19 @@ Object.assign(Object.assign({}, palette$b), {
1099
1104
  maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
1100
1105
  });
1101
1106
  var aliceBlue$1 = colorScales.aliceBlue,
1107
+ amaranthaRed = colorScales.amaranthaRed,
1102
1108
  antiFlashWhite$1 = colorScales.antiFlashWhite,
1103
1109
  apple$2 = colorScales.apple,
1110
+ cumberlandFog = colorScales.cumberlandFog,
1104
1111
  deepSaffron$1 = colorScales.deepSaffron,
1105
1112
  emerald$1 = colorScales.emerald,
1113
+ gentianFlower = colorScales.gentianFlower,
1106
1114
  grey$1 = colorScales.grey,
1107
1115
  honeydew$1 = colorScales.honeydew,
1108
1116
  linen$1 = colorScales.linen,
1109
1117
  maasstrichtBlue$3 = colorScales.maasstrichtBlue,
1110
1118
  mellowApricot$1 = colorScales.mellowApricot,
1119
+ orangeBrown = colorScales.orangeBrown,
1111
1120
  pastelRed$1 = colorScales.pastelRed,
1112
1121
  pineGreen$1 = colorScales.pineGreen,
1113
1122
  seashell$1 = colorScales.seashell,
@@ -1116,6 +1125,7 @@ var aliceBlue$1 = colorScales.aliceBlue,
1116
1125
  ultramarineBlue$1 = colorScales.ultramarineBlue,
1117
1126
  vermilion$1 = colorScales.vermilion,
1118
1127
  vodka$1 = colorScales.vodka,
1128
+ windsorGrey = colorScales.windsorGrey,
1119
1129
  black$1 = colorScales.black;
1120
1130
  var palette$8 = {
1121
1131
  black: black$1.base,
@@ -1153,7 +1163,12 @@ var palette$8 = {
1153
1163
  antiFlashWhite: antiFlashWhite$1.base,
1154
1164
  apple: apple$2.base,
1155
1165
  silverChalice: silverChalice$1.base,
1156
- silverChaliceLight20: silverChalice$1.lighten20
1166
+ silverChaliceLight20: silverChalice$1.lighten20,
1167
+ amaranthaRed: amaranthaRed.base,
1168
+ orangeBrown: orangeBrown.base,
1169
+ gentianFlower: gentianFlower.base,
1170
+ windsorGrey: windsorGrey.base,
1171
+ cumberlandFog: cumberlandFog.base
1157
1172
  };
1158
1173
  var aliceBlue = colorScales.aliceBlue,
1159
1174
  antiFlashWhite = colorScales.antiFlashWhite,
@@ -1267,6 +1282,7 @@ var palette$5 = Object.assign(Object.assign({}, palette$8), {
1267
1282
  violetLight20: violet1$2.lighten20,
1268
1283
  violetLight30: violet1$2.lighten30,
1269
1284
  violetLight90: violet1$2.lighten90,
1285
+ violetDark20: violet1$2.darken20,
1270
1286
  mauve: mauve$2.base,
1271
1287
  mauveLight80: mauve$2.lighten80
1272
1288
  });
@@ -1276,6 +1292,7 @@ var apple = colorScales.apple,
1276
1292
  var palette$4 = Object.assign(Object.assign({}, palette$8), {
1277
1293
  apple: apple.base,
1278
1294
  appleLight10: apple.lighten10,
1295
+ appleDark20: apple.darken20,
1279
1296
  hitPink: hitPink.base,
1280
1297
  hitPinkLight30: hitPink.lighten30,
1281
1298
  hitPinkLight50: hitPink.lighten50,
@@ -1293,6 +1310,7 @@ var palette$3 = Object.assign(Object.assign({}, palette$8), {
1293
1310
  scarletGumLight80: scarletGum$1.lighten80,
1294
1311
  scarletGumLight90: scarletGum$1.lighten90,
1295
1312
  scarletGum: scarletGum$1.base,
1313
+ scarletGumDark20: scarletGum$1.darken20,
1296
1314
  violetLight30: violet1$1.lighten30,
1297
1315
  violetLight50: violet1$1.lighten50,
1298
1316
  violetLight80: violet1$1.lighten80,
@@ -1332,6 +1350,7 @@ var palette$1 = Object.assign(Object.assign({}, palette$8), {
1332
1350
  royalBlueLight10: royalBlue.lighten10,
1333
1351
  royalBlueLight80: royalBlue.lighten80,
1334
1352
  royalBlueLight90: royalBlue.lighten90,
1353
+ royalBlueDark20: royalBlue.darken20,
1335
1354
  royalBlueDark30: royalBlue.darken30,
1336
1355
  frenchSky: frenchSky.base,
1337
1356
  frenchSkyLight70: frenchSky.lighten70,
@@ -1376,11 +1395,11 @@ var globalPalette$1 = {
1376
1395
  error: palette$8.pastelRed,
1377
1396
  mutedError: palette$8.pastelRedLight20,
1378
1397
  errorSurface: palette$8.linen,
1379
- onErrorSurface: palette$8.vermilion,
1398
+ onErrorSurface: palette$8.amaranthaRed,
1380
1399
  warning: palette$8.mellowApricot,
1381
1400
  mutedWarning: palette$8.mellowApricotLight20,
1382
1401
  warningSurface: palette$8.seashell,
1383
- onWarningSurface: palette$8.deepSaffron,
1402
+ onWarningSurface: palette$8.orangeBrown,
1384
1403
  success: palette$8.emerald,
1385
1404
  mutedSuccess: palette$8.emeraldLight20,
1386
1405
  successSurface: palette$8.honeydew,
@@ -1388,11 +1407,11 @@ var globalPalette$1 = {
1388
1407
  info: palette$8.vodka,
1389
1408
  mutedInfo: palette$8.vodkaLight20,
1390
1409
  infoSurface: palette$8.aliceBlue,
1391
- onInfoSurface: palette$8.ultramarineBlue,
1410
+ onInfoSurface: palette$8.gentianFlower,
1392
1411
  archived: palette$8.silverChalice,
1393
1412
  mutedArchived: palette$8.silverChaliceLight20,
1394
- archivedSurface: palette$8.antiFlashWhite,
1395
- onArchivedSurface: palette$8.sonicSilver
1413
+ archivedSurface: palette$8.cumberlandFog,
1414
+ onArchivedSurface: palette$8.windsorGrey
1396
1415
  // End of Updated 21 / Nov / 22
1397
1416
  };
1398
1417
 
@@ -1403,7 +1422,7 @@ var swagBrandSystemPallete = {
1403
1422
  onSecondary: palette$3.white,
1404
1423
  defaultSurface: palette$3.greyLight90,
1405
1424
  highlightedSurface: palette$3.scarletGumLight90,
1406
- pressedSurface: palette$3.scarletGumLight20,
1425
+ pressedSurface: palette$3.scarletGumDark20,
1407
1426
  decorativePrimary: palette$3.white,
1408
1427
  decorativePrimarySurface: palette$3.maasstrichtBlueLight80
1409
1428
  };
@@ -1483,7 +1502,7 @@ var jobsBrandSystemPallete = {
1483
1502
  onSecondary: palette$4.white,
1484
1503
  defaultSurface: palette$4.white,
1485
1504
  highlightedSurface: palette$4.hitPinkLight90,
1486
- pressedSurface: palette$4.appleLight10,
1505
+ pressedSurface: palette$4.appleDark20,
1487
1506
  decorativePrimary: palette$4.hitPink,
1488
1507
  decorativePrimarySurface: palette$4.hitPinkLight80
1489
1508
  };
@@ -1494,9 +1513,9 @@ var walletBrandSystemPallete = {
1494
1513
  onPrimary: palette$1.white,
1495
1514
  secondary: palette$1.royalBlueDark30,
1496
1515
  onSecondary: palette$1.white,
1497
- defaultSurface: palette$1.frenchSkyLight70,
1516
+ defaultSurface: palette$1.white,
1498
1517
  highlightedSurface: palette$1.royalBlueLight90,
1499
- pressedSurface: palette$1.royalBlueLight10,
1518
+ pressedSurface: palette$1.royalBlueDark20,
1500
1519
  decorativePrimary: palette$1.frenchSky,
1501
1520
  decorativePrimarySurface: palette$1.frenchSkyLight80
1502
1521
  };
@@ -1507,9 +1526,9 @@ var eBensBrandSystemPallete = {
1507
1526
  onPrimary: palette$5.white,
1508
1527
  secondary: palette$5.violetLight30,
1509
1528
  onSecondary: palette$5.white,
1510
- defaultSurface: palette$5.greyLight90,
1529
+ defaultSurface: palette$5.white,
1511
1530
  highlightedSurface: palette$5.violetLight90,
1512
- pressedSurface: palette$5.violetLight20,
1531
+ pressedSurface: palette$5.violetDark20,
1513
1532
  decorativePrimary: palette$5.mauve,
1514
1533
  decorativePrimarySurface: palette$5.mauveLight80
1515
1534
  };
@@ -2763,8 +2782,12 @@ var getSwipeableTheme = function getSwipeableTheme(theme) {
2763
2782
  danger: theme.colors.error,
2764
2783
  primary: theme.colors.primary
2765
2784
  };
2785
+ var radii = {
2786
+ swipeableContainer: theme.radii.medium
2787
+ };
2766
2788
  return {
2767
- colors: colors
2789
+ colors: colors,
2790
+ radii: radii
2768
2791
  };
2769
2792
  };
2770
2793
 
@@ -3123,7 +3146,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3123
3146
  h2: theme.fontSizes.xxxxxlarge,
3124
3147
  h3: theme.fontSizes.xxxxlarge,
3125
3148
  h4: theme.fontSizes.xxxlarge,
3126
- h5: theme.fontSizes.xxlarge,
3149
+ h5: theme.fontSizes.xlarge,
3127
3150
  h6: theme.fontSizes.large
3128
3151
  }
3129
3152
  },
@@ -3165,7 +3188,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3165
3188
  h2: theme.lineHeights.xxxxxlarge,
3166
3189
  h3: theme.lineHeights.xxxxlarge,
3167
3190
  h4: theme.lineHeights.xxxlarge,
3168
- h5: theme.lineHeights.xxlarge,
3191
+ h5: theme.lineHeights.xlarge,
3169
3192
  h6: theme.lineHeights.xxlarge
3170
3193
  }
3171
3194
  },
@@ -14779,6 +14802,7 @@ var Swipeable = function Swipeable(_ref) {
14779
14802
  rightActions = _ref.rightActions,
14780
14803
  rightActionsWidth = _ref.rightActionsWidth,
14781
14804
  swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14805
+ var theme = useTheme();
14782
14806
  var _useWindowDimensions = useWindowDimensions(),
14783
14807
  width = _useWindowDimensions.width;
14784
14808
  var swipeableRef = useRef(null);
@@ -14817,6 +14841,9 @@ var Swipeable = function Swipeable(_ref) {
14817
14841
  },
14818
14842
  onSwipeableClose: function onSwipeableClose() {
14819
14843
  return onStateChange === null || onStateChange === void 0 ? void 0 : onStateChange('closed');
14844
+ },
14845
+ containerStyle: {
14846
+ borderRadius: theme.__hd__.swipeable.radii.swipeableContainer
14820
14847
  }
14821
14848
  }), children));
14822
14849
  };
package/lib/index.js CHANGED
@@ -945,6 +945,7 @@ var createColorScales = function createColorScales(base) {
945
945
  };
946
946
  var BASE_COLORS = {
947
947
  aliceBlue: '#ecf0ff',
948
+ amaranthaRed: '#cb300a',
948
949
  antiFlashWhite: '#f1f2f3',
949
950
  apple: '#e3602a',
950
951
  bigStone: '#344348',
@@ -954,6 +955,7 @@ var BASE_COLORS = {
954
955
  blueOblivion: '#23438f',
955
956
  blazingBonfire: '#ffa234',
956
957
  cornflowerBlue: '#5d80f0',
958
+ cumberlandFog: '#dadbde',
957
959
  currant: '#48000a',
958
960
  darkBlue: '#25006e',
959
961
  deepSaffron: '#ffa234',
@@ -961,6 +963,7 @@ var BASE_COLORS = {
961
963
  emerald: '#5ace7d',
962
964
  flagstone: '#acacaf',
963
965
  frenchSky: '#8999ff',
966
+ gentianFlower: '#355bfb',
964
967
  gold: '#ffd500',
965
968
  green: '#01b39c',
966
969
  grey: '#a3a6ac',
@@ -976,6 +979,7 @@ var BASE_COLORS = {
976
979
  mellowApricot: '#ffbe71',
977
980
  mintLeaf: '#01cbb0',
978
981
  nightBlue: '#353957',
982
+ orangeBrown: '#ac5d00',
979
983
  pastelRed: '#f46363',
980
984
  pastelBlue: '#a1b5fc',
981
985
  paua: '#130066',
@@ -997,7 +1001,8 @@ var BASE_COLORS = {
997
1001
  vodka: '#b5c3fd',
998
1002
  theatreGold: '#a56822',
999
1003
  uniformGreen: '#4d4628',
1000
- yellow: '#fadb14'
1004
+ yellow: '#fadb14',
1005
+ windsorGrey: '#606065'
1001
1006
  };
1002
1007
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1003
1008
  var _ref17 = _slicedToArray(_ref16, 2),
@@ -1130,15 +1135,19 @@ Object.assign(Object.assign({}, palette$b), {
1130
1135
  maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
1131
1136
  });
1132
1137
  var aliceBlue$1 = colorScales.aliceBlue,
1138
+ amaranthaRed = colorScales.amaranthaRed,
1133
1139
  antiFlashWhite$1 = colorScales.antiFlashWhite,
1134
1140
  apple$2 = colorScales.apple,
1141
+ cumberlandFog = colorScales.cumberlandFog,
1135
1142
  deepSaffron$1 = colorScales.deepSaffron,
1136
1143
  emerald$1 = colorScales.emerald,
1144
+ gentianFlower = colorScales.gentianFlower,
1137
1145
  grey$1 = colorScales.grey,
1138
1146
  honeydew$1 = colorScales.honeydew,
1139
1147
  linen$1 = colorScales.linen,
1140
1148
  maasstrichtBlue$3 = colorScales.maasstrichtBlue,
1141
1149
  mellowApricot$1 = colorScales.mellowApricot,
1150
+ orangeBrown = colorScales.orangeBrown,
1142
1151
  pastelRed$1 = colorScales.pastelRed,
1143
1152
  pineGreen$1 = colorScales.pineGreen,
1144
1153
  seashell$1 = colorScales.seashell,
@@ -1147,6 +1156,7 @@ var aliceBlue$1 = colorScales.aliceBlue,
1147
1156
  ultramarineBlue$1 = colorScales.ultramarineBlue,
1148
1157
  vermilion$1 = colorScales.vermilion,
1149
1158
  vodka$1 = colorScales.vodka,
1159
+ windsorGrey = colorScales.windsorGrey,
1150
1160
  black$1 = colorScales.black;
1151
1161
  var palette$8 = {
1152
1162
  black: black$1.base,
@@ -1184,7 +1194,12 @@ var palette$8 = {
1184
1194
  antiFlashWhite: antiFlashWhite$1.base,
1185
1195
  apple: apple$2.base,
1186
1196
  silverChalice: silverChalice$1.base,
1187
- silverChaliceLight20: silverChalice$1.lighten20
1197
+ silverChaliceLight20: silverChalice$1.lighten20,
1198
+ amaranthaRed: amaranthaRed.base,
1199
+ orangeBrown: orangeBrown.base,
1200
+ gentianFlower: gentianFlower.base,
1201
+ windsorGrey: windsorGrey.base,
1202
+ cumberlandFog: cumberlandFog.base
1188
1203
  };
1189
1204
  var aliceBlue = colorScales.aliceBlue,
1190
1205
  antiFlashWhite = colorScales.antiFlashWhite,
@@ -1298,6 +1313,7 @@ var palette$5 = Object.assign(Object.assign({}, palette$8), {
1298
1313
  violetLight20: violet1$2.lighten20,
1299
1314
  violetLight30: violet1$2.lighten30,
1300
1315
  violetLight90: violet1$2.lighten90,
1316
+ violetDark20: violet1$2.darken20,
1301
1317
  mauve: mauve$2.base,
1302
1318
  mauveLight80: mauve$2.lighten80
1303
1319
  });
@@ -1307,6 +1323,7 @@ var apple = colorScales.apple,
1307
1323
  var palette$4 = Object.assign(Object.assign({}, palette$8), {
1308
1324
  apple: apple.base,
1309
1325
  appleLight10: apple.lighten10,
1326
+ appleDark20: apple.darken20,
1310
1327
  hitPink: hitPink.base,
1311
1328
  hitPinkLight30: hitPink.lighten30,
1312
1329
  hitPinkLight50: hitPink.lighten50,
@@ -1324,6 +1341,7 @@ var palette$3 = Object.assign(Object.assign({}, palette$8), {
1324
1341
  scarletGumLight80: scarletGum$1.lighten80,
1325
1342
  scarletGumLight90: scarletGum$1.lighten90,
1326
1343
  scarletGum: scarletGum$1.base,
1344
+ scarletGumDark20: scarletGum$1.darken20,
1327
1345
  violetLight30: violet1$1.lighten30,
1328
1346
  violetLight50: violet1$1.lighten50,
1329
1347
  violetLight80: violet1$1.lighten80,
@@ -1363,6 +1381,7 @@ var palette$1 = Object.assign(Object.assign({}, palette$8), {
1363
1381
  royalBlueLight10: royalBlue.lighten10,
1364
1382
  royalBlueLight80: royalBlue.lighten80,
1365
1383
  royalBlueLight90: royalBlue.lighten90,
1384
+ royalBlueDark20: royalBlue.darken20,
1366
1385
  royalBlueDark30: royalBlue.darken30,
1367
1386
  frenchSky: frenchSky.base,
1368
1387
  frenchSkyLight70: frenchSky.lighten70,
@@ -1407,11 +1426,11 @@ var globalPalette$1 = {
1407
1426
  error: palette$8.pastelRed,
1408
1427
  mutedError: palette$8.pastelRedLight20,
1409
1428
  errorSurface: palette$8.linen,
1410
- onErrorSurface: palette$8.vermilion,
1429
+ onErrorSurface: palette$8.amaranthaRed,
1411
1430
  warning: palette$8.mellowApricot,
1412
1431
  mutedWarning: palette$8.mellowApricotLight20,
1413
1432
  warningSurface: palette$8.seashell,
1414
- onWarningSurface: palette$8.deepSaffron,
1433
+ onWarningSurface: palette$8.orangeBrown,
1415
1434
  success: palette$8.emerald,
1416
1435
  mutedSuccess: palette$8.emeraldLight20,
1417
1436
  successSurface: palette$8.honeydew,
@@ -1419,11 +1438,11 @@ var globalPalette$1 = {
1419
1438
  info: palette$8.vodka,
1420
1439
  mutedInfo: palette$8.vodkaLight20,
1421
1440
  infoSurface: palette$8.aliceBlue,
1422
- onInfoSurface: palette$8.ultramarineBlue,
1441
+ onInfoSurface: palette$8.gentianFlower,
1423
1442
  archived: palette$8.silverChalice,
1424
1443
  mutedArchived: palette$8.silverChaliceLight20,
1425
- archivedSurface: palette$8.antiFlashWhite,
1426
- onArchivedSurface: palette$8.sonicSilver
1444
+ archivedSurface: palette$8.cumberlandFog,
1445
+ onArchivedSurface: palette$8.windsorGrey
1427
1446
  // End of Updated 21 / Nov / 22
1428
1447
  };
1429
1448
 
@@ -1434,7 +1453,7 @@ var swagBrandSystemPallete = {
1434
1453
  onSecondary: palette$3.white,
1435
1454
  defaultSurface: palette$3.greyLight90,
1436
1455
  highlightedSurface: palette$3.scarletGumLight90,
1437
- pressedSurface: palette$3.scarletGumLight20,
1456
+ pressedSurface: palette$3.scarletGumDark20,
1438
1457
  decorativePrimary: palette$3.white,
1439
1458
  decorativePrimarySurface: palette$3.maasstrichtBlueLight80
1440
1459
  };
@@ -1514,7 +1533,7 @@ var jobsBrandSystemPallete = {
1514
1533
  onSecondary: palette$4.white,
1515
1534
  defaultSurface: palette$4.white,
1516
1535
  highlightedSurface: palette$4.hitPinkLight90,
1517
- pressedSurface: palette$4.appleLight10,
1536
+ pressedSurface: palette$4.appleDark20,
1518
1537
  decorativePrimary: palette$4.hitPink,
1519
1538
  decorativePrimarySurface: palette$4.hitPinkLight80
1520
1539
  };
@@ -1525,9 +1544,9 @@ var walletBrandSystemPallete = {
1525
1544
  onPrimary: palette$1.white,
1526
1545
  secondary: palette$1.royalBlueDark30,
1527
1546
  onSecondary: palette$1.white,
1528
- defaultSurface: palette$1.frenchSkyLight70,
1547
+ defaultSurface: palette$1.white,
1529
1548
  highlightedSurface: palette$1.royalBlueLight90,
1530
- pressedSurface: palette$1.royalBlueLight10,
1549
+ pressedSurface: palette$1.royalBlueDark20,
1531
1550
  decorativePrimary: palette$1.frenchSky,
1532
1551
  decorativePrimarySurface: palette$1.frenchSkyLight80
1533
1552
  };
@@ -1538,9 +1557,9 @@ var eBensBrandSystemPallete = {
1538
1557
  onPrimary: palette$5.white,
1539
1558
  secondary: palette$5.violetLight30,
1540
1559
  onSecondary: palette$5.white,
1541
- defaultSurface: palette$5.greyLight90,
1560
+ defaultSurface: palette$5.white,
1542
1561
  highlightedSurface: palette$5.violetLight90,
1543
- pressedSurface: palette$5.violetLight20,
1562
+ pressedSurface: palette$5.violetDark20,
1544
1563
  decorativePrimary: palette$5.mauve,
1545
1564
  decorativePrimarySurface: palette$5.mauveLight80
1546
1565
  };
@@ -2794,8 +2813,12 @@ var getSwipeableTheme = function getSwipeableTheme(theme) {
2794
2813
  danger: theme.colors.error,
2795
2814
  primary: theme.colors.primary
2796
2815
  };
2816
+ var radii = {
2817
+ swipeableContainer: theme.radii.medium
2818
+ };
2797
2819
  return {
2798
- colors: colors
2820
+ colors: colors,
2821
+ radii: radii
2799
2822
  };
2800
2823
  };
2801
2824
 
@@ -3154,7 +3177,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3154
3177
  h2: theme.fontSizes.xxxxxlarge,
3155
3178
  h3: theme.fontSizes.xxxxlarge,
3156
3179
  h4: theme.fontSizes.xxxlarge,
3157
- h5: theme.fontSizes.xxlarge,
3180
+ h5: theme.fontSizes.xlarge,
3158
3181
  h6: theme.fontSizes.large
3159
3182
  }
3160
3183
  },
@@ -3196,7 +3219,7 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3196
3219
  h2: theme.lineHeights.xxxxxlarge,
3197
3220
  h3: theme.lineHeights.xxxxlarge,
3198
3221
  h4: theme.lineHeights.xxxlarge,
3199
- h5: theme.lineHeights.xxlarge,
3222
+ h5: theme.lineHeights.xlarge,
3200
3223
  h6: theme.lineHeights.xxlarge
3201
3224
  }
3202
3225
  },
@@ -14810,6 +14833,7 @@ var Swipeable = function Swipeable(_ref) {
14810
14833
  rightActions = _ref.rightActions,
14811
14834
  rightActionsWidth = _ref.rightActionsWidth,
14812
14835
  swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14836
+ var theme = useTheme();
14813
14837
  var _useWindowDimensions = reactNative.useWindowDimensions(),
14814
14838
  width = _useWindowDimensions.width;
14815
14839
  var swipeableRef = React.useRef(null);
@@ -14848,6 +14872,9 @@ var Swipeable = function Swipeable(_ref) {
14848
14872
  },
14849
14873
  onSwipeableClose: function onSwipeableClose() {
14850
14874
  return onStateChange === null || onStateChange === void 0 ? void 0 : onStateChange('closed');
14875
+ },
14876
+ containerStyle: {
14877
+ borderRadius: theme.__hd__.swipeable.radii.swipeableContainer
14851
14878
  }
14852
14879
  }), children));
14853
14880
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.34.2",
3
+ "version": "8.34.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.34.2",
24
+ "@hero-design/colors": "8.34.4",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21"
28
28
  },
29
29
  "peerDependencies": {
30
- "@hero-design/react-native-month-year-picker": "^8.34.2",
30
+ "@hero-design/react-native-month-year-picker": "^8.34.4",
31
31
  "@react-native-community/datetimepicker": "^3.5.2",
32
32
  "@react-native-community/slider": "4.1.12",
33
33
  "react": "18.0.0",
@@ -47,8 +47,8 @@
47
47
  "@babel/preset-typescript": "^7.17.12",
48
48
  "@babel/runtime": "^7.18.9",
49
49
  "@emotion/jest": "^11.9.3",
50
- "@hero-design/eslint-plugin": "8.34.2",
51
- "@hero-design/react-native-month-year-picker": "^8.34.2",
50
+ "@hero-design/eslint-plugin": "8.34.4",
51
+ "@hero-design/react-native-month-year-picker": "^8.34.4",
52
52
  "@react-native-community/datetimepicker": "^3.5.2",
53
53
  "@react-native-community/slider": "4.1.12",
54
54
  "@rollup/plugin-babel": "^5.3.1",
@@ -64,10 +64,10 @@
64
64
  "@types/react-native": "^0.67.7",
65
65
  "@types/react-native-vector-icons": "^6.4.10",
66
66
  "babel-plugin-inline-import": "^3.0.0",
67
- "eslint-config-hd": "8.34.2",
67
+ "eslint-config-hd": "8.34.4",
68
68
  "eslint-plugin-import": "^2.27.5",
69
69
  "jest": "^27.3.1",
70
- "prettier-config-hd": "8.34.2",
70
+ "prettier-config-hd": "8.34.4",
71
71
  "react": "18.0.0",
72
72
  "react-native": "0.69.7",
73
73
  "react-native-gesture-handler": "~2.5.0",
@@ -143,7 +143,7 @@ exports[`Attachment renders correctly 1`] = `
143
143
  style={
144
144
  Array [
145
145
  Object {
146
- "color": "#de350b",
146
+ "color": "#cb300a",
147
147
  "fontSize": 20,
148
148
  },
149
149
  undefined,
@@ -6,7 +6,7 @@ exports[`Badge has danger style when intent is danger 1`] = `
6
6
  style={
7
7
  Object {
8
8
  "alignItems": "center",
9
- "backgroundColor": "#de350b",
9
+ "backgroundColor": "#cb300a",
10
10
  "borderRadius": 999,
11
11
  "height": 20,
12
12
  "justifyContent": "center",
@@ -59,7 +59,7 @@ exports[`Badge has info style when intent is info 1`] = `
59
59
  style={
60
60
  Object {
61
61
  "alignItems": "center",
62
- "backgroundColor": "#4568fb",
62
+ "backgroundColor": "#355bfb",
63
63
  "borderRadius": 999,
64
64
  "height": 20,
65
65
  "justifyContent": "center",
@@ -218,7 +218,7 @@ exports[`Badge has warning style when intent is warning 1`] = `
218
218
  style={
219
219
  Object {
220
220
  "alignItems": "center",
221
- "backgroundColor": "#ffa234",
221
+ "backgroundColor": "#ac5d00",
222
222
  "borderRadius": 999,
223
223
  "height": 20,
224
224
  "justifyContent": "center",
@@ -21,7 +21,7 @@ exports[`Status Badge renders correctly 1`] = `
21
21
  collapsable={false}
22
22
  style={
23
23
  Object {
24
- "backgroundColor": "#de350b",
24
+ "backgroundColor": "#cb300a",
25
25
  "borderRadius": 999,
26
26
  "height": 8,
27
27
  "opacity": 1,
@@ -85,7 +85,7 @@ exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
85
85
  style={
86
86
  Array [
87
87
  Object {
88
- "backgroundColor": "#de350b",
88
+ "backgroundColor": "#cb300a",
89
89
  "borderRadius": 8,
90
90
  "height": 12,
91
91
  "marginBottom": 4,
@@ -145,7 +145,7 @@ exports[`StyledLoadingIndicator has text-danger style 1`] = `
145
145
  style={
146
146
  Array [
147
147
  Object {
148
- "backgroundColor": "#de350b",
148
+ "backgroundColor": "#cb300a",
149
149
  "borderRadius": 8,
150
150
  "height": 12,
151
151
  "marginBottom": 4,
@@ -489,7 +489,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
489
489
  style={
490
490
  Array [
491
491
  Object {
492
- "backgroundColor": "#de350b",
492
+ "backgroundColor": "#cb300a",
493
493
  "borderRadius": 8,
494
494
  "height": 12,
495
495
  "marginBottom": 4,
@@ -521,7 +521,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
521
521
  style={
522
522
  Array [
523
523
  Object {
524
- "backgroundColor": "#de350b",
524
+ "backgroundColor": "#cb300a",
525
525
  "borderRadius": 8,
526
526
  "height": 12,
527
527
  "marginBottom": 4,
@@ -553,7 +553,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
553
553
  style={
554
554
  Array [
555
555
  Object {
556
- "backgroundColor": "#de350b",
556
+ "backgroundColor": "#cb300a",
557
557
  "borderRadius": 8,
558
558
  "height": 12,
559
559
  "marginBottom": 4,
@@ -831,7 +831,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
831
831
  style={
832
832
  Array [
833
833
  Object {
834
- "backgroundColor": "#de350b",
834
+ "backgroundColor": "#cb300a",
835
835
  "borderRadius": 8,
836
836
  "height": 12,
837
837
  "marginBottom": 4,
@@ -863,7 +863,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
863
863
  style={
864
864
  Array [
865
865
  Object {
866
- "backgroundColor": "#de350b",
866
+ "backgroundColor": "#cb300a",
867
867
  "borderRadius": 8,
868
868
  "height": 12,
869
869
  "marginBottom": 4,
@@ -895,7 +895,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
895
895
  style={
896
896
  Array [
897
897
  Object {
898
- "backgroundColor": "#de350b",
898
+ "backgroundColor": "#cb300a",
899
899
  "borderRadius": 8,
900
900
  "height": 12,
901
901
  "marginBottom": 4,
@@ -1161,7 +1161,7 @@ exports[`Button renders correctly 13`] = `
1161
1161
  },
1162
1162
  Array [
1163
1163
  Object {
1164
- "color": "#de350b",
1164
+ "color": "#cb300a",
1165
1165
  "flexShrink": 1,
1166
1166
  "lineHeight": 22,
1167
1167
  "textAlign": "center",
@@ -1244,7 +1244,7 @@ exports[`Button renders correctly 14`] = `
1244
1244
  style={
1245
1245
  Array [
1246
1246
  Object {
1247
- "backgroundColor": "#de350b",
1247
+ "backgroundColor": "#cb300a",
1248
1248
  "borderRadius": 8,
1249
1249
  "height": 12,
1250
1250
  "marginBottom": 4,
@@ -1276,7 +1276,7 @@ exports[`Button renders correctly 14`] = `
1276
1276
  style={
1277
1277
  Array [
1278
1278
  Object {
1279
- "backgroundColor": "#de350b",
1279
+ "backgroundColor": "#cb300a",
1280
1280
  "borderRadius": 8,
1281
1281
  "height": 12,
1282
1282
  "marginBottom": 4,
@@ -1308,7 +1308,7 @@ exports[`Button renders correctly 14`] = `
1308
1308
  style={
1309
1309
  Array [
1310
1310
  Object {
1311
- "backgroundColor": "#de350b",
1311
+ "backgroundColor": "#cb300a",
1312
1312
  "borderRadius": 8,
1313
1313
  "height": 12,
1314
1314
  "marginBottom": 4,