@hero-design/rn 8.29.5 → 8.30.1

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/es/index.js CHANGED
@@ -2575,6 +2575,20 @@ var getRadioTheme = function getRadioTheme(theme) {
2575
2575
  };
2576
2576
  };
2577
2577
 
2578
+ var getRateTheme = function getRateTheme(theme) {
2579
+ var colors = {
2580
+ iconStroke: theme.colors.primary
2581
+ };
2582
+ var spaces = {
2583
+ iconWrapperPadding: theme.space.small,
2584
+ iconWrapperMarginRight: theme.space.xsmall
2585
+ };
2586
+ return {
2587
+ colors: colors,
2588
+ spaces: spaces
2589
+ };
2590
+ };
2591
+
2578
2592
  var getRefreshControlTheme = function getRefreshControlTheme(theme) {
2579
2593
  var colors = {
2580
2594
  indicator: theme.colors.primary
@@ -3158,6 +3172,7 @@ var getTheme$1 = function getTheme() {
3158
3172
  pinInput: getPinInputTheme(globalTheme),
3159
3173
  progress: getProgressTheme(globalTheme),
3160
3174
  radio: getRadioTheme(globalTheme),
3175
+ rate: getRateTheme(globalTheme),
3161
3176
  refreshControl: getRefreshControlTheme(globalTheme),
3162
3177
  richTextEditor: getRichTextEditorTheme(globalTheme),
3163
3178
  sectionHeading: getSectionHeadingTheme(globalTheme),
@@ -6075,7 +6090,7 @@ var useDeprecation = function useDeprecation(message) {
6075
6090
  }, [message, cond]);
6076
6091
  };
6077
6092
 
6078
- var StyledWrapper$c = index$a(Animated.View)({
6093
+ var StyledWrapper$d = index$a(Animated.View)({
6079
6094
  margin: 0,
6080
6095
  padding: 0,
6081
6096
  overflow: 'hidden'
@@ -6129,7 +6144,7 @@ var Collapse = function Collapse(_ref) {
6129
6144
  setComponentMounted(true);
6130
6145
  onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
6131
6146
  }, []);
6132
- return /*#__PURE__*/React.createElement(StyledWrapper$c, {
6147
+ return /*#__PURE__*/React.createElement(StyledWrapper$d, {
6133
6148
  style: {
6134
6149
  height: open ? contentHeight : 0
6135
6150
  },
@@ -6143,7 +6158,7 @@ var Collapse = function Collapse(_ref) {
6143
6158
  }, children)));
6144
6159
  };
6145
6160
 
6146
- var StyledWrapper$b = index$a(View)(function () {
6161
+ var StyledWrapper$c = index$a(View)(function () {
6147
6162
  return {};
6148
6163
  });
6149
6164
  var StyledItemWrapper$1 = index$a(View)(function (_ref) {
@@ -6196,7 +6211,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
6196
6211
  });
6197
6212
  });
6198
6213
 
6199
- var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6214
+ var _excluded$u = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6200
6215
  var Text = function Text(_ref) {
6201
6216
  var children = _ref.children,
6202
6217
  _ref$fontSize = _ref.fontSize,
@@ -6209,7 +6224,7 @@ var Text = function Text(_ref) {
6209
6224
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6210
6225
  _ref$allowFontScaling = _ref.allowFontScaling,
6211
6226
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6212
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
6227
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
6213
6228
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6214
6229
  themeFontSize: fontSize,
6215
6230
  themeFontWeight: fontWeight,
@@ -6734,10 +6749,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
6734
6749
  };
6735
6750
  });
6736
6751
 
6737
- var _excluded$s = ["style"];
6752
+ var _excluded$t = ["style"];
6738
6753
  var AnimatedIcon = function AnimatedIcon(_ref) {
6739
6754
  var style = _ref.style,
6740
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
6755
+ otherProps = _objectWithoutProperties(_ref, _excluded$t);
6741
6756
  var rotateAnimation = useRef(new Animated.Value(0));
6742
6757
  useEffect(function () {
6743
6758
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -6843,7 +6858,7 @@ var AccordionItem = function AccordionItem(_ref) {
6843
6858
  }, content));
6844
6859
  };
6845
6860
 
6846
- var _excluded$r = ["key"];
6861
+ var _excluded$s = ["key"];
6847
6862
  var Accordion = function Accordion(_ref) {
6848
6863
  var items = _ref.items,
6849
6864
  activeItemKey = _ref.activeItemKey,
@@ -6859,12 +6874,12 @@ var Accordion = function Accordion(_ref) {
6859
6874
  _usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
6860
6875
  _activeItemKey = _usePropsOrInternalSt2[0],
6861
6876
  _onItemPress = _usePropsOrInternalSt2[1];
6862
- return /*#__PURE__*/React.createElement(StyledWrapper$b, {
6877
+ return /*#__PURE__*/React.createElement(StyledWrapper$c, {
6863
6878
  style: style,
6864
6879
  testID: testID
6865
6880
  }, items.map(function (_ref2, index) {
6866
6881
  var key = _ref2.key,
6867
- props = _objectWithoutProperties(_ref2, _excluded$r);
6882
+ props = _objectWithoutProperties(_ref2, _excluded$s);
6868
6883
  var open = _activeItemKey === key;
6869
6884
  return /*#__PURE__*/React.createElement(React.Fragment, {
6870
6885
  key: key
@@ -7047,7 +7062,7 @@ var Attachment = function Attachment(_ref) {
7047
7062
  })) : null);
7048
7063
  };
7049
7064
 
7050
- var StyledWrapper$a = index$a(TouchableOpacity)(function (_ref) {
7065
+ var StyledWrapper$b = index$a(TouchableOpacity)(function (_ref) {
7051
7066
  var themeSize = _ref.themeSize,
7052
7067
  themeIntent = _ref.themeIntent,
7053
7068
  theme = _ref.theme;
@@ -7116,7 +7131,7 @@ var Avatar = function Avatar(_ref) {
7116
7131
  hasImageError = _useState2[0],
7117
7132
  setHasImageError = _useState2[1];
7118
7133
  if (title === undefined && source === undefined) return null;
7119
- return /*#__PURE__*/React.createElement(StyledWrapper$a, {
7134
+ return /*#__PURE__*/React.createElement(StyledWrapper$b, {
7120
7135
  testID: testID,
7121
7136
  onPress: onPress,
7122
7137
  disabled: onPress === undefined,
@@ -7140,7 +7155,7 @@ var Avatar = function Avatar(_ref) {
7140
7155
  };
7141
7156
 
7142
7157
  var VISIBLE_RATIO = 0.7;
7143
- var StyledWrapper$9 = index$a(View)(function (_ref) {
7158
+ var StyledWrapper$a = index$a(View)(function (_ref) {
7144
7159
  var theme = _ref.theme,
7145
7160
  themeSize = _ref.themeSize,
7146
7161
  themeAvatarCount = _ref.themeAvatarCount;
@@ -7202,7 +7217,7 @@ var AvatarStack = function AvatarStack(_ref) {
7202
7217
  });
7203
7218
  avatars.push(remainingAvatar);
7204
7219
  }
7205
- return /*#__PURE__*/React.createElement(StyledWrapper$9, {
7220
+ return /*#__PURE__*/React.createElement(StyledWrapper$a, {
7206
7221
  themeSize: size,
7207
7222
  themeAvatarCount: avatars.length,
7208
7223
  style: style,
@@ -7262,7 +7277,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
7262
7277
  };
7263
7278
  });
7264
7279
 
7265
- var _excluded$q = ["children", "visible", "intent", "style", "testID"];
7280
+ var _excluded$r = ["children", "visible", "intent", "style", "testID"];
7266
7281
  var Status = function Status(_ref) {
7267
7282
  var children = _ref.children,
7268
7283
  _ref$visible = _ref.visible,
@@ -7271,7 +7286,7 @@ var Status = function Status(_ref) {
7271
7286
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7272
7287
  style = _ref.style,
7273
7288
  testID = _ref.testID,
7274
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7289
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7275
7290
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7276
7291
  opacity = _React$useRef.current;
7277
7292
  var isFirstRendering = React.useRef(true);
@@ -7304,7 +7319,7 @@ var Status = function Status(_ref) {
7304
7319
  }));
7305
7320
  };
7306
7321
 
7307
- var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
7322
+ var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
7308
7323
  var DEFAULT_MAX_NUMBER = 99;
7309
7324
  var getPaddingState = function getPaddingState(content) {
7310
7325
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7319,7 +7334,7 @@ var Badge = function Badge(_ref) {
7319
7334
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7320
7335
  style = _ref.style,
7321
7336
  testID = _ref.testID,
7322
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7337
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7323
7338
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7324
7339
  opacity = _React$useRef.current;
7325
7340
  var isFirstRendering = React.useRef(true);
@@ -7423,7 +7438,7 @@ function omit(keys, obj) {
7423
7438
  return result;
7424
7439
  }
7425
7440
 
7426
- var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7441
+ var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7427
7442
  var getInactiveIcon = function getInactiveIcon(icon) {
7428
7443
  var inactiveIcon = "".concat(icon, "-outlined");
7429
7444
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7434,7 +7449,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7434
7449
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7435
7450
  selectedTabKey = _ref.selectedTabKey,
7436
7451
  tabs = _ref.tabs,
7437
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7452
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7438
7453
  var insets = useSafeAreaInsets();
7439
7454
  /**
7440
7455
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7521,13 +7536,13 @@ var StyledDivider = index$a(View)(function (_ref) {
7521
7536
  }, horizontalMargin), verticalMargin);
7522
7537
  });
7523
7538
 
7524
- var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
7539
+ var _excluded$o = ["marginHorizontal", "marginVertical", "style", "testID"];
7525
7540
  var Divider = function Divider(_ref) {
7526
7541
  var marginHorizontal = _ref.marginHorizontal,
7527
7542
  marginVertical = _ref.marginVertical,
7528
7543
  style = _ref.style,
7529
7544
  testID = _ref.testID,
7530
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7545
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7531
7546
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
7532
7547
  themeMarginHorizontal: marginHorizontal,
7533
7548
  themeMarginVertical: marginVertical,
@@ -7538,7 +7553,7 @@ var Divider = function Divider(_ref) {
7538
7553
 
7539
7554
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
7540
7555
  var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
7541
- var StyledWrapper$8 = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
7556
+ var StyledWrapper$9 = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
7542
7557
  flexDirection: 'column-reverse'
7543
7558
  }));
7544
7559
  var StyledKeyboardAvoidingView = index$a(KeyboardAvoidingView)(function () {
@@ -7591,7 +7606,7 @@ var StyledFooter = index$a(View)(function (_ref4) {
7591
7606
  flexDirection: 'row'
7592
7607
  };
7593
7608
  });
7594
- var StyledIconWrapper$2 = index$a(View)(function (_ref5) {
7609
+ var StyledIconWrapper$3 = index$a(View)(function (_ref5) {
7595
7610
  var theme = _ref5.theme;
7596
7611
  return {
7597
7612
  alignItems: 'center',
@@ -7657,7 +7672,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
7657
7672
  }, themeStyling());
7658
7673
  });
7659
7674
 
7660
- var _excluded$m = ["count", "size", "testID", "themeVariant"];
7675
+ var _excluded$n = ["count", "size", "testID", "themeVariant"];
7661
7676
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7662
7677
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
7663
7678
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7689,7 +7704,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7689
7704
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7690
7705
  testID = _ref2.testID,
7691
7706
  themeVariant = _ref2.themeVariant,
7692
- nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
7707
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$n);
7693
7708
  var progressAnimation = useRef(new Animated.Value(0));
7694
7709
  useEffect(function () {
7695
7710
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -8107,7 +8122,7 @@ var Header = function Header(_ref) {
8107
8122
  style: {
8108
8123
  flex: 1
8109
8124
  }
8110
- }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$2, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
8125
+ }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
8111
8126
  icon: "cancel",
8112
8127
  onPress: onRequestClose,
8113
8128
  intent: "text",
@@ -8116,11 +8131,11 @@ var Header = function Header(_ref) {
8116
8131
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
8117
8132
  };
8118
8133
 
8119
- var _excluded$l = ["scrollEventThrottle"];
8134
+ var _excluded$m = ["scrollEventThrottle"];
8120
8135
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8121
8136
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8122
8137
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8123
- props = _objectWithoutProperties(_ref, _excluded$l);
8138
+ props = _objectWithoutProperties(_ref, _excluded$m);
8124
8139
  var _useContext = useContext(BottomSheetContext),
8125
8140
  setInternalShowDivider = _useContext.setInternalShowDivider;
8126
8141
  var onScrollBeginDrag = useCallback(function (e) {
@@ -8228,7 +8243,7 @@ var BottomSheet = function BottomSheet(_ref) {
8228
8243
  transparent: true,
8229
8244
  testID: testID,
8230
8245
  onShow: onOpen
8231
- }, /*#__PURE__*/React.createElement(StyledWrapper$8, {
8246
+ }, /*#__PURE__*/React.createElement(StyledWrapper$9, {
8232
8247
  pointerEvents: "box-none"
8233
8248
  }, /*#__PURE__*/React.createElement(StyledKeyboardAvoidingView, _extends$1({
8234
8249
  behavior: Platform.OS === 'ios' ? 'padding' : 'height'
@@ -8435,7 +8450,7 @@ var borderWidths = {
8435
8450
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8436
8451
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8437
8452
 
8438
- var _excluded$k = ["theme"];
8453
+ var _excluded$l = ["theme"];
8439
8454
  var getThemeValue = function getThemeValue(theme, key, props) {
8440
8455
  var propConfig = config[key];
8441
8456
  var propValue = props[key];
@@ -8462,18 +8477,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8462
8477
  var configKeys = Object.keys(config);
8463
8478
  var StyledBox = index$a(View)(function (_ref5) {
8464
8479
  var theme = _ref5.theme,
8465
- otherProps = _objectWithoutProperties(_ref5, _excluded$k);
8480
+ otherProps = _objectWithoutProperties(_ref5, _excluded$l);
8466
8481
  var styleProps = pick(configKeys, otherProps);
8467
8482
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8468
8483
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8469
8484
  });
8470
8485
 
8471
- var _excluded$j = ["children", "style", "testID"];
8486
+ var _excluded$k = ["children", "style", "testID"];
8472
8487
  var Box = function Box(_ref) {
8473
8488
  var children = _ref.children,
8474
8489
  style = _ref.style,
8475
8490
  testID = _ref.testID,
8476
- otherProps = _objectWithoutProperties(_ref, _excluded$j);
8491
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
8477
8492
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
8478
8493
  style: style,
8479
8494
  testID: testID
@@ -11041,7 +11056,7 @@ var Calendar = function Calendar(_ref) {
11041
11056
  })));
11042
11057
  };
11043
11058
 
11044
- var _excluded$i = ["rounded", "size", "testID", "style"];
11059
+ var _excluded$j = ["rounded", "size", "testID", "style"];
11045
11060
  var Image = function Image(_ref) {
11046
11061
  var _ref$rounded = _ref.rounded,
11047
11062
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11049,7 +11064,7 @@ var Image = function Image(_ref) {
11049
11064
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11050
11065
  testID = _ref.testID,
11051
11066
  style = _ref.style,
11052
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
11067
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
11053
11068
  var theme = useTheme();
11054
11069
  var imageSize = theme.__hd__.image.sizes[size];
11055
11070
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -11253,12 +11268,12 @@ var Indicator = index$a(View)(function (_ref2) {
11253
11268
  };
11254
11269
  });
11255
11270
 
11256
- var _excluded$h = ["intent", "children"];
11271
+ var _excluded$i = ["intent", "children"];
11257
11272
  var DataCard = function DataCard(_ref) {
11258
11273
  var _ref$intent = _ref.intent,
11259
11274
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11260
11275
  children = _ref.children,
11261
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11276
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11262
11277
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
11263
11278
  themeIntent: intent,
11264
11279
  testID: "data-card-indicator"
@@ -11276,11 +11291,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
11276
11291
  });
11277
11292
  });
11278
11293
 
11279
- var _excluded$g = ["intent", "children"];
11294
+ var _excluded$h = ["intent", "children"];
11280
11295
  var Card = function Card(_ref) {
11281
11296
  var intent = _ref.intent,
11282
11297
  children = _ref.children,
11283
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11298
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11284
11299
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
11285
11300
  themeIntent: intent
11286
11301
  }), children);
@@ -11296,7 +11311,7 @@ var StyledPageControl = index$a(PageControl)(function (_ref) {
11296
11311
  marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
11297
11312
  };
11298
11313
  });
11299
- var StyledWrapper$7 = index$a(View)({});
11314
+ var StyledWrapper$8 = index$a(View)({});
11300
11315
  var StyledCard = index$a(Card$1)(function (_ref2) {
11301
11316
  var theme = _ref2.theme;
11302
11317
  return {
@@ -11432,7 +11447,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11432
11447
  }, /*#__PURE__*/React.createElement(StyledShadow, null, /*#__PURE__*/React.createElement(StyledCard, null, item)));
11433
11448
  }, [itemWidth]);
11434
11449
  var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
11435
- return /*#__PURE__*/React.createElement(StyledWrapper$7, {
11450
+ return /*#__PURE__*/React.createElement(StyledWrapper$8, {
11436
11451
  style: style,
11437
11452
  testID: testID
11438
11453
  }, /*#__PURE__*/React.createElement(FlatList, {
@@ -11486,7 +11501,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11486
11501
  }));
11487
11502
  });
11488
11503
 
11489
- var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11504
+ var _excluded$g = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11490
11505
  function useStateFromProp(initialValue) {
11491
11506
  var _useState = useState(initialValue),
11492
11507
  _useState2 = _slicedToArray(_useState, 2),
@@ -11511,7 +11526,7 @@ var Carousel = function Carousel(_ref) {
11511
11526
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11512
11527
  _ref$pageControlPosit = _ref.pageControlPosition,
11513
11528
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11514
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11529
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11515
11530
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11516
11531
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11517
11532
  var carouselRef = useRef(null);
@@ -11601,7 +11616,7 @@ var index$8 = Object.assign(Carousel, {
11601
11616
  Card: CardCarousel
11602
11617
  });
11603
11618
 
11604
- var StyledWrapper$6 = index$a(TouchableOpacity)(function (_ref) {
11619
+ var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
11605
11620
  var theme = _ref.theme,
11606
11621
  themeWithBorder = _ref.themeWithBorder,
11607
11622
  themeDisabled = _ref.themeDisabled;
@@ -11658,7 +11673,7 @@ var Checkbox = function Checkbox(_ref) {
11658
11673
  onPress = _ref.onPress,
11659
11674
  style = _ref.style,
11660
11675
  testID = _ref.testID;
11661
- return /*#__PURE__*/React.createElement(StyledWrapper$6, {
11676
+ return /*#__PURE__*/React.createElement(StyledWrapper$7, {
11662
11677
  onPress: onPress,
11663
11678
  disabled: disabled,
11664
11679
  themeDisabled: disabled,
@@ -11837,7 +11852,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
11837
11852
  };
11838
11853
  });
11839
11854
 
11840
- var _excluded$e = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
11855
+ var _excluded$f = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
11841
11856
  var getState$1 = function getState(_ref) {
11842
11857
  var disabled = _ref.disabled,
11843
11858
  error = _ref.error,
@@ -11889,7 +11904,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11889
11904
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11890
11905
  _ref2$variant = _ref2.variant,
11891
11906
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
11892
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
11907
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
11893
11908
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11894
11909
  var isEmptyValue = displayText.length === 0;
11895
11910
  var actualSuffix = loading ? 'loading' : suffix;
@@ -12324,11 +12339,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12324
12339
  }))));
12325
12340
  };
12326
12341
 
12327
- var _excluded$d = ["variant"];
12342
+ var _excluded$e = ["variant"];
12328
12343
  var DatePicker = function DatePicker(_ref) {
12329
12344
  var _ref$variant = _ref.variant,
12330
12345
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12331
- props = _objectWithoutProperties(_ref, _excluded$d);
12346
+ props = _objectWithoutProperties(_ref, _excluded$e);
12332
12347
  if (variant === 'calendar') {
12333
12348
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
12334
12349
  }
@@ -12625,7 +12640,7 @@ var index$7 = Object.assign(Drawer, {
12625
12640
  Dragable: DragableDrawer
12626
12641
  });
12627
12642
 
12628
- var StyledWrapper$5 = index$a(View)(function (_ref) {
12643
+ var StyledWrapper$6 = index$a(View)(function (_ref) {
12629
12644
  var theme = _ref.theme;
12630
12645
  return {
12631
12646
  display: 'flex',
@@ -12667,7 +12682,7 @@ var Empty = function Empty(_ref) {
12667
12682
  _ref$variant = _ref.variant,
12668
12683
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
12669
12684
  var theme = useTheme();
12670
- return /*#__PURE__*/React.createElement(StyledWrapper$5, {
12685
+ return /*#__PURE__*/React.createElement(StyledWrapper$6, {
12671
12686
  style: style,
12672
12687
  testID: testID
12673
12688
  }, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
@@ -12769,7 +12784,7 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
12769
12784
  };
12770
12785
  });
12771
12786
 
12772
- var _excluded$c = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12787
+ var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
12773
12788
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
12774
12789
  var renderImage$1 = function renderImage(image) {
12775
12790
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -12795,7 +12810,7 @@ var ErrorPage = function ErrorPage(_ref) {
12795
12810
  onCtaPress = _ref.onCtaPress,
12796
12811
  secondaryCtaText = _ref.secondaryCtaText,
12797
12812
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
12798
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
12813
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
12799
12814
  var showCta = ctaText && onCtaPress !== undefined;
12800
12815
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
12801
12816
  var showButtonContainer = showCta || showSecondaryCta;
@@ -12951,11 +12966,11 @@ var StyledIconContainer = index$a(Box)(function (_ref4) {
12951
12966
  };
12952
12967
  });
12953
12968
 
12954
- var _excluded$b = ["active"];
12969
+ var _excluded$c = ["active"];
12955
12970
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
12956
12971
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
12957
12972
  var active = _ref.active,
12958
- iconProps = _objectWithoutProperties(_ref, _excluded$b);
12973
+ iconProps = _objectWithoutProperties(_ref, _excluded$c);
12959
12974
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
12960
12975
  useEffect(function () {
12961
12976
  var animation = Animated.timing(rotateAnimation.current, {
@@ -13400,7 +13415,7 @@ var List = {
13400
13415
  BasicItem: BasicListItem
13401
13416
  };
13402
13417
 
13403
- var StyledWrapper$4 = index$a(View)(function () {
13418
+ var StyledWrapper$5 = index$a(View)(function () {
13404
13419
  return {
13405
13420
  alignContent: 'flex-start'
13406
13421
  };
@@ -13584,7 +13599,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
13584
13599
  blur: blur
13585
13600
  };
13586
13601
  });
13587
- return /*#__PURE__*/React.createElement(StyledWrapper$4, {
13602
+ return /*#__PURE__*/React.createElement(StyledWrapper$5, {
13588
13603
  style: style,
13589
13604
  testID: testID
13590
13605
  }, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -13701,7 +13716,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
13701
13716
  };
13702
13717
  });
13703
13718
 
13704
- var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
13719
+ var _excluded$b = ["value", "renderValue", "intent", "style", "testID"];
13705
13720
  var HalfCircle = function HalfCircle(_ref) {
13706
13721
  var type = _ref.type,
13707
13722
  themeIntent = _ref.themeIntent;
@@ -13722,7 +13737,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13722
13737
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
13723
13738
  style = _ref2.style,
13724
13739
  testID = _ref2.testID,
13725
- nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
13740
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
13726
13741
  var theme = useTheme$1();
13727
13742
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
13728
13743
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -13819,7 +13834,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13819
13834
  }, renderValue(value)))));
13820
13835
  };
13821
13836
 
13822
- var StyledWrapper$3 = index$a(View)(function (_ref) {
13837
+ var StyledWrapper$4 = index$a(View)(function (_ref) {
13823
13838
  var theme = _ref.theme,
13824
13839
  themeIntent = _ref.themeIntent;
13825
13840
  return {
@@ -13839,14 +13854,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
13839
13854
  };
13840
13855
  });
13841
13856
 
13842
- var _excluded$9 = ["value", "intent", "style", "testID"];
13857
+ var _excluded$a = ["value", "intent", "style", "testID"];
13843
13858
  var ProgressBar = function ProgressBar(_ref) {
13844
13859
  var value = _ref.value,
13845
13860
  _ref$intent = _ref.intent,
13846
13861
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13847
13862
  style = _ref.style,
13848
13863
  testID = _ref.testID,
13849
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
13864
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
13850
13865
  var _useState = useState(0),
13851
13866
  _useState2 = _slicedToArray(_useState, 2),
13852
13867
  width = _useState2[0],
@@ -13872,7 +13887,7 @@ var ProgressBar = function ProgressBar(_ref) {
13872
13887
  outputRange: [999, 0],
13873
13888
  extrapolate: 'clamp'
13874
13889
  });
13875
- return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
13890
+ return /*#__PURE__*/React.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
13876
13891
  testID: testID,
13877
13892
  style: style,
13878
13893
  themeIntent: intent
@@ -14037,14 +14052,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
14037
14052
  }, dotProps))));
14038
14053
  };
14039
14054
 
14040
- var _excluded$8 = ["testID", "size", "intent"];
14055
+ var _excluded$9 = ["testID", "size", "intent"];
14041
14056
  var Spinner = function Spinner(_ref) {
14042
14057
  var testID = _ref.testID,
14043
14058
  _ref$size = _ref.size,
14044
14059
  size = _ref$size === void 0 ? 'medium' : _ref$size,
14045
14060
  _ref$intent = _ref.intent,
14046
14061
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14047
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
14062
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14048
14063
  return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
14049
14064
  testID: testID
14050
14065
  }, /*#__PURE__*/React.createElement(AnimatedSpinner, {
@@ -14077,7 +14092,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
14077
14092
  }, children);
14078
14093
  };
14079
14094
 
14080
- var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14095
+ var _excluded$8 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14081
14096
  var renderActions = function renderActions(actions, width, progress, direction) {
14082
14097
  var trans = progress.interpolate({
14083
14098
  inputRange: [0, 1],
@@ -14102,7 +14117,7 @@ var Swipeable = function Swipeable(_ref) {
14102
14117
  leftActionsWidth = _ref.leftActionsWidth,
14103
14118
  rightActions = _ref.rightActions,
14104
14119
  rightActionsWidth = _ref.rightActionsWidth,
14105
- swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
14120
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14106
14121
  var _useWindowDimensions = useWindowDimensions(),
14107
14122
  width = _useWindowDimensions.width;
14108
14123
  var swipeableRef = useRef(null);
@@ -14255,13 +14270,13 @@ var StyledHeading = index$a(View)(function (_ref) {
14255
14270
  justifyContent: 'space-between'
14256
14271
  };
14257
14272
  });
14258
- var StyledIconWrapper$1 = index$a(View)(function (_ref2) {
14273
+ var StyledIconWrapper$2 = index$a(View)(function (_ref2) {
14259
14274
  var theme = _ref2.theme;
14260
14275
  return {
14261
14276
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
14262
14277
  };
14263
14278
  });
14264
- var StyledWrapper$2 = index$a(View)(function () {
14279
+ var StyledWrapper$3 = index$a(View)(function () {
14265
14280
  return {
14266
14281
  display: 'flex',
14267
14282
  flexDirection: 'row'
@@ -14294,7 +14309,7 @@ var SectionHeading = function SectionHeading(_ref) {
14294
14309
  return /*#__PURE__*/React.createElement(StyledHeading, {
14295
14310
  style: style,
14296
14311
  testID: testID
14297
- }, /*#__PURE__*/React.createElement(StyledWrapper$2, null, /*#__PURE__*/React.createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
14312
+ }, /*#__PURE__*/React.createElement(StyledWrapper$3, null, /*#__PURE__*/React.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
14298
14313
  icon: icon,
14299
14314
  size: ICON_SIZE_MAP[fontSize],
14300
14315
  intent: ICON_INTENT_MAP[intent]
@@ -14407,7 +14422,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
14407
14422
  };
14408
14423
  });
14409
14424
 
14410
- var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14425
+ var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14411
14426
  var BaseOptionList = function BaseOptionList(_ref) {
14412
14427
  var keyExtractor = _ref.keyExtractor,
14413
14428
  loading = _ref.loading,
@@ -14416,7 +14431,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
14416
14431
  sections = _ref.sections,
14417
14432
  renderItem = _ref.renderItem,
14418
14433
  sectionListRef = _ref.sectionListRef,
14419
- rest = _objectWithoutProperties(_ref, _excluded$6);
14434
+ rest = _objectWithoutProperties(_ref, _excluded$7);
14420
14435
  var theme = useTheme$1();
14421
14436
  var _useState = useState(false),
14422
14437
  _useState2 = _slicedToArray(_useState, 2),
@@ -14485,7 +14500,7 @@ var Option$2 = function Option(_ref) {
14485
14500
  return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
14486
14501
  };
14487
14502
 
14488
- var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14503
+ var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14489
14504
  var OptionList$1 = function OptionList(_ref) {
14490
14505
  var keyExtractor = _ref.keyExtractor,
14491
14506
  loading = _ref.loading,
@@ -14496,7 +14511,7 @@ var OptionList$1 = function OptionList(_ref) {
14496
14511
  renderOption = _ref.renderOption,
14497
14512
  value = _ref.value,
14498
14513
  sectionListRef = _ref.sectionListRef,
14499
- rest = _objectWithoutProperties(_ref, _excluded$5);
14514
+ rest = _objectWithoutProperties(_ref, _excluded$6);
14500
14515
  var renderItem = function renderItem(info) {
14501
14516
  var item = info.item;
14502
14517
  var selected = value.includes(info.item.value);
@@ -14684,7 +14699,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
14684
14699
  };
14685
14700
  });
14686
14701
 
14687
- var _excluded$4 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14702
+ var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
14688
14703
  var OptionList = function OptionList(_ref) {
14689
14704
  var keyExtractor = _ref.keyExtractor,
14690
14705
  loading = _ref.loading,
@@ -14695,7 +14710,7 @@ var OptionList = function OptionList(_ref) {
14695
14710
  renderOption = _ref.renderOption,
14696
14711
  value = _ref.value,
14697
14712
  sectionListRef = _ref.sectionListRef,
14698
- rest = _objectWithoutProperties(_ref, _excluded$4);
14713
+ rest = _objectWithoutProperties(_ref, _excluded$5);
14699
14714
  var renderItem = function renderItem(info) {
14700
14715
  var item = info.item;
14701
14716
  var selected = item.value === value;
@@ -14860,7 +14875,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
14860
14875
  };
14861
14876
  });
14862
14877
 
14863
- var _excluded$3 = ["intent", "variant", "style", "onLayout"];
14878
+ var _excluded$4 = ["intent", "variant", "style", "onLayout"];
14864
14879
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
14865
14880
  var gradientPositions = {
14866
14881
  start: {
@@ -14892,7 +14907,7 @@ var Skeleton = function Skeleton(_ref) {
14892
14907
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
14893
14908
  style = _ref.style,
14894
14909
  onLayout = _ref.onLayout,
14895
- props = _objectWithoutProperties(_ref, _excluded$3);
14910
+ props = _objectWithoutProperties(_ref, _excluded$4);
14896
14911
  var theme = useTheme();
14897
14912
  var colors = useMemo(function () {
14898
14913
  return getGradientColors(theme, intent);
@@ -15035,7 +15050,7 @@ var StyledSuccessModal = index$a(Modal)({
15035
15050
  width: '100%'
15036
15051
  });
15037
15052
 
15038
- var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15053
+ var _excluded$3 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
15039
15054
  var renderImage = function renderImage(image) {
15040
15055
  if ( /*#__PURE__*/isValidElement(image)) {
15041
15056
  return /*#__PURE__*/React.cloneElement(image, {
@@ -15061,7 +15076,7 @@ var SuccessPage = function SuccessPage(_ref) {
15061
15076
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
15062
15077
  secondaryCtaText = _ref.secondaryCtaText,
15063
15078
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
15064
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15079
+ nativeProps = _objectWithoutProperties(_ref, _excluded$3);
15065
15080
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
15066
15081
  return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
15067
15082
  testID: testID,
@@ -15092,7 +15107,7 @@ var Success = function Success(props) {
15092
15107
  };
15093
15108
 
15094
15109
  var AnimatedView = Animated.createAnimatedComponent(View);
15095
- var StyledWrapper$1 = index$a(View)(function (_ref) {
15110
+ var StyledWrapper$2 = index$a(View)(function (_ref) {
15096
15111
  var theme = _ref.theme;
15097
15112
  return {
15098
15113
  flexDirection: 'row',
@@ -15114,7 +15129,7 @@ var StyledTextWrapper = index$a(AnimatedView)(function (_ref2) {
15114
15129
  zIndex: 1
15115
15130
  };
15116
15131
  });
15117
- var StyledIconWrapper = index$a(AnimatedView)(function (_ref3) {
15132
+ var StyledIconWrapper$1 = index$a(AnimatedView)(function (_ref3) {
15118
15133
  var theme = _ref3.theme;
15119
15134
  return {
15120
15135
  paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
@@ -15190,7 +15205,7 @@ var Option = function Option(_ref2) {
15190
15205
  badge: badge
15191
15206
  }));
15192
15207
  }
15193
- return /*#__PURE__*/React.createElement(StyledIconWrapper, {
15208
+ return /*#__PURE__*/React.createElement(StyledIconWrapper$1, {
15194
15209
  style: {
15195
15210
  transform: [{
15196
15211
  translateX: translateX
@@ -15246,7 +15261,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15246
15261
  return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
15247
15262
  },
15248
15263
  testID: testID
15249
- }, /*#__PURE__*/React.createElement(StyledWrapper$1, {
15264
+ }, /*#__PURE__*/React.createElement(StyledWrapper$2, {
15250
15265
  onLayout: onContainerLayout,
15251
15266
  style: style
15252
15267
  }, options.map(function (opt, index) {
@@ -15270,7 +15285,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15270
15285
  })));
15271
15286
  };
15272
15287
 
15273
- var StyledWrapper = index$a(View)(function (_ref) {
15288
+ var StyledWrapper$1 = index$a(View)(function (_ref) {
15274
15289
  var theme = _ref.theme,
15275
15290
  themeVariant = _ref.themeVariant;
15276
15291
  return {
@@ -15332,7 +15347,7 @@ var Switch = function Switch(_ref2) {
15332
15347
  testID: testID,
15333
15348
  onPress: onPress,
15334
15349
  disabled: disabled
15335
- }, /*#__PURE__*/React.createElement(StyledWrapper, {
15350
+ }, /*#__PURE__*/React.createElement(StyledWrapper$1, {
15336
15351
  themeVariant: variant,
15337
15352
  style: style
15338
15353
  }, /*#__PURE__*/React.createElement(StyledKnot, {
@@ -15953,7 +15968,7 @@ var StyledText = index$a(Typography.Text)(function (_ref3) {
15953
15968
  };
15954
15969
  });
15955
15970
 
15956
- var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
15971
+ var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
15957
15972
  var Tag = function Tag(_ref) {
15958
15973
  var content = _ref.content,
15959
15974
  _ref$variant = _ref.variant,
@@ -15962,7 +15977,7 @@ var Tag = function Tag(_ref) {
15962
15977
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
15963
15978
  style = _ref.style,
15964
15979
  testID = _ref.testID,
15965
- nativeProps = _objectWithoutProperties(_ref, _excluded$1);
15980
+ nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15966
15981
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
15967
15982
  themeIntent: intent,
15968
15983
  themeVariant: variant,
@@ -16578,16 +16593,76 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
16578
16593
  }));
16579
16594
  };
16580
16595
 
16581
- var _excluded = ["children"];
16596
+ var _excluded$1 = ["children"];
16582
16597
  var Toolbar = function Toolbar(_ref) {
16583
16598
  var children = _ref.children,
16584
- rest = _objectWithoutProperties(_ref, _excluded);
16599
+ rest = _objectWithoutProperties(_ref, _excluded$1);
16585
16600
  return /*#__PURE__*/React.createElement(ToolbarWrapper, rest, children);
16586
16601
  };
16587
16602
  var index$1 = Object.assign(Toolbar, {
16588
16603
  Group: ToolbarGroup
16589
16604
  });
16590
16605
 
16606
+ var AnimatedBox = Animated.createAnimatedComponent(View);
16607
+ var StyledWrapper = index$a(Box)({
16608
+ flexDirection: 'row'
16609
+ });
16610
+ var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
16611
+ var theme = _ref.theme;
16612
+ return {
16613
+ padding: theme.__hd__.rate.spaces.iconWrapperPadding,
16614
+ marginRight: theme.__hd__.rate.spaces.iconWrapperMarginRight
16615
+ };
16616
+ });
16617
+
16618
+ var _excluded = ["options", "value", "onChange", "readonly", "disabled"];
16619
+ var Rate = function Rate(_ref) {
16620
+ var options = _ref.options,
16621
+ value = _ref.value,
16622
+ onChange = _ref.onChange,
16623
+ _ref$readonly = _ref.readonly,
16624
+ readonly = _ref$readonly === void 0 ? false : _ref$readonly,
16625
+ _ref$disabled = _ref.disabled,
16626
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
16627
+ otherProps = _objectWithoutProperties(_ref, _excluded);
16628
+ var valueIndex = useMemo(function () {
16629
+ return options.findIndex(function (item) {
16630
+ return item.value === value;
16631
+ });
16632
+ }, [value, options]);
16633
+ var animatedValue = useRef(new Animated.Value(0)).current;
16634
+ var scale = animatedValue.interpolate({
16635
+ inputRange: [0, 1],
16636
+ outputRange: [0.8, 1]
16637
+ });
16638
+ useEffect(function () {
16639
+ animatedValue.setValue(0);
16640
+ Animated.spring(animatedValue, {
16641
+ toValue: 1,
16642
+ useNativeDriver: Platform.OS !== 'web'
16643
+ }).start();
16644
+ }, [value, animatedValue]);
16645
+ return /*#__PURE__*/React.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
16646
+ return /*#__PURE__*/React.createElement(Pressable, {
16647
+ key: item.value,
16648
+ disabled: disabled || readonly,
16649
+ onPress: function onPress() {
16650
+ return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
16651
+ },
16652
+ testID: item.value.toString()
16653
+ }, /*#__PURE__*/React.createElement(StyledIconWrapper, {
16654
+ style: valueIndex === index && {
16655
+ transform: [{
16656
+ scale: scale
16657
+ }]
16658
+ }
16659
+ }, /*#__PURE__*/React.createElement(Icon, {
16660
+ icon: index <= valueIndex ? 'star' : 'star-outlined',
16661
+ intent: disabled ? 'disabled-text' : 'primary'
16662
+ })));
16663
+ }));
16664
+ };
16665
+
16591
16666
  var RefreshControl = function RefreshControl(_ref) {
16592
16667
  var props = _extends$1({}, _ref);
16593
16668
  var theme = useTheme();
@@ -32974,4 +33049,4 @@ var index = Object.assign(RichTextEditor$1, {
32974
33049
  Toolbar: EditorToolbar
32975
33050
  });
32976
33051
 
32977
- export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
33052
+ export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };