@hero-design/rn 8.68.0 → 8.69.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 (46) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +15 -0
  3. package/es/index.js +248 -89
  4. package/lib/index.js +248 -88
  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/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
  12. package/src/components/Progress/ProgressStep.tsx +87 -0
  13. package/src/components/Progress/StyledStep.tsx +48 -0
  14. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +209 -0
  15. package/src/components/Progress/__tests__/index.spec.js +26 -0
  16. package/src/components/Progress/index.tsx +6 -1
  17. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  18. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  19. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  20. package/src/index.ts +2 -0
  21. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -0
  22. package/src/theme/components/bottomSheet.ts +7 -0
  23. package/src/theme/components/progress.ts +11 -1
  24. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +7 -7
  25. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +50 -0
  26. package/src/theme/global/colors/__tests__/swagLightJobs.spec.ts +7 -0
  27. package/src/theme/global/colors/swagLight.ts +7 -8
  28. package/src/theme/global/colors/swagLightJobs.ts +11 -0
  29. package/src/theme/global/colors/types.ts +4 -0
  30. package/src/theme/global/index.ts +2 -0
  31. package/src/theme/index.ts +2 -0
  32. package/stats/8.69.0/rn-stats.html +4842 -0
  33. package/types/components/BottomSheet/Header.d.ts +3 -2
  34. package/types/components/BottomSheet/StyledBottomSheet.d.ts +16 -2
  35. package/types/components/BottomSheet/index.d.ts +5 -1
  36. package/types/components/Box/StyledBox.d.ts +1 -1
  37. package/types/components/Progress/ProgressStep.d.ts +20 -0
  38. package/types/components/Progress/StyledStep.d.ts +21 -0
  39. package/types/components/Progress/index.d.ts +1 -0
  40. package/types/index.d.ts +2 -2
  41. package/types/theme/components/bottomSheet.d.ts +7 -0
  42. package/types/theme/components/progress.d.ts +9 -0
  43. package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
  44. package/types/theme/global/colors/types.d.ts +2 -0
  45. package/types/theme/global/index.d.ts +4 -1
  46. package/types/theme/index.d.ts +2 -2
package/es/index.js CHANGED
@@ -1741,7 +1741,7 @@ var palette$4 = Object.assign(Object.assign({}, palette$9), {
1741
1741
  });
1742
1742
  var violet$3 = colorScales.violet;
1743
1743
  var palette$3 = Object.assign(Object.assign({}, palette$9), {
1744
- violet: violet$3.base
1744
+ violetLight90: violet$3.lighten90
1745
1745
  });
1746
1746
  var scarletGum = colorScales.scarletGum,
1747
1747
  violet1 = colorScales.violet1,
@@ -1908,18 +1908,25 @@ var swagDarkBrandSystemPalette = {
1908
1908
  var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
1909
1909
 
1910
1910
  var swagBrandSystemPallete = {
1911
- primary: palette$3.violet,
1912
- onPrimary: '#FDFBFF',
1913
- secondary: '#460078',
1911
+ primary: '#460078',
1912
+ onPrimary: '#fdfbff',
1913
+ secondary: '#b382fd',
1914
1914
  onSecondary: palette$3.white,
1915
- defaultSurface: '#FDFBFF',
1916
- highlightedSurface: '#F1E9FB',
1915
+ defaultSurface: '#fdfbff',
1916
+ highlightedSurface: palette$3.violetLight90,
1917
1917
  pressedSurface: '#380060',
1918
- decorativePrimary: '#FDFBFF',
1919
- decorativePrimarySurface: '#B382FD'
1918
+ decorativePrimary: '#fdfbff',
1919
+ decorativePrimarySurface: '#dacce4'
1920
1920
  };
1921
1921
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), swagBrandSystemPallete);
1922
1922
 
1923
+ var swagLightJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1924
+ secondary: '#40d1ff',
1925
+ onSecondary: '#460078',
1926
+ decorativeSecondary: '#fdfbff',
1927
+ decorativeSecondarySurface: '#d9f6ff'
1928
+ });
1929
+
1923
1930
  var workBrandSystemPallete = {
1924
1931
  primary: palette.black,
1925
1932
  onPrimary: palette.white,
@@ -2365,17 +2372,22 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2365
2372
  var colors = {
2366
2373
  shadow: theme.colors.primaryOutline,
2367
2374
  background: theme.colors.defaultGlobalSurface,
2368
- backdrop: theme.colors.overlayGlobalSurface
2375
+ backdrop: theme.colors.overlayGlobalSurface,
2376
+ floatingHeaderIconBackground: theme.colors.archivedSurface
2369
2377
  };
2370
2378
  var sizes = {
2371
- closeIcon: theme.sizes.xxxlarge
2379
+ closeIcon: theme.sizes.xxxlarge,
2380
+ floatingCloseIcon: theme.sizes.smallMedium
2372
2381
  };
2373
2382
  var space = {
2374
2383
  headerWrapperVerticalPadding: theme.space.small,
2375
2384
  headerWrapperHorizontalPadding: theme.space.medium,
2376
2385
  closeIconMargin: theme.space.smallMedium,
2377
2386
  footerVerticalPadding: theme.space.xxsmall,
2378
- footerHorizontalPadding: theme.space.smallMedium
2387
+ footerHorizontalPadding: theme.space.smallMedium,
2388
+ floatingContentMargin: theme.space.medium,
2389
+ floatingInnerPadding: theme.space.small,
2390
+ floatingHeaderIconPadding: theme.space.small
2379
2391
  };
2380
2392
  var shadows = {
2381
2393
  offset: {
@@ -2387,7 +2399,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2387
2399
  elevation: 10
2388
2400
  };
2389
2401
  var radii = {
2390
- "default": theme.radii.xlarge
2402
+ "default": theme.radii.xlarge,
2403
+ floating: theme.radii['5xlarge'],
2404
+ floatingHeaderIcon: theme.radii.rounded
2391
2405
  };
2392
2406
  return {
2393
2407
  colors: colors,
@@ -3040,20 +3054,30 @@ var getProgressTheme = function getProgressTheme(theme) {
3040
3054
  dangerInverted: theme.colors.mutedError,
3041
3055
  infoInverted: theme.colors.mutedInfo,
3042
3056
  archivedInverted: theme.colors.mutedArchived
3057
+ },
3058
+ step: {
3059
+ complete: theme.colors.primary,
3060
+ incomplete: theme.colors.archivedSurface,
3061
+ current: '#DACCE4'
3043
3062
  }
3044
3063
  };
3045
3064
  var sizes = {
3046
3065
  circleDiameter: theme.sizes['6xlarge'],
3047
3066
  circleCompletenessHeight: theme.sizes.small,
3048
- barHeight: theme.sizes.small
3067
+ barHeight: theme.sizes.small,
3068
+ stepHeight: theme.sizes.small
3049
3069
  };
3050
3070
  var radii = {
3051
3071
  "default": theme.radii.rounded
3052
3072
  };
3073
+ var space = {
3074
+ stepGap: theme.space.xsmall
3075
+ };
3053
3076
  return {
3054
3077
  colors: colors,
3055
3078
  sizes: sizes,
3056
- radii: radii
3079
+ radii: radii,
3080
+ space: space
3057
3081
  };
3058
3082
  };
3059
3083
 
@@ -6961,7 +6985,7 @@ var StyledText$3 = index$9(Text$1)(function (_ref) {
6961
6985
  });
6962
6986
  });
6963
6987
 
6964
- var _excluded$E = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6988
+ var _excluded$F = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6965
6989
  var Text = function Text(_ref) {
6966
6990
  var children = _ref.children,
6967
6991
  _ref$fontSize = _ref.fontSize,
@@ -6974,7 +6998,7 @@ var Text = function Text(_ref) {
6974
6998
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6975
6999
  _ref$allowFontScaling = _ref.allowFontScaling,
6976
7000
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6977
- nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7001
+ nativeProps = _objectWithoutProperties(_ref, _excluded$F);
6978
7002
  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
7003
  return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
6980
7004
  themeFontSize: fontSize,
@@ -7004,7 +7028,7 @@ var StyledCaption = index$9(Text$1)(function (_ref) {
7004
7028
  };
7005
7029
  });
7006
7030
 
7007
- var _excluded$D = ["children", "fontWeight", "intent", "allowFontScaling"];
7031
+ var _excluded$E = ["children", "fontWeight", "intent", "allowFontScaling"];
7008
7032
  var Caption = function Caption(_ref) {
7009
7033
  var children = _ref.children,
7010
7034
  _ref$fontWeight = _ref.fontWeight,
@@ -7013,7 +7037,7 @@ var Caption = function Caption(_ref) {
7013
7037
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7014
7038
  _ref$allowFontScaling = _ref.allowFontScaling,
7015
7039
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7016
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7040
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7017
7041
  return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
7018
7042
  themeFontWeight: fontWeight,
7019
7043
  themeIntent: intent,
@@ -7032,14 +7056,14 @@ var StyledLabel$1 = index$9(Text$1)(function (_ref) {
7032
7056
  };
7033
7057
  });
7034
7058
 
7035
- var _excluded$C = ["children", "intent", "allowFontScaling"];
7059
+ var _excluded$D = ["children", "intent", "allowFontScaling"];
7036
7060
  var Label = function Label(_ref) {
7037
7061
  var children = _ref.children,
7038
7062
  _ref$intent = _ref.intent,
7039
7063
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7040
7064
  _ref$allowFontScaling = _ref.allowFontScaling,
7041
7065
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7042
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7066
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7043
7067
  return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7044
7068
  themeIntent: intent,
7045
7069
  allowFontScaling: allowFontScaling
@@ -7060,7 +7084,7 @@ var StyledTitle$1 = index$9(Text$1)(function (_ref) {
7060
7084
  };
7061
7085
  });
7062
7086
 
7063
- var _excluded$B = ["children", "intent", "allowFontScaling", "level", "typeface"];
7087
+ var _excluded$C = ["children", "intent", "allowFontScaling", "level", "typeface"];
7064
7088
  var Title = function Title(_ref) {
7065
7089
  var children = _ref.children,
7066
7090
  _ref$intent = _ref.intent,
@@ -7071,7 +7095,7 @@ var Title = function Title(_ref) {
7071
7095
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7072
7096
  _ref$typeface = _ref.typeface,
7073
7097
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7074
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7098
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7075
7099
  return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7076
7100
  themeLevel: level,
7077
7101
  themeTypeface: typeface,
@@ -7106,7 +7130,7 @@ var StyledBody$1 = index$9(Text$1)(function (_ref) {
7106
7130
  };
7107
7131
  });
7108
7132
 
7109
- var _excluded$A = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7133
+ var _excluded$B = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7110
7134
  var Body = function Body(_ref) {
7111
7135
  var children = _ref.children,
7112
7136
  _ref$intent = _ref.intent,
@@ -7117,7 +7141,7 @@ var Body = function Body(_ref) {
7117
7141
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7118
7142
  _ref$variant = _ref.variant,
7119
7143
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7120
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7144
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7121
7145
  return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7122
7146
  themeTypeface: typeface,
7123
7147
  themeIntent: intent,
@@ -7684,10 +7708,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7684
7708
  };
7685
7709
  });
7686
7710
 
7687
- var _excluded$z = ["style"];
7711
+ var _excluded$A = ["style"];
7688
7712
  var AnimatedIcon = function AnimatedIcon(_ref) {
7689
7713
  var style = _ref.style,
7690
- otherProps = _objectWithoutProperties(_ref, _excluded$z);
7714
+ otherProps = _objectWithoutProperties(_ref, _excluded$A);
7691
7715
  var rotateAnimation = useRef(new Animated.Value(0));
7692
7716
  useEffect(function () {
7693
7717
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7792,7 +7816,7 @@ var AccordionItem = function AccordionItem(_ref) {
7792
7816
  }, content));
7793
7817
  };
7794
7818
 
7795
- var _excluded$y = ["key"];
7819
+ var _excluded$z = ["key"];
7796
7820
  var Accordion = function Accordion(_ref) {
7797
7821
  var items = _ref.items,
7798
7822
  activeItemKey = _ref.activeItemKey,
@@ -7813,7 +7837,7 @@ var Accordion = function Accordion(_ref) {
7813
7837
  testID: testID
7814
7838
  }, items.map(function (_ref2, index) {
7815
7839
  var key = _ref2.key,
7816
- props = _objectWithoutProperties(_ref2, _excluded$y);
7840
+ props = _objectWithoutProperties(_ref2, _excluded$z);
7817
7841
  var open = _activeItemKey === key;
7818
7842
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
7819
7843
  key: key
@@ -8307,7 +8331,7 @@ var borderWidths = {
8307
8331
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8308
8332
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8309
8333
 
8310
- var _excluded$x = ["theme"];
8334
+ var _excluded$y = ["theme"];
8311
8335
  var getThemeValue = function getThemeValue(theme, key, props) {
8312
8336
  var propConfig = config[key];
8313
8337
  var propValue = props[key];
@@ -8334,18 +8358,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8334
8358
  var configKeys = Object.keys(config);
8335
8359
  var StyledBox = index$9(View)(function (_ref5) {
8336
8360
  var theme = _ref5.theme,
8337
- otherProps = _objectWithoutProperties(_ref5, _excluded$x);
8361
+ otherProps = _objectWithoutProperties(_ref5, _excluded$y);
8338
8362
  var styleProps = pick(configKeys, otherProps);
8339
8363
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8340
8364
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8341
8365
  });
8342
8366
 
8343
- var _excluded$w = ["children", "style", "testID"];
8367
+ var _excluded$x = ["children", "style", "testID"];
8344
8368
  var Box = function Box(_ref) {
8345
8369
  var children = _ref.children,
8346
8370
  style = _ref.style,
8347
8371
  testID = _ref.testID,
8348
- otherProps = _objectWithoutProperties(_ref, _excluded$w);
8372
+ otherProps = _objectWithoutProperties(_ref, _excluded$x);
8349
8373
  return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
8350
8374
  style: style,
8351
8375
  testID: testID
@@ -8564,7 +8588,7 @@ var StyledStatus = index$9(Animated.View)(function (_ref3) {
8564
8588
  };
8565
8589
  });
8566
8590
 
8567
- var _excluded$v = ["children", "visible", "intent", "style", "testID"];
8591
+ var _excluded$w = ["children", "visible", "intent", "style", "testID"];
8568
8592
  var Status = function Status(_ref) {
8569
8593
  var children = _ref.children,
8570
8594
  _ref$visible = _ref.visible,
@@ -8573,7 +8597,7 @@ var Status = function Status(_ref) {
8573
8597
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8574
8598
  style = _ref.style,
8575
8599
  testID = _ref.testID,
8576
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8600
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8577
8601
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8578
8602
  opacity = _React$useRef.current;
8579
8603
  var isFirstRendering = React__default.useRef(true);
@@ -8606,7 +8630,7 @@ var Status = function Status(_ref) {
8606
8630
  }));
8607
8631
  };
8608
8632
 
8609
- var _excluded$u = ["content", "visible", "max", "intent", "style", "testID", "size"];
8633
+ var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size"];
8610
8634
  var DEFAULT_MAX_NUMBER = 99;
8611
8635
  var getPaddingState = function getPaddingState(content) {
8612
8636
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8623,7 +8647,7 @@ var Badge = function Badge(_ref) {
8623
8647
  testID = _ref.testID,
8624
8648
  _ref$size = _ref.size,
8625
8649
  size = _ref$size === void 0 ? 'medium' : _ref$size,
8626
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8650
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8627
8651
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8628
8652
  opacity = _React$useRef.current;
8629
8653
  var isFirstRendering = React__default.useRef(true);
@@ -8713,7 +8737,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8713
8737
  };
8714
8738
  });
8715
8739
 
8716
- var _excluded$t = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8740
+ var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8717
8741
  var getInactiveIcon = function getInactiveIcon(icon) {
8718
8742
  var inactiveIcon = "".concat(icon, "-outlined");
8719
8743
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8724,7 +8748,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8724
8748
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8725
8749
  selectedTabKey = _ref.selectedTabKey,
8726
8750
  tabs = _ref.tabs,
8727
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8751
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8728
8752
  var insets = useSafeAreaInsets();
8729
8753
  /**
8730
8754
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8810,13 +8834,13 @@ var StyledDivider = index$9(View)(function (_ref) {
8810
8834
  }, horizontalMargin), verticalMargin);
8811
8835
  });
8812
8836
 
8813
- var _excluded$s = ["marginHorizontal", "marginVertical", "style", "testID"];
8837
+ var _excluded$t = ["marginHorizontal", "marginVertical", "style", "testID"];
8814
8838
  var Divider = function Divider(_ref) {
8815
8839
  var marginHorizontal = _ref.marginHorizontal,
8816
8840
  marginVertical = _ref.marginVertical,
8817
8841
  style = _ref.style,
8818
8842
  testID = _ref.testID,
8819
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8843
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8820
8844
  return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8821
8845
  themeMarginHorizontal: marginHorizontal,
8822
8846
  themeMarginVertical: marginVertical,
@@ -8836,8 +8860,29 @@ var StyledKeyboardAvoidingView = index$9(KeyboardAvoidingView)(function () {
8836
8860
  flexDirection: 'column-reverse'
8837
8861
  };
8838
8862
  });
8839
- var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8863
+ var StyledFloatingWrapper = index$9(AnimatedSafeAreaView)(function (_ref) {
8840
8864
  var theme = _ref.theme;
8865
+ return {
8866
+ margin: theme.__hd__.bottomSheet.space.floatingContentMargin
8867
+ };
8868
+ });
8869
+ var StyledFloatingBottomSheet = index$9(Animated.View)(function (_ref2) {
8870
+ var theme = _ref2.theme;
8871
+ return {
8872
+ width: '100%',
8873
+ shadowColor: theme.__hd__.bottomSheet.colors.shadow,
8874
+ shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
8875
+ shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
8876
+ shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
8877
+ elevation: theme.__hd__.bottomSheet.shadows.elevation,
8878
+ backgroundColor: theme.__hd__.bottomSheet.colors.background,
8879
+ borderRadius: theme.__hd__.bottomSheet.radii.floating,
8880
+ maxHeight: '100%',
8881
+ padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
8882
+ };
8883
+ });
8884
+ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref3) {
8885
+ var theme = _ref3.theme;
8841
8886
  return {
8842
8887
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
8843
8888
  borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -8851,15 +8896,15 @@ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8851
8896
  maxHeight: '94%'
8852
8897
  };
8853
8898
  });
8854
- var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref2) {
8855
- var theme = _ref2.theme;
8899
+ var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref4) {
8900
+ var theme = _ref4.theme;
8856
8901
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
8857
8902
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
8858
8903
  opacity: 0.4
8859
8904
  });
8860
8905
  });
8861
- var StyledHeaderWrapper = index$9(View)(function (_ref3) {
8862
- var theme = _ref3.theme;
8906
+ var StyledHeaderWrapper = index$9(View)(function (_ref5) {
8907
+ var theme = _ref5.theme;
8863
8908
  return {
8864
8909
  flexDirection: 'row',
8865
8910
  paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
@@ -8870,8 +8915,8 @@ var StyledHeader = index$9(View)({
8870
8915
  flex: 1,
8871
8916
  justifyContent: 'center'
8872
8917
  });
8873
- var StyledFooter = index$9(View)(function (_ref4) {
8874
- var theme = _ref4.theme;
8918
+ var StyledFooter = index$9(View)(function (_ref6) {
8919
+ var theme = _ref6.theme;
8875
8920
  return {
8876
8921
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
8877
8922
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
@@ -8880,16 +8925,24 @@ var StyledFooter = index$9(View)(function (_ref4) {
8880
8925
  flexDirection: 'row'
8881
8926
  };
8882
8927
  });
8883
- var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
8884
- var theme = _ref5.theme;
8928
+ var StyledIconWrapper$4 = index$9(View)(function (_ref7) {
8929
+ var theme = _ref7.theme;
8885
8930
  return {
8886
- alignItems: 'center',
8931
+ alignItems: 'flex-end',
8887
8932
  justifyContent: 'center',
8888
8933
  width: theme.__hd__.bottomSheet.sizes.closeIcon,
8889
8934
  height: theme.__hd__.bottomSheet.sizes.closeIcon,
8890
8935
  marginLeft: theme.__hd__.bottomSheet.space.closeIconMargin
8891
8936
  };
8892
8937
  });
8938
+ var StyledFloatingHeaderWrapper = index$9(TouchableOpacity)(function (_ref8) {
8939
+ var theme = _ref8.theme;
8940
+ return {
8941
+ padding: theme.__hd__.bottomSheet.space.floatingHeaderIconPadding,
8942
+ backgroundColor: theme.__hd__.bottomSheet.colors.floatingHeaderIconBackground,
8943
+ borderRadius: theme.__hd__.bottomSheet.radii.floatingHeaderIcon
8944
+ };
8945
+ });
8893
8946
 
8894
8947
  var Footer$1 = function Footer(_ref) {
8895
8948
  var children = _ref.children,
@@ -8897,6 +8950,9 @@ var Footer$1 = function Footer(_ref) {
8897
8950
  return /*#__PURE__*/React__default.createElement(View, null, showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null, /*#__PURE__*/React__default.createElement(StyledFooter, null, children));
8898
8951
  };
8899
8952
 
8953
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
8954
+ var noop$1 = function noop() {};
8955
+
8900
8956
  var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
8901
8957
  return {
8902
8958
  backgroundColor: theme.__hd__.button.colors[intent]
@@ -8940,7 +8996,7 @@ var StyledLoadingDot = index$9(View)(function (_ref) {
8940
8996
  }, themeStyling());
8941
8997
  });
8942
8998
 
8943
- var _excluded$r = ["count", "size", "testID", "themeVariant"];
8999
+ var _excluded$s = ["count", "size", "testID", "themeVariant"];
8944
9000
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
8945
9001
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
8946
9002
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8972,7 +9028,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8972
9028
  size = _ref2$size === void 0 ? 12 : _ref2$size,
8973
9029
  testID = _ref2.testID,
8974
9030
  themeVariant = _ref2.themeVariant,
8975
- nativeProps = _objectWithoutProperties(_ref2, _excluded$r);
9031
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$s);
8976
9032
  var progressAnimation = useRef(new Animated.Value(0));
8977
9033
  useEffect(function () {
8978
9034
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -9383,35 +9439,43 @@ var CompoundButton = Button;
9383
9439
  CompoundButton.Icon = IconButton;
9384
9440
  CompoundButton.Utility = UtilityButton;
9385
9441
 
9386
- // eslint-disable-next-line @typescript-eslint/no-empty-function
9387
- var noop$1 = function noop() {};
9388
-
9389
9442
  var Header = function Header(_ref) {
9390
9443
  var content = _ref.content,
9391
9444
  showDivider = _ref.showDivider,
9392
9445
  _ref$onRequestClose = _ref.onRequestClose,
9393
9446
  onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
9394
- showCloseButton = _ref.showCloseButton;
9447
+ showCloseButton = _ref.showCloseButton,
9448
+ _ref$variant = _ref.variant,
9449
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9450
+ var theme = useTheme();
9395
9451
  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
9452
  variant: "regular-bold"
9397
9453
  }, content)) : /*#__PURE__*/React__default.createElement(View, {
9398
9454
  style: {
9399
9455
  flex: 1
9400
9456
  }
9401
- }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9457
+ }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, variant === 'fixed' ? /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9402
9458
  icon: "cancel",
9403
9459
  onPress: onRequestClose,
9404
9460
  intent: "text",
9405
9461
  testID: "bottom-sheet-close-icon",
9406
9462
  size: "xsmall"
9407
- })) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9463
+ }) : /*#__PURE__*/React__default.createElement(StyledFloatingHeaderWrapper, {
9464
+ onPress: onRequestClose,
9465
+ testID: "bottom-sheet-close-icon"
9466
+ }, /*#__PURE__*/React__default.createElement(Icon, {
9467
+ icon: "cancel",
9468
+ style: {
9469
+ fontSize: theme.__hd__.bottomSheet.sizes.floatingCloseIcon
9470
+ }
9471
+ }))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9408
9472
  };
9409
9473
 
9410
- var _excluded$q = ["scrollEventThrottle"];
9474
+ var _excluded$r = ["scrollEventThrottle"];
9411
9475
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9412
9476
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9413
9477
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9414
- props = _objectWithoutProperties(_ref, _excluded$q);
9478
+ props = _objectWithoutProperties(_ref, _excluded$r);
9415
9479
  var _useContext = useContext(BottomSheetContext),
9416
9480
  setInternalShowDivider = _useContext.setInternalShowDivider;
9417
9481
  var onScrollBeginDrag = useCallback(function (e) {
@@ -9457,7 +9521,9 @@ var BottomSheet = function BottomSheet(_ref) {
9457
9521
  _ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
9458
9522
  keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
9459
9523
  _ref$supportedOrienta = _ref.supportedOrientations,
9460
- supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
9524
+ supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
9525
+ _ref$variant = _ref.variant,
9526
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9461
9527
  var _Dimensions$get = Dimensions.get('window'),
9462
9528
  height = _Dimensions$get.height;
9463
9529
  // Internal state to control modal open/close timing with animation
@@ -9515,6 +9581,8 @@ var BottomSheet = function BottomSheet(_ref) {
9515
9581
  setInternalShowDivider: setInternalShowDivider
9516
9582
  };
9517
9583
  }, [setInternalShowDivider]);
9584
+ var BottomSheetWrapperComponent = variant === 'fixed' ? React__default.Fragment : StyledFloatingWrapper;
9585
+ var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
9518
9586
  return /*#__PURE__*/React__default.createElement(Modal$1, {
9519
9587
  visible: visible,
9520
9588
  onRequestClose: onRequestClose,
@@ -9531,7 +9599,7 @@ var BottomSheet = function BottomSheet(_ref) {
9531
9599
  opacity: interpolateOpacity
9532
9600
  },
9533
9601
  onPress: onRequestClose
9534
- }), /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
9602
+ }), /*#__PURE__*/React__default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__default.createElement(BottomSheetComponent, {
9535
9603
  style: [style, {
9536
9604
  transform: [{
9537
9605
  scaleY: height > 0 ? 1 : 0
@@ -9540,6 +9608,7 @@ var BottomSheet = function BottomSheet(_ref) {
9540
9608
  }]
9541
9609
  }]
9542
9610
  }, header !== undefined ? /*#__PURE__*/React__default.createElement(Header, {
9611
+ variant: variant,
9543
9612
  content: header,
9544
9613
  showDivider: internalShowDivider,
9545
9614
  onRequestClose: onRequestClose,
@@ -9548,7 +9617,7 @@ var BottomSheet = function BottomSheet(_ref) {
9548
9617
  value: BottomSheetContextValue
9549
9618
  }, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
9550
9619
  showDivider: showDivider
9551
- }, footer) : null))));
9620
+ }, footer) : null)))));
9552
9621
  };
9553
9622
  var BottomSheet$1 = Object.assign(BottomSheet, {
9554
9623
  ScrollView: BottomSheetScrollView
@@ -12223,12 +12292,12 @@ var Indicator = index$9(View)(function (_ref2) {
12223
12292
  };
12224
12293
  });
12225
12294
 
12226
- var _excluded$p = ["intent", "children"];
12295
+ var _excluded$q = ["intent", "children"];
12227
12296
  var DataCard = function DataCard(_ref) {
12228
12297
  var _ref$intent = _ref.intent,
12229
12298
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12230
12299
  children = _ref.children,
12231
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12300
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
12232
12301
  return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
12233
12302
  themeIntent: intent,
12234
12303
  testID: "data-card-indicator"
@@ -12246,11 +12315,11 @@ var StyledCard$1 = index$9(View)(function (_ref) {
12246
12315
  });
12247
12316
  });
12248
12317
 
12249
- var _excluded$o = ["intent", "children"];
12318
+ var _excluded$p = ["intent", "children"];
12250
12319
  var Card = function Card(_ref) {
12251
12320
  var intent = _ref.intent,
12252
12321
  children = _ref.children,
12253
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12322
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12254
12323
  return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12255
12324
  themeIntent: intent
12256
12325
  }), children);
@@ -12511,7 +12580,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12511
12580
  });
12512
12581
  CardCarousel.displayName = 'CardCarousel';
12513
12582
 
12514
- var _excluded$n = ["rounded", "size", "testID", "style"];
12583
+ var _excluded$o = ["rounded", "size", "testID", "style"];
12515
12584
  var Image = function Image(_ref) {
12516
12585
  var _ref$rounded = _ref.rounded,
12517
12586
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12519,7 +12588,7 @@ var Image = function Image(_ref) {
12519
12588
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12520
12589
  testID = _ref.testID,
12521
12590
  style = _ref.style,
12522
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$n);
12591
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$o);
12523
12592
  var theme = useTheme();
12524
12593
  var imageSize = theme.__hd__.image.sizes[size];
12525
12594
  return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
@@ -12653,7 +12722,7 @@ var CarouselItem = function CarouselItem(_ref) {
12653
12722
  }, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
12654
12723
  };
12655
12724
 
12656
- var _excluded$m = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12725
+ var _excluded$n = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12657
12726
  function useStateFromProp(initialValue) {
12658
12727
  var _useState = useState(initialValue),
12659
12728
  _useState2 = _slicedToArray(_useState, 2),
@@ -12680,7 +12749,7 @@ var Carousel = function Carousel(_ref) {
12680
12749
  testID = _ref.testID,
12681
12750
  _ref$pageControlPosit = _ref.pageControlPosition,
12682
12751
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12683
- nativeProps = _objectWithoutProperties(_ref, _excluded$m);
12752
+ nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12684
12753
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12685
12754
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12686
12755
  var theme = useTheme();
@@ -12890,7 +12959,7 @@ var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12890
12959
  };
12891
12960
  });
12892
12961
 
12893
- var _excluded$l = ["label", "variant", "selected", "icon", "onPress"];
12962
+ var _excluded$m = ["label", "variant", "selected", "icon", "onPress"];
12894
12963
  var Chip = function Chip(_ref) {
12895
12964
  var label = _ref.label,
12896
12965
  _ref$variant = _ref.variant,
@@ -12899,7 +12968,7 @@ var Chip = function Chip(_ref) {
12899
12968
  selected = _ref$selected === void 0 ? false : _ref$selected,
12900
12969
  icon = _ref.icon,
12901
12970
  onPress = _ref.onPress,
12902
- otherProps = _objectWithoutProperties(_ref, _excluded$l);
12971
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
12903
12972
  var internalIcon = React__default.useMemo(function () {
12904
12973
  if (icon && variant === 'filled') {
12905
12974
  return icon;
@@ -13146,7 +13215,7 @@ var StyledErrorAndMaxLengthContainer = index$9(View)(function () {
13146
13215
  };
13147
13216
  });
13148
13217
 
13149
- var _excluded$k = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13218
+ var _excluded$l = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13150
13219
  var getState$2 = function getState(_ref) {
13151
13220
  var disabled = _ref.disabled,
13152
13221
  error = _ref.error,
@@ -13258,7 +13327,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13258
13327
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13259
13328
  _ref8$variant = _ref8.variant,
13260
13329
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13261
- nativeProps = _objectWithoutProperties(_ref8, _excluded$k);
13330
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$l);
13262
13331
  var displayText = getDisplayText(value, defaultValue);
13263
13332
  var isEmptyValue = displayText.length === 0;
13264
13333
  var _React$useState = React__default.useState({
@@ -13803,11 +13872,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13803
13872
  }))));
13804
13873
  };
13805
13874
 
13806
- var _excluded$j = ["variant"];
13875
+ var _excluded$k = ["variant"];
13807
13876
  var DatePicker = function DatePicker(_ref) {
13808
13877
  var _ref$variant = _ref.variant,
13809
13878
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13810
- props = _objectWithoutProperties(_ref, _excluded$j);
13879
+ props = _objectWithoutProperties(_ref, _excluded$k);
13811
13880
  if (variant === 'calendar') {
13812
13881
  return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
13813
13882
  }
@@ -14361,7 +14430,7 @@ var Portal$1 = Object.assign(Portal, {
14361
14430
  Host: PortalHost
14362
14431
  });
14363
14432
 
14364
- var _excluded$i = ["visible"];
14433
+ var _excluded$j = ["visible"];
14365
14434
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14366
14435
  var DEFAULT_ANIMATION_CONFIG = {
14367
14436
  easing: Easing.inOut(Easing.cubic),
@@ -14457,7 +14526,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
14457
14526
  var ModalWrapper = function ModalWrapper(_ref3) {
14458
14527
  var _ref3$visible = _ref3.visible,
14459
14528
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14460
- props = _objectWithoutProperties(_ref3, _excluded$i);
14529
+ props = _objectWithoutProperties(_ref3, _excluded$j);
14461
14530
  var modalRef = useRef(null);
14462
14531
  var _useState = useState(visible),
14463
14532
  _useState2 = _slicedToArray(_useState, 2),
@@ -14567,7 +14636,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14567
14636
  };
14568
14637
  });
14569
14638
 
14570
- var _excluded$h = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14639
+ var _excluded$i = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14571
14640
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14572
14641
  var renderImage$1 = function renderImage(image) {
14573
14642
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -14593,7 +14662,7 @@ var ErrorPage = function ErrorPage(_ref) {
14593
14662
  onCtaPress = _ref.onCtaPress,
14594
14663
  secondaryCtaText = _ref.secondaryCtaText,
14595
14664
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14596
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
14665
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
14597
14666
  var showCta = ctaText && onCtaPress !== undefined;
14598
14667
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14599
14668
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14754,11 +14823,11 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14754
14823
  };
14755
14824
  });
14756
14825
 
14757
- var _excluded$g = ["active"];
14826
+ var _excluded$h = ["active"];
14758
14827
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
14759
14828
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14760
14829
  var active = _ref.active,
14761
- iconProps = _objectWithoutProperties(_ref, _excluded$g);
14830
+ iconProps = _objectWithoutProperties(_ref, _excluded$h);
14762
14831
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
14763
14832
  useEffect(function () {
14764
14833
  var animation = Animated.spring(rotateAnimation.current, {
@@ -16007,7 +16076,7 @@ var StyledStrokeEnd = index$9(View)(function (_ref6) {
16007
16076
  };
16008
16077
  });
16009
16078
 
16010
- var _excluded$f = ["value", "renderValue", "intent", "style", "testID"];
16079
+ var _excluded$g = ["value", "renderValue", "intent", "style", "testID"];
16011
16080
  var HalfCircle = function HalfCircle(_ref) {
16012
16081
  var type = _ref.type,
16013
16082
  themeIntent = _ref.themeIntent;
@@ -16028,7 +16097,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16028
16097
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16029
16098
  style = _ref2.style,
16030
16099
  testID = _ref2.testID,
16031
- nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
16100
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
16032
16101
  var theme = useTheme$1();
16033
16102
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
16034
16103
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -16144,14 +16213,14 @@ var StyledInner = index$9(Animated.View)(function (_ref2) {
16144
16213
  };
16145
16214
  });
16146
16215
 
16147
- var _excluded$e = ["value", "intent", "style", "testID"];
16216
+ var _excluded$f = ["value", "intent", "style", "testID"];
16148
16217
  var ProgressBar = function ProgressBar(_ref) {
16149
16218
  var value = _ref.value,
16150
16219
  _ref$intent = _ref.intent,
16151
16220
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16152
16221
  style = _ref.style,
16153
16222
  testID = _ref.testID,
16154
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
16223
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16155
16224
  var _useState = useState(0),
16156
16225
  _useState2 = _slicedToArray(_useState, 2),
16157
16226
  width = _useState2[0],
@@ -16197,9 +16266,99 @@ var ProgressBar = function ProgressBar(_ref) {
16197
16266
  }));
16198
16267
  };
16199
16268
 
16269
+ var StyledStepContainer = index$9(Box)({
16270
+ display: 'flex',
16271
+ flexDirection: 'row',
16272
+ justifyContent: 'space-between',
16273
+ alignItems: 'center'
16274
+ });
16275
+ var StyledStep = index$9(Box)(function (_ref) {
16276
+ var theme = _ref.theme,
16277
+ themeState = _ref.themeState,
16278
+ themeWidth = _ref.themeWidth;
16279
+ return {
16280
+ height: theme.__hd__.progress.sizes.stepHeight,
16281
+ borderRadius: theme.__hd__.progress.radii["default"],
16282
+ backgroundColor: theme.__hd__.progress.colors.step[themeState],
16283
+ width: themeWidth
16284
+ };
16285
+ });
16286
+ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
16287
+ var theme = _ref2.theme;
16288
+ return {
16289
+ height: theme.__hd__.progress.sizes.stepHeight,
16290
+ borderRadius: theme.__hd__.progress.radii["default"],
16291
+ backgroundColor: theme.__hd__.progress.colors.step.current,
16292
+ width: '100%',
16293
+ position: 'relative'
16294
+ };
16295
+ });
16296
+ var StyledSingleStep = index$9(Box)(function (_ref3) {
16297
+ var theme = _ref3.theme;
16298
+ return {
16299
+ height: theme.__hd__.progress.sizes.stepHeight,
16300
+ borderRadius: theme.__hd__.progress.radii["default"],
16301
+ backgroundColor: theme.__hd__.progress.colors.step.complete,
16302
+ width: '70%',
16303
+ position: 'absolute',
16304
+ top: 0,
16305
+ left: 0,
16306
+ bottom: 0,
16307
+ right: 0
16308
+ };
16309
+ });
16310
+
16311
+ var _excluded$e = ["steps", "current", "onLayout"];
16312
+ var getStepState = function getStepState(current, index) {
16313
+ if (index < current) {
16314
+ return 'complete';
16315
+ }
16316
+ if (index === current) {
16317
+ return 'current';
16318
+ }
16319
+ return 'incomplete';
16320
+ };
16321
+ var ProgressStep = function ProgressStep(_ref) {
16322
+ var steps = _ref.steps,
16323
+ current = _ref.current,
16324
+ onLayout = _ref.onLayout,
16325
+ props = _objectWithoutProperties(_ref, _excluded$e);
16326
+ var theme = useTheme$1();
16327
+ var _React$useState = React__default.useState(0),
16328
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16329
+ containerWidth = _React$useState2[0],
16330
+ setContainerWidth = _React$useState2[1];
16331
+ var onContainerLayout = function onContainerLayout(event) {
16332
+ setContainerWidth(event.nativeEvent.layout.width);
16333
+ onLayout === null || onLayout === void 0 || onLayout(event);
16334
+ };
16335
+ // Calculate the width for each step
16336
+ var stepWidth = useMemo(function () {
16337
+ var width = 0;
16338
+ if (containerWidth > 0) {
16339
+ width = (containerWidth - (steps - 1) * theme.__hd__.progress.space.stepGap) / steps;
16340
+ }
16341
+ return width;
16342
+ }, [containerWidth, steps, theme]);
16343
+ if (steps === 1) {
16344
+ return /*#__PURE__*/React__default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__default.createElement(StyledSingleStep, null));
16345
+ }
16346
+ return /*#__PURE__*/React__default.createElement(StyledStepContainer, _extends$1({}, props, {
16347
+ onLayout: onContainerLayout
16348
+ }), Array.from({
16349
+ length: steps
16350
+ }).map(function (_, index) {
16351
+ return /*#__PURE__*/React__default.createElement(StyledStep, {
16352
+ themeState: getStepState(current - 1, index),
16353
+ themeWidth: stepWidth
16354
+ });
16355
+ }));
16356
+ };
16357
+
16200
16358
  var Progress = {
16201
16359
  Circle: ProgressCircle,
16202
- Bar: ProgressBar
16360
+ Bar: ProgressBar,
16361
+ Step: ProgressStep
16203
16362
  };
16204
16363
 
16205
16364
  var Slider = function Slider(_ref) {
@@ -36469,4 +36628,4 @@ var Search = {
36469
36628
  SuffixIcon: SearchSuffixIcon
36470
36629
  };
36471
36630
 
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 };
36631
+ 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 };