@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/lib/index.js CHANGED
@@ -1768,7 +1768,7 @@ var palette$4 = Object.assign(Object.assign({}, palette$9), {
1768
1768
  });
1769
1769
  var violet$3 = colorScales.violet;
1770
1770
  var palette$3 = Object.assign(Object.assign({}, palette$9), {
1771
- violet: violet$3.base
1771
+ violetLight90: violet$3.lighten90
1772
1772
  });
1773
1773
  var scarletGum = colorScales.scarletGum,
1774
1774
  violet1 = colorScales.violet1,
@@ -1935,18 +1935,25 @@ var swagDarkBrandSystemPalette = {
1935
1935
  var swagDarkSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette), swagDarkBrandSystemPalette);
1936
1936
 
1937
1937
  var swagBrandSystemPallete = {
1938
- primary: palette$3.violet,
1939
- onPrimary: '#FDFBFF',
1940
- secondary: '#460078',
1938
+ primary: '#460078',
1939
+ onPrimary: '#fdfbff',
1940
+ secondary: '#b382fd',
1941
1941
  onSecondary: palette$3.white,
1942
- defaultSurface: '#FDFBFF',
1943
- highlightedSurface: '#F1E9FB',
1942
+ defaultSurface: '#fdfbff',
1943
+ highlightedSurface: palette$3.violetLight90,
1944
1944
  pressedSurface: '#380060',
1945
- decorativePrimary: '#FDFBFF',
1946
- decorativePrimarySurface: '#B382FD'
1945
+ decorativePrimary: '#fdfbff',
1946
+ decorativePrimarySurface: '#dacce4'
1947
1947
  };
1948
1948
  var swagSystemPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), swagBrandSystemPallete);
1949
1949
 
1950
+ var swagLightJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
1951
+ secondary: '#40d1ff',
1952
+ onSecondary: '#460078',
1953
+ decorativeSecondary: '#fdfbff',
1954
+ decorativeSecondarySurface: '#d9f6ff'
1955
+ });
1956
+
1950
1957
  var workBrandSystemPallete = {
1951
1958
  primary: palette.black,
1952
1959
  onPrimary: palette.white,
@@ -2392,17 +2399,22 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2392
2399
  var colors = {
2393
2400
  shadow: theme.colors.primaryOutline,
2394
2401
  background: theme.colors.defaultGlobalSurface,
2395
- backdrop: theme.colors.overlayGlobalSurface
2402
+ backdrop: theme.colors.overlayGlobalSurface,
2403
+ floatingHeaderIconBackground: theme.colors.archivedSurface
2396
2404
  };
2397
2405
  var sizes = {
2398
- closeIcon: theme.sizes.xxxlarge
2406
+ closeIcon: theme.sizes.xxxlarge,
2407
+ floatingCloseIcon: theme.sizes.smallMedium
2399
2408
  };
2400
2409
  var space = {
2401
2410
  headerWrapperVerticalPadding: theme.space.small,
2402
2411
  headerWrapperHorizontalPadding: theme.space.medium,
2403
2412
  closeIconMargin: theme.space.smallMedium,
2404
2413
  footerVerticalPadding: theme.space.xxsmall,
2405
- footerHorizontalPadding: theme.space.smallMedium
2414
+ footerHorizontalPadding: theme.space.smallMedium,
2415
+ floatingContentMargin: theme.space.medium,
2416
+ floatingInnerPadding: theme.space.small,
2417
+ floatingHeaderIconPadding: theme.space.small
2406
2418
  };
2407
2419
  var shadows = {
2408
2420
  offset: {
@@ -2414,7 +2426,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
2414
2426
  elevation: 10
2415
2427
  };
2416
2428
  var radii = {
2417
- "default": theme.radii.xlarge
2429
+ "default": theme.radii.xlarge,
2430
+ floating: theme.radii['5xlarge'],
2431
+ floatingHeaderIcon: theme.radii.rounded
2418
2432
  };
2419
2433
  return {
2420
2434
  colors: colors,
@@ -3067,20 +3081,30 @@ var getProgressTheme = function getProgressTheme(theme) {
3067
3081
  dangerInverted: theme.colors.mutedError,
3068
3082
  infoInverted: theme.colors.mutedInfo,
3069
3083
  archivedInverted: theme.colors.mutedArchived
3084
+ },
3085
+ step: {
3086
+ complete: theme.colors.primary,
3087
+ incomplete: theme.colors.archivedSurface,
3088
+ current: '#DACCE4'
3070
3089
  }
3071
3090
  };
3072
3091
  var sizes = {
3073
3092
  circleDiameter: theme.sizes['6xlarge'],
3074
3093
  circleCompletenessHeight: theme.sizes.small,
3075
- barHeight: theme.sizes.small
3094
+ barHeight: theme.sizes.small,
3095
+ stepHeight: theme.sizes.small
3076
3096
  };
3077
3097
  var radii = {
3078
3098
  "default": theme.radii.rounded
3079
3099
  };
3100
+ var space = {
3101
+ stepGap: theme.space.xsmall
3102
+ };
3080
3103
  return {
3081
3104
  colors: colors,
3082
3105
  sizes: sizes,
3083
- radii: radii
3106
+ radii: radii,
3107
+ space: space
3084
3108
  };
3085
3109
  };
3086
3110
 
@@ -6988,7 +7012,7 @@ var StyledText$3 = index$9(reactNative.Text)(function (_ref) {
6988
7012
  });
6989
7013
  });
6990
7014
 
6991
- var _excluded$E = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7015
+ var _excluded$F = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6992
7016
  var Text = function Text(_ref) {
6993
7017
  var children = _ref.children,
6994
7018
  _ref$fontSize = _ref.fontSize,
@@ -7001,7 +7025,7 @@ var Text = function Text(_ref) {
7001
7025
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7002
7026
  _ref$allowFontScaling = _ref.allowFontScaling,
7003
7027
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7004
- nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7028
+ nativeProps = _objectWithoutProperties(_ref, _excluded$F);
7005
7029
  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.');
7006
7030
  return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
7007
7031
  themeFontSize: fontSize,
@@ -7031,7 +7055,7 @@ var StyledCaption = index$9(reactNative.Text)(function (_ref) {
7031
7055
  };
7032
7056
  });
7033
7057
 
7034
- var _excluded$D = ["children", "fontWeight", "intent", "allowFontScaling"];
7058
+ var _excluded$E = ["children", "fontWeight", "intent", "allowFontScaling"];
7035
7059
  var Caption = function Caption(_ref) {
7036
7060
  var children = _ref.children,
7037
7061
  _ref$fontWeight = _ref.fontWeight,
@@ -7040,7 +7064,7 @@ var Caption = function Caption(_ref) {
7040
7064
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7041
7065
  _ref$allowFontScaling = _ref.allowFontScaling,
7042
7066
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7043
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7067
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7044
7068
  return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
7045
7069
  themeFontWeight: fontWeight,
7046
7070
  themeIntent: intent,
@@ -7059,14 +7083,14 @@ var StyledLabel$1 = index$9(reactNative.Text)(function (_ref) {
7059
7083
  };
7060
7084
  });
7061
7085
 
7062
- var _excluded$C = ["children", "intent", "allowFontScaling"];
7086
+ var _excluded$D = ["children", "intent", "allowFontScaling"];
7063
7087
  var Label = function Label(_ref) {
7064
7088
  var children = _ref.children,
7065
7089
  _ref$intent = _ref.intent,
7066
7090
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7067
7091
  _ref$allowFontScaling = _ref.allowFontScaling,
7068
7092
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7069
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7093
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7070
7094
  return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7071
7095
  themeIntent: intent,
7072
7096
  allowFontScaling: allowFontScaling
@@ -7087,7 +7111,7 @@ var StyledTitle$1 = index$9(reactNative.Text)(function (_ref) {
7087
7111
  };
7088
7112
  });
7089
7113
 
7090
- var _excluded$B = ["children", "intent", "allowFontScaling", "level", "typeface"];
7114
+ var _excluded$C = ["children", "intent", "allowFontScaling", "level", "typeface"];
7091
7115
  var Title = function Title(_ref) {
7092
7116
  var children = _ref.children,
7093
7117
  _ref$intent = _ref.intent,
@@ -7098,7 +7122,7 @@ var Title = function Title(_ref) {
7098
7122
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7099
7123
  _ref$typeface = _ref.typeface,
7100
7124
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7101
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7125
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7102
7126
  return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7103
7127
  themeLevel: level,
7104
7128
  themeTypeface: typeface,
@@ -7133,7 +7157,7 @@ var StyledBody$1 = index$9(reactNative.Text)(function (_ref) {
7133
7157
  };
7134
7158
  });
7135
7159
 
7136
- var _excluded$A = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7160
+ var _excluded$B = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7137
7161
  var Body = function Body(_ref) {
7138
7162
  var children = _ref.children,
7139
7163
  _ref$intent = _ref.intent,
@@ -7144,7 +7168,7 @@ var Body = function Body(_ref) {
7144
7168
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7145
7169
  _ref$variant = _ref.variant,
7146
7170
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7147
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
7171
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7148
7172
  return /*#__PURE__*/React__namespace.default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7149
7173
  themeTypeface: typeface,
7150
7174
  themeIntent: intent,
@@ -7711,10 +7735,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7711
7735
  };
7712
7736
  });
7713
7737
 
7714
- var _excluded$z = ["style"];
7738
+ var _excluded$A = ["style"];
7715
7739
  var AnimatedIcon = function AnimatedIcon(_ref) {
7716
7740
  var style = _ref.style,
7717
- otherProps = _objectWithoutProperties(_ref, _excluded$z);
7741
+ otherProps = _objectWithoutProperties(_ref, _excluded$A);
7718
7742
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
7719
7743
  React.useEffect(function () {
7720
7744
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -7819,7 +7843,7 @@ var AccordionItem = function AccordionItem(_ref) {
7819
7843
  }, content));
7820
7844
  };
7821
7845
 
7822
- var _excluded$y = ["key"];
7846
+ var _excluded$z = ["key"];
7823
7847
  var Accordion = function Accordion(_ref) {
7824
7848
  var items = _ref.items,
7825
7849
  activeItemKey = _ref.activeItemKey,
@@ -7840,7 +7864,7 @@ var Accordion = function Accordion(_ref) {
7840
7864
  testID: testID
7841
7865
  }, items.map(function (_ref2, index) {
7842
7866
  var key = _ref2.key,
7843
- props = _objectWithoutProperties(_ref2, _excluded$y);
7867
+ props = _objectWithoutProperties(_ref2, _excluded$z);
7844
7868
  var open = _activeItemKey === key;
7845
7869
  return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
7846
7870
  key: key
@@ -8334,7 +8358,7 @@ var borderWidths = {
8334
8358
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8335
8359
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8336
8360
 
8337
- var _excluded$x = ["theme"];
8361
+ var _excluded$y = ["theme"];
8338
8362
  var getThemeValue = function getThemeValue(theme, key, props) {
8339
8363
  var propConfig = config[key];
8340
8364
  var propValue = props[key];
@@ -8361,18 +8385,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8361
8385
  var configKeys = Object.keys(config);
8362
8386
  var StyledBox = index$9(reactNative.View)(function (_ref5) {
8363
8387
  var theme = _ref5.theme,
8364
- otherProps = _objectWithoutProperties(_ref5, _excluded$x);
8388
+ otherProps = _objectWithoutProperties(_ref5, _excluded$y);
8365
8389
  var styleProps = pick(configKeys, otherProps);
8366
8390
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8367
8391
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8368
8392
  });
8369
8393
 
8370
- var _excluded$w = ["children", "style", "testID"];
8394
+ var _excluded$x = ["children", "style", "testID"];
8371
8395
  var Box = function Box(_ref) {
8372
8396
  var children = _ref.children,
8373
8397
  style = _ref.style,
8374
8398
  testID = _ref.testID,
8375
- otherProps = _objectWithoutProperties(_ref, _excluded$w);
8399
+ otherProps = _objectWithoutProperties(_ref, _excluded$x);
8376
8400
  return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
8377
8401
  style: style,
8378
8402
  testID: testID
@@ -8591,7 +8615,7 @@ var StyledStatus = index$9(reactNative.Animated.View)(function (_ref3) {
8591
8615
  };
8592
8616
  });
8593
8617
 
8594
- var _excluded$v = ["children", "visible", "intent", "style", "testID"];
8618
+ var _excluded$w = ["children", "visible", "intent", "style", "testID"];
8595
8619
  var Status = function Status(_ref) {
8596
8620
  var children = _ref.children,
8597
8621
  _ref$visible = _ref.visible,
@@ -8600,7 +8624,7 @@ var Status = function Status(_ref) {
8600
8624
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8601
8625
  style = _ref.style,
8602
8626
  testID = _ref.testID,
8603
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8627
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8604
8628
  var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8605
8629
  opacity = _React$useRef.current;
8606
8630
  var isFirstRendering = React__namespace.default.useRef(true);
@@ -8633,7 +8657,7 @@ var Status = function Status(_ref) {
8633
8657
  }));
8634
8658
  };
8635
8659
 
8636
- var _excluded$u = ["content", "visible", "max", "intent", "style", "testID", "size"];
8660
+ var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size"];
8637
8661
  var DEFAULT_MAX_NUMBER = 99;
8638
8662
  var getPaddingState = function getPaddingState(content) {
8639
8663
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8650,7 +8674,7 @@ var Badge = function Badge(_ref) {
8650
8674
  testID = _ref.testID,
8651
8675
  _ref$size = _ref.size,
8652
8676
  size = _ref$size === void 0 ? 'medium' : _ref$size,
8653
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8677
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8654
8678
  var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8655
8679
  opacity = _React$useRef.current;
8656
8680
  var isFirstRendering = React__namespace.default.useRef(true);
@@ -8740,7 +8764,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8740
8764
  };
8741
8765
  });
8742
8766
 
8743
- var _excluded$t = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8767
+ var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8744
8768
  var getInactiveIcon = function getInactiveIcon(icon) {
8745
8769
  var inactiveIcon = "".concat(icon, "-outlined");
8746
8770
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8751,7 +8775,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8751
8775
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8752
8776
  selectedTabKey = _ref.selectedTabKey,
8753
8777
  tabs = _ref.tabs,
8754
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8778
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8755
8779
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
8756
8780
  /**
8757
8781
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8837,13 +8861,13 @@ var StyledDivider = index$9(reactNative.View)(function (_ref) {
8837
8861
  }, horizontalMargin), verticalMargin);
8838
8862
  });
8839
8863
 
8840
- var _excluded$s = ["marginHorizontal", "marginVertical", "style", "testID"];
8864
+ var _excluded$t = ["marginHorizontal", "marginVertical", "style", "testID"];
8841
8865
  var Divider = function Divider(_ref) {
8842
8866
  var marginHorizontal = _ref.marginHorizontal,
8843
8867
  marginVertical = _ref.marginVertical,
8844
8868
  style = _ref.style,
8845
8869
  testID = _ref.testID,
8846
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
8870
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8847
8871
  return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8848
8872
  themeMarginHorizontal: marginHorizontal,
8849
8873
  themeMarginVertical: marginVertical,
@@ -8863,8 +8887,29 @@ var StyledKeyboardAvoidingView = index$9(reactNative.KeyboardAvoidingView)(funct
8863
8887
  flexDirection: 'column-reverse'
8864
8888
  };
8865
8889
  });
8866
- var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8890
+ var StyledFloatingWrapper = index$9(AnimatedSafeAreaView)(function (_ref) {
8867
8891
  var theme = _ref.theme;
8892
+ return {
8893
+ margin: theme.__hd__.bottomSheet.space.floatingContentMargin
8894
+ };
8895
+ });
8896
+ var StyledFloatingBottomSheet = index$9(reactNative.Animated.View)(function (_ref2) {
8897
+ var theme = _ref2.theme;
8898
+ return {
8899
+ width: '100%',
8900
+ shadowColor: theme.__hd__.bottomSheet.colors.shadow,
8901
+ shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
8902
+ shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
8903
+ shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
8904
+ elevation: theme.__hd__.bottomSheet.shadows.elevation,
8905
+ backgroundColor: theme.__hd__.bottomSheet.colors.background,
8906
+ borderRadius: theme.__hd__.bottomSheet.radii.floating,
8907
+ maxHeight: '100%',
8908
+ padding: theme.__hd__.bottomSheet.space.floatingInnerPadding
8909
+ };
8910
+ });
8911
+ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref3) {
8912
+ var theme = _ref3.theme;
8868
8913
  return {
8869
8914
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
8870
8915
  borderTopRightRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -8878,15 +8923,15 @@ var StyledBottomSheet = index$9(AnimatedSafeAreaView)(function (_ref) {
8878
8923
  maxHeight: '94%'
8879
8924
  };
8880
8925
  });
8881
- var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref2) {
8882
- var theme = _ref2.theme;
8926
+ var StyledBackdrop$2 = index$9(AnimatedPressable$2)(function (_ref4) {
8927
+ var theme = _ref4.theme;
8883
8928
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
8884
8929
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
8885
8930
  opacity: 0.4
8886
8931
  });
8887
8932
  });
8888
- var StyledHeaderWrapper = index$9(reactNative.View)(function (_ref3) {
8889
- var theme = _ref3.theme;
8933
+ var StyledHeaderWrapper = index$9(reactNative.View)(function (_ref5) {
8934
+ var theme = _ref5.theme;
8890
8935
  return {
8891
8936
  flexDirection: 'row',
8892
8937
  paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
@@ -8897,8 +8942,8 @@ var StyledHeader = index$9(reactNative.View)({
8897
8942
  flex: 1,
8898
8943
  justifyContent: 'center'
8899
8944
  });
8900
- var StyledFooter = index$9(reactNative.View)(function (_ref4) {
8901
- var theme = _ref4.theme;
8945
+ var StyledFooter = index$9(reactNative.View)(function (_ref6) {
8946
+ var theme = _ref6.theme;
8902
8947
  return {
8903
8948
  paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
8904
8949
  paddingVertical: theme.__hd__.bottomSheet.space.footerVerticalPadding,
@@ -8907,16 +8952,24 @@ var StyledFooter = index$9(reactNative.View)(function (_ref4) {
8907
8952
  flexDirection: 'row'
8908
8953
  };
8909
8954
  });
8910
- var StyledIconWrapper$4 = index$9(reactNative.View)(function (_ref5) {
8911
- var theme = _ref5.theme;
8955
+ var StyledIconWrapper$4 = index$9(reactNative.View)(function (_ref7) {
8956
+ var theme = _ref7.theme;
8912
8957
  return {
8913
- alignItems: 'center',
8958
+ alignItems: 'flex-end',
8914
8959
  justifyContent: 'center',
8915
8960
  width: theme.__hd__.bottomSheet.sizes.closeIcon,
8916
8961
  height: theme.__hd__.bottomSheet.sizes.closeIcon,
8917
8962
  marginLeft: theme.__hd__.bottomSheet.space.closeIconMargin
8918
8963
  };
8919
8964
  });
8965
+ var StyledFloatingHeaderWrapper = index$9(reactNative.TouchableOpacity)(function (_ref8) {
8966
+ var theme = _ref8.theme;
8967
+ return {
8968
+ padding: theme.__hd__.bottomSheet.space.floatingHeaderIconPadding,
8969
+ backgroundColor: theme.__hd__.bottomSheet.colors.floatingHeaderIconBackground,
8970
+ borderRadius: theme.__hd__.bottomSheet.radii.floatingHeaderIcon
8971
+ };
8972
+ });
8920
8973
 
8921
8974
  var Footer$1 = function Footer(_ref) {
8922
8975
  var children = _ref.children,
@@ -8924,6 +8977,9 @@ var Footer$1 = function Footer(_ref) {
8924
8977
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null, /*#__PURE__*/React__namespace.default.createElement(StyledFooter, null, children));
8925
8978
  };
8926
8979
 
8980
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
8981
+ var noop$1 = function noop() {};
8982
+
8927
8983
  var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
8928
8984
  return {
8929
8985
  backgroundColor: theme.__hd__.button.colors[intent]
@@ -8967,7 +9023,7 @@ var StyledLoadingDot = index$9(reactNative.View)(function (_ref) {
8967
9023
  }, themeStyling());
8968
9024
  });
8969
9025
 
8970
- var _excluded$r = ["count", "size", "testID", "themeVariant"];
9026
+ var _excluded$s = ["count", "size", "testID", "themeVariant"];
8971
9027
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
8972
9028
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
8973
9029
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8999,7 +9055,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8999
9055
  size = _ref2$size === void 0 ? 12 : _ref2$size,
9000
9056
  testID = _ref2.testID,
9001
9057
  themeVariant = _ref2.themeVariant,
9002
- nativeProps = _objectWithoutProperties(_ref2, _excluded$r);
9058
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$s);
9003
9059
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
9004
9060
  React.useEffect(function () {
9005
9061
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
@@ -9410,35 +9466,43 @@ var CompoundButton = Button;
9410
9466
  CompoundButton.Icon = IconButton;
9411
9467
  CompoundButton.Utility = UtilityButton;
9412
9468
 
9413
- // eslint-disable-next-line @typescript-eslint/no-empty-function
9414
- var noop$1 = function noop() {};
9415
-
9416
9469
  var Header = function Header(_ref) {
9417
9470
  var content = _ref.content,
9418
9471
  showDivider = _ref.showDivider,
9419
9472
  _ref$onRequestClose = _ref.onRequestClose,
9420
9473
  onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
9421
- showCloseButton = _ref.showCloseButton;
9474
+ showCloseButton = _ref.showCloseButton,
9475
+ _ref$variant = _ref.variant,
9476
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9477
+ var theme = useTheme();
9422
9478
  return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledHeader, null, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
9423
9479
  variant: "regular-bold"
9424
9480
  }, content)) : /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
9425
9481
  style: {
9426
9482
  flex: 1
9427
9483
  }
9428
- }, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
9484
+ }, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$4, null, variant === 'fixed' ? /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
9429
9485
  icon: "cancel",
9430
9486
  onPress: onRequestClose,
9431
9487
  intent: "text",
9432
9488
  testID: "bottom-sheet-close-icon",
9433
9489
  size: "xsmall"
9434
- })) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
9490
+ }) : /*#__PURE__*/React__namespace.default.createElement(StyledFloatingHeaderWrapper, {
9491
+ onPress: onRequestClose,
9492
+ testID: "bottom-sheet-close-icon"
9493
+ }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
9494
+ icon: "cancel",
9495
+ style: {
9496
+ fontSize: theme.__hd__.bottomSheet.sizes.floatingCloseIcon
9497
+ }
9498
+ }))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
9435
9499
  };
9436
9500
 
9437
- var _excluded$q = ["scrollEventThrottle"];
9501
+ var _excluded$r = ["scrollEventThrottle"];
9438
9502
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9439
9503
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9440
9504
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9441
- props = _objectWithoutProperties(_ref, _excluded$q);
9505
+ props = _objectWithoutProperties(_ref, _excluded$r);
9442
9506
  var _useContext = React.useContext(BottomSheetContext),
9443
9507
  setInternalShowDivider = _useContext.setInternalShowDivider;
9444
9508
  var onScrollBeginDrag = React.useCallback(function (e) {
@@ -9484,7 +9548,9 @@ var BottomSheet = function BottomSheet(_ref) {
9484
9548
  _ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
9485
9549
  keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
9486
9550
  _ref$supportedOrienta = _ref.supportedOrientations,
9487
- supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
9551
+ supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
9552
+ _ref$variant = _ref.variant,
9553
+ variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
9488
9554
  var _Dimensions$get = reactNative.Dimensions.get('window'),
9489
9555
  height = _Dimensions$get.height;
9490
9556
  // Internal state to control modal open/close timing with animation
@@ -9542,6 +9608,8 @@ var BottomSheet = function BottomSheet(_ref) {
9542
9608
  setInternalShowDivider: setInternalShowDivider
9543
9609
  };
9544
9610
  }, [setInternalShowDivider]);
9611
+ var BottomSheetWrapperComponent = variant === 'fixed' ? React__namespace.default.Fragment : StyledFloatingWrapper;
9612
+ var BottomSheetComponent = variant === 'fixed' ? StyledBottomSheet : StyledFloatingBottomSheet;
9545
9613
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
9546
9614
  visible: visible,
9547
9615
  onRequestClose: onRequestClose,
@@ -9558,7 +9626,7 @@ var BottomSheet = function BottomSheet(_ref) {
9558
9626
  opacity: interpolateOpacity
9559
9627
  },
9560
9628
  onPress: onRequestClose
9561
- }), /*#__PURE__*/React__namespace.default.createElement(StyledBottomSheet, {
9629
+ }), /*#__PURE__*/React__namespace.default.createElement(BottomSheetWrapperComponent, null, /*#__PURE__*/React__namespace.default.createElement(BottomSheetComponent, {
9562
9630
  style: [style, {
9563
9631
  transform: [{
9564
9632
  scaleY: height > 0 ? 1 : 0
@@ -9567,6 +9635,7 @@ var BottomSheet = function BottomSheet(_ref) {
9567
9635
  }]
9568
9636
  }]
9569
9637
  }, header !== undefined ? /*#__PURE__*/React__namespace.default.createElement(Header, {
9638
+ variant: variant,
9570
9639
  content: header,
9571
9640
  showDivider: internalShowDivider,
9572
9641
  onRequestClose: onRequestClose,
@@ -9575,7 +9644,7 @@ var BottomSheet = function BottomSheet(_ref) {
9575
9644
  value: BottomSheetContextValue
9576
9645
  }, children), footer ? /*#__PURE__*/React__namespace.default.createElement(Footer$1, {
9577
9646
  showDivider: showDivider
9578
- }, footer) : null))));
9647
+ }, footer) : null)))));
9579
9648
  };
9580
9649
  var BottomSheet$1 = Object.assign(BottomSheet, {
9581
9650
  ScrollView: BottomSheetScrollView
@@ -12250,12 +12319,12 @@ var Indicator = index$9(reactNative.View)(function (_ref2) {
12250
12319
  };
12251
12320
  });
12252
12321
 
12253
- var _excluded$p = ["intent", "children"];
12322
+ var _excluded$q = ["intent", "children"];
12254
12323
  var DataCard = function DataCard(_ref) {
12255
12324
  var _ref$intent = _ref.intent,
12256
12325
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12257
12326
  children = _ref.children,
12258
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12327
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
12259
12328
  return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
12260
12329
  themeIntent: intent,
12261
12330
  testID: "data-card-indicator"
@@ -12273,11 +12342,11 @@ var StyledCard$1 = index$9(reactNative.View)(function (_ref) {
12273
12342
  });
12274
12343
  });
12275
12344
 
12276
- var _excluded$o = ["intent", "children"];
12345
+ var _excluded$p = ["intent", "children"];
12277
12346
  var Card = function Card(_ref) {
12278
12347
  var intent = _ref.intent,
12279
12348
  children = _ref.children,
12280
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
12349
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12281
12350
  return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12282
12351
  themeIntent: intent
12283
12352
  }), children);
@@ -12538,7 +12607,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12538
12607
  });
12539
12608
  CardCarousel.displayName = 'CardCarousel';
12540
12609
 
12541
- var _excluded$n = ["rounded", "size", "testID", "style"];
12610
+ var _excluded$o = ["rounded", "size", "testID", "style"];
12542
12611
  var Image = function Image(_ref) {
12543
12612
  var _ref$rounded = _ref.rounded,
12544
12613
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12546,7 +12615,7 @@ var Image = function Image(_ref) {
12546
12615
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12547
12616
  testID = _ref.testID,
12548
12617
  style = _ref.style,
12549
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$n);
12618
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$o);
12550
12619
  var theme = useTheme();
12551
12620
  var imageSize = theme.__hd__.image.sizes[size];
12552
12621
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
@@ -12680,7 +12749,7 @@ var CarouselItem = function CarouselItem(_ref) {
12680
12749
  }, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
12681
12750
  };
12682
12751
 
12683
- var _excluded$m = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12752
+ var _excluded$n = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12684
12753
  function useStateFromProp(initialValue) {
12685
12754
  var _useState = React.useState(initialValue),
12686
12755
  _useState2 = _slicedToArray(_useState, 2),
@@ -12707,7 +12776,7 @@ var Carousel = function Carousel(_ref) {
12707
12776
  testID = _ref.testID,
12708
12777
  _ref$pageControlPosit = _ref.pageControlPosition,
12709
12778
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12710
- nativeProps = _objectWithoutProperties(_ref, _excluded$m);
12779
+ nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12711
12780
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12712
12781
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12713
12782
  var theme = useTheme();
@@ -12917,7 +12986,7 @@ var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12917
12986
  };
12918
12987
  });
12919
12988
 
12920
- var _excluded$l = ["label", "variant", "selected", "icon", "onPress"];
12989
+ var _excluded$m = ["label", "variant", "selected", "icon", "onPress"];
12921
12990
  var Chip = function Chip(_ref) {
12922
12991
  var label = _ref.label,
12923
12992
  _ref$variant = _ref.variant,
@@ -12926,7 +12995,7 @@ var Chip = function Chip(_ref) {
12926
12995
  selected = _ref$selected === void 0 ? false : _ref$selected,
12927
12996
  icon = _ref.icon,
12928
12997
  onPress = _ref.onPress,
12929
- otherProps = _objectWithoutProperties(_ref, _excluded$l);
12998
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
12930
12999
  var internalIcon = React__namespace.default.useMemo(function () {
12931
13000
  if (icon && variant === 'filled') {
12932
13001
  return icon;
@@ -13173,7 +13242,7 @@ var StyledErrorAndMaxLengthContainer = index$9(reactNative.View)(function () {
13173
13242
  };
13174
13243
  });
13175
13244
 
13176
- var _excluded$k = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13245
+ var _excluded$l = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13177
13246
  var getState$2 = function getState(_ref) {
13178
13247
  var disabled = _ref.disabled,
13179
13248
  error = _ref.error,
@@ -13285,7 +13354,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
13285
13354
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13286
13355
  _ref8$variant = _ref8.variant,
13287
13356
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13288
- nativeProps = _objectWithoutProperties(_ref8, _excluded$k);
13357
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$l);
13289
13358
  var displayText = getDisplayText(value, defaultValue);
13290
13359
  var isEmptyValue = displayText.length === 0;
13291
13360
  var _React$useState = React__namespace.default.useState({
@@ -13830,11 +13899,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13830
13899
  }))));
13831
13900
  };
13832
13901
 
13833
- var _excluded$j = ["variant"];
13902
+ var _excluded$k = ["variant"];
13834
13903
  var DatePicker = function DatePicker(_ref) {
13835
13904
  var _ref$variant = _ref.variant,
13836
13905
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13837
- props = _objectWithoutProperties(_ref, _excluded$j);
13906
+ props = _objectWithoutProperties(_ref, _excluded$k);
13838
13907
  if (variant === 'calendar') {
13839
13908
  return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
13840
13909
  }
@@ -14388,7 +14457,7 @@ var Portal$1 = Object.assign(Portal, {
14388
14457
  Host: PortalHost
14389
14458
  });
14390
14459
 
14391
- var _excluded$i = ["visible"];
14460
+ var _excluded$j = ["visible"];
14392
14461
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14393
14462
  var DEFAULT_ANIMATION_CONFIG = {
14394
14463
  easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
@@ -14484,7 +14553,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14484
14553
  var ModalWrapper = function ModalWrapper(_ref3) {
14485
14554
  var _ref3$visible = _ref3.visible,
14486
14555
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14487
- props = _objectWithoutProperties(_ref3, _excluded$i);
14556
+ props = _objectWithoutProperties(_ref3, _excluded$j);
14488
14557
  var modalRef = React.useRef(null);
14489
14558
  var _useState = React.useState(visible),
14490
14559
  _useState2 = _slicedToArray(_useState, 2),
@@ -14594,7 +14663,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14594
14663
  };
14595
14664
  });
14596
14665
 
14597
- var _excluded$h = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14666
+ var _excluded$i = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14598
14667
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14599
14668
  var renderImage$1 = function renderImage(image) {
14600
14669
  if ( /*#__PURE__*/React.isValidElement(image)) {
@@ -14620,7 +14689,7 @@ var ErrorPage = function ErrorPage(_ref) {
14620
14689
  onCtaPress = _ref.onCtaPress,
14621
14690
  secondaryCtaText = _ref.secondaryCtaText,
14622
14691
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14623
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
14692
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
14624
14693
  var showCta = ctaText && onCtaPress !== undefined;
14625
14694
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14626
14695
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14781,11 +14850,11 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14781
14850
  };
14782
14851
  });
14783
14852
 
14784
- var _excluded$g = ["active"];
14853
+ var _excluded$h = ["active"];
14785
14854
  var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
14786
14855
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14787
14856
  var active = _ref.active,
14788
- iconProps = _objectWithoutProperties(_ref, _excluded$g);
14857
+ iconProps = _objectWithoutProperties(_ref, _excluded$h);
14789
14858
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
14790
14859
  React.useEffect(function () {
14791
14860
  var animation = reactNative.Animated.spring(rotateAnimation.current, {
@@ -16034,7 +16103,7 @@ var StyledStrokeEnd = index$9(reactNative.View)(function (_ref6) {
16034
16103
  };
16035
16104
  });
16036
16105
 
16037
- var _excluded$f = ["value", "renderValue", "intent", "style", "testID"];
16106
+ var _excluded$g = ["value", "renderValue", "intent", "style", "testID"];
16038
16107
  var HalfCircle = function HalfCircle(_ref) {
16039
16108
  var type = _ref.type,
16040
16109
  themeIntent = _ref.themeIntent;
@@ -16055,7 +16124,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16055
16124
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16056
16125
  style = _ref2.style,
16057
16126
  testID = _ref2.testID,
16058
- nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
16127
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
16059
16128
  var theme = useTheme$1();
16060
16129
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
16061
16130
  var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
@@ -16171,14 +16240,14 @@ var StyledInner = index$9(reactNative.Animated.View)(function (_ref2) {
16171
16240
  };
16172
16241
  });
16173
16242
 
16174
- var _excluded$e = ["value", "intent", "style", "testID"];
16243
+ var _excluded$f = ["value", "intent", "style", "testID"];
16175
16244
  var ProgressBar = function ProgressBar(_ref) {
16176
16245
  var value = _ref.value,
16177
16246
  _ref$intent = _ref.intent,
16178
16247
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16179
16248
  style = _ref.style,
16180
16249
  testID = _ref.testID,
16181
- nativeProps = _objectWithoutProperties(_ref, _excluded$e);
16250
+ nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16182
16251
  var _useState = React.useState(0),
16183
16252
  _useState2 = _slicedToArray(_useState, 2),
16184
16253
  width = _useState2[0],
@@ -16224,9 +16293,99 @@ var ProgressBar = function ProgressBar(_ref) {
16224
16293
  }));
16225
16294
  };
16226
16295
 
16296
+ var StyledStepContainer = index$9(Box)({
16297
+ display: 'flex',
16298
+ flexDirection: 'row',
16299
+ justifyContent: 'space-between',
16300
+ alignItems: 'center'
16301
+ });
16302
+ var StyledStep = index$9(Box)(function (_ref) {
16303
+ var theme = _ref.theme,
16304
+ themeState = _ref.themeState,
16305
+ themeWidth = _ref.themeWidth;
16306
+ return {
16307
+ height: theme.__hd__.progress.sizes.stepHeight,
16308
+ borderRadius: theme.__hd__.progress.radii["default"],
16309
+ backgroundColor: theme.__hd__.progress.colors.step[themeState],
16310
+ width: themeWidth
16311
+ };
16312
+ });
16313
+ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
16314
+ var theme = _ref2.theme;
16315
+ return {
16316
+ height: theme.__hd__.progress.sizes.stepHeight,
16317
+ borderRadius: theme.__hd__.progress.radii["default"],
16318
+ backgroundColor: theme.__hd__.progress.colors.step.current,
16319
+ width: '100%',
16320
+ position: 'relative'
16321
+ };
16322
+ });
16323
+ var StyledSingleStep = index$9(Box)(function (_ref3) {
16324
+ var theme = _ref3.theme;
16325
+ return {
16326
+ height: theme.__hd__.progress.sizes.stepHeight,
16327
+ borderRadius: theme.__hd__.progress.radii["default"],
16328
+ backgroundColor: theme.__hd__.progress.colors.step.complete,
16329
+ width: '70%',
16330
+ position: 'absolute',
16331
+ top: 0,
16332
+ left: 0,
16333
+ bottom: 0,
16334
+ right: 0
16335
+ };
16336
+ });
16337
+
16338
+ var _excluded$e = ["steps", "current", "onLayout"];
16339
+ var getStepState = function getStepState(current, index) {
16340
+ if (index < current) {
16341
+ return 'complete';
16342
+ }
16343
+ if (index === current) {
16344
+ return 'current';
16345
+ }
16346
+ return 'incomplete';
16347
+ };
16348
+ var ProgressStep = function ProgressStep(_ref) {
16349
+ var steps = _ref.steps,
16350
+ current = _ref.current,
16351
+ onLayout = _ref.onLayout,
16352
+ props = _objectWithoutProperties(_ref, _excluded$e);
16353
+ var theme = useTheme$1();
16354
+ var _React$useState = React__namespace.default.useState(0),
16355
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16356
+ containerWidth = _React$useState2[0],
16357
+ setContainerWidth = _React$useState2[1];
16358
+ var onContainerLayout = function onContainerLayout(event) {
16359
+ setContainerWidth(event.nativeEvent.layout.width);
16360
+ onLayout === null || onLayout === void 0 || onLayout(event);
16361
+ };
16362
+ // Calculate the width for each step
16363
+ var stepWidth = React.useMemo(function () {
16364
+ var width = 0;
16365
+ if (containerWidth > 0) {
16366
+ width = (containerWidth - (steps - 1) * theme.__hd__.progress.space.stepGap) / steps;
16367
+ }
16368
+ return width;
16369
+ }, [containerWidth, steps, theme]);
16370
+ if (steps === 1) {
16371
+ return /*#__PURE__*/React__namespace.default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__namespace.default.createElement(StyledSingleStep, null));
16372
+ }
16373
+ return /*#__PURE__*/React__namespace.default.createElement(StyledStepContainer, _extends$1({}, props, {
16374
+ onLayout: onContainerLayout
16375
+ }), Array.from({
16376
+ length: steps
16377
+ }).map(function (_, index) {
16378
+ return /*#__PURE__*/React__namespace.default.createElement(StyledStep, {
16379
+ themeState: getStepState(current - 1, index),
16380
+ themeWidth: stepWidth
16381
+ });
16382
+ }));
16383
+ };
16384
+
16227
16385
  var Progress = {
16228
16386
  Circle: ProgressCircle,
16229
- Bar: ProgressBar
16387
+ Bar: ProgressBar,
16388
+ Step: ProgressStep
16230
16389
  };
16231
16390
 
16232
16391
  var Slider = function Slider(_ref) {
@@ -36556,6 +36715,7 @@ exports.getTheme = getTheme$1;
36556
36715
  exports.jobsSystemPalette = jobsSystemPalette;
36557
36716
  exports.scale = scale;
36558
36717
  exports.swagDarkSystemPalette = swagDarkSystemPalette;
36718
+ exports.swagLightJobsSystemPalette = swagLightJobsSystemPalette;
36559
36719
  exports.swagLightSystemPalette = swagSystemPalette;
36560
36720
  exports.swagSystemPalette = swagSystemPalette$1;
36561
36721
  exports.theme = defaultTheme;