@hero-design/rn 8.29.5 → 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
@@ -2605,6 +2605,20 @@ var getRadioTheme = function getRadioTheme(theme) {
2605
2605
  };
2606
2606
  };
2607
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
+
2608
2622
  var getRefreshControlTheme = function getRefreshControlTheme(theme) {
2609
2623
  var colors = {
2610
2624
  indicator: theme.colors.primary
@@ -3188,6 +3202,7 @@ var getTheme$1 = function getTheme() {
3188
3202
  pinInput: getPinInputTheme(globalTheme),
3189
3203
  progress: getProgressTheme(globalTheme),
3190
3204
  radio: getRadioTheme(globalTheme),
3205
+ rate: getRateTheme(globalTheme),
3191
3206
  refreshControl: getRefreshControlTheme(globalTheme),
3192
3207
  richTextEditor: getRichTextEditorTheme(globalTheme),
3193
3208
  sectionHeading: getSectionHeadingTheme(globalTheme),
@@ -6105,7 +6120,7 @@ var useDeprecation = function useDeprecation(message) {
6105
6120
  }, [message, cond]);
6106
6121
  };
6107
6122
 
6108
- var StyledWrapper$c = index$a(reactNative.Animated.View)({
6123
+ var StyledWrapper$d = index$a(reactNative.Animated.View)({
6109
6124
  margin: 0,
6110
6125
  padding: 0,
6111
6126
  overflow: 'hidden'
@@ -6159,7 +6174,7 @@ var Collapse = function Collapse(_ref) {
6159
6174
  setComponentMounted(true);
6160
6175
  onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
6161
6176
  }, []);
6162
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$c, {
6177
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$d, {
6163
6178
  style: {
6164
6179
  height: open ? contentHeight : 0
6165
6180
  },
@@ -6173,7 +6188,7 @@ var Collapse = function Collapse(_ref) {
6173
6188
  }, children)));
6174
6189
  };
6175
6190
 
6176
- var StyledWrapper$b = index$a(reactNative.View)(function () {
6191
+ var StyledWrapper$c = index$a(reactNative.View)(function () {
6177
6192
  return {};
6178
6193
  });
6179
6194
  var StyledItemWrapper$1 = index$a(reactNative.View)(function (_ref) {
@@ -6226,7 +6241,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
6226
6241
  });
6227
6242
  });
6228
6243
 
6229
- var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6244
+ var _excluded$u = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6230
6245
  var Text = function Text(_ref) {
6231
6246
  var children = _ref.children,
6232
6247
  _ref$fontSize = _ref.fontSize,
@@ -6239,7 +6254,7 @@ var Text = function Text(_ref) {
6239
6254
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6240
6255
  _ref$allowFontScaling = _ref.allowFontScaling,
6241
6256
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6242
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
6257
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
6243
6258
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6244
6259
  themeFontSize: fontSize,
6245
6260
  themeFontWeight: fontWeight,
@@ -6764,10 +6779,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
6764
6779
  };
6765
6780
  });
6766
6781
 
6767
- var _excluded$s = ["style"];
6782
+ var _excluded$t = ["style"];
6768
6783
  var AnimatedIcon = function AnimatedIcon(_ref) {
6769
6784
  var style = _ref.style,
6770
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
6785
+ otherProps = _objectWithoutProperties(_ref, _excluded$t);
6771
6786
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
6772
6787
  React.useEffect(function () {
6773
6788
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
@@ -6873,7 +6888,7 @@ var AccordionItem = function AccordionItem(_ref) {
6873
6888
  }, content));
6874
6889
  };
6875
6890
 
6876
- var _excluded$r = ["key"];
6891
+ var _excluded$s = ["key"];
6877
6892
  var Accordion = function Accordion(_ref) {
6878
6893
  var items = _ref.items,
6879
6894
  activeItemKey = _ref.activeItemKey,
@@ -6889,12 +6904,12 @@ var Accordion = function Accordion(_ref) {
6889
6904
  _usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
6890
6905
  _activeItemKey = _usePropsOrInternalSt2[0],
6891
6906
  _onItemPress = _usePropsOrInternalSt2[1];
6892
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$b, {
6907
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$c, {
6893
6908
  style: style,
6894
6909
  testID: testID
6895
6910
  }, items.map(function (_ref2, index) {
6896
6911
  var key = _ref2.key,
6897
- props = _objectWithoutProperties(_ref2, _excluded$r);
6912
+ props = _objectWithoutProperties(_ref2, _excluded$s);
6898
6913
  var open = _activeItemKey === key;
6899
6914
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
6900
6915
  key: key
@@ -7077,7 +7092,7 @@ var Attachment = function Attachment(_ref) {
7077
7092
  })) : null);
7078
7093
  };
7079
7094
 
7080
- var StyledWrapper$a = index$a(reactNative.TouchableOpacity)(function (_ref) {
7095
+ var StyledWrapper$b = index$a(reactNative.TouchableOpacity)(function (_ref) {
7081
7096
  var themeSize = _ref.themeSize,
7082
7097
  themeIntent = _ref.themeIntent,
7083
7098
  theme = _ref.theme;
@@ -7146,7 +7161,7 @@ var Avatar = function Avatar(_ref) {
7146
7161
  hasImageError = _useState2[0],
7147
7162
  setHasImageError = _useState2[1];
7148
7163
  if (title === undefined && source === undefined) return null;
7149
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$a, {
7164
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$b, {
7150
7165
  testID: testID,
7151
7166
  onPress: onPress,
7152
7167
  disabled: onPress === undefined,
@@ -7170,7 +7185,7 @@ var Avatar = function Avatar(_ref) {
7170
7185
  };
7171
7186
 
7172
7187
  var VISIBLE_RATIO = 0.7;
7173
- var StyledWrapper$9 = index$a(reactNative.View)(function (_ref) {
7188
+ var StyledWrapper$a = index$a(reactNative.View)(function (_ref) {
7174
7189
  var theme = _ref.theme,
7175
7190
  themeSize = _ref.themeSize,
7176
7191
  themeAvatarCount = _ref.themeAvatarCount;
@@ -7232,7 +7247,7 @@ var AvatarStack = function AvatarStack(_ref) {
7232
7247
  });
7233
7248
  avatars.push(remainingAvatar);
7234
7249
  }
7235
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
7250
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$a, {
7236
7251
  themeSize: size,
7237
7252
  themeAvatarCount: avatars.length,
7238
7253
  style: style,
@@ -7292,7 +7307,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
7292
7307
  };
7293
7308
  });
7294
7309
 
7295
- var _excluded$q = ["children", "visible", "intent", "style", "testID"];
7310
+ var _excluded$r = ["children", "visible", "intent", "style", "testID"];
7296
7311
  var Status = function Status(_ref) {
7297
7312
  var children = _ref.children,
7298
7313
  _ref$visible = _ref.visible,
@@ -7301,7 +7316,7 @@ var Status = function Status(_ref) {
7301
7316
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7302
7317
  style = _ref.style,
7303
7318
  testID = _ref.testID,
7304
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7319
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7305
7320
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
7306
7321
  opacity = _React$useRef.current;
7307
7322
  var isFirstRendering = React__default["default"].useRef(true);
@@ -7334,7 +7349,7 @@ var Status = function Status(_ref) {
7334
7349
  }));
7335
7350
  };
7336
7351
 
7337
- var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
7352
+ var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
7338
7353
  var DEFAULT_MAX_NUMBER = 99;
7339
7354
  var getPaddingState = function getPaddingState(content) {
7340
7355
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7349,7 +7364,7 @@ var Badge = function Badge(_ref) {
7349
7364
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7350
7365
  style = _ref.style,
7351
7366
  testID = _ref.testID,
7352
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7367
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7353
7368
  var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
7354
7369
  opacity = _React$useRef.current;
7355
7370
  var isFirstRendering = React__default["default"].useRef(true);
@@ -7453,7 +7468,7 @@ function omit(keys, obj) {
7453
7468
  return result;
7454
7469
  }
7455
7470
 
7456
- var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7471
+ var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7457
7472
  var getInactiveIcon = function getInactiveIcon(icon) {
7458
7473
  var inactiveIcon = "".concat(icon, "-outlined");
7459
7474
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7464,7 +7479,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7464
7479
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7465
7480
  selectedTabKey = _ref.selectedTabKey,
7466
7481
  tabs = _ref.tabs,
7467
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7482
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7468
7483
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
7469
7484
  /**
7470
7485
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7551,13 +7566,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
7551
7566
  }, horizontalMargin), verticalMargin);
7552
7567
  });
7553
7568
 
7554
- var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
7569
+ var _excluded$o = ["marginHorizontal", "marginVertical", "style", "testID"];
7555
7570
  var Divider = function Divider(_ref) {
7556
7571
  var marginHorizontal = _ref.marginHorizontal,
7557
7572
  marginVertical = _ref.marginVertical,
7558
7573
  style = _ref.style,
7559
7574
  testID = _ref.testID,
7560
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7575
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7561
7576
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
7562
7577
  themeMarginHorizontal: marginHorizontal,
7563
7578
  themeMarginVertical: marginVertical,
@@ -7568,7 +7583,7 @@ var Divider = function Divider(_ref) {
7568
7583
 
7569
7584
  var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
7570
7585
  var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
7571
- 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), {}, {
7572
7587
  flexDirection: 'column-reverse'
7573
7588
  }));
7574
7589
  var StyledKeyboardAvoidingView = index$a(reactNative.KeyboardAvoidingView)(function () {
@@ -7621,7 +7636,7 @@ var StyledFooter = index$a(reactNative.View)(function (_ref4) {
7621
7636
  flexDirection: 'row'
7622
7637
  };
7623
7638
  });
7624
- var StyledIconWrapper$2 = index$a(reactNative.View)(function (_ref5) {
7639
+ var StyledIconWrapper$3 = index$a(reactNative.View)(function (_ref5) {
7625
7640
  var theme = _ref5.theme;
7626
7641
  return {
7627
7642
  alignItems: 'center',
@@ -7687,7 +7702,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref2) {
7687
7702
  }, themeStyling());
7688
7703
  });
7689
7704
 
7690
- var _excluded$m = ["count", "size", "testID", "themeVariant"];
7705
+ var _excluded$n = ["count", "size", "testID", "themeVariant"];
7691
7706
  var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7692
7707
  var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
7693
7708
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7719,7 +7734,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7719
7734
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7720
7735
  testID = _ref2.testID,
7721
7736
  themeVariant = _ref2.themeVariant,
7722
- nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
7737
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$n);
7723
7738
  var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
7724
7739
  React.useEffect(function () {
7725
7740
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
@@ -8137,7 +8152,7 @@ var Header = function Header(_ref) {
8137
8152
  style: {
8138
8153
  flex: 1
8139
8154
  }
8140
- }, 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, {
8141
8156
  icon: "cancel",
8142
8157
  onPress: onRequestClose,
8143
8158
  intent: "text",
@@ -8146,11 +8161,11 @@ var Header = function Header(_ref) {
8146
8161
  })) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
8147
8162
  };
8148
8163
 
8149
- var _excluded$l = ["scrollEventThrottle"];
8164
+ var _excluded$m = ["scrollEventThrottle"];
8150
8165
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8151
8166
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8152
8167
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8153
- props = _objectWithoutProperties(_ref, _excluded$l);
8168
+ props = _objectWithoutProperties(_ref, _excluded$m);
8154
8169
  var _useContext = React.useContext(BottomSheetContext),
8155
8170
  setInternalShowDivider = _useContext.setInternalShowDivider;
8156
8171
  var onScrollBeginDrag = React.useCallback(function (e) {
@@ -8258,7 +8273,7 @@ var BottomSheet = function BottomSheet(_ref) {
8258
8273
  transparent: true,
8259
8274
  testID: testID,
8260
8275
  onShow: onOpen
8261
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
8276
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
8262
8277
  pointerEvents: "box-none"
8263
8278
  }, /*#__PURE__*/React__default["default"].createElement(StyledKeyboardAvoidingView, _extends$1({
8264
8279
  behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
@@ -8465,7 +8480,7 @@ var borderWidths = {
8465
8480
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8466
8481
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8467
8482
 
8468
- var _excluded$k = ["theme"];
8483
+ var _excluded$l = ["theme"];
8469
8484
  var getThemeValue = function getThemeValue(theme, key, props) {
8470
8485
  var propConfig = config[key];
8471
8486
  var propValue = props[key];
@@ -8492,18 +8507,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8492
8507
  var configKeys = Object.keys(config);
8493
8508
  var StyledBox = index$a(reactNative.View)(function (_ref5) {
8494
8509
  var theme = _ref5.theme,
8495
- otherProps = _objectWithoutProperties(_ref5, _excluded$k);
8510
+ otherProps = _objectWithoutProperties(_ref5, _excluded$l);
8496
8511
  var styleProps = pick(configKeys, otherProps);
8497
8512
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8498
8513
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8499
8514
  });
8500
8515
 
8501
- var _excluded$j = ["children", "style", "testID"];
8516
+ var _excluded$k = ["children", "style", "testID"];
8502
8517
  var Box = function Box(_ref) {
8503
8518
  var children = _ref.children,
8504
8519
  style = _ref.style,
8505
8520
  testID = _ref.testID,
8506
- otherProps = _objectWithoutProperties(_ref, _excluded$j);
8521
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
8507
8522
  return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
8508
8523
  style: style,
8509
8524
  testID: testID
@@ -11071,7 +11086,7 @@ var Calendar = function Calendar(_ref) {
11071
11086
  })));
11072
11087
  };
11073
11088
 
11074
- var _excluded$i = ["rounded", "size", "testID", "style"];
11089
+ var _excluded$j = ["rounded", "size", "testID", "style"];
11075
11090
  var Image = function Image(_ref) {
11076
11091
  var _ref$rounded = _ref.rounded,
11077
11092
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11079,7 +11094,7 @@ var Image = function Image(_ref) {
11079
11094
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11080
11095
  testID = _ref.testID,
11081
11096
  style = _ref.style,
11082
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
11097
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
11083
11098
  var theme = useTheme();
11084
11099
  var imageSize = theme.__hd__.image.sizes[size];
11085
11100
  return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
@@ -11283,12 +11298,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
11283
11298
  };
11284
11299
  });
11285
11300
 
11286
- var _excluded$h = ["intent", "children"];
11301
+ var _excluded$i = ["intent", "children"];
11287
11302
  var DataCard = function DataCard(_ref) {
11288
11303
  var _ref$intent = _ref.intent,
11289
11304
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11290
11305
  children = _ref.children,
11291
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11306
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11292
11307
  return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
11293
11308
  themeIntent: intent,
11294
11309
  testID: "data-card-indicator"
@@ -11306,11 +11321,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
11306
11321
  });
11307
11322
  });
11308
11323
 
11309
- var _excluded$g = ["intent", "children"];
11324
+ var _excluded$h = ["intent", "children"];
11310
11325
  var Card = function Card(_ref) {
11311
11326
  var intent = _ref.intent,
11312
11327
  children = _ref.children,
11313
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11328
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11314
11329
  return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
11315
11330
  themeIntent: intent
11316
11331
  }), children);
@@ -11326,7 +11341,7 @@ var StyledPageControl = index$a(PageControl)(function (_ref) {
11326
11341
  marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
11327
11342
  };
11328
11343
  });
11329
- var StyledWrapper$7 = index$a(reactNative.View)({});
11344
+ var StyledWrapper$8 = index$a(reactNative.View)({});
11330
11345
  var StyledCard = index$a(Card$1)(function (_ref2) {
11331
11346
  var theme = _ref2.theme;
11332
11347
  return {
@@ -11462,7 +11477,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11462
11477
  }, /*#__PURE__*/React__default["default"].createElement(StyledShadow, null, /*#__PURE__*/React__default["default"].createElement(StyledCard, null, item)));
11463
11478
  }, [itemWidth]);
11464
11479
  var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
11465
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
11480
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
11466
11481
  style: style,
11467
11482
  testID: testID
11468
11483
  }, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
@@ -11516,7 +11531,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11516
11531
  }));
11517
11532
  });
11518
11533
 
11519
- var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11534
+ var _excluded$g = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11520
11535
  function useStateFromProp(initialValue) {
11521
11536
  var _useState = React.useState(initialValue),
11522
11537
  _useState2 = _slicedToArray(_useState, 2),
@@ -11541,7 +11556,7 @@ var Carousel = function Carousel(_ref) {
11541
11556
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11542
11557
  _ref$pageControlPosit = _ref.pageControlPosition,
11543
11558
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11544
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11559
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11545
11560
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11546
11561
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11547
11562
  var carouselRef = React.useRef(null);
@@ -11631,7 +11646,7 @@ var index$8 = Object.assign(Carousel, {
11631
11646
  Card: CardCarousel
11632
11647
  });
11633
11648
 
11634
- var StyledWrapper$6 = index$a(reactNative.TouchableOpacity)(function (_ref) {
11649
+ var StyledWrapper$7 = index$a(reactNative.TouchableOpacity)(function (_ref) {
11635
11650
  var theme = _ref.theme,
11636
11651
  themeWithBorder = _ref.themeWithBorder,
11637
11652
  themeDisabled = _ref.themeDisabled;
@@ -11688,7 +11703,7 @@ var Checkbox = function Checkbox(_ref) {
11688
11703
  onPress = _ref.onPress,
11689
11704
  style = _ref.style,
11690
11705
  testID = _ref.testID;
11691
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
11706
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
11692
11707
  onPress: onPress,
11693
11708
  disabled: disabled,
11694
11709
  themeDisabled: disabled,
@@ -11867,7 +11882,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
11867
11882
  };
11868
11883
  });
11869
11884
 
11870
- 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"];
11871
11886
  var getState$1 = function getState(_ref) {
11872
11887
  var disabled = _ref.disabled,
11873
11888
  error = _ref.error,
@@ -11919,7 +11934,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11919
11934
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11920
11935
  _ref2$variant = _ref2.variant,
11921
11936
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
11922
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
11937
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
11923
11938
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11924
11939
  var isEmptyValue = displayText.length === 0;
11925
11940
  var actualSuffix = loading ? 'loading' : suffix;
@@ -12354,11 +12369,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12354
12369
  }))));
12355
12370
  };
12356
12371
 
12357
- var _excluded$d = ["variant"];
12372
+ var _excluded$e = ["variant"];
12358
12373
  var DatePicker = function DatePicker(_ref) {
12359
12374
  var _ref$variant = _ref.variant,
12360
12375
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12361
- props = _objectWithoutProperties(_ref, _excluded$d);
12376
+ props = _objectWithoutProperties(_ref, _excluded$e);
12362
12377
  if (variant === 'calendar') {
12363
12378
  return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
12364
12379
  }
@@ -12655,7 +12670,7 @@ var index$7 = Object.assign(Drawer, {
12655
12670
  Dragable: DragableDrawer
12656
12671
  });
12657
12672
 
12658
- var StyledWrapper$5 = index$a(reactNative.View)(function (_ref) {
12673
+ var StyledWrapper$6 = index$a(reactNative.View)(function (_ref) {
12659
12674
  var theme = _ref.theme;
12660
12675
  return {
12661
12676
  display: 'flex',
@@ -12697,7 +12712,7 @@ var Empty = function Empty(_ref) {
12697
12712
  _ref$variant = _ref.variant,
12698
12713
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
12699
12714
  var theme = useTheme();
12700
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
12715
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
12701
12716
  style: style,
12702
12717
  testID: testID
12703
12718
  }, image !== undefined && /*#__PURE__*/React__default["default"].cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
@@ -12799,7 +12814,7 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
12799
12814
  };
12800
12815
  });
12801
12816
 
12802
- 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"],
12803
12818
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
12804
12819
  var renderImage$1 = function renderImage(image) {
12805
12820
  if ( /*#__PURE__*/React.isValidElement(image)) {
@@ -12825,7 +12840,7 @@ var ErrorPage = function ErrorPage(_ref) {
12825
12840
  onCtaPress = _ref.onCtaPress,
12826
12841
  secondaryCtaText = _ref.secondaryCtaText,
12827
12842
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
12828
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
12843
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
12829
12844
  var showCta = ctaText && onCtaPress !== undefined;
12830
12845
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
12831
12846
  var showButtonContainer = showCta || showSecondaryCta;
@@ -12981,11 +12996,11 @@ var StyledIconContainer = index$a(Box)(function (_ref4) {
12981
12996
  };
12982
12997
  });
12983
12998
 
12984
- var _excluded$b = ["active"];
12999
+ var _excluded$c = ["active"];
12985
13000
  var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
12986
13001
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
12987
13002
  var active = _ref.active,
12988
- iconProps = _objectWithoutProperties(_ref, _excluded$b);
13003
+ iconProps = _objectWithoutProperties(_ref, _excluded$c);
12989
13004
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
12990
13005
  React.useEffect(function () {
12991
13006
  var animation = reactNative.Animated.timing(rotateAnimation.current, {
@@ -13430,7 +13445,7 @@ var List = {
13430
13445
  BasicItem: BasicListItem
13431
13446
  };
13432
13447
 
13433
- var StyledWrapper$4 = index$a(reactNative.View)(function () {
13448
+ var StyledWrapper$5 = index$a(reactNative.View)(function () {
13434
13449
  return {
13435
13450
  alignContent: 'flex-start'
13436
13451
  };
@@ -13614,7 +13629,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
13614
13629
  blur: blur
13615
13630
  };
13616
13631
  });
13617
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
13632
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
13618
13633
  style: style,
13619
13634
  testID: testID
13620
13635
  }, /*#__PURE__*/React__default["default"].createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -13731,7 +13746,7 @@ var StyledStrokeEnd = index$a(reactNative.View)(function (_ref6) {
13731
13746
  };
13732
13747
  });
13733
13748
 
13734
- var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
13749
+ var _excluded$b = ["value", "renderValue", "intent", "style", "testID"];
13735
13750
  var HalfCircle = function HalfCircle(_ref) {
13736
13751
  var type = _ref.type,
13737
13752
  themeIntent = _ref.themeIntent;
@@ -13752,7 +13767,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13752
13767
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
13753
13768
  style = _ref2.style,
13754
13769
  testID = _ref2.testID,
13755
- nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
13770
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
13756
13771
  var theme = useTheme$1();
13757
13772
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
13758
13773
  var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
@@ -13849,7 +13864,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13849
13864
  }, renderValue(value)))));
13850
13865
  };
13851
13866
 
13852
- var StyledWrapper$3 = index$a(reactNative.View)(function (_ref) {
13867
+ var StyledWrapper$4 = index$a(reactNative.View)(function (_ref) {
13853
13868
  var theme = _ref.theme,
13854
13869
  themeIntent = _ref.themeIntent;
13855
13870
  return {
@@ -13869,14 +13884,14 @@ var StyledInner = index$a(reactNative.Animated.View)(function (_ref2) {
13869
13884
  };
13870
13885
  });
13871
13886
 
13872
- var _excluded$9 = ["value", "intent", "style", "testID"];
13887
+ var _excluded$a = ["value", "intent", "style", "testID"];
13873
13888
  var ProgressBar = function ProgressBar(_ref) {
13874
13889
  var value = _ref.value,
13875
13890
  _ref$intent = _ref.intent,
13876
13891
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13877
13892
  style = _ref.style,
13878
13893
  testID = _ref.testID,
13879
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
13894
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
13880
13895
  var _useState = React.useState(0),
13881
13896
  _useState2 = _slicedToArray(_useState, 2),
13882
13897
  width = _useState2[0],
@@ -13902,7 +13917,7 @@ var ProgressBar = function ProgressBar(_ref) {
13902
13917
  outputRange: [999, 0],
13903
13918
  extrapolate: 'clamp'
13904
13919
  });
13905
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
13920
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
13906
13921
  testID: testID,
13907
13922
  style: style,
13908
13923
  themeIntent: intent
@@ -14067,14 +14082,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
14067
14082
  }, dotProps))));
14068
14083
  };
14069
14084
 
14070
- var _excluded$8 = ["testID", "size", "intent"];
14085
+ var _excluded$9 = ["testID", "size", "intent"];
14071
14086
  var Spinner = function Spinner(_ref) {
14072
14087
  var testID = _ref.testID,
14073
14088
  _ref$size = _ref.size,
14074
14089
  size = _ref$size === void 0 ? 'medium' : _ref$size,
14075
14090
  _ref$intent = _ref.intent,
14076
14091
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14077
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
14092
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14078
14093
  return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
14079
14094
  testID: testID
14080
14095
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
@@ -14107,7 +14122,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
14107
14122
  }, children);
14108
14123
  };
14109
14124
 
14110
- var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14125
+ var _excluded$8 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14111
14126
  var renderActions = function renderActions(actions, width, progress, direction) {
14112
14127
  var trans = progress.interpolate({
14113
14128
  inputRange: [0, 1],
@@ -14132,7 +14147,7 @@ var Swipeable = function Swipeable(_ref) {
14132
14147
  leftActionsWidth = _ref.leftActionsWidth,
14133
14148
  rightActions = _ref.rightActions,
14134
14149
  rightActionsWidth = _ref.rightActionsWidth,
14135
- swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
14150
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14136
14151
  var _useWindowDimensions = reactNative.useWindowDimensions(),
14137
14152
  width = _useWindowDimensions.width;
14138
14153
  var swipeableRef = React.useRef(null);
@@ -14285,13 +14300,13 @@ var StyledHeading = index$a(reactNative.View)(function (_ref) {
14285
14300
  justifyContent: 'space-between'
14286
14301
  };
14287
14302
  });
14288
- var StyledIconWrapper$1 = index$a(reactNative.View)(function (_ref2) {
14303
+ var StyledIconWrapper$2 = index$a(reactNative.View)(function (_ref2) {
14289
14304
  var theme = _ref2.theme;
14290
14305
  return {
14291
14306
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
14292
14307
  };
14293
14308
  });
14294
- var StyledWrapper$2 = index$a(reactNative.View)(function () {
14309
+ var StyledWrapper$3 = index$a(reactNative.View)(function () {
14295
14310
  return {
14296
14311
  display: 'flex',
14297
14312
  flexDirection: 'row'
@@ -14324,7 +14339,7 @@ var SectionHeading = function SectionHeading(_ref) {
14324
14339
  return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
14325
14340
  style: style,
14326
14341
  testID: testID
14327
- }, /*#__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, {
14328
14343
  icon: icon,
14329
14344
  size: ICON_SIZE_MAP[fontSize],
14330
14345
  intent: ICON_INTENT_MAP[intent]
@@ -14437,7 +14452,7 @@ var StyledSectionList = index$a(reactNative.SectionList)(function (_ref4) {
14437
14452
  };
14438
14453
  });
14439
14454
 
14440
- var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14455
+ var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14441
14456
  var BaseOptionList = function BaseOptionList(_ref) {
14442
14457
  var keyExtractor = _ref.keyExtractor,
14443
14458
  loading = _ref.loading,
@@ -14446,7 +14461,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
14446
14461
  sections = _ref.sections,
14447
14462
  renderItem = _ref.renderItem,
14448
14463
  sectionListRef = _ref.sectionListRef,
14449
- rest = _objectWithoutProperties(_ref, _excluded$6);
14464
+ rest = _objectWithoutProperties(_ref, _excluded$7);
14450
14465
  var theme = useTheme$1();
14451
14466
  var _useState = React.useState(false),
14452
14467
  _useState2 = _slicedToArray(_useState, 2),
@@ -14515,7 +14530,7 @@ var Option$2 = function Option(_ref) {
14515
14530
  return highlighted === true ? /*#__PURE__*/React__default["default"].createElement(List.Item, props) : /*#__PURE__*/React__default["default"].createElement(List.BasicItem, props);
14516
14531
  };
14517
14532
 
14518
- 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"];
14519
14534
  var OptionList$1 = function OptionList(_ref) {
14520
14535
  var keyExtractor = _ref.keyExtractor,
14521
14536
  loading = _ref.loading,
@@ -14526,7 +14541,7 @@ var OptionList$1 = function OptionList(_ref) {
14526
14541
  renderOption = _ref.renderOption,
14527
14542
  value = _ref.value,
14528
14543
  sectionListRef = _ref.sectionListRef,
14529
- rest = _objectWithoutProperties(_ref, _excluded$5);
14544
+ rest = _objectWithoutProperties(_ref, _excluded$6);
14530
14545
  var renderItem = function renderItem(info) {
14531
14546
  var item = info.item;
14532
14547
  var selected = value.includes(info.item.value);
@@ -14714,7 +14729,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
14714
14729
  };
14715
14730
  });
14716
14731
 
14717
- 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"];
14718
14733
  var OptionList = function OptionList(_ref) {
14719
14734
  var keyExtractor = _ref.keyExtractor,
14720
14735
  loading = _ref.loading,
@@ -14725,7 +14740,7 @@ var OptionList = function OptionList(_ref) {
14725
14740
  renderOption = _ref.renderOption,
14726
14741
  value = _ref.value,
14727
14742
  sectionListRef = _ref.sectionListRef,
14728
- rest = _objectWithoutProperties(_ref, _excluded$4);
14743
+ rest = _objectWithoutProperties(_ref, _excluded$5);
14729
14744
  var renderItem = function renderItem(info) {
14730
14745
  var item = info.item;
14731
14746
  var selected = item.value === value;
@@ -14890,7 +14905,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
14890
14905
  };
14891
14906
  });
14892
14907
 
14893
- var _excluded$3 = ["intent", "variant", "style", "onLayout"];
14908
+ var _excluded$4 = ["intent", "variant", "style", "onLayout"];
14894
14909
  var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default["default"]);
14895
14910
  var gradientPositions = {
14896
14911
  start: {
@@ -14922,7 +14937,7 @@ var Skeleton = function Skeleton(_ref) {
14922
14937
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
14923
14938
  style = _ref.style,
14924
14939
  onLayout = _ref.onLayout,
14925
- props = _objectWithoutProperties(_ref, _excluded$3);
14940
+ props = _objectWithoutProperties(_ref, _excluded$4);
14926
14941
  var theme = useTheme();
14927
14942
  var colors = React.useMemo(function () {
14928
14943
  return getGradientColors(theme, intent);
@@ -15065,7 +15080,7 @@ var StyledSuccessModal = index$a(reactNative.Modal)({
15065
15080
  width: '100%'
15066
15081
  });
15067
15082
 
15068
- 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"];
15069
15084
  var renderImage = function renderImage(image) {
15070
15085
  if ( /*#__PURE__*/React.isValidElement(image)) {
15071
15086
  return /*#__PURE__*/React__default["default"].cloneElement(image, {
@@ -15091,7 +15106,7 @@ var SuccessPage = function SuccessPage(_ref) {
15091
15106
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
15092
15107
  secondaryCtaText = _ref.secondaryCtaText,
15093
15108
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
15094
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15109
+ nativeProps = _objectWithoutProperties(_ref, _excluded$3);
15095
15110
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
15096
15111
  return /*#__PURE__*/React__default["default"].createElement(StyledSuccessContainer, _extends$1({
15097
15112
  testID: testID,
@@ -15122,7 +15137,7 @@ var Success = function Success(props) {
15122
15137
  };
15123
15138
 
15124
15139
  var AnimatedView = reactNative.Animated.createAnimatedComponent(reactNative.View);
15125
- var StyledWrapper$1 = index$a(reactNative.View)(function (_ref) {
15140
+ var StyledWrapper$2 = index$a(reactNative.View)(function (_ref) {
15126
15141
  var theme = _ref.theme;
15127
15142
  return {
15128
15143
  flexDirection: 'row',
@@ -15144,7 +15159,7 @@ var StyledTextWrapper = index$a(AnimatedView)(function (_ref2) {
15144
15159
  zIndex: 1
15145
15160
  };
15146
15161
  });
15147
- var StyledIconWrapper = index$a(AnimatedView)(function (_ref3) {
15162
+ var StyledIconWrapper$1 = index$a(AnimatedView)(function (_ref3) {
15148
15163
  var theme = _ref3.theme;
15149
15164
  return {
15150
15165
  paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
@@ -15220,7 +15235,7 @@ var Option = function Option(_ref2) {
15220
15235
  badge: badge
15221
15236
  }));
15222
15237
  }
15223
- return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, {
15238
+ return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, {
15224
15239
  style: {
15225
15240
  transform: [{
15226
15241
  translateX: translateX
@@ -15276,7 +15291,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15276
15291
  return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
15277
15292
  },
15278
15293
  testID: testID
15279
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
15294
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, {
15280
15295
  onLayout: onContainerLayout,
15281
15296
  style: style
15282
15297
  }, options.map(function (opt, index) {
@@ -15300,7 +15315,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15300
15315
  })));
15301
15316
  };
15302
15317
 
15303
- var StyledWrapper = index$a(reactNative.View)(function (_ref) {
15318
+ var StyledWrapper$1 = index$a(reactNative.View)(function (_ref) {
15304
15319
  var theme = _ref.theme,
15305
15320
  themeVariant = _ref.themeVariant;
15306
15321
  return {
@@ -15362,7 +15377,7 @@ var Switch = function Switch(_ref2) {
15362
15377
  testID: testID,
15363
15378
  onPress: onPress,
15364
15379
  disabled: disabled
15365
- }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
15380
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
15366
15381
  themeVariant: variant,
15367
15382
  style: style
15368
15383
  }, /*#__PURE__*/React__default["default"].createElement(StyledKnot, {
@@ -15983,7 +15998,7 @@ var StyledText = index$a(Typography.Text)(function (_ref3) {
15983
15998
  };
15984
15999
  });
15985
16000
 
15986
- var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
16001
+ var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
15987
16002
  var Tag = function Tag(_ref) {
15988
16003
  var content = _ref.content,
15989
16004
  _ref$variant = _ref.variant,
@@ -15992,7 +16007,7 @@ var Tag = function Tag(_ref) {
15992
16007
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
15993
16008
  style = _ref.style,
15994
16009
  testID = _ref.testID,
15995
- nativeProps = _objectWithoutProperties(_ref, _excluded$1);
16010
+ nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15996
16011
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
15997
16012
  themeIntent: intent,
15998
16013
  themeVariant: variant,
@@ -16608,16 +16623,76 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
16608
16623
  }));
16609
16624
  };
16610
16625
 
16611
- var _excluded = ["children"];
16626
+ var _excluded$1 = ["children"];
16612
16627
  var Toolbar = function Toolbar(_ref) {
16613
16628
  var children = _ref.children,
16614
- rest = _objectWithoutProperties(_ref, _excluded);
16629
+ rest = _objectWithoutProperties(_ref, _excluded$1);
16615
16630
  return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, rest, children);
16616
16631
  };
16617
16632
  var index$1 = Object.assign(Toolbar, {
16618
16633
  Group: ToolbarGroup
16619
16634
  });
16620
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
+
16621
16696
  var RefreshControl = function RefreshControl(_ref) {
16622
16697
  var props = _extends$1({}, _ref);
16623
16698
  var theme = useTheme();
@@ -33032,6 +33107,7 @@ exports.PageControl = PageControl;
33032
33107
  exports.PinInput = PinInput;
33033
33108
  exports.Progress = Progress;
33034
33109
  exports.Radio = CompoundRadio;
33110
+ exports.Rate = Rate;
33035
33111
  exports.RefreshControl = RefreshControl;
33036
33112
  exports.RichTextEditor = index;
33037
33113
  exports.SectionHeading = SectionHeading;