@hero-design/rn 8.75.0 → 8.76.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.
package/lib/index.js CHANGED
@@ -3669,29 +3669,47 @@ var getToolbarTheme = function getToolbarTheme(theme) {
3669
3669
  danger: theme.colors.warning,
3670
3670
  error: theme.colors.error,
3671
3671
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
3672
- iconButtonBackground: theme.colors.highlightedSurface
3672
+ iconButtonBackground: theme.colors.highlightedSurface,
3673
+ inputContainerBackground: theme.colors.neutralGlobalSurface
3673
3674
  };
3674
3675
  var space = {
3675
3676
  verticalPadding: theme.space.small,
3676
3677
  horizontalPadding: theme.space.small,
3677
3678
  iconButtonLabelMarginLeft: theme.space.small,
3678
- iconButtonWrapperPadding: theme.space.smallMedium
3679
+ iconButtonWrapperPadding: theme.space.smallMedium,
3680
+ messageWrapperMarginHorizontal: theme.space.small,
3681
+ messageWrapperPaddingVertical: theme.space.smallMedium,
3682
+ messageWrapperPaddingHorizontal: theme.space.small,
3683
+ messageInputPaddingHorizontal: theme.space.smallMedium,
3684
+ messageInputPaddingVertical: theme.space.small,
3685
+ affixInnerMargin: theme.space.medium
3679
3686
  };
3680
3687
  var borderWidths = {
3681
3688
  "default": theme.borderWidths.base
3682
3689
  };
3683
3690
  var sizes = {
3684
- itemWrapperHeight: scale(64)
3691
+ itemWrapperHeight: scale(64),
3692
+ messageWrapperHeight: scale(64),
3693
+ messageInputHeight: 40
3685
3694
  };
3686
3695
  var radii = {
3687
- iconButtonWrapperBorderRadius: theme.radii.xxxlarge
3696
+ iconButtonWrapperBorderRadius: theme.radii.xxxlarge,
3697
+ messageContainer: theme.radii.rounded
3698
+ };
3699
+ var fontSizes = {
3700
+ text: theme.fontSizes.large
3701
+ };
3702
+ var fonts = {
3703
+ text: theme.fonts.neutral.regular
3688
3704
  };
3689
3705
  return {
3690
3706
  colors: colors,
3691
3707
  space: space,
3692
3708
  borderWidths: borderWidths,
3693
3709
  sizes: sizes,
3694
- radii: radii
3710
+ radii: radii,
3711
+ fontSizes: fontSizes,
3712
+ fonts: fonts
3695
3713
  };
3696
3714
  };
3697
3715
 
@@ -7140,7 +7158,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
7140
7158
  });
7141
7159
  });
7142
7160
 
7143
- var _excluded$K = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7161
+ var _excluded$L = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
7144
7162
  var Text = function Text(_ref) {
7145
7163
  var children = _ref.children,
7146
7164
  _ref$fontSize = _ref.fontSize,
@@ -7153,7 +7171,7 @@ var Text = function Text(_ref) {
7153
7171
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7154
7172
  _ref$allowFontScaling = _ref.allowFontScaling,
7155
7173
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7156
- nativeProps = _objectWithoutProperties(_ref, _excluded$K);
7174
+ nativeProps = _objectWithoutProperties(_ref, _excluded$L);
7157
7175
  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.');
7158
7176
  return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
7159
7177
  themeFontSize: fontSize,
@@ -7183,7 +7201,7 @@ var StyledCaption = index$a(reactNative.Text)(function (_ref) {
7183
7201
  };
7184
7202
  });
7185
7203
 
7186
- var _excluded$J = ["children", "fontWeight", "intent", "allowFontScaling"];
7204
+ var _excluded$K = ["children", "fontWeight", "intent", "allowFontScaling"];
7187
7205
  var Caption = function Caption(_ref) {
7188
7206
  var children = _ref.children,
7189
7207
  _ref$fontWeight = _ref.fontWeight,
@@ -7192,7 +7210,7 @@ var Caption = function Caption(_ref) {
7192
7210
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7193
7211
  _ref$allowFontScaling = _ref.allowFontScaling,
7194
7212
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7195
- nativeProps = _objectWithoutProperties(_ref, _excluded$J);
7213
+ nativeProps = _objectWithoutProperties(_ref, _excluded$K);
7196
7214
  return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
7197
7215
  themeFontWeight: fontWeight,
7198
7216
  themeIntent: intent,
@@ -7211,14 +7229,14 @@ var StyledLabel$1 = index$a(reactNative.Text)(function (_ref) {
7211
7229
  };
7212
7230
  });
7213
7231
 
7214
- var _excluded$I = ["children", "intent", "allowFontScaling"];
7232
+ var _excluded$J = ["children", "intent", "allowFontScaling"];
7215
7233
  var Label = function Label(_ref) {
7216
7234
  var children = _ref.children,
7217
7235
  _ref$intent = _ref.intent,
7218
7236
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
7219
7237
  _ref$allowFontScaling = _ref.allowFontScaling,
7220
7238
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7221
- nativeProps = _objectWithoutProperties(_ref, _excluded$I);
7239
+ nativeProps = _objectWithoutProperties(_ref, _excluded$J);
7222
7240
  return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7223
7241
  themeIntent: intent,
7224
7242
  allowFontScaling: allowFontScaling
@@ -7239,7 +7257,7 @@ var StyledTitle$1 = index$a(reactNative.Text)(function (_ref) {
7239
7257
  };
7240
7258
  });
7241
7259
 
7242
- var _excluded$H = ["children", "intent", "allowFontScaling", "level", "typeface"];
7260
+ var _excluded$I = ["children", "intent", "allowFontScaling", "level", "typeface"];
7243
7261
  var Title = function Title(_ref) {
7244
7262
  var children = _ref.children,
7245
7263
  _ref$intent = _ref.intent,
@@ -7250,7 +7268,7 @@ var Title = function Title(_ref) {
7250
7268
  level = _ref$level === void 0 ? 'h1' : _ref$level,
7251
7269
  _ref$typeface = _ref.typeface,
7252
7270
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7253
- nativeProps = _objectWithoutProperties(_ref, _excluded$H);
7271
+ nativeProps = _objectWithoutProperties(_ref, _excluded$I);
7254
7272
  return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
7255
7273
  themeLevel: level,
7256
7274
  themeTypeface: typeface,
@@ -7285,7 +7303,7 @@ var StyledBody$1 = index$a(reactNative.Text)(function (_ref) {
7285
7303
  };
7286
7304
  });
7287
7305
 
7288
- var _excluded$G = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7306
+ var _excluded$H = ["children", "intent", "allowFontScaling", "typeface", "variant"];
7289
7307
  var Body = function Body(_ref) {
7290
7308
  var children = _ref.children,
7291
7309
  _ref$intent = _ref.intent,
@@ -7296,7 +7314,7 @@ var Body = function Body(_ref) {
7296
7314
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
7297
7315
  _ref$variant = _ref.variant,
7298
7316
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
7299
- nativeProps = _objectWithoutProperties(_ref, _excluded$G);
7317
+ nativeProps = _objectWithoutProperties(_ref, _excluded$H);
7300
7318
  return /*#__PURE__*/React__namespace.default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
7301
7319
  themeTypeface: typeface,
7302
7320
  themeIntent: intent,
@@ -7868,10 +7886,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
7868
7886
  };
7869
7887
  });
7870
7888
 
7871
- var _excluded$F = ["style"];
7889
+ var _excluded$G = ["style"];
7872
7890
  var AnimatedIcon = function AnimatedIcon(_ref) {
7873
7891
  var style = _ref.style,
7874
- otherProps = _objectWithoutProperties(_ref, _excluded$F);
7892
+ otherProps = _objectWithoutProperties(_ref, _excluded$G);
7875
7893
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
7876
7894
  React.useEffect(function () {
7877
7895
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -7976,7 +7994,7 @@ var AccordionItem = function AccordionItem(_ref) {
7976
7994
  }, content));
7977
7995
  };
7978
7996
 
7979
- var _excluded$E = ["key"];
7997
+ var _excluded$F = ["key"];
7980
7998
  var Accordion = function Accordion(_ref) {
7981
7999
  var items = _ref.items,
7982
8000
  activeItemKey = _ref.activeItemKey,
@@ -7997,7 +8015,7 @@ var Accordion = function Accordion(_ref) {
7997
8015
  testID: testID
7998
8016
  }, items.map(function (_ref2, index) {
7999
8017
  var key = _ref2.key,
8000
- props = _objectWithoutProperties(_ref2, _excluded$E);
8018
+ props = _objectWithoutProperties(_ref2, _excluded$F);
8001
8019
  var open = _activeItemKey === key;
8002
8020
  return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
8003
8021
  key: key
@@ -8491,7 +8509,7 @@ var borderWidths = {
8491
8509
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8492
8510
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8493
8511
 
8494
- var _excluded$D = ["theme"];
8512
+ var _excluded$E = ["theme"];
8495
8513
  var getThemeValue = function getThemeValue(theme, key, props) {
8496
8514
  var propConfig = config[key];
8497
8515
  var propValue = props[key];
@@ -8518,18 +8536,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8518
8536
  var configKeys = Object.keys(config);
8519
8537
  var StyledBox = index$a(reactNative.View)(function (_ref5) {
8520
8538
  var theme = _ref5.theme,
8521
- otherProps = _objectWithoutProperties(_ref5, _excluded$D);
8539
+ otherProps = _objectWithoutProperties(_ref5, _excluded$E);
8522
8540
  var styleProps = pick(configKeys, otherProps);
8523
8541
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8524
8542
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8525
8543
  });
8526
8544
 
8527
- var _excluded$C = ["children", "style", "testID"];
8545
+ var _excluded$D = ["children", "style", "testID"];
8528
8546
  var Box = function Box(_ref) {
8529
8547
  var children = _ref.children,
8530
8548
  style = _ref.style,
8531
8549
  testID = _ref.testID,
8532
- otherProps = _objectWithoutProperties(_ref, _excluded$C);
8550
+ otherProps = _objectWithoutProperties(_ref, _excluded$D);
8533
8551
  return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
8534
8552
  style: style,
8535
8553
  testID: testID
@@ -8758,7 +8776,7 @@ var StyledIcon$2 = index$a(Icon)(function (_ref4) {
8758
8776
  };
8759
8777
  });
8760
8778
 
8761
- var _excluded$B = ["children", "visible", "intent", "style", "testID"];
8779
+ var _excluded$C = ["children", "visible", "intent", "style", "testID"];
8762
8780
  var Status = function Status(_ref) {
8763
8781
  var children = _ref.children,
8764
8782
  _ref$visible = _ref.visible,
@@ -8767,7 +8785,7 @@ var Status = function Status(_ref) {
8767
8785
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
8768
8786
  style = _ref.style,
8769
8787
  testID = _ref.testID,
8770
- nativeProps = _objectWithoutProperties(_ref, _excluded$B);
8788
+ nativeProps = _objectWithoutProperties(_ref, _excluded$C);
8771
8789
  var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8772
8790
  opacity = _React$useRef.current;
8773
8791
  var isFirstRendering = React__namespace.default.useRef(true);
@@ -8800,7 +8818,7 @@ var Status = function Status(_ref) {
8800
8818
  }));
8801
8819
  };
8802
8820
 
8803
- var _excluded$A = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
8821
+ var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
8804
8822
  var DEFAULT_MAX_NUMBER = 99;
8805
8823
  var getPaddingState = function getPaddingState(content) {
8806
8824
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -8820,7 +8838,7 @@ var Badge = function Badge(_ref) {
8820
8838
  _ref$variant = _ref.variant,
8821
8839
  variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
8822
8840
  icon = _ref.icon,
8823
- nativeProps = _objectWithoutProperties(_ref, _excluded$A);
8841
+ nativeProps = _objectWithoutProperties(_ref, _excluded$B);
8824
8842
  var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
8825
8843
  opacity = _React$useRef.current;
8826
8844
  var isFirstRendering = React__namespace.default.useRef(true);
@@ -8921,7 +8939,7 @@ var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
8921
8939
  };
8922
8940
  });
8923
8941
 
8924
- var _excluded$z = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8942
+ var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
8925
8943
  var getInactiveIcon = function getInactiveIcon(icon) {
8926
8944
  var inactiveIcon = "".concat(icon, "-outlined");
8927
8945
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -8932,7 +8950,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
8932
8950
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
8933
8951
  selectedTabKey = _ref.selectedTabKey,
8934
8952
  tabs = _ref.tabs,
8935
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
8953
+ nativeProps = _objectWithoutProperties(_ref, _excluded$A);
8936
8954
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
8937
8955
  /**
8938
8956
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -9018,13 +9036,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
9018
9036
  }, horizontalMargin), verticalMargin);
9019
9037
  });
9020
9038
 
9021
- var _excluded$y = ["marginHorizontal", "marginVertical", "style", "testID"];
9039
+ var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
9022
9040
  var Divider = function Divider(_ref) {
9023
9041
  var marginHorizontal = _ref.marginHorizontal,
9024
9042
  marginVertical = _ref.marginVertical,
9025
9043
  style = _ref.style,
9026
9044
  testID = _ref.testID,
9027
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
9045
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
9028
9046
  return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
9029
9047
  themeMarginHorizontal: marginHorizontal,
9030
9048
  themeMarginVertical: marginVertical,
@@ -9180,7 +9198,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref) {
9180
9198
  }, themeStyling());
9181
9199
  });
9182
9200
 
9183
- var _excluded$x = ["count", "size", "testID", "themeVariant"];
9201
+ var _excluded$y = ["count", "size", "testID", "themeVariant"];
9184
9202
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
9185
9203
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
9186
9204
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -9212,7 +9230,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
9212
9230
  size = _ref2$size === void 0 ? 12 : _ref2$size,
9213
9231
  testID = _ref2.testID,
9214
9232
  themeVariant = _ref2.themeVariant,
9215
- nativeProps = _objectWithoutProperties(_ref2, _excluded$x);
9233
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
9216
9234
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
9217
9235
  React.useEffect(function () {
9218
9236
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
@@ -9655,11 +9673,11 @@ var Header = function Header(_ref) {
9655
9673
  }))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
9656
9674
  };
9657
9675
 
9658
- var _excluded$w = ["scrollEventThrottle"];
9676
+ var _excluded$x = ["scrollEventThrottle"];
9659
9677
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
9660
9678
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
9661
9679
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
9662
- props = _objectWithoutProperties(_ref, _excluded$w);
9680
+ props = _objectWithoutProperties(_ref, _excluded$x);
9663
9681
  var _useContext = React.useContext(BottomSheetContext),
9664
9682
  setInternalShowDivider = _useContext.setInternalShowDivider;
9665
9683
  var onScrollBeginDrag = React.useCallback(function (e) {
@@ -9745,6 +9763,9 @@ var BottomSheet = function BottomSheet(_ref) {
9745
9763
  }
9746
9764
  onAnimationEnd === null || onAnimationEnd === void 0 || onAnimationEnd();
9747
9765
  });
9766
+ return function () {
9767
+ return animation.stop();
9768
+ };
9748
9769
  }, [open]);
9749
9770
  var interpolateY = animatedValue.current.interpolate({
9750
9771
  inputRange: [0, 1],
@@ -12471,12 +12492,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
12471
12492
  };
12472
12493
  });
12473
12494
 
12474
- var _excluded$v = ["intent", "children"];
12495
+ var _excluded$w = ["intent", "children"];
12475
12496
  var DataCard = function DataCard(_ref) {
12476
12497
  var _ref$intent = _ref.intent,
12477
12498
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
12478
12499
  children = _ref.children,
12479
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
12500
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
12480
12501
  return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
12481
12502
  themeIntent: intent,
12482
12503
  testID: "data-card-indicator"
@@ -12495,13 +12516,13 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
12495
12516
  });
12496
12517
  });
12497
12518
 
12498
- var _excluded$u = ["intent", "children", "variant"];
12519
+ var _excluded$v = ["intent", "children", "variant"];
12499
12520
  var Card = function Card(_ref) {
12500
12521
  var intent = _ref.intent,
12501
12522
  children = _ref.children,
12502
12523
  _ref$variant = _ref.variant,
12503
12524
  variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
12504
- nativeProps = _objectWithoutProperties(_ref, _excluded$u);
12525
+ nativeProps = _objectWithoutProperties(_ref, _excluded$v);
12505
12526
  return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12506
12527
  themeIntent: intent,
12507
12528
  themeVariant: variant
@@ -12763,7 +12784,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12763
12784
  });
12764
12785
  CardCarousel.displayName = 'CardCarousel';
12765
12786
 
12766
- var _excluded$t = ["rounded", "size", "testID", "style"];
12787
+ var _excluded$u = ["rounded", "size", "testID", "style"];
12767
12788
  var Image = function Image(_ref) {
12768
12789
  var _ref$rounded = _ref.rounded,
12769
12790
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -12771,7 +12792,7 @@ var Image = function Image(_ref) {
12771
12792
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
12772
12793
  testID = _ref.testID,
12773
12794
  style = _ref.style,
12774
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$t);
12795
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
12775
12796
  var theme = useTheme();
12776
12797
  var imageSize = theme.__hd__.image.sizes[size];
12777
12798
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
@@ -12905,7 +12926,7 @@ var CarouselItem = function CarouselItem(_ref) {
12905
12926
  }, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
12906
12927
  };
12907
12928
 
12908
- var _excluded$s = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12929
+ var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12909
12930
  function useStateFromProp(initialValue) {
12910
12931
  var _useState = React.useState(initialValue),
12911
12932
  _useState2 = _slicedToArray(_useState, 2),
@@ -12932,7 +12953,7 @@ var Carousel = function Carousel(_ref) {
12932
12953
  testID = _ref.testID,
12933
12954
  _ref$pageControlPosit = _ref.pageControlPosition,
12934
12955
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12935
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
12956
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
12936
12957
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12937
12958
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12938
12959
  var theme = useTheme();
@@ -13146,7 +13167,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
13146
13167
  }, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
13147
13168
  });
13148
13169
 
13149
- var _excluded$r = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
13170
+ var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
13150
13171
  var Chip = function Chip(_ref) {
13151
13172
  var label = _ref.label,
13152
13173
  _ref$variant = _ref.variant,
@@ -13157,7 +13178,7 @@ var Chip = function Chip(_ref) {
13157
13178
  onPress = _ref.onPress,
13158
13179
  _ref$showSelectedIcon = _ref.showSelectedIcon,
13159
13180
  showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
13160
- otherProps = _objectWithoutProperties(_ref, _excluded$r);
13181
+ otherProps = _objectWithoutProperties(_ref, _excluded$s);
13161
13182
  var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
13162
13183
  return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
13163
13184
  onPress: onPress,
@@ -13398,8 +13419,8 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
13398
13419
  };
13399
13420
  });
13400
13421
 
13401
- var _excluded$q = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13402
- var getState$2 = function getState(_ref) {
13422
+ var _excluded$r = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
13423
+ var getState$3 = function getState(_ref) {
13403
13424
  var disabled = _ref.disabled,
13404
13425
  error = _ref.error,
13405
13426
  editable = _ref.editable,
@@ -13510,7 +13531,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
13510
13531
  allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
13511
13532
  _ref8$variant = _ref8.variant,
13512
13533
  variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
13513
- nativeProps = _objectWithoutProperties(_ref8, _excluded$q);
13534
+ nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
13514
13535
  var displayText = getDisplayText(value, defaultValue);
13515
13536
  var isEmptyValue = displayText.length === 0;
13516
13537
  var _React$useState = React__namespace.default.useState({
@@ -13532,7 +13553,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
13532
13553
  _React$useState8 = _slicedToArray(_React$useState7, 2),
13533
13554
  isFocused = _React$useState8[0],
13534
13555
  setIsFocused = _React$useState8[1];
13535
- var state = getState$2({
13556
+ var state = getState$3({
13536
13557
  disabled: disabled,
13537
13558
  error: error,
13538
13559
  editable: editable,
@@ -14055,11 +14076,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
14055
14076
  }))));
14056
14077
  };
14057
14078
 
14058
- var _excluded$p = ["variant"];
14079
+ var _excluded$q = ["variant"];
14059
14080
  var DatePicker = function DatePicker(_ref) {
14060
14081
  var _ref$variant = _ref.variant,
14061
14082
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
14062
- props = _objectWithoutProperties(_ref, _excluded$p);
14083
+ props = _objectWithoutProperties(_ref, _excluded$q);
14063
14084
  if (variant === 'calendar') {
14064
14085
  return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
14065
14086
  }
@@ -14613,7 +14634,7 @@ var Portal$1 = Object.assign(Portal, {
14613
14634
  Host: PortalHost
14614
14635
  });
14615
14636
 
14616
- var _excluded$o = ["visible"];
14637
+ var _excluded$p = ["visible"];
14617
14638
  var DEFAULT_BACKDROP_OPACITY = 0.4;
14618
14639
  var DEFAULT_ANIMATION_CONFIG = {
14619
14640
  easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
@@ -14709,7 +14730,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14709
14730
  var ModalWrapper = function ModalWrapper(_ref3) {
14710
14731
  var _ref3$visible = _ref3.visible,
14711
14732
  visible = _ref3$visible === void 0 ? true : _ref3$visible,
14712
- props = _objectWithoutProperties(_ref3, _excluded$o);
14733
+ props = _objectWithoutProperties(_ref3, _excluded$p);
14713
14734
  var modalRef = React.useRef(null);
14714
14735
  var _useState = React.useState(visible),
14715
14736
  _useState2 = _slicedToArray(_useState, 2),
@@ -14819,7 +14840,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
14819
14840
  };
14820
14841
  });
14821
14842
 
14822
- var _excluded$n = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14843
+ var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
14823
14844
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
14824
14845
  var renderImage$1 = function renderImage(image) {
14825
14846
  if ( /*#__PURE__*/React.isValidElement(image)) {
@@ -14845,7 +14866,7 @@ var ErrorPage = function ErrorPage(_ref) {
14845
14866
  onCtaPress = _ref.onCtaPress,
14846
14867
  secondaryCtaText = _ref.secondaryCtaText,
14847
14868
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
14848
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
14869
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
14849
14870
  var showCta = ctaText && onCtaPress !== undefined;
14850
14871
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
14851
14872
  var showButtonContainer = showCta || showSecondaryCta;
@@ -15074,11 +15095,11 @@ var ActionItem = function ActionItem(_ref) {
15074
15095
  })), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
15075
15096
  };
15076
15097
 
15077
- var _excluded$m = ["active"];
15098
+ var _excluded$n = ["active"];
15078
15099
  var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
15079
15100
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
15080
15101
  var active = _ref.active,
15081
- iconProps = _objectWithoutProperties(_ref, _excluded$m);
15102
+ iconProps = _objectWithoutProperties(_ref, _excluded$n);
15082
15103
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
15083
15104
  React.useEffect(function () {
15084
15105
  var animation = reactNative.Animated.spring(rotateAnimation.current, {
@@ -15434,11 +15455,11 @@ var StyledFAB = index$a(FAB$1)(function (_ref) {
15434
15455
  };
15435
15456
  });
15436
15457
 
15437
- var _excluded$l = ["fabConfig", "onCancel"];
15458
+ var _excluded$m = ["fabConfig", "onCancel"];
15438
15459
  var Pair = function Pair(_ref) {
15439
15460
  var fabConfig = _ref.fabConfig,
15440
15461
  onCancel = _ref.onCancel,
15441
- props = _objectWithoutProperties(_ref, _excluded$l);
15462
+ props = _objectWithoutProperties(_ref, _excluded$m);
15442
15463
  var icon = fabConfig.icon,
15443
15464
  title = fabConfig.title,
15444
15465
  onPress = fabConfig.onPress,
@@ -15859,11 +15880,11 @@ var StyledFocusIcon = index$a(Icon)(function (_ref5) {
15859
15880
  };
15860
15881
  });
15861
15882
 
15862
- var _excluded$k = ["style", "testID"];
15883
+ var _excluded$l = ["style", "testID"];
15863
15884
  var MapPinFocussed = function MapPinFocussed(_ref) {
15864
15885
  var style = _ref.style,
15865
15886
  testID = _ref.testID,
15866
- nativeProps = _objectWithoutProperties(_ref, _excluded$k);
15887
+ nativeProps = _objectWithoutProperties(_ref, _excluded$l);
15867
15888
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
15868
15889
  style: style,
15869
15890
  testID: testID
@@ -15873,7 +15894,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
15873
15894
  }));
15874
15895
  };
15875
15896
 
15876
- var _excluded$j = ["style", "testID", "state", "image", "icon"];
15897
+ var _excluded$k = ["style", "testID", "state", "image", "icon"];
15877
15898
  var getBadgeIconName = function getBadgeIconName(state) {
15878
15899
  var iconMap = {
15879
15900
  idle: undefined,
@@ -15889,7 +15910,7 @@ var MapPin = function MapPin(_ref) {
15889
15910
  state = _ref$state === void 0 ? 'idle' : _ref$state,
15890
15911
  image = _ref.image,
15891
15912
  icon = _ref.icon,
15892
- nativeProps = _objectWithoutProperties(_ref, _excluded$j);
15913
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
15893
15914
  var badgeIcon = getBadgeIconName(state);
15894
15915
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
15895
15916
  style: style,
@@ -16220,7 +16241,7 @@ function PinCell(_ref) {
16220
16241
  }, value));
16221
16242
  }
16222
16243
 
16223
- function getState$1(_ref) {
16244
+ function getState$2(_ref) {
16224
16245
  var disabled = _ref.disabled,
16225
16246
  error = _ref.error;
16226
16247
  if (disabled) {
@@ -16259,7 +16280,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
16259
16280
  _useState2 = _slicedToArray(_useState, 2),
16260
16281
  focused = _useState2[0],
16261
16282
  setFocused = _useState2[1];
16262
- var state = getState$1({
16283
+ var state = getState$2({
16263
16284
  disabled: disabled,
16264
16285
  error: error
16265
16286
  });
@@ -16431,7 +16452,7 @@ var StyledStrokeEnd = index$a(reactNative.View)(function (_ref6) {
16431
16452
  };
16432
16453
  });
16433
16454
 
16434
- var _excluded$i = ["value", "renderValue", "intent", "style", "testID"];
16455
+ var _excluded$j = ["value", "renderValue", "intent", "style", "testID"];
16435
16456
  var HalfCircle = function HalfCircle(_ref) {
16436
16457
  var type = _ref.type,
16437
16458
  themeIntent = _ref.themeIntent;
@@ -16452,7 +16473,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16452
16473
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16453
16474
  style = _ref2.style,
16454
16475
  testID = _ref2.testID,
16455
- nativeProps = _objectWithoutProperties(_ref2, _excluded$i);
16476
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$j);
16456
16477
  var theme = useTheme$1();
16457
16478
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
16458
16479
  var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
@@ -16568,14 +16589,14 @@ var StyledInner = index$a(reactNative.Animated.View)(function (_ref2) {
16568
16589
  };
16569
16590
  });
16570
16591
 
16571
- var _excluded$h = ["value", "intent", "style", "testID"];
16592
+ var _excluded$i = ["value", "intent", "style", "testID"];
16572
16593
  var ProgressBar = function ProgressBar(_ref) {
16573
16594
  var value = _ref.value,
16574
16595
  _ref$intent = _ref.intent,
16575
16596
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16576
16597
  style = _ref.style,
16577
16598
  testID = _ref.testID,
16578
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
16599
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
16579
16600
  var _useState = React.useState(0),
16580
16601
  _useState2 = _slicedToArray(_useState, 2),
16581
16602
  width = _useState2[0],
@@ -16664,7 +16685,7 @@ var StyledSingleStep = index$a(Box)(function (_ref3) {
16664
16685
  };
16665
16686
  });
16666
16687
 
16667
- var _excluded$g = ["steps", "current", "onLayout"];
16688
+ var _excluded$h = ["steps", "current", "onLayout"];
16668
16689
  var getStepState = function getStepState(current, index) {
16669
16690
  if (index < current) {
16670
16691
  return 'complete';
@@ -16678,7 +16699,7 @@ var ProgressStep = function ProgressStep(_ref) {
16678
16699
  var steps = _ref.steps,
16679
16700
  current = _ref.current,
16680
16701
  onLayout = _ref.onLayout,
16681
- props = _objectWithoutProperties(_ref, _excluded$g);
16702
+ props = _objectWithoutProperties(_ref, _excluded$h);
16682
16703
  var theme = useTheme$1();
16683
16704
  var _React$useState = React__namespace.default.useState(0),
16684
16705
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -16859,14 +16880,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16859
16880
  }, dotProps))));
16860
16881
  };
16861
16882
 
16862
- var _excluded$f = ["testID", "size", "intent"];
16883
+ var _excluded$g = ["testID", "size", "intent"];
16863
16884
  var Spinner = function Spinner(_ref) {
16864
16885
  var testID = _ref.testID,
16865
16886
  _ref$size = _ref.size,
16866
16887
  size = _ref$size === void 0 ? 'medium' : _ref$size,
16867
16888
  _ref$intent = _ref.intent,
16868
16889
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16869
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
16890
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
16870
16891
  return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
16871
16892
  testID: testID
16872
16893
  }, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
@@ -16899,7 +16920,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
16899
16920
  }, children);
16900
16921
  };
16901
16922
 
16902
- var _excluded$e = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16923
+ var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
16903
16924
  var renderActions = function renderActions(actions, width, progress, direction) {
16904
16925
  var trans = progress.interpolate({
16905
16926
  inputRange: [0, 1],
@@ -16928,7 +16949,7 @@ var Swipeable = function Swipeable(_ref) {
16928
16949
  rightActionsWidth = _ref.rightActionsWidth,
16929
16950
  _ref$variant = _ref.variant,
16930
16951
  variant = _ref$variant === void 0 ? 'card' : _ref$variant,
16931
- swipeableProps = _objectWithoutProperties(_ref, _excluded$e);
16952
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
16932
16953
  var theme = useTheme();
16933
16954
  var _useWindowDimensions = reactNative.useWindowDimensions(),
16934
16955
  width = _useWindowDimensions.width;
@@ -17279,7 +17300,7 @@ var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
17279
17300
  };
17280
17301
  });
17281
17302
 
17282
- var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
17303
+ var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
17283
17304
  var BaseOptionList = function BaseOptionList(_ref) {
17284
17305
  var keyExtractor = _ref.keyExtractor,
17285
17306
  loading = _ref.loading,
@@ -17288,7 +17309,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
17288
17309
  sections = _ref.sections,
17289
17310
  renderItem = _ref.renderItem,
17290
17311
  sectionListRef = _ref.sectionListRef,
17291
- rest = _objectWithoutProperties(_ref, _excluded$d);
17312
+ rest = _objectWithoutProperties(_ref, _excluded$e);
17292
17313
  var theme = useTheme$1();
17293
17314
  var _useState = React.useState(false),
17294
17315
  _useState2 = _slicedToArray(_useState, 2),
@@ -17358,7 +17379,7 @@ var Option$2 = function Option(_ref) {
17358
17379
  return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
17359
17380
  };
17360
17381
 
17361
- var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17382
+ var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17362
17383
  var OptionList$1 = function OptionList(_ref) {
17363
17384
  var keyExtractor = _ref.keyExtractor,
17364
17385
  loading = _ref.loading,
@@ -17369,7 +17390,7 @@ var OptionList$1 = function OptionList(_ref) {
17369
17390
  renderOption = _ref.renderOption,
17370
17391
  value = _ref.value,
17371
17392
  sectionListRef = _ref.sectionListRef,
17372
- rest = _objectWithoutProperties(_ref, _excluded$c);
17393
+ rest = _objectWithoutProperties(_ref, _excluded$d);
17373
17394
  var renderItem = function renderItem(info) {
17374
17395
  var item = info.item;
17375
17396
  var selected = value.includes(info.item.value);
@@ -17560,7 +17581,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
17560
17581
  };
17561
17582
  });
17562
17583
 
17563
- var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17584
+ var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
17564
17585
  var OptionList = function OptionList(_ref) {
17565
17586
  var keyExtractor = _ref.keyExtractor,
17566
17587
  loading = _ref.loading,
@@ -17571,7 +17592,7 @@ var OptionList = function OptionList(_ref) {
17571
17592
  renderOption = _ref.renderOption,
17572
17593
  value = _ref.value,
17573
17594
  sectionListRef = _ref.sectionListRef,
17574
- rest = _objectWithoutProperties(_ref, _excluded$b);
17595
+ rest = _objectWithoutProperties(_ref, _excluded$c);
17575
17596
  var renderItem = function renderItem(info) {
17576
17597
  var item = info.item;
17577
17598
  var selected = item.value === value;
@@ -17739,7 +17760,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
17739
17760
  };
17740
17761
  });
17741
17762
 
17742
- var _excluded$a = ["intent", "variant", "style", "onLayout"];
17763
+ var _excluded$b = ["intent", "variant", "style", "onLayout"];
17743
17764
  var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default.default);
17744
17765
  var gradientPositions = {
17745
17766
  start: {
@@ -17771,7 +17792,7 @@ var Skeleton = function Skeleton(_ref) {
17771
17792
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
17772
17793
  style = _ref.style,
17773
17794
  onLayout = _ref.onLayout,
17774
- props = _objectWithoutProperties(_ref, _excluded$a);
17795
+ props = _objectWithoutProperties(_ref, _excluded$b);
17775
17796
  var theme = useTheme();
17776
17797
  var colors = React.useMemo(function () {
17777
17798
  return getGradientColors(theme, intent);
@@ -17903,7 +17924,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
17903
17924
  width: '100%'
17904
17925
  });
17905
17926
 
17906
- var _excluded$9 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17927
+ var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17907
17928
  var renderImage = function renderImage(image) {
17908
17929
  if ( /*#__PURE__*/React.isValidElement(image)) {
17909
17930
  return /*#__PURE__*/React__namespace.default.cloneElement(image, {
@@ -17929,7 +17950,7 @@ var SuccessPage = function SuccessPage(_ref) {
17929
17950
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
17930
17951
  secondaryCtaText = _ref.secondaryCtaText,
17931
17952
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
17932
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
17953
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
17933
17954
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
17934
17955
  return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
17935
17956
  testID: testID,
@@ -18947,7 +18968,7 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
18947
18968
  };
18948
18969
  });
18949
18970
 
18950
- var _excluded$8 = ["content", "variant", "intent", "style", "testID"];
18971
+ var _excluded$9 = ["content", "variant", "intent", "style", "testID"];
18951
18972
  var Tag = function Tag(_ref) {
18952
18973
  var content = _ref.content,
18953
18974
  _ref$variant = _ref.variant,
@@ -18956,7 +18977,7 @@ var Tag = function Tag(_ref) {
18956
18977
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
18957
18978
  style = _ref.style,
18958
18979
  testID = _ref.testID,
18959
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
18980
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
18960
18981
  useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
18961
18982
  return /*#__PURE__*/React__namespace.default.createElement(StyledView, _extends$1({}, nativeProps, {
18962
18983
  themeIntent: intent,
@@ -19192,6 +19213,56 @@ var StyledLabel = index$a(Typography.Body)(function (_ref6) {
19192
19213
  color: intent === 'secondary' ? theme.__hd__.toolbar.colors.secondary : theme.__hd__.typography.colors[intent]
19193
19214
  };
19194
19215
  });
19216
+ var ToolbarMessageWrapper = index$a(reactNative.View)(function (_ref7) {
19217
+ var theme = _ref7.theme;
19218
+ return {
19219
+ flex: 1,
19220
+ flexDirection: 'row',
19221
+ justifyContent: 'space-between',
19222
+ alignItems: 'center',
19223
+ height: theme.__hd__.toolbar.sizes.messageWrapperHeight,
19224
+ paddingVertical: theme.__hd__.toolbar.space.messageWrapperPaddingVertical,
19225
+ paddingHorizontal: theme.__hd__.toolbar.space.messageWrapperPaddingHorizontal
19226
+ };
19227
+ });
19228
+ var StyledInputContainer$1 = index$a(reactNative.View)(function (_ref8) {
19229
+ var theme = _ref8.theme;
19230
+ return {
19231
+ flexDirection: 'row',
19232
+ alignItems: 'center',
19233
+ flex: 1,
19234
+ backgroundColor: theme.__hd__.toolbar.colors.inputContainerBackground,
19235
+ borderRadius: theme.__hd__.toolbar.radii.messageContainer,
19236
+ height: theme.__hd__.toolbar.sizes.messageInputHeight,
19237
+ paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal,
19238
+ paddingVertical: theme.__hd__.toolbar.space.messageInputPaddingVertical
19239
+ };
19240
+ });
19241
+ var StyledInput$1 = index$a(reactNative.TextInput)(function (_ref9) {
19242
+ var theme = _ref9.theme;
19243
+ return {
19244
+ textAlignVertical: 'center',
19245
+ fontSize: theme.__hd__.toolbar.fontSizes.text,
19246
+ alignSelf: 'stretch',
19247
+ flexGrow: 1,
19248
+ flexShrink: 1,
19249
+ fontFamily: theme.__hd__.toolbar.fonts.text
19250
+ };
19251
+ });
19252
+ var StyledPrefix = index$a(reactNative.View)(function (_ref10) {
19253
+ var theme = _ref10.theme;
19254
+ return {
19255
+ marginRight: theme.__hd__.toolbar.space.affixInnerMargin,
19256
+ maxHeight: '100%'
19257
+ };
19258
+ });
19259
+ var StyledSuffix = index$a(reactNative.View)(function (_ref11) {
19260
+ var theme = _ref11.theme;
19261
+ return {
19262
+ marginLeft: theme.__hd__.toolbar.space.affixInnerMargin,
19263
+ maxHeight: '100%'
19264
+ };
19265
+ });
19195
19266
 
19196
19267
  var IconItem = function IconItem(_ref) {
19197
19268
  var icon = _ref.icon,
@@ -19281,6 +19352,92 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
19281
19352
  }));
19282
19353
  };
19283
19354
 
19355
+ var _excluded$8 = ["prefix", "suffix", "style", "testID", "value", "defaultValue", "disabled", "editable", "textStyle"];
19356
+ var getState$1 = function getState(_ref) {
19357
+ var disabled = _ref.disabled,
19358
+ editable = _ref.editable,
19359
+ isEmptyValue = _ref.isEmptyValue;
19360
+ switch (true) {
19361
+ case disabled:
19362
+ return 'disabled';
19363
+ case !editable:
19364
+ return 'readonly';
19365
+ case !isEmptyValue:
19366
+ return 'filled';
19367
+ default:
19368
+ return 'default';
19369
+ }
19370
+ };
19371
+ var ToolbarMessage = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
19372
+ var _ref2;
19373
+ var prefix = props.prefix,
19374
+ suffix = props.suffix,
19375
+ style = props.style,
19376
+ testID = props.testID,
19377
+ value = props.value,
19378
+ defaultValue = props.defaultValue,
19379
+ disabled = props.disabled,
19380
+ _props$editable = props.editable,
19381
+ editable = _props$editable === void 0 ? true : _props$editable,
19382
+ textStyle = props.textStyle,
19383
+ nativeProps = _objectWithoutProperties(props, _excluded$8);
19384
+ var innerTextInput = React__namespace.default.useRef();
19385
+ var displayText = (_ref2 = value !== undefined ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
19386
+ var isEmptyValue = displayText.length === 0;
19387
+ React__namespace.default.useImperativeHandle(forwardedRef, function () {
19388
+ return {
19389
+ isFocused: function isFocused() {
19390
+ var _innerTextInput$curre;
19391
+ return ((_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.isFocused()) || false;
19392
+ },
19393
+ getNativeTextInputRef: function getNativeTextInputRef() {
19394
+ return innerTextInput.current;
19395
+ },
19396
+ setNativeProps: function setNativeProps(args) {
19397
+ var _innerTextInput$curre2;
19398
+ return (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 ? void 0 : _innerTextInput$curre2.setNativeProps(args);
19399
+ },
19400
+ focus: function focus() {
19401
+ var _innerTextInput$curre3;
19402
+ return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.focus();
19403
+ },
19404
+ blur: function blur() {
19405
+ var _innerTextInput$curre4;
19406
+ return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.blur();
19407
+ },
19408
+ clear: function clear() {
19409
+ var _innerTextInput$curre5;
19410
+ return (_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.clear();
19411
+ }
19412
+ };
19413
+ }, [innerTextInput.current]);
19414
+ var state = getState$1({
19415
+ disabled: disabled,
19416
+ editable: editable,
19417
+ isEmptyValue: isEmptyValue
19418
+ });
19419
+ return /*#__PURE__*/React__namespace.default.createElement(ToolbarMessageWrapper, {
19420
+ testID: testID,
19421
+ style: style
19422
+ }, prefix && /*#__PURE__*/React__namespace.default.createElement(StyledPrefix, {
19423
+ testID: testID && "".concat(testID, "-prefix")
19424
+ }, prefix), /*#__PURE__*/React__namespace.default.createElement(StyledInputContainer$1, {
19425
+ pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
19426
+ testID: testID && "".concat(testID, "-input-container")
19427
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledInput$1, _extends$1({}, nativeProps, {
19428
+ value: value,
19429
+ defaultValue: defaultValue,
19430
+ editable: editable,
19431
+ testID: testID && "".concat(testID, "-input"),
19432
+ ref: function ref(rnTextInputRef) {
19433
+ innerTextInput.current = rnTextInputRef;
19434
+ },
19435
+ style: textStyle
19436
+ }))), suffix && /*#__PURE__*/React__namespace.default.createElement(StyledSuffix, {
19437
+ testID: testID && "".concat(testID, "-suffix")
19438
+ }, suffix));
19439
+ });
19440
+
19284
19441
  var _excluded$7 = ["children"];
19285
19442
  var Toolbar = function Toolbar(_ref) {
19286
19443
  var children = _ref.children,
@@ -19288,7 +19445,8 @@ var Toolbar = function Toolbar(_ref) {
19288
19445
  return /*#__PURE__*/React__namespace.default.createElement(ToolbarWrapper, rest, children);
19289
19446
  };
19290
19447
  var index$1 = Object.assign(Toolbar, {
19291
- Group: ToolbarGroup
19448
+ Group: ToolbarGroup,
19449
+ Message: ToolbarMessage
19292
19450
  });
19293
19451
 
19294
19452
  var AnimatedBox = reactNative.Animated.createAnimatedComponent(reactNative.View);