@hero-design/rn 8.29.4 → 8.30.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
@@ -1114,14 +1114,16 @@ Object.assign(Object.assign({}, palette$b), {
1114
1114
  violetDark50: violet$1.darken50
1115
1115
  });
1116
1116
  var apple$4 = colorScales.apple,
1117
- hitPink$1 = colorScales.hitPink;
1117
+ hitPink$1 = colorScales.hitPink,
1118
+ maasstrichtBlue$4 = colorScales.maasstrichtBlue;
1118
1119
  Object.assign(Object.assign({}, palette$b), {
1119
1120
  apple: apple$4.base,
1120
1121
  appleDark20: apple$4.darken20,
1121
1122
  appleDark50: apple$4.darken50,
1122
1123
  appleLight90: apple$4.lighten90,
1123
1124
  hitPink: hitPink$1.base,
1124
- hitPinkLight80: hitPink$1.lighten80
1125
+ hitPinkLight80: hitPink$1.lighten80,
1126
+ maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
1125
1127
  });
1126
1128
  var aliceBlue$1 = colorScales.aliceBlue,
1127
1129
  antiFlashWhite$1 = colorScales.antiFlashWhite,
@@ -2603,6 +2605,20 @@ var getRadioTheme = function getRadioTheme(theme) {
2603
2605
  };
2604
2606
  };
2605
2607
 
2608
+ var getRateTheme = function getRateTheme(theme) {
2609
+ var colors = {
2610
+ iconStroke: theme.colors.primary
2611
+ };
2612
+ var spaces = {
2613
+ iconWrapperPadding: theme.space.small,
2614
+ iconWrapperMarginRight: theme.space.xsmall
2615
+ };
2616
+ return {
2617
+ colors: colors,
2618
+ spaces: spaces
2619
+ };
2620
+ };
2621
+
2606
2622
  var getRefreshControlTheme = function getRefreshControlTheme(theme) {
2607
2623
  var colors = {
2608
2624
  indicator: theme.colors.primary
@@ -3186,6 +3202,7 @@ var getTheme$1 = function getTheme() {
3186
3202
  pinInput: getPinInputTheme(globalTheme),
3187
3203
  progress: getProgressTheme(globalTheme),
3188
3204
  radio: getRadioTheme(globalTheme),
3205
+ rate: getRateTheme(globalTheme),
3189
3206
  refreshControl: getRefreshControlTheme(globalTheme),
3190
3207
  richTextEditor: getRichTextEditorTheme(globalTheme),
3191
3208
  sectionHeading: getSectionHeadingTheme(globalTheme),
@@ -6103,7 +6120,7 @@ var useDeprecation = function useDeprecation(message) {
6103
6120
  }, [message, cond]);
6104
6121
  };
6105
6122
 
6106
- var StyledWrapper$c = index$a(reactNative.Animated.View)({
6123
+ var StyledWrapper$d = index$a(reactNative.Animated.View)({
6107
6124
  margin: 0,
6108
6125
  padding: 0,
6109
6126
  overflow: 'hidden'
@@ -6157,7 +6174,7 @@ var Collapse = function Collapse(_ref) {
6157
6174
  setComponentMounted(true);
6158
6175
  onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
6159
6176
  }, []);
6160
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$c, {
6177
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$d, {
6161
6178
  style: {
6162
6179
  height: open ? contentHeight : 0
6163
6180
  },
@@ -6171,7 +6188,7 @@ var Collapse = function Collapse(_ref) {
6171
6188
  }, children)));
6172
6189
  };
6173
6190
 
6174
- var StyledWrapper$b = index$a(reactNative.View)(function () {
6191
+ var StyledWrapper$c = index$a(reactNative.View)(function () {
6175
6192
  return {};
6176
6193
  });
6177
6194
  var StyledItemWrapper$1 = index$a(reactNative.View)(function (_ref) {
@@ -6224,7 +6241,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
6224
6241
  });
6225
6242
  });
6226
6243
 
6227
- var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6244
+ var _excluded$u = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6228
6245
  var Text = function Text(_ref) {
6229
6246
  var children = _ref.children,
6230
6247
  _ref$fontSize = _ref.fontSize,
@@ -6237,7 +6254,7 @@ var Text = function Text(_ref) {
6237
6254
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6238
6255
  _ref$allowFontScaling = _ref.allowFontScaling,
6239
6256
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6240
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
6257
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
6241
6258
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6242
6259
  themeFontSize: fontSize,
6243
6260
  themeFontWeight: fontWeight,
@@ -6762,10 +6779,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
6762
6779
  };
6763
6780
  });
6764
6781
 
6765
- var _excluded$s = ["style"];
6782
+ var _excluded$t = ["style"];
6766
6783
  var AnimatedIcon = function AnimatedIcon(_ref) {
6767
6784
  var style = _ref.style,
6768
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
6785
+ otherProps = _objectWithoutProperties(_ref, _excluded$t);
6769
6786
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
6770
6787
  React.useEffect(function () {
6771
6788
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -6871,7 +6888,7 @@ var AccordionItem = function AccordionItem(_ref) {
6871
6888
  }, content));
6872
6889
  };
6873
6890
 
6874
- var _excluded$r = ["key"];
6891
+ var _excluded$s = ["key"];
6875
6892
  var Accordion = function Accordion(_ref) {
6876
6893
  var items = _ref.items,
6877
6894
  activeItemKey = _ref.activeItemKey,
@@ -6887,12 +6904,12 @@ var Accordion = function Accordion(_ref) {
6887
6904
  _usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
6888
6905
  _activeItemKey = _usePropsOrInternalSt2[0],
6889
6906
  _onItemPress = _usePropsOrInternalSt2[1];
6890
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$b, {
6907
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$c, {
6891
6908
  style: style,
6892
6909
  testID: testID
6893
6910
  }, items.map(function (_ref2, index) {
6894
6911
  var key = _ref2.key,
6895
- props = _objectWithoutProperties(_ref2, _excluded$r);
6912
+ props = _objectWithoutProperties(_ref2, _excluded$s);
6896
6913
  var open = _activeItemKey === key;
6897
6914
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
6898
6915
  key: key
@@ -7075,7 +7092,7 @@ var Attachment = function Attachment(_ref) {
7075
7092
  })) : null);
7076
7093
  };
7077
7094
 
7078
- var StyledWrapper$a = index$a(reactNative.TouchableOpacity)(function (_ref) {
7095
+ var StyledWrapper$b = index$a(reactNative.TouchableOpacity)(function (_ref) {
7079
7096
  var themeSize = _ref.themeSize,
7080
7097
  themeIntent = _ref.themeIntent,
7081
7098
  theme = _ref.theme;
@@ -7144,7 +7161,7 @@ var Avatar = function Avatar(_ref) {
7144
7161
  hasImageError = _useState2[0],
7145
7162
  setHasImageError = _useState2[1];
7146
7163
  if (title === undefined && source === undefined) return null;
7147
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$a, {
7164
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$b, {
7148
7165
  testID: testID,
7149
7166
  onPress: onPress,
7150
7167
  disabled: onPress === undefined,
@@ -7168,7 +7185,7 @@ var Avatar = function Avatar(_ref) {
7168
7185
  };
7169
7186
 
7170
7187
  var VISIBLE_RATIO = 0.7;
7171
- var StyledWrapper$9 = index$a(reactNative.View)(function (_ref) {
7188
+ var StyledWrapper$a = index$a(reactNative.View)(function (_ref) {
7172
7189
  var theme = _ref.theme,
7173
7190
  themeSize = _ref.themeSize,
7174
7191
  themeAvatarCount = _ref.themeAvatarCount;
@@ -7230,7 +7247,7 @@ var AvatarStack = function AvatarStack(_ref) {
7230
7247
  });
7231
7248
  avatars.push(remainingAvatar);
7232
7249
  }
7233
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
7250
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$a, {
7234
7251
  themeSize: size,
7235
7252
  themeAvatarCount: avatars.length,
7236
7253
  style: style,
@@ -7290,7 +7307,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
7290
7307
  };
7291
7308
  });
7292
7309
 
7293
- var _excluded$q = ["children", "visible", "intent", "style", "testID"];
7310
+ var _excluded$r = ["children", "visible", "intent", "style", "testID"];
7294
7311
  var Status = function Status(_ref) {
7295
7312
  var children = _ref.children,
7296
7313
  _ref$visible = _ref.visible,
@@ -7299,7 +7316,7 @@ var Status = function Status(_ref) {
7299
7316
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7300
7317
  style = _ref.style,
7301
7318
  testID = _ref.testID,
7302
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7319
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7303
7320
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
7304
7321
  opacity = _React$useRef.current;
7305
7322
  var isFirstRendering = React__default["default"].useRef(true);
@@ -7332,7 +7349,7 @@ var Status = function Status(_ref) {
7332
7349
  }));
7333
7350
  };
7334
7351
 
7335
- var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
7352
+ var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
7336
7353
  var DEFAULT_MAX_NUMBER = 99;
7337
7354
  var getPaddingState = function getPaddingState(content) {
7338
7355
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7347,7 +7364,7 @@ var Badge = function Badge(_ref) {
7347
7364
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7348
7365
  style = _ref.style,
7349
7366
  testID = _ref.testID,
7350
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7367
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7351
7368
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
7352
7369
  opacity = _React$useRef.current;
7353
7370
  var isFirstRendering = React__default["default"].useRef(true);
@@ -7451,7 +7468,7 @@ function omit(keys, obj) {
7451
7468
  return result;
7452
7469
  }
7453
7470
 
7454
- var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7471
+ var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7455
7472
  var getInactiveIcon = function getInactiveIcon(icon) {
7456
7473
  var inactiveIcon = "".concat(icon, "-outlined");
7457
7474
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7462,7 +7479,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7462
7479
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7463
7480
  selectedTabKey = _ref.selectedTabKey,
7464
7481
  tabs = _ref.tabs,
7465
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7482
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7466
7483
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
7467
7484
  /**
7468
7485
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7549,13 +7566,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
7549
7566
  }, horizontalMargin), verticalMargin);
7550
7567
  });
7551
7568
 
7552
- var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
7569
+ var _excluded$o = ["marginHorizontal", "marginVertical", "style", "testID"];
7553
7570
  var Divider = function Divider(_ref) {
7554
7571
  var marginHorizontal = _ref.marginHorizontal,
7555
7572
  marginVertical = _ref.marginVertical,
7556
7573
  style = _ref.style,
7557
7574
  testID = _ref.testID,
7558
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7575
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7559
7576
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
7560
7577
  themeMarginHorizontal: marginHorizontal,
7561
7578
  themeMarginVertical: marginVertical,
@@ -7566,7 +7583,7 @@ var Divider = function Divider(_ref) {
7566
7583
 
7567
7584
  var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
7568
7585
  var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
7569
- var StyledWrapper$8 = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
7586
+ var StyledWrapper$9 = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
7570
7587
  flexDirection: 'column-reverse'
7571
7588
  }));
7572
7589
  var StyledKeyboardAvoidingView = index$a(reactNative.KeyboardAvoidingView)(function () {
@@ -7619,7 +7636,7 @@ var StyledFooter = index$a(reactNative.View)(function (_ref4) {
7619
7636
  flexDirection: 'row'
7620
7637
  };
7621
7638
  });
7622
- var StyledIconWrapper$2 = index$a(reactNative.View)(function (_ref5) {
7639
+ var StyledIconWrapper$3 = index$a(reactNative.View)(function (_ref5) {
7623
7640
  var theme = _ref5.theme;
7624
7641
  return {
7625
7642
  alignItems: 'center',
@@ -7685,7 +7702,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref2) {
7685
7702
  }, themeStyling());
7686
7703
  });
7687
7704
 
7688
- var _excluded$m = ["count", "size", "testID", "themeVariant"];
7705
+ var _excluded$n = ["count", "size", "testID", "themeVariant"];
7689
7706
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7690
7707
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
7691
7708
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7717,7 +7734,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7717
7734
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7718
7735
  testID = _ref2.testID,
7719
7736
  themeVariant = _ref2.themeVariant,
7720
- nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
7737
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$n);
7721
7738
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
7722
7739
  React.useEffect(function () {
7723
7740
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
@@ -8135,7 +8152,7 @@ var Header = function Header(_ref) {
8135
8152
  style: {
8136
8153
  flex: 1
8137
8154
  }
8138
- }, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
8155
+ }, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
8139
8156
  icon: "cancel",
8140
8157
  onPress: onRequestClose,
8141
8158
  intent: "text",
@@ -8144,11 +8161,11 @@ var Header = function Header(_ref) {
8144
8161
  })) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
8145
8162
  };
8146
8163
 
8147
- var _excluded$l = ["scrollEventThrottle"];
8164
+ var _excluded$m = ["scrollEventThrottle"];
8148
8165
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8149
8166
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8150
8167
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8151
- props = _objectWithoutProperties(_ref, _excluded$l);
8168
+ props = _objectWithoutProperties(_ref, _excluded$m);
8152
8169
  var _useContext = React.useContext(BottomSheetContext),
8153
8170
  setInternalShowDivider = _useContext.setInternalShowDivider;
8154
8171
  var onScrollBeginDrag = React.useCallback(function (e) {
@@ -8256,7 +8273,7 @@ var BottomSheet = function BottomSheet(_ref) {
8256
8273
  transparent: true,
8257
8274
  testID: testID,
8258
8275
  onShow: onOpen
8259
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
8276
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
8260
8277
  pointerEvents: "box-none"
8261
8278
  }, /*#__PURE__*/React__default["default"].createElement(StyledKeyboardAvoidingView, _extends$1({
8262
8279
  behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
@@ -8463,7 +8480,7 @@ var borderWidths = {
8463
8480
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8464
8481
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8465
8482
 
8466
- var _excluded$k = ["theme"];
8483
+ var _excluded$l = ["theme"];
8467
8484
  var getThemeValue = function getThemeValue(theme, key, props) {
8468
8485
  var propConfig = config[key];
8469
8486
  var propValue = props[key];
@@ -8490,18 +8507,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8490
8507
  var configKeys = Object.keys(config);
8491
8508
  var StyledBox = index$a(reactNative.View)(function (_ref5) {
8492
8509
  var theme = _ref5.theme,
8493
- otherProps = _objectWithoutProperties(_ref5, _excluded$k);
8510
+ otherProps = _objectWithoutProperties(_ref5, _excluded$l);
8494
8511
  var styleProps = pick(configKeys, otherProps);
8495
8512
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8496
8513
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8497
8514
  });
8498
8515
 
8499
- var _excluded$j = ["children", "style", "testID"];
8516
+ var _excluded$k = ["children", "style", "testID"];
8500
8517
  var Box = function Box(_ref) {
8501
8518
  var children = _ref.children,
8502
8519
  style = _ref.style,
8503
8520
  testID = _ref.testID,
8504
- otherProps = _objectWithoutProperties(_ref, _excluded$j);
8521
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
8505
8522
  return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
8506
8523
  style: style,
8507
8524
  testID: testID
@@ -11069,7 +11086,7 @@ var Calendar = function Calendar(_ref) {
11069
11086
  })));
11070
11087
  };
11071
11088
 
11072
- var _excluded$i = ["rounded", "size", "testID", "style"];
11089
+ var _excluded$j = ["rounded", "size", "testID", "style"];
11073
11090
  var Image = function Image(_ref) {
11074
11091
  var _ref$rounded = _ref.rounded,
11075
11092
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11077,7 +11094,7 @@ var Image = function Image(_ref) {
11077
11094
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11078
11095
  testID = _ref.testID,
11079
11096
  style = _ref.style,
11080
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
11097
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
11081
11098
  var theme = useTheme();
11082
11099
  var imageSize = theme.__hd__.image.sizes[size];
11083
11100
  return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
@@ -11281,12 +11298,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
11281
11298
  };
11282
11299
  });
11283
11300
 
11284
- var _excluded$h = ["intent", "children"];
11301
+ var _excluded$i = ["intent", "children"];
11285
11302
  var DataCard = function DataCard(_ref) {
11286
11303
  var _ref$intent = _ref.intent,
11287
11304
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11288
11305
  children = _ref.children,
11289
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11306
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11290
11307
  return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
11291
11308
  themeIntent: intent,
11292
11309
  testID: "data-card-indicator"
@@ -11304,11 +11321,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
11304
11321
  });
11305
11322
  });
11306
11323
 
11307
- var _excluded$g = ["intent", "children"];
11324
+ var _excluded$h = ["intent", "children"];
11308
11325
  var Card = function Card(_ref) {
11309
11326
  var intent = _ref.intent,
11310
11327
  children = _ref.children,
11311
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11328
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11312
11329
  return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
11313
11330
  themeIntent: intent
11314
11331
  }), children);
@@ -11324,7 +11341,7 @@ var StyledPageControl = index$a(PageControl)(function (_ref) {
11324
11341
  marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
11325
11342
  };
11326
11343
  });
11327
- var StyledWrapper$7 = index$a(reactNative.View)({});
11344
+ var StyledWrapper$8 = index$a(reactNative.View)({});
11328
11345
  var StyledCard = index$a(Card$1)(function (_ref2) {
11329
11346
  var theme = _ref2.theme;
11330
11347
  return {
@@ -11460,7 +11477,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11460
11477
  }, /*#__PURE__*/React__default["default"].createElement(StyledShadow, null, /*#__PURE__*/React__default["default"].createElement(StyledCard, null, item)));
11461
11478
  }, [itemWidth]);
11462
11479
  var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
11463
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
11480
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
11464
11481
  style: style,
11465
11482
  testID: testID
11466
11483
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
@@ -11514,7 +11531,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11514
11531
  }));
11515
11532
  });
11516
11533
 
11517
- var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11534
+ var _excluded$g = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11518
11535
  function useStateFromProp(initialValue) {
11519
11536
  var _useState = React.useState(initialValue),
11520
11537
  _useState2 = _slicedToArray(_useState, 2),
@@ -11539,7 +11556,7 @@ var Carousel = function Carousel(_ref) {
11539
11556
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11540
11557
  _ref$pageControlPosit = _ref.pageControlPosition,
11541
11558
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11542
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11559
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11543
11560
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11544
11561
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11545
11562
  var carouselRef = React.useRef(null);
@@ -11629,7 +11646,7 @@ var index$8 = Object.assign(Carousel, {
11629
11646
  Card: CardCarousel
11630
11647
  });
11631
11648
 
11632
- var StyledWrapper$6 = index$a(reactNative.TouchableOpacity)(function (_ref) {
11649
+ var StyledWrapper$7 = index$a(reactNative.TouchableOpacity)(function (_ref) {
11633
11650
  var theme = _ref.theme,
11634
11651
  themeWithBorder = _ref.themeWithBorder,
11635
11652
  themeDisabled = _ref.themeDisabled;
@@ -11686,7 +11703,7 @@ var Checkbox = function Checkbox(_ref) {
11686
11703
  onPress = _ref.onPress,
11687
11704
  style = _ref.style,
11688
11705
  testID = _ref.testID;
11689
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
11706
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
11690
11707
  onPress: onPress,
11691
11708
  disabled: disabled,
11692
11709
  themeDisabled: disabled,
@@ -11865,7 +11882,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
11865
11882
  };
11866
11883
  });
11867
11884
 
11868
- var _excluded$e = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
11885
+ var _excluded$f = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
11869
11886
  var getState$1 = function getState(_ref) {
11870
11887
  var disabled = _ref.disabled,
11871
11888
  error = _ref.error,
@@ -11917,7 +11934,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11917
11934
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11918
11935
  _ref2$variant = _ref2.variant,
11919
11936
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
11920
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
11937
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
11921
11938
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11922
11939
  var isEmptyValue = displayText.length === 0;
11923
11940
  var actualSuffix = loading ? 'loading' : suffix;
@@ -12352,11 +12369,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12352
12369
  }))));
12353
12370
  };
12354
12371
 
12355
- var _excluded$d = ["variant"];
12372
+ var _excluded$e = ["variant"];
12356
12373
  var DatePicker = function DatePicker(_ref) {
12357
12374
  var _ref$variant = _ref.variant,
12358
12375
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12359
- props = _objectWithoutProperties(_ref, _excluded$d);
12376
+ props = _objectWithoutProperties(_ref, _excluded$e);
12360
12377
  if (variant === 'calendar') {
12361
12378
  return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
12362
12379
  }
@@ -12653,7 +12670,7 @@ var index$7 = Object.assign(Drawer, {
12653
12670
  Dragable: DragableDrawer
12654
12671
  });
12655
12672
 
12656
- var StyledWrapper$5 = index$a(reactNative.View)(function (_ref) {
12673
+ var StyledWrapper$6 = index$a(reactNative.View)(function (_ref) {
12657
12674
  var theme = _ref.theme;
12658
12675
  return {
12659
12676
  display: 'flex',
@@ -12695,7 +12712,7 @@ var Empty = function Empty(_ref) {
12695
12712
  _ref$variant = _ref.variant,
12696
12713
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
12697
12714
  var theme = useTheme();
12698
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
12715
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
12699
12716
  style: style,
12700
12717
  testID: testID
12701
12718
  }, image !== undefined && /*#__PURE__*/React__default["default"].cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
@@ -12797,7 +12814,7 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
12797
12814
  };
12798
12815
  });
12799
12816
 
12800
- var _excluded$c = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12817
+ var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12801
12818
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
12802
12819
  var renderImage$1 = function renderImage(image) {
12803
12820
  if ( /*#__PURE__*/React.isValidElement(image)) {
@@ -12823,7 +12840,7 @@ var ErrorPage = function ErrorPage(_ref) {
12823
12840
  onCtaPress = _ref.onCtaPress,
12824
12841
  secondaryCtaText = _ref.secondaryCtaText,
12825
12842
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
12826
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
12843
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
12827
12844
  var showCta = ctaText && onCtaPress !== undefined;
12828
12845
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
12829
12846
  var showButtonContainer = showCta || showSecondaryCta;
@@ -12979,11 +12996,11 @@ var StyledIconContainer = index$a(Box)(function (_ref4) {
12979
12996
  };
12980
12997
  });
12981
12998
 
12982
- var _excluded$b = ["active"];
12999
+ var _excluded$c = ["active"];
12983
13000
  var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
12984
13001
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
12985
13002
  var active = _ref.active,
12986
- iconProps = _objectWithoutProperties(_ref, _excluded$b);
13003
+ iconProps = _objectWithoutProperties(_ref, _excluded$c);
12987
13004
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
12988
13005
  React.useEffect(function () {
12989
13006
  var animation = reactNative.Animated.timing(rotateAnimation.current, {
@@ -13428,7 +13445,7 @@ var List = {
13428
13445
  BasicItem: BasicListItem
13429
13446
  };
13430
13447
 
13431
- var StyledWrapper$4 = index$a(reactNative.View)(function () {
13448
+ var StyledWrapper$5 = index$a(reactNative.View)(function () {
13432
13449
  return {
13433
13450
  alignContent: 'flex-start'
13434
13451
  };
@@ -13612,7 +13629,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
13612
13629
  blur: blur
13613
13630
  };
13614
13631
  });
13615
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
13632
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
13616
13633
  style: style,
13617
13634
  testID: testID
13618
13635
  }, /*#__PURE__*/React__default["default"].createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -13729,7 +13746,7 @@ var StyledStrokeEnd = index$a(reactNative.View)(function (_ref6) {
13729
13746
  };
13730
13747
  });
13731
13748
 
13732
- var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
13749
+ var _excluded$b = ["value", "renderValue", "intent", "style", "testID"];
13733
13750
  var HalfCircle = function HalfCircle(_ref) {
13734
13751
  var type = _ref.type,
13735
13752
  themeIntent = _ref.themeIntent;
@@ -13750,7 +13767,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13750
13767
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
13751
13768
  style = _ref2.style,
13752
13769
  testID = _ref2.testID,
13753
- nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
13770
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
13754
13771
  var theme = useTheme$1();
13755
13772
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
13756
13773
  var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
@@ -13847,7 +13864,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13847
13864
  }, renderValue(value)))));
13848
13865
  };
13849
13866
 
13850
- var StyledWrapper$3 = index$a(reactNative.View)(function (_ref) {
13867
+ var StyledWrapper$4 = index$a(reactNative.View)(function (_ref) {
13851
13868
  var theme = _ref.theme,
13852
13869
  themeIntent = _ref.themeIntent;
13853
13870
  return {
@@ -13867,14 +13884,14 @@ var StyledInner = index$a(reactNative.Animated.View)(function (_ref2) {
13867
13884
  };
13868
13885
  });
13869
13886
 
13870
- var _excluded$9 = ["value", "intent", "style", "testID"];
13887
+ var _excluded$a = ["value", "intent", "style", "testID"];
13871
13888
  var ProgressBar = function ProgressBar(_ref) {
13872
13889
  var value = _ref.value,
13873
13890
  _ref$intent = _ref.intent,
13874
13891
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13875
13892
  style = _ref.style,
13876
13893
  testID = _ref.testID,
13877
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
13894
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
13878
13895
  var _useState = React.useState(0),
13879
13896
  _useState2 = _slicedToArray(_useState, 2),
13880
13897
  width = _useState2[0],
@@ -13900,7 +13917,7 @@ var ProgressBar = function ProgressBar(_ref) {
13900
13917
  outputRange: [999, 0],
13901
13918
  extrapolate: 'clamp'
13902
13919
  });
13903
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
13920
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
13904
13921
  testID: testID,
13905
13922
  style: style,
13906
13923
  themeIntent: intent
@@ -14065,14 +14082,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
14065
14082
  }, dotProps))));
14066
14083
  };
14067
14084
 
14068
- var _excluded$8 = ["testID", "size", "intent"];
14085
+ var _excluded$9 = ["testID", "size", "intent"];
14069
14086
  var Spinner = function Spinner(_ref) {
14070
14087
  var testID = _ref.testID,
14071
14088
  _ref$size = _ref.size,
14072
14089
  size = _ref$size === void 0 ? 'medium' : _ref$size,
14073
14090
  _ref$intent = _ref.intent,
14074
14091
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14075
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
14092
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14076
14093
  return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
14077
14094
  testID: testID
14078
14095
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
@@ -14105,7 +14122,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
14105
14122
  }, children);
14106
14123
  };
14107
14124
 
14108
- var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14125
+ var _excluded$8 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14109
14126
  var renderActions = function renderActions(actions, width, progress, direction) {
14110
14127
  var trans = progress.interpolate({
14111
14128
  inputRange: [0, 1],
@@ -14130,7 +14147,7 @@ var Swipeable = function Swipeable(_ref) {
14130
14147
  leftActionsWidth = _ref.leftActionsWidth,
14131
14148
  rightActions = _ref.rightActions,
14132
14149
  rightActionsWidth = _ref.rightActionsWidth,
14133
- swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
14150
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14134
14151
  var _useWindowDimensions = reactNative.useWindowDimensions(),
14135
14152
  width = _useWindowDimensions.width;
14136
14153
  var swipeableRef = React.useRef(null);
@@ -14283,13 +14300,13 @@ var StyledHeading = index$a(reactNative.View)(function (_ref) {
14283
14300
  justifyContent: 'space-between'
14284
14301
  };
14285
14302
  });
14286
- var StyledIconWrapper$1 = index$a(reactNative.View)(function (_ref2) {
14303
+ var StyledIconWrapper$2 = index$a(reactNative.View)(function (_ref2) {
14287
14304
  var theme = _ref2.theme;
14288
14305
  return {
14289
14306
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
14290
14307
  };
14291
14308
  });
14292
- var StyledWrapper$2 = index$a(reactNative.View)(function () {
14309
+ var StyledWrapper$3 = index$a(reactNative.View)(function () {
14293
14310
  return {
14294
14311
  display: 'flex',
14295
14312
  flexDirection: 'row'
@@ -14322,7 +14339,7 @@ var SectionHeading = function SectionHeading(_ref) {
14322
14339
  return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
14323
14340
  style: style,
14324
14341
  testID: testID
14325
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
14342
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
14326
14343
  icon: icon,
14327
14344
  size: ICON_SIZE_MAP[fontSize],
14328
14345
  intent: ICON_INTENT_MAP[intent]
@@ -14435,7 +14452,7 @@ var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
14435
14452
  };
14436
14453
  });
14437
14454
 
14438
- var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14455
+ var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14439
14456
  var BaseOptionList = function BaseOptionList(_ref) {
14440
14457
  var keyExtractor = _ref.keyExtractor,
14441
14458
  loading = _ref.loading,
@@ -14444,7 +14461,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
14444
14461
  sections = _ref.sections,
14445
14462
  renderItem = _ref.renderItem,
14446
14463
  sectionListRef = _ref.sectionListRef,
14447
- rest = _objectWithoutProperties(_ref, _excluded$6);
14464
+ rest = _objectWithoutProperties(_ref, _excluded$7);
14448
14465
  var theme = useTheme$1();
14449
14466
  var _useState = React.useState(false),
14450
14467
  _useState2 = _slicedToArray(_useState, 2),
@@ -14513,7 +14530,7 @@ var Option$2 = function Option(_ref) {
14513
14530
  return highlighted === true ? /*#__PURE__*/React__default["default"].createElement(List.Item, props) : /*#__PURE__*/React__default["default"].createElement(List.BasicItem, props);
14514
14531
  };
14515
14532
 
14516
- var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14533
+ var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14517
14534
  var OptionList$1 = function OptionList(_ref) {
14518
14535
  var keyExtractor = _ref.keyExtractor,
14519
14536
  loading = _ref.loading,
@@ -14524,7 +14541,7 @@ var OptionList$1 = function OptionList(_ref) {
14524
14541
  renderOption = _ref.renderOption,
14525
14542
  value = _ref.value,
14526
14543
  sectionListRef = _ref.sectionListRef,
14527
- rest = _objectWithoutProperties(_ref, _excluded$5);
14544
+ rest = _objectWithoutProperties(_ref, _excluded$6);
14528
14545
  var renderItem = function renderItem(info) {
14529
14546
  var item = info.item;
14530
14547
  var selected = value.includes(info.item.value);
@@ -14712,7 +14729,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
14712
14729
  };
14713
14730
  });
14714
14731
 
14715
- var _excluded$4 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14732
+ var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14716
14733
  var OptionList = function OptionList(_ref) {
14717
14734
  var keyExtractor = _ref.keyExtractor,
14718
14735
  loading = _ref.loading,
@@ -14723,7 +14740,7 @@ var OptionList = function OptionList(_ref) {
14723
14740
  renderOption = _ref.renderOption,
14724
14741
  value = _ref.value,
14725
14742
  sectionListRef = _ref.sectionListRef,
14726
- rest = _objectWithoutProperties(_ref, _excluded$4);
14743
+ rest = _objectWithoutProperties(_ref, _excluded$5);
14727
14744
  var renderItem = function renderItem(info) {
14728
14745
  var item = info.item;
14729
14746
  var selected = item.value === value;
@@ -14888,7 +14905,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
14888
14905
  };
14889
14906
  });
14890
14907
 
14891
- var _excluded$3 = ["intent", "variant", "style", "onLayout"];
14908
+ var _excluded$4 = ["intent", "variant", "style", "onLayout"];
14892
14909
  var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default["default"]);
14893
14910
  var gradientPositions = {
14894
14911
  start: {
@@ -14920,7 +14937,7 @@ var Skeleton = function Skeleton(_ref) {
14920
14937
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
14921
14938
  style = _ref.style,
14922
14939
  onLayout = _ref.onLayout,
14923
- props = _objectWithoutProperties(_ref, _excluded$3);
14940
+ props = _objectWithoutProperties(_ref, _excluded$4);
14924
14941
  var theme = useTheme();
14925
14942
  var colors = React.useMemo(function () {
14926
14943
  return getGradientColors(theme, intent);
@@ -15063,7 +15080,7 @@ var StyledSuccessModal = index$a(reactNative.Modal)({
15063
15080
  width: '100%'
15064
15081
  });
15065
15082
 
15066
- var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15083
+ var _excluded$3 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15067
15084
  var renderImage = function renderImage(image) {
15068
15085
  if ( /*#__PURE__*/React.isValidElement(image)) {
15069
15086
  return /*#__PURE__*/React__default["default"].cloneElement(image, {
@@ -15089,7 +15106,7 @@ var SuccessPage = function SuccessPage(_ref) {
15089
15106
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
15090
15107
  secondaryCtaText = _ref.secondaryCtaText,
15091
15108
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
15092
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15109
+ nativeProps = _objectWithoutProperties(_ref, _excluded$3);
15093
15110
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
15094
15111
  return /*#__PURE__*/React__default["default"].createElement(StyledSuccessContainer, _extends$1({
15095
15112
  testID: testID,
@@ -15120,7 +15137,7 @@ var Success = function Success(props) {
15120
15137
  };
15121
15138
 
15122
15139
  var AnimatedView = reactNative.Animated.createAnimatedComponent(reactNative.View);
15123
- var StyledWrapper$1 = index$a(reactNative.View)(function (_ref) {
15140
+ var StyledWrapper$2 = index$a(reactNative.View)(function (_ref) {
15124
15141
  var theme = _ref.theme;
15125
15142
  return {
15126
15143
  flexDirection: 'row',
@@ -15142,7 +15159,7 @@ var StyledTextWrapper = index$a(AnimatedView)(function (_ref2) {
15142
15159
  zIndex: 1
15143
15160
  };
15144
15161
  });
15145
- var StyledIconWrapper = index$a(AnimatedView)(function (_ref3) {
15162
+ var StyledIconWrapper$1 = index$a(AnimatedView)(function (_ref3) {
15146
15163
  var theme = _ref3.theme;
15147
15164
  return {
15148
15165
  paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
@@ -15218,7 +15235,7 @@ var Option = function Option(_ref2) {
15218
15235
  badge: badge
15219
15236
  }));
15220
15237
  }
15221
- return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, {
15238
+ return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, {
15222
15239
  style: {
15223
15240
  transform: [{
15224
15241
  translateX: translateX
@@ -15274,7 +15291,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15274
15291
  return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
15275
15292
  },
15276
15293
  testID: testID
15277
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
15294
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, {
15278
15295
  onLayout: onContainerLayout,
15279
15296
  style: style
15280
15297
  }, options.map(function (opt, index) {
@@ -15298,7 +15315,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15298
15315
  })));
15299
15316
  };
15300
15317
 
15301
- var StyledWrapper = index$a(reactNative.View)(function (_ref) {
15318
+ var StyledWrapper$1 = index$a(reactNative.View)(function (_ref) {
15302
15319
  var theme = _ref.theme,
15303
15320
  themeVariant = _ref.themeVariant;
15304
15321
  return {
@@ -15360,7 +15377,7 @@ var Switch = function Switch(_ref2) {
15360
15377
  testID: testID,
15361
15378
  onPress: onPress,
15362
15379
  disabled: disabled
15363
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
15380
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
15364
15381
  themeVariant: variant,
15365
15382
  style: style
15366
15383
  }, /*#__PURE__*/React__default["default"].createElement(StyledKnot, {
@@ -15981,7 +15998,7 @@ var StyledText = index$a(Typography.Text)(function (_ref3) {
15981
15998
  };
15982
15999
  });
15983
16000
 
15984
- var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
16001
+ var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
15985
16002
  var Tag = function Tag(_ref) {
15986
16003
  var content = _ref.content,
15987
16004
  _ref$variant = _ref.variant,
@@ -15990,7 +16007,7 @@ var Tag = function Tag(_ref) {
15990
16007
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
15991
16008
  style = _ref.style,
15992
16009
  testID = _ref.testID,
15993
- nativeProps = _objectWithoutProperties(_ref, _excluded$1);
16010
+ nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15994
16011
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
15995
16012
  themeIntent: intent,
15996
16013
  themeVariant: variant,
@@ -16606,16 +16623,76 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
16606
16623
  }));
16607
16624
  };
16608
16625
 
16609
- var _excluded = ["children"];
16626
+ var _excluded$1 = ["children"];
16610
16627
  var Toolbar = function Toolbar(_ref) {
16611
16628
  var children = _ref.children,
16612
- rest = _objectWithoutProperties(_ref, _excluded);
16629
+ rest = _objectWithoutProperties(_ref, _excluded$1);
16613
16630
  return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, rest, children);
16614
16631
  };
16615
16632
  var index$1 = Object.assign(Toolbar, {
16616
16633
  Group: ToolbarGroup
16617
16634
  });
16618
16635
 
16636
+ var AnimatedBox = reactNative.Animated.createAnimatedComponent(reactNative.View);
16637
+ var StyledWrapper = index$a(Box)({
16638
+ flexDirection: 'row'
16639
+ });
16640
+ var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
16641
+ var theme = _ref.theme;
16642
+ return {
16643
+ padding: theme.__hd__.rate.spaces.iconWrapperPadding,
16644
+ marginRight: theme.__hd__.rate.spaces.iconWrapperMarginRight
16645
+ };
16646
+ });
16647
+
16648
+ var _excluded = ["options", "value", "onChange", "readonly", "disabled"];
16649
+ var Rate = function Rate(_ref) {
16650
+ var options = _ref.options,
16651
+ value = _ref.value,
16652
+ onChange = _ref.onChange,
16653
+ _ref$readonly = _ref.readonly,
16654
+ readonly = _ref$readonly === void 0 ? false : _ref$readonly,
16655
+ _ref$disabled = _ref.disabled,
16656
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
16657
+ otherProps = _objectWithoutProperties(_ref, _excluded);
16658
+ var valueIndex = React.useMemo(function () {
16659
+ return options.findIndex(function (item) {
16660
+ return item.value === value;
16661
+ });
16662
+ }, [value, options]);
16663
+ var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
16664
+ var scale = animatedValue.interpolate({
16665
+ inputRange: [0, 1],
16666
+ outputRange: [0.8, 1]
16667
+ });
16668
+ React.useEffect(function () {
16669
+ animatedValue.setValue(0);
16670
+ reactNative.Animated.spring(animatedValue, {
16671
+ toValue: 1,
16672
+ useNativeDriver: reactNative.Platform.OS !== 'web'
16673
+ }).start();
16674
+ }, [value, animatedValue]);
16675
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
16676
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.Pressable, {
16677
+ key: item.value,
16678
+ disabled: disabled || readonly,
16679
+ onPress: function onPress() {
16680
+ return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
16681
+ },
16682
+ testID: item.value.toString()
16683
+ }, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, {
16684
+ style: valueIndex === index && {
16685
+ transform: [{
16686
+ scale: scale
16687
+ }]
16688
+ }
16689
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
16690
+ icon: index <= valueIndex ? 'star' : 'star-outlined',
16691
+ intent: disabled ? 'disabled-text' : 'primary'
16692
+ })));
16693
+ }));
16694
+ };
16695
+
16619
16696
  var RefreshControl = function RefreshControl(_ref) {
16620
16697
  var props = _extends$1({}, _ref);
16621
16698
  var theme = useTheme();
@@ -33030,6 +33107,7 @@ exports.PageControl = PageControl;
33030
33107
  exports.PinInput = PinInput;
33031
33108
  exports.Progress = Progress;
33032
33109
  exports.Radio = CompoundRadio;
33110
+ exports.Rate = Rate;
33033
33111
  exports.RefreshControl = RefreshControl;
33034
33112
  exports.RichTextEditor = index;
33035
33113
  exports.SectionHeading = SectionHeading;