@hero-design/rn 8.71.0 → 8.72.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 (67) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +23 -0
  3. package/es/index.js +353 -208
  4. package/lib/index.js +353 -208
  5. package/package.json +1 -1
  6. package/src/components/Accordion/AccordionItem.tsx +1 -1
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  9. package/src/components/Badge/StyledBadge.tsx +17 -2
  10. package/src/components/Badge/__tests__/Badge.spec.tsx +15 -0
  11. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +187 -0
  12. package/src/components/Badge/index.tsx +20 -36
  13. package/src/components/Badge/types.ts +55 -0
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +3 -3
  15. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  16. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +7 -7
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
  18. package/src/components/FAB/FAB.tsx +6 -1
  19. package/src/components/FAB/Pair/StyledFAB.tsx +19 -0
  20. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +276 -0
  21. package/src/components/FAB/Pair/__tests__/index.spec.tsx +39 -0
  22. package/src/components/FAB/Pair/index.tsx +46 -0
  23. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +31 -14
  24. package/src/components/FAB/index.tsx +3 -1
  25. package/src/components/Progress/ProgressStep.tsx +3 -1
  26. package/src/components/Progress/StyledStep.tsx +13 -11
  27. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +215 -4
  28. package/src/components/Progress/__tests__/index.spec.js +16 -4
  29. package/src/components/Search/SearchOneLine.tsx +7 -1
  30. package/src/components/Search/SearchSuffixIcon.tsx +12 -1
  31. package/src/components/Search/SearchTwoLine.tsx +7 -1
  32. package/src/components/Search/StyledSearch.tsx +42 -16
  33. package/src/components/Search/__tests__/SearchOneLine.spec.tsx +30 -0
  34. package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +15 -0
  35. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +166 -10
  36. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +3 -0
  37. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +182 -2
  38. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  39. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
  40. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -0
  41. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -0
  42. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
  43. package/src/components/Toolbar/StyledToolbar.tsx +11 -0
  44. package/src/components/Toolbar/ToolbarItem.tsx +3 -3
  45. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +24 -4
  46. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +46 -9
  47. package/src/theme/components/badge.ts +10 -1
  48. package/src/theme/components/button.ts +2 -2
  49. package/src/theme/components/fab.ts +3 -0
  50. package/src/theme/components/search.ts +30 -5
  51. package/src/theme/components/switch.ts +2 -2
  52. package/src/theme/components/toolbar.ts +1 -1
  53. package/stats/8.72.0/rn-stats.html +4844 -0
  54. package/types/components/Badge/StyledBadge.d.ts +9 -1
  55. package/types/components/Badge/index.d.ts +3 -34
  56. package/types/components/Badge/types.d.ts +53 -0
  57. package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
  58. package/types/components/FAB/Pair/index.d.ts +16 -0
  59. package/types/components/FAB/index.d.ts +1 -0
  60. package/types/components/Progress/StyledStep.d.ts +2 -0
  61. package/types/components/Search/SearchOneLine.d.ts +5 -0
  62. package/types/components/Search/SearchTwoLine.d.ts +5 -0
  63. package/types/components/Search/StyledSearch.d.ts +7 -2
  64. package/types/components/Toolbar/StyledToolbar.d.ts +9 -2
  65. package/types/theme/components/badge.d.ts +8 -0
  66. package/types/theme/components/fab.d.ts +3 -0
  67. package/types/theme/components/search.d.ts +31 -5
package/es/index.js CHANGED
@@ -2307,7 +2307,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2307
2307
  success: theme.colors.onSuccessSurface,
2308
2308
  warning: theme.colors.onWarningSurface,
2309
2309
  archived: theme.colors.onArchivedSurface,
2310
- text: theme.colors.onDarkGlobalSurface
2310
+ text: theme.colors.onDarkGlobalSurface,
2311
+ border: theme.colors.defaultGlobalSurface
2311
2312
  };
2312
2313
  var fonts = {
2313
2314
  medium: theme.fonts.neutral.regular,
@@ -2315,7 +2316,11 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2315
2316
  };
2316
2317
  var fontSizes = {
2317
2318
  medium: theme.fontSizes.small,
2318
- small: 8
2319
+ small: 8,
2320
+ icon: {
2321
+ medium: theme.fontSizes.small,
2322
+ small: 8
2323
+ }
2319
2324
  };
2320
2325
  var lineHeights = {
2321
2326
  medium: theme.lineHeights.small,
@@ -2333,6 +2338,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2333
2338
  statusHeight: theme.sizes.small,
2334
2339
  statusWidth: theme.sizes.small
2335
2340
  };
2341
+ var borderWidths = {
2342
+ "default": theme.borderWidths.medium
2343
+ };
2336
2344
  var space = {
2337
2345
  medium: {
2338
2346
  horizontalPadding: theme.space.small
@@ -2349,7 +2357,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2349
2357
  fontSizes: fontSizes,
2350
2358
  sizes: sizes,
2351
2359
  space: space,
2352
- lineHeights: lineHeights
2360
+ lineHeights: lineHeights,
2361
+ borderWidths: borderWidths
2353
2362
  };
2354
2363
  };
2355
2364
 
@@ -2454,7 +2463,7 @@ var getButtonTheme = function getButtonTheme(theme) {
2454
2463
  };
2455
2464
  var colors = {
2456
2465
  primary: theme.colors.primary,
2457
- secondary: theme.colors.secondary,
2466
+ secondary: theme.colors.mutedOnDefaultGlobalSurface,
2458
2467
  danger: theme.colors.onErrorSurface,
2459
2468
  defaultText: theme.colors.onDefaultGlobalSurface,
2460
2469
  disabledText: theme.colors.disabledOnDefaultGlobalSurface,
@@ -2471,7 +2480,7 @@ var getButtonTheme = function getButtonTheme(theme) {
2471
2480
  outlinedSecondary: theme.colors.highlightedSurface,
2472
2481
  outlineDanger: theme.colors.errorSurface,
2473
2482
  textPrimary: theme.colors.highlightedSurface,
2474
- textSecondary: theme.colors.highlightedSurface,
2483
+ textSecondary: theme.colors.neutralGlobalSurface,
2475
2484
  textDanger: theme.colors.errorSurface
2476
2485
  }
2477
2486
  };
@@ -2838,7 +2847,9 @@ var getFABTheme = function getFABTheme(theme) {
2838
2847
  width: theme.sizes.xxxxxlarge,
2839
2848
  height: theme.sizes.xxxxxlarge,
2840
2849
  iconContainerWidth: theme.sizes.large,
2841
- iconContainerHeight: theme.sizes.large
2850
+ iconContainerHeight: theme.sizes.large,
2851
+ fabPairHeight: theme.sizes.xxxlarge,
2852
+ fabPairIconOnlyWidth: theme.sizes.xxxlarge
2842
2853
  };
2843
2854
  var fonts = {
2844
2855
  actionItemText: theme.fonts.neutral.regular,
@@ -2868,7 +2879,8 @@ var getFABTheme = function getFABTheme(theme) {
2868
2879
  buttonMarginTop: theme.space.large,
2869
2880
  buttonMarginRight: theme.space.large,
2870
2881
  containerPadding: theme.space.large - theme.space.xsmall,
2871
- titleMarginHorizontal: theme.space.small
2882
+ titleMarginHorizontal: theme.space.small,
2883
+ fabPairMarginRight: theme.space.small
2872
2884
  };
2873
2885
  var radii = {
2874
2886
  actionItem: theme.radii.rounded
@@ -3355,9 +3367,9 @@ var getSwitchTheme = function getSwitchTheme(theme) {
3355
3367
  checked: theme.colors.primary,
3356
3368
  unchecked: theme.colors.inactiveOnDefaultGlobalSurface,
3357
3369
  'disabled-checked': theme.colors.highlightedSurface,
3358
- 'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface
3370
+ 'disabled-unchecked': theme.colors.mutedOnDefaultGlobalSurface
3359
3371
  },
3360
- thumb: theme.colors.onSecondary,
3372
+ thumb: theme.colors.onDarkGlobalSurface,
3361
3373
  selector: {
3362
3374
  background: theme.colors.defaultGlobalSurface,
3363
3375
  textBackground: theme.colors.decorativePrimarySurface
@@ -3628,7 +3640,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
3628
3640
  background: theme.colors.defaultGlobalSurface,
3629
3641
  border: theme.colors.secondaryOutline,
3630
3642
  primary: theme.colors.primary,
3631
- secondary: theme.colors.secondary,
3643
+ secondary: theme.colors.mutedOnDefaultGlobalSurface,
3632
3644
  info: theme.colors.info,
3633
3645
  success: theme.colors.success,
3634
3646
  danger: theme.colors.warning,
@@ -3832,15 +3844,32 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3832
3844
 
3833
3845
  var getSearchTheme = function getSearchTheme(theme) {
3834
3846
  var colors = {
3835
- containerBackground: theme.colors.neutralGlobalSurface,
3836
- surfixBackground: theme.colors.defaultGlobalSurface,
3847
+ basic: {
3848
+ containerBackground: theme.colors.neutralGlobalSurface,
3849
+ border: theme.colors.neutralGlobalSurface,
3850
+ focusedBorder: theme.colors.primaryOutline
3851
+ },
3852
+ reversed: {
3853
+ containerBackground: theme.colors.defaultGlobalSurface,
3854
+ border: theme.colors.secondaryOutline,
3855
+ focusedBorder: theme.colors.primaryOutline
3856
+ },
3857
+ suffixBackground: theme.colors.defaultGlobalSurface,
3837
3858
  text: theme.colors.onDefaultGlobalSurface,
3838
- borders: theme.colors.primaryOutline
3859
+ shadow: theme.colors.primaryOutline
3860
+ };
3861
+ var shadows = {
3862
+ offset: theme.shadows["default"].shadowOffset,
3863
+ opacity: theme.shadows["default"].shadowOpacity,
3864
+ radius: theme.shadows["default"].shadowRadius,
3865
+ elevation: theme.shadows["default"].elevation,
3866
+ color: theme.shadows["default"].shadowColor
3839
3867
  };
3840
3868
  var space = {
3841
3869
  containerHorizontalPadding: theme.space.small,
3842
3870
  containerVerticalPadding: theme.space.small,
3843
3871
  inputHorizontalMargin: theme.space.small,
3872
+ inputVerticalPadding: theme.space.xxsmall,
3844
3873
  prefixHorizontalPadding: theme.space.xsmall,
3845
3874
  surfixPadding: theme.space.small,
3846
3875
  badgeTop: -theme.space.xxsmall,
@@ -3854,8 +3883,14 @@ var getSearchTheme = function getSearchTheme(theme) {
3854
3883
  };
3855
3884
  var borderWidths = {
3856
3885
  container: {
3857
- normal: theme.borderWidths.base,
3858
- focused: theme.borderWidths.medium
3886
+ basic: {
3887
+ normal: theme.borderWidths.medium,
3888
+ focused: theme.borderWidths.medium
3889
+ },
3890
+ reversed: {
3891
+ normal: theme.borderWidths.base,
3892
+ focused: theme.borderWidths.medium
3893
+ }
3859
3894
  }
3860
3895
  };
3861
3896
  var radii = {
@@ -3872,7 +3907,8 @@ var getSearchTheme = function getSearchTheme(theme) {
3872
3907
  fontSizes: fontSizes,
3873
3908
  borderWidths: borderWidths,
3874
3909
  radii: radii,
3875
- sizes: sizes
3910
+ sizes: sizes,
3911
+ shadows: shadows
3876
3912
  };
3877
3913
  };
3878
3914
 
@@ -7005,7 +7041,7 @@ var StyledText$3 = index$9(Text$1)(function (_ref) {
7005
7041
  });
7006
7042
  });
7007
7043
 
7008
- var _excluded$F = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7044
+ var _excluded$H = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7009
7045
  var Text = function Text(_ref) {
7010
7046
  var children = _ref.children,
7011
7047
  _ref$fontSize = _ref.fontSize,
@@ -7018,7 +7054,7 @@ var Text = function Text(_ref) {
7018
7054
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7019
7055
  _ref$allowFontScaling = _ref.allowFontScaling,
7020
7056
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7021
- nativeProps = _objectWithoutProperties(_ref, _excluded$F);
7057
+ nativeProps = _objectWithoutProperties(_ref, _excluded$H);
7022
7058
  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.');
7023
7059
  return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
7024
7060
  themeFontSize: fontSize,
@@ -7048,7 +7084,7 @@ var StyledCaption = index$9(Text$1)(function (_ref) {
7048
7084
  };
7049
7085
  });
7050
7086
 
7051
- var _excluded$E = ["children", "fontWeight", "intent", "allowFontScaling"];
7087
+ var _excluded$G = ["children", "fontWeight", "intent", "allowFontScaling"];
7052
7088
  var Caption = function Caption(_ref) {
7053
7089
  var children = _ref.children,
7054
7090
  _ref$fontWeight = _ref.fontWeight,
@@ -7057,7 +7093,7 @@ var Caption = function Caption(_ref) {
7057
7093
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7058
7094
  _ref$allowFontScaling = _ref.allowFontScaling,
7059
7095
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7060
- nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7096
+ nativeProps = _objectWithoutProperties(_ref, _excluded$G);
7061
7097
  return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
7062
7098
  themeFontWeight: fontWeight,
7063
7099
  themeIntent: intent,
@@ -7065,7 +7101,7 @@ var Caption = function Caption(_ref) {
7065
7101
  }), children);
7066
7102
  };
7067
7103
 
7068
- var StyledLabel = index$9(Text$1)(function (_ref) {
7104
+ var StyledLabel$1 = index$9(Text$1)(function (_ref) {
7069
7105
  var themeIntent = _ref.themeIntent,
7070
7106
  theme = _ref.theme;
7071
7107
  return {
@@ -7076,15 +7112,15 @@ var StyledLabel = index$9(Text$1)(function (_ref) {
7076
7112
  };
7077
7113
  });
7078
7114
 
7079
- var _excluded$D = ["children", "intent", "allowFontScaling"];
7115
+ var _excluded$F = ["children", "intent", "allowFontScaling"];
7080
7116
  var Label = function Label(_ref) {
7081
7117
  var children = _ref.children,
7082
7118
  _ref$intent = _ref.intent,
7083
7119
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7084
7120
  _ref$allowFontScaling = _ref.allowFontScaling,
7085
7121
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7086
- nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7087
- return /*#__PURE__*/React__default.createElement(StyledLabel, _extends$1({}, nativeProps, {
7122
+ nativeProps = _objectWithoutProperties(_ref, _excluded$F);
7123
+ return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7088
7124
  themeIntent: intent,
7089
7125
  allowFontScaling: allowFontScaling
7090
7126
  }), children);
@@ -7104,7 +7140,7 @@ var StyledTitle$1 = index$9(Text$1)(function (_ref) {
7104
7140
  };
7105
7141
  });
7106
7142
 
7107
- var _excluded$C = ["children", "intent", "allowFontScaling", "level", "typeface"];
7143
+ var _excluded$E = ["children", "intent", "allowFontScaling", "level", "typeface"];
7108
7144
  var Title = function Title(_ref) {
7109
7145
  var children = _ref.children,
7110
7146
  _ref$intent = _ref.intent,
@@ -7115,7 +7151,7 @@ var Title = function Title(_ref) {
7115
7151
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7116
7152
  _ref$typeface = _ref.typeface,
7117
7153
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7118
- nativeProps = _objectWithoutProperties(_ref, _excluded$C);
7154
+ nativeProps = _objectWithoutProperties(_ref, _excluded$E);
7119
7155
  return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7120
7156
  themeLevel: level,
7121
7157
  themeTypeface: typeface,
@@ -7150,7 +7186,7 @@ var StyledBody$1 = index$9(Text$1)(function (_ref) {
7150
7186
  };
7151
7187
  });
7152
7188
 
7153
- var _excluded$B = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7189
+ var _excluded$D = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7154
7190
  var Body = function Body(_ref) {
7155
7191
  var children = _ref.children,
7156
7192
  _ref$intent = _ref.intent,
@@ -7161,7 +7197,7 @@ var Body = function Body(_ref) {
7161
7197
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7162
7198
  _ref$variant = _ref.variant,
7163
7199
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7164
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7200
+ nativeProps = _objectWithoutProperties(_ref, _excluded$D);
7165
7201
  return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7166
7202
  themeTypeface: typeface,
7167
7203
  themeIntent: intent,
@@ -7728,10 +7764,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
7728
7764
  };
7729
7765
  });
7730
7766
 
7731
- var _excluded$A = ["style"];
7767
+ var _excluded$C = ["style"];
7732
7768
  var AnimatedIcon = function AnimatedIcon(_ref) {
7733
7769
  var style = _ref.style,
7734
- otherProps = _objectWithoutProperties(_ref, _excluded$A);
7770
+ otherProps = _objectWithoutProperties(_ref, _excluded$C);
7735
7771
  var rotateAnimation = useRef(new Animated.Value(0));
7736
7772
  useEffect(function () {
7737
7773
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7829,14 +7865,14 @@ var AccordionItem = function AccordionItem(_ref) {
7829
7865
  variant: "regular-bold"
7830
7866
  }, header) : header, /*#__PURE__*/React__default.createElement(Icon, {
7831
7867
  icon: open ? 'arrow-up' : 'arrow-down',
7832
- intent: "secondary",
7868
+ intent: "primary",
7833
7869
  size: "small"
7834
7870
  })), /*#__PURE__*/React__default.createElement(StyledCollapse, {
7835
7871
  open: open
7836
7872
  }, content));
7837
7873
  };
7838
7874
 
7839
- var _excluded$z = ["key"];
7875
+ var _excluded$B = ["key"];
7840
7876
  var Accordion = function Accordion(_ref) {
7841
7877
  var items = _ref.items,
7842
7878
  activeItemKey = _ref.activeItemKey,
@@ -7857,7 +7893,7 @@ var Accordion = function Accordion(_ref) {
7857
7893
  testID: testID
7858
7894
  }, items.map(function (_ref2, index) {
7859
7895
  var key = _ref2.key,
7860
- props = _objectWithoutProperties(_ref2, _excluded$z);
7896
+ props = _objectWithoutProperties(_ref2, _excluded$B);
7861
7897
  var open = _activeItemKey === key;
7862
7898
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
7863
7899
  key: key
@@ -7892,7 +7928,7 @@ var IconContainer$1 = index$9(View)(function (_ref2) {
7892
7928
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7893
7929
  };
7894
7930
  });
7895
- var StyledIcon$1 = index$9(Icon)(function (_ref3) {
7931
+ var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7896
7932
  var theme = _ref3.theme,
7897
7933
  themeIntent = _ref3.themeIntent;
7898
7934
  return {
@@ -7951,7 +7987,7 @@ var AlertIcon = function AlertIcon(_ref) {
7951
7987
  intent = _ref.intent;
7952
7988
  return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
7953
7989
  testID: "alert-left-icon"
7954
- }, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
7990
+ }, /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7955
7991
  icon: icon,
7956
7992
  size: "small",
7957
7993
  themeIntent: intent
@@ -7992,7 +8028,7 @@ var Alert = function Alert(_ref2) {
7992
8028
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7993
8029
  variant: "small-bold",
7994
8030
  themeIntent: intent
7995
- }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$1, {
8031
+ }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7996
8032
  icon: "cancel",
7997
8033
  size: "small",
7998
8034
  themeIntent: intent
@@ -8351,7 +8387,7 @@ var borderWidths = {
8351
8387
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8352
8388
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8353
8389
 
8354
- var _excluded$y = ["theme"];
8390
+ var _excluded$A = ["theme"];
8355
8391
  var getThemeValue = function getThemeValue(theme, key, props) {
8356
8392
  var propConfig = config[key];
8357
8393
  var propValue = props[key];
@@ -8378,18 +8414,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8378
8414
  var configKeys = Object.keys(config);
8379
8415
  var StyledBox = index$9(View)(function (_ref5) {
8380
8416
  var theme = _ref5.theme,
8381
- otherProps = _objectWithoutProperties(_ref5, _excluded$y);
8417
+ otherProps = _objectWithoutProperties(_ref5, _excluded$A);
8382
8418
  var styleProps = pick(configKeys, otherProps);
8383
8419
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8384
8420
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8385
8421
  });
8386
8422
 
8387
- var _excluded$x = ["children", "style", "testID"];
8423
+ var _excluded$z = ["children", "style", "testID"];
8388
8424
  var Box = function Box(_ref) {
8389
8425
  var children = _ref.children,
8390
8426
  style = _ref.style,
8391
8427
  testID = _ref.testID,
8392
- otherProps = _objectWithoutProperties(_ref, _excluded$x);
8428
+ otherProps = _objectWithoutProperties(_ref, _excluded$z);
8393
8429
  return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
8394
8430
  style: style,
8395
8431
  testID: testID
@@ -8570,6 +8606,7 @@ var StyledView$2 = index$9(Animated.View)(function (_ref) {
8570
8606
  var themeIntent = _ref.themeIntent,
8571
8607
  themePadding = _ref.themePadding,
8572
8608
  themeSize = _ref.themeSize,
8609
+ themeVariant = _ref.themeVariant,
8573
8610
  theme = _ref.theme;
8574
8611
  return {
8575
8612
  height: theme.__hd__.badge.sizes[themeSize].height,
@@ -8578,7 +8615,9 @@ var StyledView$2 = index$9(Animated.View)(function (_ref) {
8578
8615
  justifyContent: 'center',
8579
8616
  backgroundColor: theme.__hd__.badge.colors[themeIntent],
8580
8617
  borderRadius: theme.radii.rounded,
8581
- paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined
8618
+ paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined,
8619
+ borderWidth: theme.__hd__.badge.borderWidths["default"],
8620
+ borderColor: themeVariant === 'outlined' ? theme.__hd__.badge.colors.border : theme.__hd__.badge.colors[themeIntent]
8582
8621
  };
8583
8622
  });
8584
8623
  var StyledText$1 = index$9(Typography.Caption)(function (_ref2) {
@@ -8607,8 +8646,15 @@ var StyledStatus = index$9(Animated.View)(function (_ref3) {
8607
8646
  borderRadius: theme.radii.rounded
8608
8647
  };
8609
8648
  });
8649
+ var StyledIcon$1 = index$9(Icon)(function (_ref4) {
8650
+ var themeSize = _ref4.themeSize,
8651
+ theme = _ref4.theme;
8652
+ return {
8653
+ fontSize: theme.__hd__.badge.fontSizes[themeSize]
8654
+ };
8655
+ });
8610
8656
 
8611
- var _excluded$w = ["children", "visible", "intent", "style", "testID"];
8657
+ var _excluded$y = ["children", "visible", "intent", "style", "testID"];
8612
8658
  var Status = function Status(_ref) {
8613
8659
  var children = _ref.children,
8614
8660
  _ref$visible = _ref.visible,
@@ -8617,7 +8663,7 @@ var Status = function Status(_ref) {
8617
8663
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8618
8664
  style = _ref.style,
8619
8665
  testID = _ref.testID,
8620
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8666
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
8621
8667
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8622
8668
  opacity = _React$useRef.current;
8623
8669
  var isFirstRendering = React__default.useRef(true);
@@ -8650,7 +8696,7 @@ var Status = function Status(_ref) {
8650
8696
  }));
8651
8697
  };
8652
8698
 
8653
- var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size"];
8699
+ var _excluded$x = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
8654
8700
  var DEFAULT_MAX_NUMBER = 99;
8655
8701
  var getPaddingState = function getPaddingState(content) {
8656
8702
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8667,7 +8713,10 @@ var Badge = function Badge(_ref) {
8667
8713
  testID = _ref.testID,
8668
8714
  _ref$size = _ref.size,
8669
8715
  size = _ref$size === void 0 ? 'medium' : _ref$size,
8670
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8716
+ _ref$variant = _ref.variant,
8717
+ variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
8718
+ icon = _ref.icon,
8719
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
8671
8720
  var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
8672
8721
  opacity = _React$useRef.current;
8673
8722
  var isFirstRendering = React__default.useRef(true);
@@ -8683,11 +8732,18 @@ var Badge = function Badge(_ref) {
8683
8732
  useNativeDriver: true
8684
8733
  }).start();
8685
8734
  }, [visible, opacity]);
8686
- var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
8735
+ var isIconBadge = !!icon;
8736
+ var content = useMemo(function () {
8737
+ if (isIconBadge) {
8738
+ return '';
8739
+ }
8740
+ return typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
8741
+ }, [isIconBadge, originalContent, max]);
8687
8742
  return /*#__PURE__*/React__default.createElement(StyledView$2, _extends$1({}, nativeProps, {
8688
8743
  themeIntent: intent,
8689
8744
  themePadding: getPaddingState(content),
8690
8745
  themeSize: size,
8746
+ themeVariant: variant,
8691
8747
  style: [{
8692
8748
  opacity: opacity,
8693
8749
  transform: [{
@@ -8698,7 +8754,11 @@ var Badge = function Badge(_ref) {
8698
8754
  }]
8699
8755
  }, style],
8700
8756
  testID: testID
8701
- }), /*#__PURE__*/React__default.createElement(StyledText$1, {
8757
+ }), isIconBadge ? /*#__PURE__*/React__default.createElement(StyledIcon$1, {
8758
+ icon: icon,
8759
+ themeSize: size,
8760
+ intent: "text-inverted"
8761
+ }) : /*#__PURE__*/React__default.createElement(StyledText$1, {
8702
8762
  themeSize: size
8703
8763
  }, content));
8704
8764
  };
@@ -8757,7 +8817,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
8757
8817
  };
8758
8818
  });
8759
8819
 
8760
- var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8820
+ var _excluded$w = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8761
8821
  var getInactiveIcon = function getInactiveIcon(icon) {
8762
8822
  var inactiveIcon = "".concat(icon, "-outlined");
8763
8823
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8768,7 +8828,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8768
8828
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8769
8829
  selectedTabKey = _ref.selectedTabKey,
8770
8830
  tabs = _ref.tabs,
8771
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
8831
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
8772
8832
  var insets = useSafeAreaInsets();
8773
8833
  /**
8774
8834
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -8854,13 +8914,13 @@ var StyledDivider = index$9(View)(function (_ref) {
8854
8914
  }, horizontalMargin), verticalMargin);
8855
8915
  });
8856
8916
 
8857
- var _excluded$t = ["marginHorizontal", "marginVertical", "style", "testID"];
8917
+ var _excluded$v = ["marginHorizontal", "marginVertical", "style", "testID"];
8858
8918
  var Divider = function Divider(_ref) {
8859
8919
  var marginHorizontal = _ref.marginHorizontal,
8860
8920
  marginVertical = _ref.marginVertical,
8861
8921
  style = _ref.style,
8862
8922
  testID = _ref.testID,
8863
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
8923
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
8864
8924
  return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
8865
8925
  themeMarginHorizontal: marginHorizontal,
8866
8926
  themeMarginVertical: marginVertical,
@@ -9016,7 +9076,7 @@ var StyledLoadingDot = index$9(View)(function (_ref) {
9016
9076
  }, themeStyling());
9017
9077
  });
9018
9078
 
9019
- var _excluded$s = ["count", "size", "testID", "themeVariant"];
9079
+ var _excluded$u = ["count", "size", "testID", "themeVariant"];
9020
9080
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
9021
9081
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
9022
9082
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -9048,7 +9108,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
9048
9108
  size = _ref2$size === void 0 ? 12 : _ref2$size,
9049
9109
  testID = _ref2.testID,
9050
9110
  themeVariant = _ref2.themeVariant,
9051
- nativeProps = _objectWithoutProperties(_ref2, _excluded$s);
9111
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$u);
9052
9112
  var progressAnimation = useRef(new Animated.Value(0));
9053
9113
  useEffect(function () {
9054
9114
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -9491,11 +9551,11 @@ var Header = function Header(_ref) {
9491
9551
  }))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
9492
9552
  };
9493
9553
 
9494
- var _excluded$r = ["scrollEventThrottle"];
9554
+ var _excluded$t = ["scrollEventThrottle"];
9495
9555
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9496
9556
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9497
9557
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9498
- props = _objectWithoutProperties(_ref, _excluded$r);
9558
+ props = _objectWithoutProperties(_ref, _excluded$t);
9499
9559
  var _useContext = useContext(BottomSheetContext),
9500
9560
  setInternalShowDivider = _useContext.setInternalShowDivider;
9501
9561
  var onScrollBeginDrag = useCallback(function (e) {
@@ -12312,12 +12372,12 @@ var Indicator = index$9(View)(function (_ref2) {
12312
12372
  };
12313
12373
  });
12314
12374
 
12315
- var _excluded$q = ["intent", "children"];
12375
+ var _excluded$s = ["intent", "children"];
12316
12376
  var DataCard = function DataCard(_ref) {
12317
12377
  var _ref$intent = _ref.intent,
12318
12378
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12319
12379
  children = _ref.children,
12320
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
12380
+ nativeProps = _objectWithoutProperties(_ref, _excluded$s);
12321
12381
  return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
12322
12382
  themeIntent: intent,
12323
12383
  testID: "data-card-indicator"
@@ -12336,13 +12396,13 @@ var StyledCard$1 = index$9(View)(function (_ref) {
12336
12396
  });
12337
12397
  });
12338
12398
 
12339
- var _excluded$p = ["intent", "children", "variant"];
12399
+ var _excluded$r = ["intent", "children", "variant"];
12340
12400
  var Card = function Card(_ref) {
12341
12401
  var intent = _ref.intent,
12342
12402
  children = _ref.children,
12343
12403
  _ref$variant = _ref.variant,
12344
12404
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
12345
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12405
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
12346
12406
  return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12347
12407
  themeIntent: intent,
12348
12408
  themeVariant: variant
@@ -12604,7 +12664,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12604
12664
  });
12605
12665
  CardCarousel.displayName = 'CardCarousel';
12606
12666
 
12607
- var _excluded$o = ["rounded", "size", "testID", "style"];
12667
+ var _excluded$q = ["rounded", "size", "testID", "style"];
12608
12668
  var Image = function Image(_ref) {
12609
12669
  var _ref$rounded = _ref.rounded,
12610
12670
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12612,7 +12672,7 @@ var Image = function Image(_ref) {
12612
12672
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12613
12673
  testID = _ref.testID,
12614
12674
  style = _ref.style,
12615
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$o);
12675
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$q);
12616
12676
  var theme = useTheme();
12617
12677
  var imageSize = theme.__hd__.image.sizes[size];
12618
12678
  return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
@@ -12746,7 +12806,7 @@ var CarouselItem = function CarouselItem(_ref) {
12746
12806
  }, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
12747
12807
  };
12748
12808
 
12749
- var _excluded$n = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12809
+ var _excluded$p = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12750
12810
  function useStateFromProp(initialValue) {
12751
12811
  var _useState = useState(initialValue),
12752
12812
  _useState2 = _slicedToArray(_useState, 2),
@@ -12773,7 +12833,7 @@ var Carousel = function Carousel(_ref) {
12773
12833
  testID = _ref.testID,
12774
12834
  _ref$pageControlPosit = _ref.pageControlPosition,
12775
12835
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12776
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
12836
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
12777
12837
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12778
12838
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12779
12839
  var theme = useTheme();
@@ -12988,7 +13048,7 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12988
13048
  }, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
12989
13049
  });
12990
13050
 
12991
- var _excluded$m = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
13051
+ var _excluded$o = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
12992
13052
  var Chip = function Chip(_ref) {
12993
13053
  var label = _ref.label,
12994
13054
  _ref$variant = _ref.variant,
@@ -12999,7 +13059,7 @@ var Chip = function Chip(_ref) {
12999
13059
  onPress = _ref.onPress,
13000
13060
  _ref$showSelectedIcon = _ref.showSelectedIcon,
13001
13061
  showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
13002
- otherProps = _objectWithoutProperties(_ref, _excluded$m);
13062
+ otherProps = _objectWithoutProperties(_ref, _excluded$o);
13003
13063
  var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
13004
13064
  return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
13005
13065
  onPress: onPress,
@@ -13240,7 +13300,7 @@ var StyledErrorAndMaxLengthContainer = index$9(View)(function () {
13240
13300
  };
13241
13301
  });
13242
13302
 
13243
- var _excluded$l = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13303
+ var _excluded$n = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13244
13304
  var getState$2 = function getState(_ref) {
13245
13305
  var disabled = _ref.disabled,
13246
13306
  error = _ref.error,
@@ -13352,7 +13412,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
13352
13412
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13353
13413
  _ref8$variant = _ref8.variant,
13354
13414
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13355
- nativeProps = _objectWithoutProperties(_ref8, _excluded$l);
13415
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$n);
13356
13416
  var displayText = getDisplayText(value, defaultValue);
13357
13417
  var isEmptyValue = displayText.length === 0;
13358
13418
  var _React$useState = React__default.useState({
@@ -13897,11 +13957,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13897
13957
  }))));
13898
13958
  };
13899
13959
 
13900
- var _excluded$k = ["variant"];
13960
+ var _excluded$m = ["variant"];
13901
13961
  var DatePicker = function DatePicker(_ref) {
13902
13962
  var _ref$variant = _ref.variant,
13903
13963
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13904
- props = _objectWithoutProperties(_ref, _excluded$k);
13964
+ props = _objectWithoutProperties(_ref, _excluded$m);
13905
13965
  if (variant === 'calendar') {
13906
13966
  return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
13907
13967
  }
@@ -14455,7 +14515,7 @@ var Portal$1 = Object.assign(Portal, {
14455
14515
  Host: PortalHost
14456
14516
  });
14457
14517
 
14458
- var _excluded$j = ["visible"];
14518
+ var _excluded$l = ["visible"];
14459
14519
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14460
14520
  var DEFAULT_ANIMATION_CONFIG = {
14461
14521
  easing: Easing.inOut(Easing.cubic),
@@ -14551,7 +14611,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
14551
14611
  var ModalWrapper = function ModalWrapper(_ref3) {
14552
14612
  var _ref3$visible = _ref3.visible,
14553
14613
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14554
- props = _objectWithoutProperties(_ref3, _excluded$j);
14614
+ props = _objectWithoutProperties(_ref3, _excluded$l);
14555
14615
  var modalRef = useRef(null);
14556
14616
  var _useState = useState(visible),
14557
14617
  _useState2 = _slicedToArray(_useState, 2),
@@ -14661,7 +14721,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
14661
14721
  };
14662
14722
  });
14663
14723
 
14664
- var _excluded$i = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14724
+ var _excluded$k = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14665
14725
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14666
14726
  var renderImage$1 = function renderImage(image) {
14667
14727
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -14687,7 +14747,7 @@ var ErrorPage = function ErrorPage(_ref) {
14687
14747
  onCtaPress = _ref.onCtaPress,
14688
14748
  secondaryCtaText = _ref.secondaryCtaText,
14689
14749
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14690
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
14750
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
14691
14751
  var showCta = ctaText && onCtaPress !== undefined;
14692
14752
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14693
14753
  var showButtonContainer = showCta || showSecondaryCta;
@@ -14800,8 +14860,35 @@ var ErrorComponent = function ErrorComponent(_ref2) {
14800
14860
  }, nativeProps));
14801
14861
  };
14802
14862
 
14863
+ var StyledActionItem = index$9(TouchableHighlight)(function (_ref) {
14864
+ var theme = _ref.theme;
14865
+ return {
14866
+ padding: theme.__hd__.fab.space.actionItemPadding,
14867
+ margin: theme.__hd__.fab.space.actionItemMargin,
14868
+ marginRight: theme.__hd__.fab.space.actionItemMarginRight,
14869
+ backgroundColor: theme.__hd__.fab.colors.actionItemBackground,
14870
+ borderRadius: theme.__hd__.fab.radii.actionItem,
14871
+ flexDirection: 'row',
14872
+ alignItems: 'center',
14873
+ alignSelf: 'flex-end',
14874
+ overflow: 'hidden'
14875
+ };
14876
+ });
14877
+ var StyledActionItemText = index$9(Typography.Body)(function (_ref2) {
14878
+ var theme = _ref2.theme;
14879
+ return {
14880
+ color: theme.__hd__.fab.colors.actionItemText
14881
+ };
14882
+ });
14883
+ var StyledIcon = index$9(Icon)(function (_ref3) {
14884
+ var theme = _ref3.theme;
14885
+ return {
14886
+ color: theme.__hd__.fab.colors.actionItemText
14887
+ };
14888
+ });
14889
+
14803
14890
  var AnimatedTouchableHighlight = Animated.createAnimatedComponent(TouchableHighlight);
14804
- var StyledFAB$1 = index$9(AnimatedTouchableHighlight)(function (_ref) {
14891
+ var StyledFAB$2 = index$9(AnimatedTouchableHighlight)(function (_ref) {
14805
14892
  var theme = _ref.theme,
14806
14893
  themeActive = _ref.themeActive;
14807
14894
  return {
@@ -14848,11 +14935,52 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
14848
14935
  };
14849
14936
  });
14850
14937
 
14851
- var _excluded$h = ["active"];
14938
+ var ActionItem = function ActionItem(_ref) {
14939
+ var icon = _ref.icon,
14940
+ title = _ref.title,
14941
+ onPress = _ref.onPress,
14942
+ style = _ref.style,
14943
+ testID = _ref.testID,
14944
+ index = _ref.index,
14945
+ _ref$active = _ref.active,
14946
+ active = _ref$active === void 0 ? false : _ref$active;
14947
+ var theme = useTheme();
14948
+ var animatedValue = React__default.useRef(new Animated.Value(0));
14949
+ var translateY = animatedValue.current.interpolate({
14950
+ inputRange: [0, 1],
14951
+ outputRange: [50, 0]
14952
+ });
14953
+ React__default.useEffect(function () {
14954
+ Animated.spring(animatedValue.current, {
14955
+ toValue: active ? 1 : 0,
14956
+ useNativeDriver: Platform.OS !== 'web',
14957
+ delay: index * 30,
14958
+ speed: 10,
14959
+ bounciness: 10
14960
+ }).start();
14961
+ }, [active, index]);
14962
+ return /*#__PURE__*/React__default.createElement(Animated.View, {
14963
+ style: {
14964
+ transform: [{
14965
+ translateY: translateY
14966
+ }]
14967
+ }
14968
+ }, /*#__PURE__*/React__default.createElement(StyledActionItem, {
14969
+ underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
14970
+ style: style,
14971
+ onPress: onPress,
14972
+ testID: testID
14973
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
14974
+ size: "xsmall",
14975
+ icon: icon
14976
+ })), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
14977
+ };
14978
+
14979
+ var _excluded$j = ["active"];
14852
14980
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
14853
14981
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
14854
14982
  var active = _ref.active,
14855
- iconProps = _objectWithoutProperties(_ref, _excluded$h);
14983
+ iconProps = _objectWithoutProperties(_ref, _excluded$j);
14856
14984
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
14857
14985
  useEffect(function () {
14858
14986
  var animation = Animated.spring(rotateAnimation.current, {
@@ -14892,13 +15020,15 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
14892
15020
  return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(AnimatedFABIcon, {
14893
15021
  active: active,
14894
15022
  icon: icon,
14895
- testID: "animated-fab-icon"
15023
+ testID: "animated-fab-icon",
15024
+ size: "xsmall"
14896
15025
  }));
14897
15026
  }
14898
- return /*#__PURE__*/React__default.createElement(StyledFABIcon, {
15027
+ return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
15028
+ size: "xsmall",
14899
15029
  icon: icon,
14900
15030
  testID: "styled-fab-icon"
14901
- });
15031
+ }));
14902
15032
  };
14903
15033
  var IconWithTextContent = function IconWithTextContent(_ref2) {
14904
15034
  var icon = _ref2.icon,
@@ -14996,7 +15126,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
14996
15126
  }
14997
15127
  };
14998
15128
  }, []);
14999
- return /*#__PURE__*/React__default.createElement(StyledFAB$1, {
15129
+ return /*#__PURE__*/React__default.createElement(StyledFAB$2, {
15000
15130
  onLayout: function onLayout(event) {
15001
15131
  return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
15002
15132
  },
@@ -15032,74 +15162,6 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
15032
15162
  });
15033
15163
  FAB$1.displayName = 'FAB';
15034
15164
 
15035
- var StyledActionItem = index$9(TouchableHighlight)(function (_ref) {
15036
- var theme = _ref.theme;
15037
- return {
15038
- padding: theme.__hd__.fab.space.actionItemPadding,
15039
- margin: theme.__hd__.fab.space.actionItemMargin,
15040
- marginRight: theme.__hd__.fab.space.actionItemMarginRight,
15041
- backgroundColor: theme.__hd__.fab.colors.actionItemBackground,
15042
- borderRadius: theme.__hd__.fab.radii.actionItem,
15043
- flexDirection: 'row',
15044
- alignItems: 'center',
15045
- alignSelf: 'flex-end',
15046
- overflow: 'hidden'
15047
- };
15048
- });
15049
- var StyledActionItemText = index$9(Typography.Body)(function (_ref2) {
15050
- var theme = _ref2.theme;
15051
- return {
15052
- color: theme.__hd__.fab.colors.actionItemText
15053
- };
15054
- });
15055
- var StyledIcon = index$9(Icon)(function (_ref3) {
15056
- var theme = _ref3.theme;
15057
- return {
15058
- color: theme.__hd__.fab.colors.actionItemText
15059
- };
15060
- });
15061
-
15062
- var ActionItem = function ActionItem(_ref) {
15063
- var icon = _ref.icon,
15064
- title = _ref.title,
15065
- onPress = _ref.onPress,
15066
- style = _ref.style,
15067
- testID = _ref.testID,
15068
- index = _ref.index,
15069
- _ref$active = _ref.active,
15070
- active = _ref$active === void 0 ? false : _ref$active;
15071
- var theme = useTheme();
15072
- var animatedValue = React__default.useRef(new Animated.Value(0));
15073
- var translateY = animatedValue.current.interpolate({
15074
- inputRange: [0, 1],
15075
- outputRange: [50, 0]
15076
- });
15077
- React__default.useEffect(function () {
15078
- Animated.spring(animatedValue.current, {
15079
- toValue: active ? 1 : 0,
15080
- useNativeDriver: Platform.OS !== 'web',
15081
- delay: index * 30,
15082
- speed: 10,
15083
- bounciness: 10
15084
- }).start();
15085
- }, [active, index]);
15086
- return /*#__PURE__*/React__default.createElement(Animated.View, {
15087
- style: {
15088
- transform: [{
15089
- translateY: translateY
15090
- }]
15091
- }
15092
- }, /*#__PURE__*/React__default.createElement(StyledActionItem, {
15093
- underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
15094
- style: style,
15095
- onPress: onPress,
15096
- testID: testID
15097
- }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
15098
- size: "xsmall",
15099
- icon: icon
15100
- })), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
15101
- };
15102
-
15103
15165
  var StyledContainer$3 = index$9(View)({
15104
15166
  position: 'absolute',
15105
15167
  left: 0,
@@ -15123,7 +15185,7 @@ var StyledActionGroupContainer = index$9(Animated.View)({
15123
15185
  justifyContent: 'flex-end',
15124
15186
  width: '70%'
15125
15187
  });
15126
- var StyledFAB = index$9(FAB$1)(function (_ref) {
15188
+ var StyledFAB$1 = index$9(FAB$1)(function (_ref) {
15127
15189
  var theme = _ref.theme;
15128
15190
  return {
15129
15191
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -15200,7 +15262,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
15200
15262
  testID: testID,
15201
15263
  pointerEvents: "box-none",
15202
15264
  style: style
15203
- }, /*#__PURE__*/React__default.createElement(Animated.View, null, /*#__PURE__*/React__default.createElement(StyledFAB, {
15265
+ }, /*#__PURE__*/React__default.createElement(Animated.View, null, /*#__PURE__*/React__default.createElement(StyledFAB$1, {
15204
15266
  key: "fab",
15205
15267
  testID: "fab",
15206
15268
  icon: fabIcon,
@@ -15238,7 +15300,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
15238
15300
  index: active ? index : items.length - index,
15239
15301
  active: active
15240
15302
  }));
15241
- }))), active && /*#__PURE__*/React__default.createElement(StyledFAB
15303
+ }))), active && /*#__PURE__*/React__default.createElement(StyledFAB$1
15242
15304
  // This FAB is moved up a bit compared to the original FAB,
15243
15305
  // set marginBottom to negative value to compensate for it
15244
15306
  , {
@@ -15256,8 +15318,51 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
15256
15318
  });
15257
15319
  ActionGroup.displayName = 'FAB.ActionGroup';
15258
15320
 
15321
+ var StyledFABPairWrapper = index$9(Box)({
15322
+ flexDirection: 'row',
15323
+ justifyContent: 'center',
15324
+ alignItems: 'center'
15325
+ });
15326
+ var StyledFAB = index$9(FAB$1)(function (_ref) {
15327
+ var theme = _ref.theme,
15328
+ _ref$iconOnly = _ref.iconOnly,
15329
+ iconOnly = _ref$iconOnly === void 0 ? false : _ref$iconOnly,
15330
+ _ref$isLast = _ref.isLast,
15331
+ isLast = _ref$isLast === void 0 ? false : _ref$isLast;
15332
+ return {
15333
+ height: theme.__hd__.fab.sizes.fabPairHeight,
15334
+ width: iconOnly ? theme.__hd__.fab.sizes.fabPairIconOnlyWidth : undefined,
15335
+ marginRight: isLast ? undefined : theme.__hd__.fab.space.fabPairMarginRight
15336
+ };
15337
+ });
15338
+
15339
+ var _excluded$i = ["fabConfig", "onCancel"];
15340
+ var Pair = function Pair(_ref) {
15341
+ var fabConfig = _ref.fabConfig,
15342
+ onCancel = _ref.onCancel,
15343
+ props = _objectWithoutProperties(_ref, _excluded$i);
15344
+ var icon = fabConfig.icon,
15345
+ title = fabConfig.title,
15346
+ onPress = fabConfig.onPress,
15347
+ testID = fabConfig.testID;
15348
+ return /*#__PURE__*/React__default.createElement(StyledFABPairWrapper, props, /*#__PURE__*/React__default.createElement(StyledFAB, {
15349
+ icon: "cancel",
15350
+ onPress: onCancel,
15351
+ testID: "fab-pair-cancel",
15352
+ iconOnly: true
15353
+ }), /*#__PURE__*/React__default.createElement(StyledFAB, {
15354
+ icon: icon,
15355
+ title: title,
15356
+ onPress: onPress,
15357
+ testID: testID,
15358
+ iconOnly: !title,
15359
+ isLast: true
15360
+ }));
15361
+ };
15362
+
15259
15363
  var FAB = Object.assign(FAB$1, {
15260
- ActionGroup: ActionGroup
15364
+ ActionGroup: ActionGroup,
15365
+ Pair: Pair
15261
15366
  });
15262
15367
 
15263
15368
  var ToastContainerWrapper = index$9(View)(function (_ref) {
@@ -16101,7 +16206,7 @@ var StyledStrokeEnd = index$9(View)(function (_ref6) {
16101
16206
  };
16102
16207
  });
16103
16208
 
16104
- var _excluded$g = ["value", "renderValue", "intent", "style", "testID"];
16209
+ var _excluded$h = ["value", "renderValue", "intent", "style", "testID"];
16105
16210
  var HalfCircle = function HalfCircle(_ref) {
16106
16211
  var type = _ref.type,
16107
16212
  themeIntent = _ref.themeIntent;
@@ -16122,7 +16227,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16122
16227
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16123
16228
  style = _ref2.style,
16124
16229
  testID = _ref2.testID,
16125
- nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
16230
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$h);
16126
16231
  var theme = useTheme$1();
16127
16232
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
16128
16233
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -16238,14 +16343,14 @@ var StyledInner = index$9(Animated.View)(function (_ref2) {
16238
16343
  };
16239
16344
  });
16240
16345
 
16241
- var _excluded$f = ["value", "intent", "style", "testID"];
16346
+ var _excluded$g = ["value", "intent", "style", "testID"];
16242
16347
  var ProgressBar = function ProgressBar(_ref) {
16243
16348
  var value = _ref.value,
16244
16349
  _ref$intent = _ref.intent,
16245
16350
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16246
16351
  style = _ref.style,
16247
16352
  testID = _ref.testID,
16248
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16353
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
16249
16354
  var _useState = useState(0),
16250
16355
  _useState2 = _slicedToArray(_useState, 2),
16251
16356
  width = _useState2[0],
@@ -16319,12 +16424,13 @@ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
16319
16424
  };
16320
16425
  });
16321
16426
  var StyledSingleStep = index$9(Box)(function (_ref3) {
16322
- var theme = _ref3.theme;
16427
+ var theme = _ref3.theme,
16428
+ themeState = _ref3.themeState;
16323
16429
  return {
16324
16430
  height: theme.__hd__.progress.sizes.stepHeight,
16325
16431
  borderRadius: theme.__hd__.progress.radii["default"],
16326
16432
  backgroundColor: theme.__hd__.progress.colors.step.complete,
16327
- width: '70%',
16433
+ width: themeState === 'complete' ? '100%' : '70%',
16328
16434
  position: 'absolute',
16329
16435
  top: 0,
16330
16436
  left: 0,
@@ -16333,7 +16439,7 @@ var StyledSingleStep = index$9(Box)(function (_ref3) {
16333
16439
  };
16334
16440
  });
16335
16441
 
16336
- var _excluded$e = ["steps", "current", "onLayout"];
16442
+ var _excluded$f = ["steps", "current", "onLayout"];
16337
16443
  var getStepState = function getStepState(current, index) {
16338
16444
  if (index < current) {
16339
16445
  return 'complete';
@@ -16347,7 +16453,7 @@ var ProgressStep = function ProgressStep(_ref) {
16347
16453
  var steps = _ref.steps,
16348
16454
  current = _ref.current,
16349
16455
  onLayout = _ref.onLayout,
16350
- props = _objectWithoutProperties(_ref, _excluded$e);
16456
+ props = _objectWithoutProperties(_ref, _excluded$f);
16351
16457
  var theme = useTheme$1();
16352
16458
  var _React$useState = React__default.useState(0),
16353
16459
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -16366,7 +16472,9 @@ var ProgressStep = function ProgressStep(_ref) {
16366
16472
  return width;
16367
16473
  }, [containerWidth, steps, theme]);
16368
16474
  if (steps === 1) {
16369
- return /*#__PURE__*/React__default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__default.createElement(StyledSingleStep, null));
16475
+ return /*#__PURE__*/React__default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__default.createElement(StyledSingleStep, {
16476
+ themeState: current >= steps ? 'complete' : 'incomplete'
16477
+ }));
16370
16478
  }
16371
16479
  return /*#__PURE__*/React__default.createElement(StyledStepContainer, _extends$1({}, props, {
16372
16480
  onLayout: onContainerLayout
@@ -16526,14 +16634,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16526
16634
  }, dotProps))));
16527
16635
  };
16528
16636
 
16529
- var _excluded$d = ["testID", "size", "intent"];
16637
+ var _excluded$e = ["testID", "size", "intent"];
16530
16638
  var Spinner = function Spinner(_ref) {
16531
16639
  var testID = _ref.testID,
16532
16640
  _ref$size = _ref.size,
16533
16641
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16534
16642
  _ref$intent = _ref.intent,
16535
16643
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16536
- nativeProps = _objectWithoutProperties(_ref, _excluded$d);
16644
+ nativeProps = _objectWithoutProperties(_ref, _excluded$e);
16537
16645
  return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
16538
16646
  testID: testID
16539
16647
  }, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
@@ -16566,7 +16674,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
16566
16674
  }, children);
16567
16675
  };
16568
16676
 
16569
- var _excluded$c = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16677
+ var _excluded$d = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16570
16678
  var renderActions = function renderActions(actions, width, progress, direction) {
16571
16679
  var trans = progress.interpolate({
16572
16680
  inputRange: [0, 1],
@@ -16595,7 +16703,7 @@ var Swipeable = function Swipeable(_ref) {
16595
16703
  rightActionsWidth = _ref.rightActionsWidth,
16596
16704
  _ref$variant = _ref.variant,
16597
16705
  variant = _ref$variant === void 0 ? 'card' : _ref$variant,
16598
- swipeableProps = _objectWithoutProperties(_ref, _excluded$c);
16706
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$d);
16599
16707
  var theme = useTheme();
16600
16708
  var _useWindowDimensions = useWindowDimensions(),
16601
16709
  width = _useWindowDimensions.width;
@@ -16946,7 +17054,7 @@ var StyledSectionList = index$9(SectionList)(function (_ref4) {
16946
17054
  };
16947
17055
  });
16948
17056
 
16949
- var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
17057
+ var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
16950
17058
  var BaseOptionList = function BaseOptionList(_ref) {
16951
17059
  var keyExtractor = _ref.keyExtractor,
16952
17060
  loading = _ref.loading,
@@ -16955,7 +17063,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
16955
17063
  sections = _ref.sections,
16956
17064
  renderItem = _ref.renderItem,
16957
17065
  sectionListRef = _ref.sectionListRef,
16958
- rest = _objectWithoutProperties(_ref, _excluded$b);
17066
+ rest = _objectWithoutProperties(_ref, _excluded$c);
16959
17067
  var theme = useTheme$1();
16960
17068
  var _useState = useState(false),
16961
17069
  _useState2 = _slicedToArray(_useState, 2),
@@ -17025,7 +17133,7 @@ var Option$2 = function Option(_ref) {
17025
17133
  return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
17026
17134
  };
17027
17135
 
17028
- var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17136
+ var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17029
17137
  var OptionList$1 = function OptionList(_ref) {
17030
17138
  var keyExtractor = _ref.keyExtractor,
17031
17139
  loading = _ref.loading,
@@ -17036,7 +17144,7 @@ var OptionList$1 = function OptionList(_ref) {
17036
17144
  renderOption = _ref.renderOption,
17037
17145
  value = _ref.value,
17038
17146
  sectionListRef = _ref.sectionListRef,
17039
- rest = _objectWithoutProperties(_ref, _excluded$a);
17147
+ rest = _objectWithoutProperties(_ref, _excluded$b);
17040
17148
  var renderItem = function renderItem(info) {
17041
17149
  var item = info.item;
17042
17150
  var selected = value.includes(info.item.value);
@@ -17227,7 +17335,7 @@ var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
17227
17335
  };
17228
17336
  });
17229
17337
 
17230
- var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17338
+ var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17231
17339
  var OptionList = function OptionList(_ref) {
17232
17340
  var keyExtractor = _ref.keyExtractor,
17233
17341
  loading = _ref.loading,
@@ -17238,7 +17346,7 @@ var OptionList = function OptionList(_ref) {
17238
17346
  renderOption = _ref.renderOption,
17239
17347
  value = _ref.value,
17240
17348
  sectionListRef = _ref.sectionListRef,
17241
- rest = _objectWithoutProperties(_ref, _excluded$9);
17349
+ rest = _objectWithoutProperties(_ref, _excluded$a);
17242
17350
  var renderItem = function renderItem(info) {
17243
17351
  var item = info.item;
17244
17352
  var selected = item.value === value;
@@ -17406,7 +17514,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
17406
17514
  };
17407
17515
  });
17408
17516
 
17409
- var _excluded$8 = ["intent", "variant", "style", "onLayout"];
17517
+ var _excluded$9 = ["intent", "variant", "style", "onLayout"];
17410
17518
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
17411
17519
  var gradientPositions = {
17412
17520
  start: {
@@ -17438,7 +17546,7 @@ var Skeleton = function Skeleton(_ref) {
17438
17546
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
17439
17547
  style = _ref.style,
17440
17548
  onLayout = _ref.onLayout,
17441
- props = _objectWithoutProperties(_ref, _excluded$8);
17549
+ props = _objectWithoutProperties(_ref, _excluded$9);
17442
17550
  var theme = useTheme();
17443
17551
  var colors = useMemo(function () {
17444
17552
  return getGradientColors(theme, intent);
@@ -17570,7 +17678,7 @@ var StyledSuccessModal = index$9(ModalWrapper)({
17570
17678
  width: '100%'
17571
17679
  });
17572
17680
 
17573
- var _excluded$7 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17681
+ var _excluded$8 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17574
17682
  var renderImage = function renderImage(image) {
17575
17683
  if ( /*#__PURE__*/isValidElement(image)) {
17576
17684
  return /*#__PURE__*/React__default.cloneElement(image, {
@@ -17596,7 +17704,7 @@ var SuccessPage = function SuccessPage(_ref) {
17596
17704
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
17597
17705
  secondaryCtaText = _ref.secondaryCtaText,
17598
17706
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
17599
- nativeProps = _objectWithoutProperties(_ref, _excluded$7);
17707
+ nativeProps = _objectWithoutProperties(_ref, _excluded$8);
17600
17708
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
17601
17709
  return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
17602
17710
  testID: testID,
@@ -18614,7 +18722,7 @@ var StyledText = index$9(Typography.Caption)(function (_ref2) {
18614
18722
  };
18615
18723
  });
18616
18724
 
18617
- var _excluded$6 = ["content", "variant", "intent", "style", "testID"];
18725
+ var _excluded$7 = ["content", "variant", "intent", "style", "testID"];
18618
18726
  var Tag = function Tag(_ref) {
18619
18727
  var content = _ref.content,
18620
18728
  _ref$variant = _ref.variant,
@@ -18623,7 +18731,7 @@ var Tag = function Tag(_ref) {
18623
18731
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
18624
18732
  style = _ref.style,
18625
18733
  testID = _ref.testID,
18626
- nativeProps = _objectWithoutProperties(_ref, _excluded$6);
18734
+ nativeProps = _objectWithoutProperties(_ref, _excluded$7);
18627
18735
  useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
18628
18736
  return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
18629
18737
  themeIntent: intent,
@@ -18852,6 +18960,13 @@ var IconButtonLabel = index$9(Typography.Body)(function (_ref5) {
18852
18960
  marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft
18853
18961
  };
18854
18962
  });
18963
+ var StyledLabel = index$9(Typography.Body)(function (_ref6) {
18964
+ var theme = _ref6.theme,
18965
+ intent = _ref6.intent;
18966
+ return {
18967
+ color: intent === 'secondary' ? theme.__hd__.toolbar.colors.secondary : theme.__hd__.typography.colors[intent]
18968
+ };
18969
+ });
18855
18970
 
18856
18971
  var IconItem = function IconItem(_ref) {
18857
18972
  var icon = _ref.icon,
@@ -18886,7 +19001,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
18886
19001
  });
18887
19002
  }
18888
19003
  if (label) {
18889
- return /*#__PURE__*/React__default.createElement(Typography.Body, {
19004
+ return /*#__PURE__*/React__default.createElement(StyledLabel, {
18890
19005
  variant: "regular-bold",
18891
19006
  intent: disabled ? 'disabled' : intent,
18892
19007
  allowFontScaling: false,
@@ -18941,10 +19056,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
18941
19056
  }));
18942
19057
  };
18943
19058
 
18944
- var _excluded$5 = ["children"];
19059
+ var _excluded$6 = ["children"];
18945
19060
  var Toolbar = function Toolbar(_ref) {
18946
19061
  var children = _ref.children,
18947
- rest = _objectWithoutProperties(_ref, _excluded$5);
19062
+ rest = _objectWithoutProperties(_ref, _excluded$6);
18948
19063
  return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
18949
19064
  };
18950
19065
  var index$1 = Object.assign(Toolbar, {
@@ -18963,7 +19078,7 @@ var StyledIconWrapper = index$9(AnimatedBox)(function (_ref) {
18963
19078
  };
18964
19079
  });
18965
19080
 
18966
- var _excluded$4 = ["options", "value", "onChange", "readonly", "disabled"];
19081
+ var _excluded$5 = ["options", "value", "onChange", "readonly", "disabled"];
18967
19082
  var Rate = function Rate(_ref) {
18968
19083
  var options = _ref.options,
18969
19084
  value = _ref.value,
@@ -18972,7 +19087,7 @@ var Rate = function Rate(_ref) {
18972
19087
  readonly = _ref$readonly === void 0 ? false : _ref$readonly,
18973
19088
  _ref$disabled = _ref.disabled,
18974
19089
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
18975
- otherProps = _objectWithoutProperties(_ref, _excluded$4);
19090
+ otherProps = _objectWithoutProperties(_ref, _excluded$5);
18976
19091
  var valueIndex = useMemo(function () {
18977
19092
  return options.findIndex(function (item) {
18978
19093
  return item.value === value;
@@ -36363,30 +36478,30 @@ function AnimatedScroller(_ref) {
36363
36478
  }));
36364
36479
  }
36365
36480
 
36366
- var _excluded$3 = ["fabProps"];
36481
+ var _excluded$4 = ["fabProps"];
36367
36482
  var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
36368
36483
  var fabProps = _ref.fabProps,
36369
- props = _objectWithoutProperties(_ref, _excluded$3);
36484
+ props = _objectWithoutProperties(_ref, _excluded$4);
36370
36485
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36371
36486
  ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
36372
36487
  fabProps: fabProps
36373
36488
  });
36374
36489
  };
36375
36490
 
36376
- var _excluded$2 = ["fabProps"];
36491
+ var _excluded$3 = ["fabProps"];
36377
36492
  function FlatListWithFAB(_ref) {
36378
36493
  var fabProps = _ref.fabProps,
36379
- props = _objectWithoutProperties(_ref, _excluded$2);
36494
+ props = _objectWithoutProperties(_ref, _excluded$3);
36380
36495
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36381
36496
  ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
36382
36497
  fabProps: fabProps
36383
36498
  });
36384
36499
  }
36385
36500
 
36386
- var _excluded$1 = ["fabProps"];
36501
+ var _excluded$2 = ["fabProps"];
36387
36502
  function SectionListWithFAB(_ref) {
36388
36503
  var fabProps = _ref.fabProps,
36389
- props = _objectWithoutProperties(_ref, _excluded$1);
36504
+ props = _objectWithoutProperties(_ref, _excluded$2);
36390
36505
  return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
36391
36506
  ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
36392
36507
  fabProps: fabProps
@@ -36398,20 +36513,30 @@ var StyledContainer = index$9(View)(function () {
36398
36513
  width: '100%'
36399
36514
  };
36400
36515
  });
36516
+ var getBorderWidth = function getBorderWidth(theme, themeFocused, themeVariant) {
36517
+ return themeFocused ? theme.__hd__.search.borderWidths.container[themeVariant].focused : theme.__hd__.search.borderWidths.container[themeVariant].normal;
36518
+ };
36401
36519
  var StyledInputContainer = index$9(View)(function (_ref) {
36402
36520
  var theme = _ref.theme,
36403
- themeFocused = _ref.themeFocused;
36404
- return {
36521
+ themeFocused = _ref.themeFocused,
36522
+ themeVariant = _ref.themeVariant;
36523
+ var borderWidth = getBorderWidth(theme, themeFocused, themeVariant);
36524
+ return _objectSpread2({
36405
36525
  flexDirection: 'row',
36406
36526
  alignItems: 'center',
36407
- paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding,
36408
- paddingVertical: theme.__hd__.search.space.containerVerticalPadding,
36409
- backgroundColor: theme.__hd__.search.colors.containerBackground,
36527
+ paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding - borderWidth,
36528
+ paddingVertical: theme.__hd__.search.space.containerVerticalPadding - borderWidth,
36529
+ backgroundColor: theme.__hd__.search.colors[themeVariant].containerBackground,
36410
36530
  height: 56,
36411
36531
  borderRadius: theme.__hd__.search.radii.container,
36412
- borderWidth: theme.__hd__.search.borderWidths.container.focused,
36413
- borderColor: themeFocused ? theme.__hd__.search.colors.borders : theme.__hd__.search.colors.containerBackground
36414
- };
36532
+ borderWidth: borderWidth,
36533
+ borderColor: themeFocused ? theme.__hd__.search.colors[themeVariant].focusedBorder : theme.__hd__.search.colors[themeVariant].border
36534
+ }, themeVariant === 'reversed' && {
36535
+ elevation: theme.__hd__.search.shadows.elevation,
36536
+ shadowOffset: theme.__hd__.search.shadows.offset,
36537
+ shadowOpacity: theme.__hd__.search.shadows.opacity,
36538
+ shadowRadius: theme.__hd__.search.shadows.radius
36539
+ });
36415
36540
  });
36416
36541
  var StyledAffixContainer = index$9(View)(function (_ref2) {
36417
36542
  var theme = _ref2.theme;
@@ -36427,7 +36552,7 @@ var StyledSuffixContainer = index$9(View)(function (_ref3) {
36427
36552
  alignItems: 'center',
36428
36553
  width: theme.__hd__.search.sizes.surfixSize,
36429
36554
  height: theme.__hd__.search.sizes.surfixSize,
36430
- backgroundColor: theme.__hd__.search.colors.surfixBackground,
36555
+ backgroundColor: theme.__hd__.search.colors.suffixBackground,
36431
36556
  borderRadius: theme.__hd__.search.radii.surfix
36432
36557
  };
36433
36558
  });
@@ -36453,7 +36578,8 @@ var StyledHandlerContainer = index$9(View)(function (_ref5) {
36453
36578
  alignItems: 'flex-start',
36454
36579
  flexGrow: 1,
36455
36580
  height: '100%',
36456
- marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin
36581
+ marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin,
36582
+ paddingVertical: theme.__hd__.search.space.inputVerticalPadding
36457
36583
  };
36458
36584
  });
36459
36585
  var StyledBadge = index$9(Badge$1)(function (_ref6) {
@@ -36492,12 +36618,15 @@ var SearchTwoLine = function SearchTwoLine(props) {
36492
36618
  style = props.style,
36493
36619
  label = props.label,
36494
36620
  content = props.content,
36495
- testID = props.testID;
36621
+ testID = props.testID,
36622
+ _props$variant = props.variant,
36623
+ variant = _props$variant === void 0 ? 'basic' : _props$variant;
36496
36624
  return /*#__PURE__*/React__default.createElement(StyledContainer, {
36497
36625
  style: style,
36498
36626
  testID: testID
36499
36627
  }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36500
- themeFocused: false
36628
+ themeFocused: false,
36629
+ themeVariant: variant
36501
36630
  }, renderPrefix({
36502
36631
  prefix: prefix
36503
36632
  }), /*#__PURE__*/React__default.createElement(StyledHandlerContainer, null, /*#__PURE__*/React__default.createElement(Typography.Caption, {
@@ -36507,7 +36636,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
36507
36636
  })));
36508
36637
  };
36509
36638
 
36510
- var _excluded = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID"];
36639
+ var _excluded$1 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant"];
36511
36640
  var getState = function getState(_ref) {
36512
36641
  var disabled = _ref.disabled,
36513
36642
  editable = _ref.editable,
@@ -36547,7 +36676,9 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
36547
36676
  _props$disabled = props.disabled,
36548
36677
  disabled = _props$disabled === void 0 ? false : _props$disabled,
36549
36678
  testID = props.testID,
36550
- nativeProps = _objectWithoutProperties(props, _excluded);
36679
+ _props$variant = props.variant,
36680
+ variant = _props$variant === void 0 ? 'basic' : _props$variant,
36681
+ nativeProps = _objectWithoutProperties(props, _excluded$1);
36551
36682
  var _React$useState = React__default.useState(false),
36552
36683
  _React$useState2 = _slicedToArray(_React$useState, 2),
36553
36684
  isFocused = _React$useState2[0],
@@ -36594,7 +36725,8 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
36594
36725
  testID: testID,
36595
36726
  style: style
36596
36727
  }, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
36597
- themeFocused: isFocused
36728
+ themeFocused: isFocused,
36729
+ themeVariant: variant
36598
36730
  }, renderPrefix({
36599
36731
  prefix: prefix
36600
36732
  }), renderInput({
@@ -36630,6 +36762,23 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
36630
36762
  })));
36631
36763
  });
36632
36764
 
36765
+ var _excluded = ["content", "icon"];
36766
+ var renderBadge = function renderBadge(props) {
36767
+ var content = props.content,
36768
+ icon = props.icon,
36769
+ rest = _objectWithoutProperties(props, _excluded);
36770
+ if (content) return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
36771
+ intent: "primary",
36772
+ content: content,
36773
+ size: "small"
36774
+ }, rest));
36775
+ if (icon) return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
36776
+ intent: "primary",
36777
+ icon: icon,
36778
+ size: "small"
36779
+ }, rest));
36780
+ return null;
36781
+ };
36633
36782
  var SearchSuffixIcon = function SearchSuffixIcon(props) {
36634
36783
  var suffix = props.suffix,
36635
36784
  testID = props.testID,
@@ -36638,11 +36787,7 @@ var SearchSuffixIcon = function SearchSuffixIcon(props) {
36638
36787
  return /*#__PURE__*/React__default.createElement(StyledSuffixContainer, {
36639
36788
  testID: testID,
36640
36789
  style: style
36641
- }, !!badge && /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
36642
- intent: "primary"
36643
- }, badge, {
36644
- size: "small"
36645
- })), renderSuffix({
36790
+ }, !!badge && renderBadge(badge), renderSuffix({
36646
36791
  suffix: suffix
36647
36792
  }));
36648
36793
  };