@hero-design/rn 8.68.0 → 8.70.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 (70) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +32 -0
  3. package/es/index.js +310 -164
  4. package/lib/index.js +310 -163
  5. package/package.json +2 -2
  6. package/src/components/BottomSheet/Header.tsx +50 -27
  7. package/src/components/BottomSheet/StyledBottomSheet.tsx +35 -8
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +352 -1
  9. package/src/components/BottomSheet/__tests__/index.spec.tsx +30 -0
  10. package/src/components/BottomSheet/index.tsx +47 -30
  11. package/src/components/Card/StyledCard.tsx +6 -2
  12. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  13. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  14. package/src/components/Card/__tests__/index.spec.tsx +12 -0
  15. package/src/components/Card/index.tsx +8 -2
  16. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
  17. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +1 -0
  18. package/src/components/Chip/StyledChip.tsx +15 -45
  19. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +145 -389
  20. package/src/components/Chip/__tests__/index.spec.tsx +6 -26
  21. package/src/components/Chip/index.tsx +26 -33
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
  23. package/src/components/Progress/ProgressStep.tsx +87 -0
  24. package/src/components/Progress/StyledStep.tsx +48 -0
  25. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +209 -0
  26. package/src/components/Progress/__tests__/index.spec.js +26 -0
  27. package/src/components/Progress/index.tsx +6 -1
  28. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  29. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  30. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  31. package/src/index.ts +2 -0
  32. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +25 -6
  33. package/src/theme/components/bottomSheet.ts +7 -0
  34. package/src/theme/components/card.ts +1 -0
  35. package/src/theme/components/chip.ts +8 -6
  36. package/src/theme/components/progress.ts +11 -1
  37. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +12 -12
  38. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +39 -0
  39. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +50 -0
  40. package/src/theme/global/colors/__tests__/swagLightGlobal.spec.ts +7 -0
  41. package/src/theme/global/colors/__tests__/swagLightJobs.spec.ts +7 -0
  42. package/src/theme/global/colors/swagLight.ts +9 -10
  43. package/src/theme/global/colors/swagLightGlobal.ts +14 -0
  44. package/src/theme/global/colors/swagLightJobs.ts +11 -0
  45. package/src/theme/global/colors/types.ts +4 -0
  46. package/src/theme/global/index.ts +2 -0
  47. package/src/theme/index.ts +2 -0
  48. package/stats/8.69.0/rn-stats.html +4842 -0
  49. package/stats/8.70.0/rn-stats.html +4842 -0
  50. package/types/components/BottomSheet/Header.d.ts +3 -2
  51. package/types/components/BottomSheet/StyledBottomSheet.d.ts +16 -2
  52. package/types/components/BottomSheet/index.d.ts +5 -1
  53. package/types/components/Box/StyledBox.d.ts +1 -1
  54. package/types/components/Card/StyledCard.d.ts +1 -0
  55. package/types/components/Card/index.d.ts +2 -1
  56. package/types/components/Chip/StyledChip.d.ts +1 -19
  57. package/types/components/Chip/index.d.ts +6 -2
  58. package/types/components/Progress/ProgressStep.d.ts +20 -0
  59. package/types/components/Progress/StyledStep.d.ts +21 -0
  60. package/types/components/Progress/index.d.ts +1 -0
  61. package/types/index.d.ts +2 -2
  62. package/types/theme/components/bottomSheet.d.ts +7 -0
  63. package/types/theme/components/card.d.ts +1 -0
  64. package/types/theme/components/chip.d.ts +8 -6
  65. package/types/theme/components/progress.d.ts +9 -0
  66. package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
  67. package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
  68. package/types/theme/global/colors/types.d.ts +2 -0
  69. package/types/theme/global/index.d.ts +4 -1
  70. package/types/theme/index.d.ts +2 -2
package/es/index.js CHANGED
@@ -1358,7 +1358,8 @@ var BASE_COLORS = {
1358
1358
  theatreGold: '#a56822',
1359
1359
  uniformGreen: '#4d4628',
1360
1360
  yellow: '#fadb14',
1361
- windsorGrey: '#606065'
1361
+ windsorGrey: '#606065',
1362
+ woodsmoke: '#121214'
1362
1363
  };
1363
1364
  var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
1364
1365
  var _ref17 = _slicedToArray(_ref16, 2),
@@ -1739,9 +1740,13 @@ var palette$4 = Object.assign(Object.assign({}, palette$9), {
1739
1740
  violet: violet1$1.base,
1740
1741
  mauve: mauve$1.base
1741
1742
  });
1742
- var violet$3 = colorScales.violet;
1743
+ var violet$3 = colorScales.violet,
1744
+ woodsmoke = colorScales.woodsmoke;
1743
1745
  var palette$3 = Object.assign(Object.assign({}, palette$9), {
1744
- violet: violet$3.base
1746
+ violetLight90: violet$3.lighten90,
1747
+ offBlack: woodsmoke.base,
1748
+ offBlackLight30: woodsmoke.lighten30,
1749
+ offBlackLight50: woodsmoke.lighten50
1745
1750
  });
1746
1751
  var scarletGum = colorScales.scarletGum,
1747
1752
  violet1 = colorScales.violet1,
@@ -1907,18 +1912,33 @@ var swagDarkBrandSystemPalette = {
1907
1912
  };
1908
1913
  var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
1909
1914
 
1915
+ var swagLightGlobalPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), {}, {
1916
+ onDefaultGlobalSurface: palette$3.offBlack,
1917
+ mutedOnDefaultGlobalSurface: palette$3.offBlackLight30,
1918
+ inactiveOnDefaultGlobalSurface: palette$3.offBlackLight50,
1919
+ primaryOutline: palette$3.offBlack,
1920
+ inactiveOutline: palette$3.offBlackLight50
1921
+ });
1922
+
1910
1923
  var swagBrandSystemPallete = {
1911
- primary: palette$3.violet,
1912
- onPrimary: '#FDFBFF',
1913
- secondary: '#460078',
1924
+ primary: '#460078',
1925
+ onPrimary: '#fdfbff',
1926
+ secondary: '#b382fd',
1914
1927
  onSecondary: palette$3.white,
1915
- defaultSurface: '#FDFBFF',
1916
- highlightedSurface: '#F1E9FB',
1928
+ defaultSurface: '#fdfbff',
1929
+ highlightedSurface: palette$3.violetLight90,
1917
1930
  pressedSurface: '#380060',
1918
- decorativePrimary: '#FDFBFF',
1919
- decorativePrimarySurface: '#B382FD'
1931
+ decorativePrimary: '#fdfbff',
1932
+ decorativePrimarySurface: '#dacce4'
1920
1933
  };
1921
- var swagSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), swagBrandSystemPallete);
1934
+ var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete);
1935
+
1936
+ var swagLightJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1937
+ secondary: '#40d1ff',
1938
+ onSecondary: '#460078',
1939
+ decorativeSecondary: '#fdfbff',
1940
+ decorativeSecondarySurface: '#d9f6ff'
1941
+ });
1922
1942
 
1923
1943
  var workBrandSystemPallete = {
1924
1944
  primary: palette.black,
@@ -2365,17 +2385,22 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2365
2385
  var colors = {
2366
2386
  shadow: theme.colors.primaryOutline,
2367
2387
  background: theme.colors.defaultGlobalSurface,
2368
- backdrop: theme.colors.overlayGlobalSurface
2388
+ backdrop: theme.colors.overlayGlobalSurface,
2389
+ floatingHeaderIconBackground: theme.colors.archivedSurface
2369
2390
  };
2370
2391
  var sizes = {
2371
- closeIcon: theme.sizes.xxxlarge
2392
+ closeIcon: theme.sizes.xxxlarge,
2393
+ floatingCloseIcon: theme.sizes.smallMedium
2372
2394
  };
2373
2395
  var space = {
2374
2396
  headerWrapperVerticalPadding: theme.space.small,
2375
2397
  headerWrapperHorizontalPadding: theme.space.medium,
2376
2398
  closeIconMargin: theme.space.smallMedium,
2377
2399
  footerVerticalPadding: theme.space.xxsmall,
2378
- footerHorizontalPadding: theme.space.smallMedium
2400
+ footerHorizontalPadding: theme.space.smallMedium,
2401
+ floatingContentMargin: theme.space.medium,
2402
+ floatingInnerPadding: theme.space.small,
2403
+ floatingHeaderIconPadding: theme.space.small
2379
2404
  };
2380
2405
  var shadows = {
2381
2406
  offset: {
@@ -2387,7 +2412,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2387
2412
  elevation: 10
2388
2413
  };
2389
2414
  var radii = {
2390
- "default": theme.radii.xlarge
2415
+ "default": theme.radii.xlarge,
2416
+ floating: theme.radii['5xlarge'],
2417
+ floatingHeaderIcon: theme.radii.rounded
2391
2418
  };
2392
2419
  return {
2393
2420
  colors: colors,
@@ -2513,7 +2540,8 @@ var getCardTheme = function getCardTheme(theme) {
2513
2540
  indicatorWidth: theme.sizes.medium
2514
2541
  };
2515
2542
  var radii = {
2516
- "default": theme.radii.large
2543
+ "default": theme.radii.large,
2544
+ superRound: theme.radii.xxxlarge
2517
2545
  };
2518
2546
  return {
2519
2547
  colors: colors,
@@ -2602,21 +2630,23 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
2602
2630
 
2603
2631
  var getChipTheme = function getChipTheme(theme) {
2604
2632
  var colors = {
2605
- primaryBackground: theme.colors.darkGlobalSurface,
2606
2633
  secondaryBackground: theme.colors.highlightedSurface,
2607
2634
  filledBackground: theme.colors.defaultGlobalSurface,
2608
- outlinedBackground: 'transparent',
2609
- wrapperBorder: theme.colors.primaryOutline,
2610
2635
  wrapperSelectedBorder: 'transparent',
2611
- selectedPrimaryText: theme.colors.defaultGlobalSurface
2636
+ outlinedDefaultBackground: theme.colors.defaultGlobalSurface,
2637
+ outlinedSelectedBackground: theme.colors.secondaryOutline,
2638
+ outlinedSelectedBorder: theme.colors.primaryOutline,
2639
+ outlinedDefaultBorder: theme.colors.disabledOnDefaultGlobalSurface
2612
2640
  };
2613
2641
  var space = {
2614
2642
  wrapperHorizontalPadding: theme.space.smallMedium,
2615
2643
  wrapperVerticalPadding: theme.space.small,
2616
- iconWrapperMarginRight: theme.space.small
2644
+ iconWrapperHorizontalMargin: theme.space.small,
2645
+ outlinedSelectedMarginTop: -theme.space.xxsmall
2617
2646
  };
2618
2647
  var sizes = {
2619
- wrapperBorder: theme.borderWidths.base
2648
+ outlinedDefaultBorder: theme.borderWidths.base,
2649
+ outlinedSelectedBorder: theme.borderWidths.medium
2620
2650
  };
2621
2651
  var radii = {
2622
2652
  wrapper: theme.radii.rounded
@@ -3040,20 +3070,30 @@ var getProgressTheme = function getProgressTheme(theme) {
3040
3070
  dangerInverted: theme.colors.mutedError,
3041
3071
  infoInverted: theme.colors.mutedInfo,
3042
3072
  archivedInverted: theme.colors.mutedArchived
3073
+ },
3074
+ step: {
3075
+ complete: theme.colors.primary,
3076
+ incomplete: theme.colors.archivedSurface,
3077
+ current: '#DACCE4'
3043
3078
  }
3044
3079
  };
3045
3080
  var sizes = {
3046
3081
  circleDiameter: theme.sizes['6xlarge'],
3047
3082
  circleCompletenessHeight: theme.sizes.small,
3048
- barHeight: theme.sizes.small
3083
+ barHeight: theme.sizes.small,
3084
+ stepHeight: theme.sizes.small
3049
3085
  };
3050
3086
  var radii = {
3051
3087
  "default": theme.radii.rounded
3052
3088
  };
3089
+ var space = {
3090
+ stepGap: theme.space.xsmall
3091
+ };
3053
3092
  return {
3054
3093
  colors: colors,
3055
3094
  sizes: sizes,
3056
- radii: radii
3095
+ radii: radii,
3096
+ space: space
3057
3097
  };
3058
3098
  };
3059
3099
 
@@ -6961,7 +7001,7 @@ var StyledText$3 = index$9(Text$1)(function (_ref) {
6961
7001
  });
6962
7002
  });
6963
7003
 
6964
- var _excluded$E = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7004
+ var _excluded$F = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6965
7005
  var Text = function Text(_ref) {
6966
7006
  var children = _ref.children,
6967
7007
  _ref$fontSize = _ref.fontSize,
@@ -6974,7 +7014,7 @@ var Text = function Text(_ref) {
6974
7014
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6975
7015
  _ref$allowFontScaling = _ref.allowFontScaling,
6976
7016
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6977
- nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7017
+ nativeProps = _objectWithoutProperties(_ref, _excluded$F);
6978
7018
  useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
6979
7019
  return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
6980
7020
  themeFontSize: fontSize,
@@ -7004,7 +7044,7 @@ var StyledCaption = index$9(Text$1)(function (_ref) {
7004
7044
  };
7005
7045
  });
7006
7046
 
7007
- var _excluded$D = ["children", "fontWeight", "intent", "allowFontScaling"];
7047
+ var _excluded$E = ["children", "fontWeight", "intent", "allowFontScaling"];
7008
7048
  var Caption = function Caption(_ref) {
7009
7049
  var children = _ref.children,
7010
7050
  _ref$fontWeight = _ref.fontWeight,
@@ -7013,7 +7053,7 @@ var Caption = function Caption(_ref) {
7013
7053
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7014
7054
  _ref$allowFontScaling = _ref.allowFontScaling,
7015
7055
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7016
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7056
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7017
7057
  return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
7018
7058
  themeFontWeight: fontWeight,
7019
7059
  themeIntent: intent,
@@ -7021,7 +7061,7 @@ var Caption = function Caption(_ref) {
7021
7061
  }), children);
7022
7062
  };
7023
7063
 
7024
- var StyledLabel$1 = index$9(Text$1)(function (_ref) {
7064
+ var StyledLabel = index$9(Text$1)(function (_ref) {
7025
7065
  var themeIntent = _ref.themeIntent,
7026
7066
  theme = _ref.theme;
7027
7067
  return {
@@ -7032,15 +7072,15 @@ var StyledLabel$1 = index$9(Text$1)(function (_ref) {
7032
7072
  };
7033
7073
  });
7034
7074
 
7035
- var _excluded$C = ["children", "intent", "allowFontScaling"];
7075
+ var _excluded$D = ["children", "intent", "allowFontScaling"];
7036
7076
  var Label = function Label(_ref) {
7037
7077
  var children = _ref.children,
7038
7078
  _ref$intent = _ref.intent,
7039
7079
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7040
7080
  _ref$allowFontScaling = _ref.allowFontScaling,
7041
7081
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7042
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7043
- return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7082
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7083
+ return /*#__PURE__*/React__default.createElement(StyledLabel, _extends$1({}, nativeProps, {
7044
7084
  themeIntent: intent,
7045
7085
  allowFontScaling: allowFontScaling
7046
7086
  }), children);
@@ -7060,7 +7100,7 @@ var StyledTitle$1 = index$9(Text$1)(function (_ref) {
7060
7100
  };
7061
7101
  });
7062
7102
 
7063
- var _excluded$B = ["children", "intent", "allowFontScaling", "level", "typeface"];
7103
+ var _excluded$C = ["children", "intent", "allowFontScaling", "level", "typeface"];
7064
7104
  var Title = function Title(_ref) {
7065
7105
  var children = _ref.children,
7066
7106
  _ref$intent = _ref.intent,
@@ -7071,7 +7111,7 @@ var Title = function Title(_ref) {
7071
7111
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7072
7112
  _ref$typeface = _ref.typeface,
7073
7113
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7074
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7114
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7075
7115
  return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7076
7116
  themeLevel: level,
7077
7117
  themeTypeface: typeface,
@@ -7106,7 +7146,7 @@ var StyledBody$1 = index$9(Text$1)(function (_ref) {
7106
7146
  };
7107
7147
  });
7108
7148
 
7109
- var _excluded$A = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7149
+ var _excluded$B = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7110
7150
  var Body = function Body(_ref) {
7111
7151
  var children = _ref.children,
7112
7152
  _ref$intent = _ref.intent,
@@ -7117,7 +7157,7 @@ var Body = function Body(_ref) {
7117
7157
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7118
7158
  _ref$variant = _ref.variant,
7119
7159
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7120
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7160
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7121
7161
  return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7122
7162
  themeTypeface: typeface,
7123
7163
  themeIntent: intent,
@@ -7684,10 +7724,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7684
7724
  };
7685
7725
  });
7686
7726
 
7687
- var _excluded$z = ["style"];
7727
+ var _excluded$A = ["style"];
7688
7728
  var AnimatedIcon = function AnimatedIcon(_ref) {
7689
7729
  var style = _ref.style,
7690
- otherProps = _objectWithoutProperties(_ref, _excluded$z);
7730
+ otherProps = _objectWithoutProperties(_ref, _excluded$A);
7691
7731
  var rotateAnimation = useRef(new Animated.Value(0));
7692
7732
  useEffect(function () {
7693
7733
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7792,7 +7832,7 @@ var AccordionItem = function AccordionItem(_ref) {
7792
7832
  }, content));
7793
7833
  };
7794
7834
 
7795
- var _excluded$y = ["key"];
7835
+ var _excluded$z = ["key"];
7796
7836
  var Accordion = function Accordion(_ref) {
7797
7837
  var items = _ref.items,
7798
7838
  activeItemKey = _ref.activeItemKey,
@@ -7813,7 +7853,7 @@ var Accordion = function Accordion(_ref) {
7813
7853
  testID: testID
7814
7854
  }, items.map(function (_ref2, index) {
7815
7855
  var key = _ref2.key,
7816
- props = _objectWithoutProperties(_ref2, _excluded$y);
7856
+ props = _objectWithoutProperties(_ref2, _excluded$z);
7817
7857
  var open = _activeItemKey === key;
7818
7858
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
7819
7859
  key: key
@@ -7848,7 +7888,7 @@ var IconContainer$1 = index$9(View)(function (_ref2) {
7848
7888
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7849
7889
  };
7850
7890
  });
7851
- var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7891
+ var StyledIcon$1 = index$9(Icon)(function (_ref3) {
7852
7892
  var theme = _ref3.theme,
7853
7893
  themeIntent = _ref3.themeIntent;
7854
7894
  return {
@@ -7907,7 +7947,7 @@ var AlertIcon = function AlertIcon(_ref) {
7907
7947
  intent = _ref.intent;
7908
7948
  return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
7909
7949
  testID: "alert-left-icon"
7910
- }, /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7950
+ }, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
7911
7951
  icon: icon,
7912
7952
  size: "small",
7913
7953
  themeIntent: intent
@@ -7948,7 +7988,7 @@ var Alert = function Alert(_ref2) {
7948
7988
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7949
7989
  variant: "small-bold",
7950
7990
  themeIntent: intent
7951
- }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7991
+ }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$1, {
7952
7992
  icon: "cancel",
7953
7993
  size: "small",
7954
7994
  themeIntent: intent
@@ -8307,7 +8347,7 @@ var borderWidths = {
8307
8347
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8308
8348
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8309
8349
 
8310
- var _excluded$x = ["theme"];
8350
+ var _excluded$y = ["theme"];
8311
8351
  var getThemeValue = function getThemeValue(theme, key, props) {
8312
8352
  var propConfig = config[key];
8313
8353
  var propValue = props[key];
@@ -8334,18 +8374,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8334
8374
  var configKeys = Object.keys(config);
8335
8375
  var StyledBox = index$9(View)(function (_ref5) {
8336
8376
  var theme = _ref5.theme,
8337
- otherProps = _objectWithoutProperties(_ref5, _excluded$x);
8377
+ otherProps = _objectWithoutProperties(_ref5, _excluded$y);
8338
8378
  var styleProps = pick(configKeys, otherProps);
8339
8379
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8340
8380
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8341
8381
  });
8342
8382
 
8343
- var _excluded$w = ["children", "style", "testID"];
8383
+ var _excluded$x = ["children", "style", "testID"];
8344
8384
  var Box = function Box(_ref) {
8345
8385
  var children = _ref.children,
8346
8386
  style = _ref.style,
8347
8387
  testID = _ref.testID,
8348
- otherProps = _objectWithoutProperties(_ref, _excluded$w);
8388
+ otherProps = _objectWithoutProperties(_ref, _excluded$x);
8349
8389
  return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
8350
8390
  style: style,
8351
8391
  testID: testID
@@ -8564,7 +8604,7 @@ var StyledStatus = index$9(Animated.View)(function (_ref3) {
8564
8604
  };
8565
8605
  });
8566
8606
 
8567
- var _excluded$v = ["children", "visible", "intent", "style", "testID"];
8607
+ var _excluded$w = ["children", "visible", "intent", "style", "testID"];
8568
8608
  var Status = function Status(_ref) {
8569
8609
  var children = _ref.children,
8570
8610
  _ref$visible = _ref.visible,
@@ -8573,7 +8613,7 @@ var Status = function Status(_ref) {
8573
8613
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8574
8614
  style = _ref.style,
8575
8615
  testID = _ref.testID,
8576
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8616
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8577
8617
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8578
8618
  opacity = _React$useRef.current;
8579
8619
  var isFirstRendering = React__default.useRef(true);
@@ -8606,7 +8646,7 @@ var Status = function Status(_ref) {
8606
8646
  }));
8607
8647
  };
8608
8648
 
8609
- var _excluded$u = ["content", "visible", "max", "intent", "style", "testID", "size"];
8649
+ var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size"];
8610
8650
  var DEFAULT_MAX_NUMBER = 99;
8611
8651
  var getPaddingState = function getPaddingState(content) {
8612
8652
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8623,7 +8663,7 @@ var Badge = function Badge(_ref) {
8623
8663
  testID = _ref.testID,
8624
8664
  _ref$size = _ref.size,
8625
8665
  size = _ref$size === void 0 ? 'medium' : _ref$size,
8626
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8666
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8627
8667
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8628
8668
  opacity = _React$useRef.current;
8629
8669
  var isFirstRendering = React__default.useRef(true);
@@ -8713,7 +8753,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8713
8753
  };
8714
8754
  });
8715
8755
 
8716
- var _excluded$t = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8756
+ var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8717
8757
  var getInactiveIcon = function getInactiveIcon(icon) {
8718
8758
  var inactiveIcon = "".concat(icon, "-outlined");
8719
8759
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8724,7 +8764,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8724
8764
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8725
8765
  selectedTabKey = _ref.selectedTabKey,
8726
8766
  tabs = _ref.tabs,
8727
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8767
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8728
8768
  var insets = useSafeAreaInsets();
8729
8769
  /**
8730
8770
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8810,13 +8850,13 @@ var StyledDivider = index$9(View)(function (_ref) {
8810
8850
  }, horizontalMargin), verticalMargin);
8811
8851
  });
8812
8852
 
8813
- var _excluded$s = ["marginHorizontal", "marginVertical", "style", "testID"];
8853
+ var _excluded$t = ["marginHorizontal", "marginVertical", "style", "testID"];
8814
8854
  var Divider = function Divider(_ref) {
8815
8855
  var marginHorizontal = _ref.marginHorizontal,
8816
8856
  marginVertical = _ref.marginVertical,
8817
8857
  style = _ref.style,
8818
8858
  testID = _ref.testID,
8819
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8859
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8820
8860
  return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8821
8861
  themeMarginHorizontal: marginHorizontal,
8822
8862
  themeMarginVertical: marginVertical,
@@ -8836,8 +8876,29 @@ var StyledKeyboardAvoidingView = index$9(KeyboardAvoidingView)(function () {
8836
8876
  flexDirection: 'column-reverse'
8837
8877
  };
8838
8878
  });
8839
- var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8879
+ var StyledFloatingWrapper = index$9(AnimatedSafeAreaView)(function (_ref) {
8840
8880
  var theme = _ref.theme;
8881
+ return {
8882
+ margin: theme.__hd__.bottomSheet.space.floatingContentMargin
8883
+ };
8884
+ });
8885
+ var StyledFloatingBottomSheet = index$9(Animated.View)(function (_ref2) {
8886
+ var theme = _ref2.theme;
8887
+ return {
8888
+ width: '100%',
8889
+ shadowColor: theme.__hd__.bottomSheet.colors.shadow,
8890
+ shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
8891
+ shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
8892
+ shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
8893
+ elevation: theme.__hd__.bottomSheet.shadows.elevation,
8894
+ backgroundColor: theme.__hd__.bottomSheet.colors.background,
8895
+ borderRadius: theme.__hd__.bottomSheet.radii.floating,
8896
+ maxHeight: '100%',
8897
+ padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
8898
+ };
8899
+ });
8900
+ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref3) {
8901
+ var theme = _ref3.theme;
8841
8902
  return {
8842
8903
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
8843
8904
  borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -8851,15 +8912,15 @@ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8851
8912
  maxHeight: '94%'
8852
8913
  };
8853
8914
  });
8854
- var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref2) {
8855
- var theme = _ref2.theme;
8915
+ var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref4) {
8916
+ var theme = _ref4.theme;
8856
8917
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
8857
8918
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
8858
8919
  opacity: 0.4
8859
8920
  });
8860
8921
  });
8861
- var StyledHeaderWrapper = index$9(View)(function (_ref3) {
8862
- var theme = _ref3.theme;
8922
+ var StyledHeaderWrapper = index$9(View)(function (_ref5) {
8923
+ var theme = _ref5.theme;
8863
8924
  return {
8864
8925
  flexDirection: 'row',
8865
8926
  paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
@@ -8870,8 +8931,8 @@ var StyledHeader = index$9(View)({
8870
8931
  flex: 1,
8871
8932
  justifyContent: 'center'
8872
8933
  });
8873
- var StyledFooter = index$9(View)(function (_ref4) {
8874
- var theme = _ref4.theme;
8934
+ var StyledFooter = index$9(View)(function (_ref6) {
8935
+ var theme = _ref6.theme;
8875
8936
  return {
8876
8937
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
8877
8938
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
@@ -8880,16 +8941,24 @@ var StyledFooter = index$9(View)(function (_ref4) {
8880
8941
  flexDirection: 'row'
8881
8942
  };
8882
8943
  });
8883
- var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
8884
- var theme = _ref5.theme;
8944
+ var StyledIconWrapper$3 = index$9(View)(function (_ref7) {
8945
+ var theme = _ref7.theme;
8885
8946
  return {
8886
- alignItems: 'center',
8947
+ alignItems: 'flex-end',
8887
8948
  justifyContent: 'center',
8888
8949
  width: theme.__hd__.bottomSheet.sizes.closeIcon,
8889
8950
  height: theme.__hd__.bottomSheet.sizes.closeIcon,
8890
8951
  marginLeft: theme.__hd__.bottomSheet.space.closeIconMargin
8891
8952
  };
8892
8953
  });
8954
+ var StyledFloatingHeaderWrapper = index$9(TouchableOpacity)(function (_ref8) {
8955
+ var theme = _ref8.theme;
8956
+ return {
8957
+ padding: theme.__hd__.bottomSheet.space.floatingHeaderIconPadding,
8958
+ backgroundColor: theme.__hd__.bottomSheet.colors.floatingHeaderIconBackground,
8959
+ borderRadius: theme.__hd__.bottomSheet.radii.floatingHeaderIcon
8960
+ };
8961
+ });
8893
8962
 
8894
8963
  var Footer$1 = function Footer(_ref) {
8895
8964
  var children = _ref.children,
@@ -8897,6 +8966,9 @@ var Footer$1 = function Footer(_ref) {
8897
8966
  return /*#__PURE__*/React__default.createElement(View, null, showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null, /*#__PURE__*/React__default.createElement(StyledFooter, null, children));
8898
8967
  };
8899
8968
 
8969
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
8970
+ var noop$1 = function noop() {};
8971
+
8900
8972
  var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
8901
8973
  return {
8902
8974
  backgroundColor: theme.__hd__.button.colors[intent]
@@ -8940,7 +9012,7 @@ var StyledLoadingDot = index$9(View)(function (_ref) {
8940
9012
  }, themeStyling());
8941
9013
  });
8942
9014
 
8943
- var _excluded$r = ["count", "size", "testID", "themeVariant"];
9015
+ var _excluded$s = ["count", "size", "testID", "themeVariant"];
8944
9016
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
8945
9017
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
8946
9018
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8972,7 +9044,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8972
9044
  size = _ref2$size === void 0 ? 12 : _ref2$size,
8973
9045
  testID = _ref2.testID,
8974
9046
  themeVariant = _ref2.themeVariant,
8975
- nativeProps = _objectWithoutProperties(_ref2, _excluded$r);
9047
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$s);
8976
9048
  var progressAnimation = useRef(new Animated.Value(0));
8977
9049
  useEffect(function () {
8978
9050
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -9383,35 +9455,43 @@ var CompoundButton = Button;
9383
9455
  CompoundButton.Icon = IconButton;
9384
9456
  CompoundButton.Utility = UtilityButton;
9385
9457
 
9386
- // eslint-disable-next-line @typescript-eslint/no-empty-function
9387
- var noop$1 = function noop() {};
9388
-
9389
9458
  var Header = function Header(_ref) {
9390
9459
  var content = _ref.content,
9391
9460
  showDivider = _ref.showDivider,
9392
9461
  _ref$onRequestClose = _ref.onRequestClose,
9393
9462
  onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
9394
- showCloseButton = _ref.showCloseButton;
9463
+ showCloseButton = _ref.showCloseButton,
9464
+ _ref$variant = _ref.variant,
9465
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9466
+ var theme = useTheme();
9395
9467
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledHeader, null, /*#__PURE__*/React__default.createElement(Typography.Body, {
9396
9468
  variant: "regular-bold"
9397
9469
  }, content)) : /*#__PURE__*/React__default.createElement(View, {
9398
9470
  style: {
9399
9471
  flex: 1
9400
9472
  }
9401
- }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9473
+ }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, variant === 'fixed' ? /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9402
9474
  icon: "cancel",
9403
9475
  onPress: onRequestClose,
9404
9476
  intent: "text",
9405
9477
  testID: "bottom-sheet-close-icon",
9406
9478
  size: "xsmall"
9407
- })) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9479
+ }) : /*#__PURE__*/React__default.createElement(StyledFloatingHeaderWrapper, {
9480
+ onPress: onRequestClose,
9481
+ testID: "bottom-sheet-close-icon"
9482
+ }, /*#__PURE__*/React__default.createElement(Icon, {
9483
+ icon: "cancel",
9484
+ style: {
9485
+ fontSize: theme.__hd__.bottomSheet.sizes.floatingCloseIcon
9486
+ }
9487
+ }))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9408
9488
  };
9409
9489
 
9410
- var _excluded$q = ["scrollEventThrottle"];
9490
+ var _excluded$r = ["scrollEventThrottle"];
9411
9491
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9412
9492
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9413
9493
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9414
- props = _objectWithoutProperties(_ref, _excluded$q);
9494
+ props = _objectWithoutProperties(_ref, _excluded$r);
9415
9495
  var _useContext = useContext(BottomSheetContext),
9416
9496
  setInternalShowDivider = _useContext.setInternalShowDivider;
9417
9497
  var onScrollBeginDrag = useCallback(function (e) {
@@ -9457,7 +9537,9 @@ var BottomSheet = function BottomSheet(_ref) {
9457
9537
  _ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
9458
9538
  keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
9459
9539
  _ref$supportedOrienta = _ref.supportedOrientations,
9460
- supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
9540
+ supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
9541
+ _ref$variant = _ref.variant,
9542
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9461
9543
  var _Dimensions$get = Dimensions.get('window'),
9462
9544
  height = _Dimensions$get.height;
9463
9545
  // Internal state to control modal open/close timing with animation
@@ -9515,6 +9597,8 @@ var BottomSheet = function BottomSheet(_ref) {
9515
9597
  setInternalShowDivider: setInternalShowDivider
9516
9598
  };
9517
9599
  }, [setInternalShowDivider]);
9600
+ var BottomSheetWrapperComponent = variant === 'fixed' ? React__default.Fragment : StyledFloatingWrapper;
9601
+ var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
9518
9602
  return /*#__PURE__*/React__default.createElement(Modal$1, {
9519
9603
  visible: visible,
9520
9604
  onRequestClose: onRequestClose,
@@ -9531,7 +9615,7 @@ var BottomSheet = function BottomSheet(_ref) {
9531
9615
  opacity: interpolateOpacity
9532
9616
  },
9533
9617
  onPress: onRequestClose
9534
- }), /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
9618
+ }), /*#__PURE__*/React__default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__default.createElement(BottomSheetComponent, {
9535
9619
  style: [style, {
9536
9620
  transform: [{
9537
9621
  scaleY: height > 0 ? 1 : 0
@@ -9540,6 +9624,7 @@ var BottomSheet = function BottomSheet(_ref) {
9540
9624
  }]
9541
9625
  }]
9542
9626
  }, header !== undefined ? /*#__PURE__*/React__default.createElement(Header, {
9627
+ variant: variant,
9543
9628
  content: header,
9544
9629
  showDivider: internalShowDivider,
9545
9630
  onRequestClose: onRequestClose,
@@ -9548,7 +9633,7 @@ var BottomSheet = function BottomSheet(_ref) {
9548
9633
  value: BottomSheetContextValue
9549
9634
  }, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
9550
9635
  showDivider: showDivider
9551
- }, footer) : null))));
9636
+ }, footer) : null)))));
9552
9637
  };
9553
9638
  var BottomSheet$1 = Object.assign(BottomSheet, {
9554
9639
  ScrollView: BottomSheetScrollView
@@ -12223,12 +12308,12 @@ var Indicator = index$9(View)(function (_ref2) {
12223
12308
  };
12224
12309
  });
12225
12310
 
12226
- var _excluded$p = ["intent", "children"];
12311
+ var _excluded$q = ["intent", "children"];
12227
12312
  var DataCard = function DataCard(_ref) {
12228
12313
  var _ref$intent = _ref.intent,
12229
12314
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12230
12315
  children = _ref.children,
12231
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12316
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
12232
12317
  return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
12233
12318
  themeIntent: intent,
12234
12319
  testID: "data-card-indicator"
@@ -12237,22 +12322,26 @@ var DataCard = function DataCard(_ref) {
12237
12322
 
12238
12323
  var StyledCard$1 = index$9(View)(function (_ref) {
12239
12324
  var theme = _ref.theme,
12240
- themeIntent = _ref.themeIntent;
12325
+ themeIntent = _ref.themeIntent,
12326
+ themeVariant = _ref.themeVariant;
12241
12327
  return _objectSpread2(_objectSpread2({}, themeIntent !== undefined && {
12242
12328
  backgroundColor: theme.__hd__.card.colors[themeIntent]
12243
12329
  }), {}, {
12244
- borderRadius: theme.__hd__.card.radii["default"],
12330
+ borderRadius: themeVariant === 'basic' ? theme.__hd__.card.radii["default"] : theme.__hd__.card.radii.superRound,
12245
12331
  overflow: 'hidden'
12246
12332
  });
12247
12333
  });
12248
12334
 
12249
- var _excluded$o = ["intent", "children"];
12335
+ var _excluded$p = ["intent", "children", "variant"];
12250
12336
  var Card = function Card(_ref) {
12251
12337
  var intent = _ref.intent,
12252
12338
  children = _ref.children,
12253
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12339
+ _ref$variant = _ref.variant,
12340
+ variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
12341
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12254
12342
  return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12255
- themeIntent: intent
12343
+ themeIntent: intent,
12344
+ themeVariant: variant
12256
12345
  }), children);
12257
12346
  };
12258
12347
  var Card$1 = Object.assign(Card, {
@@ -12511,7 +12600,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12511
12600
  });
12512
12601
  CardCarousel.displayName = 'CardCarousel';
12513
12602
 
12514
- var _excluded$n = ["rounded", "size", "testID", "style"];
12603
+ var _excluded$o = ["rounded", "size", "testID", "style"];
12515
12604
  var Image = function Image(_ref) {
12516
12605
  var _ref$rounded = _ref.rounded,
12517
12606
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12519,7 +12608,7 @@ var Image = function Image(_ref) {
12519
12608
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12520
12609
  testID = _ref.testID,
12521
12610
  style = _ref.style,
12522
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$n);
12611
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$o);
12523
12612
  var theme = useTheme();
12524
12613
  var imageSize = theme.__hd__.image.sizes[size];
12525
12614
  return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
@@ -12653,7 +12742,7 @@ var CarouselItem = function CarouselItem(_ref) {
12653
12742
  }, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
12654
12743
  };
12655
12744
 
12656
- var _excluded$m = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12745
+ var _excluded$n = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12657
12746
  function useStateFromProp(initialValue) {
12658
12747
  var _useState = useState(initialValue),
12659
12748
  _useState2 = _slicedToArray(_useState, 2),
@@ -12680,7 +12769,7 @@ var Carousel = function Carousel(_ref) {
12680
12769
  testID = _ref.testID,
12681
12770
  _ref$pageControlPosit = _ref.pageControlPosition,
12682
12771
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12683
- nativeProps = _objectWithoutProperties(_ref, _excluded$m);
12772
+ nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12684
12773
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12685
12774
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12686
12775
  var theme = useTheme();
@@ -12804,26 +12893,19 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12804
12893
  }
12805
12894
  };
12806
12895
  var getBorderStyles = function getBorderStyles() {
12807
- var commonStyle = {
12808
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12809
- };
12810
- if (themeSelected) {
12811
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12812
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12813
- });
12814
- }
12815
12896
  switch (themeVariant) {
12816
12897
  case 'outlined':
12817
12898
  {
12818
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12819
- borderColor: theme.__hd__.chip.colors.wrapperBorder
12820
- });
12899
+ return {
12900
+ borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
12901
+ borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
12902
+ };
12821
12903
  }
12822
12904
  case 'filled':
12823
12905
  {
12824
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12906
+ return {
12825
12907
  borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12826
- });
12908
+ };
12827
12909
  }
12828
12910
  }
12829
12911
  };
@@ -12833,7 +12915,7 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12833
12915
  case 'outlined':
12834
12916
  {
12835
12917
  return {
12836
- backgroundColor: theme.__hd__.chip.colors.primaryBackground
12918
+ backgroundColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBackground : theme.__hd__.chip.colors.outlinedDefaultBackground
12837
12919
  };
12838
12920
  }
12839
12921
  case 'filled':
@@ -12846,7 +12928,7 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12846
12928
  case 'outlined':
12847
12929
  {
12848
12930
  return {
12849
- backgroundColor: theme.__hd__.chip.colors.outlinedBackground
12931
+ backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
12850
12932
  };
12851
12933
  }
12852
12934
  case 'filled':
@@ -12864,33 +12946,11 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12864
12946
  borderRadius: theme.__hd__.chip.radii.wrapper,
12865
12947
  paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding,
12866
12948
  paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
12867
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12949
+ marginTop: themeSelected ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
12868
12950
  }, getShadowStyles()), getBorderStyles()), getBackgroundStyles());
12869
12951
  });
12870
- var StyledIconWrapper$3 = index$9(Box)(function (_ref2) {
12871
- var theme = _ref2.theme;
12872
- return {
12873
- marginRight: theme.__hd__.chip.space.iconWrapperMarginRight
12874
- };
12875
- });
12876
- var StyledLabel = index$9(Typography.Body)(function (_ref3) {
12877
- var themeSelected = _ref3.themeSelected,
12878
- themeVariant = _ref3.themeVariant,
12879
- theme = _ref3.theme;
12880
- return {
12881
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12882
- };
12883
- });
12884
- var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12885
- var themeSelected = _ref4.themeSelected,
12886
- themeVariant = _ref4.themeVariant,
12887
- theme = _ref4.theme;
12888
- return {
12889
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12890
- };
12891
- });
12892
12952
 
12893
- var _excluded$l = ["label", "variant", "selected", "icon", "onPress"];
12953
+ var _excluded$m = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
12894
12954
  var Chip = function Chip(_ref) {
12895
12955
  var label = _ref.label,
12896
12956
  _ref$variant = _ref.variant,
@@ -12899,31 +12959,27 @@ var Chip = function Chip(_ref) {
12899
12959
  selected = _ref$selected === void 0 ? false : _ref$selected,
12900
12960
  icon = _ref.icon,
12901
12961
  onPress = _ref.onPress,
12902
- otherProps = _objectWithoutProperties(_ref, _excluded$l);
12903
- var internalIcon = React__default.useMemo(function () {
12904
- if (icon && variant === 'filled') {
12905
- return icon;
12906
- }
12907
- if (selected) {
12908
- return 'checkmark';
12909
- }
12910
- return undefined;
12911
- }, [icon, selected, variant]);
12962
+ _ref$showSelectedIcon = _ref.showSelectedIcon,
12963
+ showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
12964
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
12965
+ var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
12912
12966
  return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
12913
12967
  onPress: onPress,
12914
12968
  themeVariant: variant,
12915
12969
  themeSelected: selected
12916
- }, otherProps), internalIcon && /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
12970
+ }, otherProps), icon && /*#__PURE__*/React__default.createElement(Box, {
12971
+ marginRight: "small"
12972
+ }, /*#__PURE__*/React__default.createElement(Icon, {
12917
12973
  size: "xsmall",
12918
- icon: internalIcon,
12919
- themeSelected: selected,
12920
- themeVariant: variant,
12921
- testID: "chip-icon-".concat(internalIcon)
12922
- })), /*#__PURE__*/React__default.createElement(StyledLabel, {
12923
- variant: "small",
12924
- themeVariant: variant,
12925
- themeSelected: selected
12926
- }, label));
12974
+ icon: icon,
12975
+ testID: "chip-icon-".concat(icon)
12976
+ })), /*#__PURE__*/React__default.createElement(Typography.Body, null, label), shouldShowSelectedIcon && /*#__PURE__*/React__default.createElement(Box, {
12977
+ marginLeft: "small"
12978
+ }, /*#__PURE__*/React__default.createElement(Icon, {
12979
+ size: "xsmall",
12980
+ icon: "cancel",
12981
+ testID: "selected-chip-icon-cancel"
12982
+ })));
12927
12983
  };
12928
12984
 
12929
12985
  var StyledWrapper$7 = index$9(TouchableOpacity)(function (_ref) {
@@ -13146,7 +13202,7 @@ var StyledErrorAndMaxLengthContainer = index$9(View)(function () {
13146
13202
  };
13147
13203
  });
13148
13204
 
13149
- var _excluded$k = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13205
+ var _excluded$l = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13150
13206
  var getState$2 = function getState(_ref) {
13151
13207
  var disabled = _ref.disabled,
13152
13208
  error = _ref.error,
@@ -13258,7 +13314,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13258
13314
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13259
13315
  _ref8$variant = _ref8.variant,
13260
13316
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13261
- nativeProps = _objectWithoutProperties(_ref8, _excluded$k);
13317
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$l);
13262
13318
  var displayText = getDisplayText(value, defaultValue);
13263
13319
  var isEmptyValue = displayText.length === 0;
13264
13320
  var _React$useState = React__default.useState({
@@ -13803,11 +13859,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13803
13859
  }))));
13804
13860
  };
13805
13861
 
13806
- var _excluded$j = ["variant"];
13862
+ var _excluded$k = ["variant"];
13807
13863
  var DatePicker = function DatePicker(_ref) {
13808
13864
  var _ref$variant = _ref.variant,
13809
13865
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13810
- props = _objectWithoutProperties(_ref, _excluded$j);
13866
+ props = _objectWithoutProperties(_ref, _excluded$k);
13811
13867
  if (variant === 'calendar') {
13812
13868
  return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
13813
13869
  }
@@ -14361,7 +14417,7 @@ var Portal$1 = Object.assign(Portal, {
14361
14417
  Host: PortalHost
14362
14418
  });
14363
14419
 
14364
- var _excluded$i = ["visible"];
14420
+ var _excluded$j = ["visible"];
14365
14421
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14366
14422
  var DEFAULT_ANIMATION_CONFIG = {
14367
14423
  easing: Easing.inOut(Easing.cubic),
@@ -14457,7 +14513,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
14457
14513
  var ModalWrapper = function ModalWrapper(_ref3) {
14458
14514
  var _ref3$visible = _ref3.visible,
14459
14515
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14460
- props = _objectWithoutProperties(_ref3, _excluded$i);
14516
+ props = _objectWithoutProperties(_ref3, _excluded$j);
14461
14517
  var modalRef = useRef(null);
14462
14518
  var _useState = useState(visible),
14463
14519
  _useState2 = _slicedToArray(_useState, 2),
@@ -14567,7 +14623,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14567
14623
  };
14568
14624
  });
14569
14625
 
14570
- var _excluded$h = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14626
+ var _excluded$i = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14571
14627
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14572
14628
  var renderImage$1 = function renderImage(image) {
14573
14629
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -14593,7 +14649,7 @@ var ErrorPage = function ErrorPage(_ref) {
14593
14649
  onCtaPress = _ref.onCtaPress,
14594
14650
  secondaryCtaText = _ref.secondaryCtaText,
14595
14651
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14596
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
14652
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
14597
14653
  var showCta = ctaText && onCtaPress !== undefined;
14598
14654
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14599
14655
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14754,11 +14810,11 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14754
14810
  };
14755
14811
  });
14756
14812
 
14757
- var _excluded$g = ["active"];
14813
+ var _excluded$h = ["active"];
14758
14814
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
14759
14815
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14760
14816
  var active = _ref.active,
14761
- iconProps = _objectWithoutProperties(_ref, _excluded$g);
14817
+ iconProps = _objectWithoutProperties(_ref, _excluded$h);
14762
14818
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
14763
14819
  useEffect(function () {
14764
14820
  var animation = Animated.spring(rotateAnimation.current, {
@@ -16007,7 +16063,7 @@ var StyledStrokeEnd = index$9(View)(function (_ref6) {
16007
16063
  };
16008
16064
  });
16009
16065
 
16010
- var _excluded$f = ["value", "renderValue", "intent", "style", "testID"];
16066
+ var _excluded$g = ["value", "renderValue", "intent", "style", "testID"];
16011
16067
  var HalfCircle = function HalfCircle(_ref) {
16012
16068
  var type = _ref.type,
16013
16069
  themeIntent = _ref.themeIntent;
@@ -16028,7 +16084,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16028
16084
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16029
16085
  style = _ref2.style,
16030
16086
  testID = _ref2.testID,
16031
- nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
16087
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
16032
16088
  var theme = useTheme$1();
16033
16089
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
16034
16090
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -16144,14 +16200,14 @@ var StyledInner = index$9(Animated.View)(function (_ref2) {
16144
16200
  };
16145
16201
  });
16146
16202
 
16147
- var _excluded$e = ["value", "intent", "style", "testID"];
16203
+ var _excluded$f = ["value", "intent", "style", "testID"];
16148
16204
  var ProgressBar = function ProgressBar(_ref) {
16149
16205
  var value = _ref.value,
16150
16206
  _ref$intent = _ref.intent,
16151
16207
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16152
16208
  style = _ref.style,
16153
16209
  testID = _ref.testID,
16154
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
16210
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16155
16211
  var _useState = useState(0),
16156
16212
  _useState2 = _slicedToArray(_useState, 2),
16157
16213
  width = _useState2[0],
@@ -16197,9 +16253,99 @@ var ProgressBar = function ProgressBar(_ref) {
16197
16253
  }));
16198
16254
  };
16199
16255
 
16256
+ var StyledStepContainer = index$9(Box)({
16257
+ display: 'flex',
16258
+ flexDirection: 'row',
16259
+ justifyContent: 'space-between',
16260
+ alignItems: 'center'
16261
+ });
16262
+ var StyledStep = index$9(Box)(function (_ref) {
16263
+ var theme = _ref.theme,
16264
+ themeState = _ref.themeState,
16265
+ themeWidth = _ref.themeWidth;
16266
+ return {
16267
+ height: theme.__hd__.progress.sizes.stepHeight,
16268
+ borderRadius: theme.__hd__.progress.radii["default"],
16269
+ backgroundColor: theme.__hd__.progress.colors.step[themeState],
16270
+ width: themeWidth
16271
+ };
16272
+ });
16273
+ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
16274
+ var theme = _ref2.theme;
16275
+ return {
16276
+ height: theme.__hd__.progress.sizes.stepHeight,
16277
+ borderRadius: theme.__hd__.progress.radii["default"],
16278
+ backgroundColor: theme.__hd__.progress.colors.step.current,
16279
+ width: '100%',
16280
+ position: 'relative'
16281
+ };
16282
+ });
16283
+ var StyledSingleStep = index$9(Box)(function (_ref3) {
16284
+ var theme = _ref3.theme;
16285
+ return {
16286
+ height: theme.__hd__.progress.sizes.stepHeight,
16287
+ borderRadius: theme.__hd__.progress.radii["default"],
16288
+ backgroundColor: theme.__hd__.progress.colors.step.complete,
16289
+ width: '70%',
16290
+ position: 'absolute',
16291
+ top: 0,
16292
+ left: 0,
16293
+ bottom: 0,
16294
+ right: 0
16295
+ };
16296
+ });
16297
+
16298
+ var _excluded$e = ["steps", "current", "onLayout"];
16299
+ var getStepState = function getStepState(current, index) {
16300
+ if (index < current) {
16301
+ return 'complete';
16302
+ }
16303
+ if (index === current) {
16304
+ return 'current';
16305
+ }
16306
+ return 'incomplete';
16307
+ };
16308
+ var ProgressStep = function ProgressStep(_ref) {
16309
+ var steps = _ref.steps,
16310
+ current = _ref.current,
16311
+ onLayout = _ref.onLayout,
16312
+ props = _objectWithoutProperties(_ref, _excluded$e);
16313
+ var theme = useTheme$1();
16314
+ var _React$useState = React__default.useState(0),
16315
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16316
+ containerWidth = _React$useState2[0],
16317
+ setContainerWidth = _React$useState2[1];
16318
+ var onContainerLayout = function onContainerLayout(event) {
16319
+ setContainerWidth(event.nativeEvent.layout.width);
16320
+ onLayout === null || onLayout === void 0 || onLayout(event);
16321
+ };
16322
+ // Calculate the width for each step
16323
+ var stepWidth = useMemo(function () {
16324
+ var width = 0;
16325
+ if (containerWidth > 0) {
16326
+ width = (containerWidth - (steps - 1) * theme.__hd__.progress.space.stepGap) / steps;
16327
+ }
16328
+ return width;
16329
+ }, [containerWidth, steps, theme]);
16330
+ if (steps === 1) {
16331
+ return /*#__PURE__*/React__default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__default.createElement(StyledSingleStep, null));
16332
+ }
16333
+ return /*#__PURE__*/React__default.createElement(StyledStepContainer, _extends$1({}, props, {
16334
+ onLayout: onContainerLayout
16335
+ }), Array.from({
16336
+ length: steps
16337
+ }).map(function (_, index) {
16338
+ return /*#__PURE__*/React__default.createElement(StyledStep, {
16339
+ themeState: getStepState(current - 1, index),
16340
+ themeWidth: stepWidth
16341
+ });
16342
+ }));
16343
+ };
16344
+
16200
16345
  var Progress = {
16201
16346
  Circle: ProgressCircle,
16202
- Bar: ProgressBar
16347
+ Bar: ProgressBar,
16348
+ Step: ProgressStep
16203
16349
  };
16204
16350
 
16205
16351
  var Slider = function Slider(_ref) {
@@ -36469,4 +36615,4 @@ var Search = {
36469
36615
  SuffixIcon: SearchSuffixIcon
36470
36616
  };
36471
36617
 
36472
- export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
36618
+ export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };