@hero-design/rn 8.29.4 → 8.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -1084,14 +1084,16 @@ Object.assign(Object.assign({}, palette$b), {
1084
1084
  violetDark50: violet$1.darken50
1085
1085
  });
1086
1086
  var apple$4 = colorScales.apple,
1087
- hitPink$1 = colorScales.hitPink;
1087
+ hitPink$1 = colorScales.hitPink,
1088
+ maasstrichtBlue$4 = colorScales.maasstrichtBlue;
1088
1089
  Object.assign(Object.assign({}, palette$b), {
1089
1090
  apple: apple$4.base,
1090
1091
  appleDark20: apple$4.darken20,
1091
1092
  appleDark50: apple$4.darken50,
1092
1093
  appleLight90: apple$4.lighten90,
1093
1094
  hitPink: hitPink$1.base,
1094
- hitPinkLight80: hitPink$1.lighten80
1095
+ hitPinkLight80: hitPink$1.lighten80,
1096
+ maasstrichtBlueLight30: maasstrichtBlue$4.lighten30
1095
1097
  });
1096
1098
  var aliceBlue$1 = colorScales.aliceBlue,
1097
1099
  antiFlashWhite$1 = colorScales.antiFlashWhite,
@@ -2573,6 +2575,20 @@ var getRadioTheme = function getRadioTheme(theme) {
2573
2575
  };
2574
2576
  };
2575
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
+
2576
2592
  var getRefreshControlTheme = function getRefreshControlTheme(theme) {
2577
2593
  var colors = {
2578
2594
  indicator: theme.colors.primary
@@ -3156,6 +3172,7 @@ var getTheme$1 = function getTheme() {
3156
3172
  pinInput: getPinInputTheme(globalTheme),
3157
3173
  progress: getProgressTheme(globalTheme),
3158
3174
  radio: getRadioTheme(globalTheme),
3175
+ rate: getRateTheme(globalTheme),
3159
3176
  refreshControl: getRefreshControlTheme(globalTheme),
3160
3177
  richTextEditor: getRichTextEditorTheme(globalTheme),
3161
3178
  sectionHeading: getSectionHeadingTheme(globalTheme),
@@ -6073,7 +6090,7 @@ var useDeprecation = function useDeprecation(message) {
6073
6090
  }, [message, cond]);
6074
6091
  };
6075
6092
 
6076
- var StyledWrapper$c = index$a(Animated.View)({
6093
+ var StyledWrapper$d = index$a(Animated.View)({
6077
6094
  margin: 0,
6078
6095
  padding: 0,
6079
6096
  overflow: 'hidden'
@@ -6127,7 +6144,7 @@ var Collapse = function Collapse(_ref) {
6127
6144
  setComponentMounted(true);
6128
6145
  onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
6129
6146
  }, []);
6130
- return /*#__PURE__*/React.createElement(StyledWrapper$c, {
6147
+ return /*#__PURE__*/React.createElement(StyledWrapper$d, {
6131
6148
  style: {
6132
6149
  height: open ? contentHeight : 0
6133
6150
  },
@@ -6141,7 +6158,7 @@ var Collapse = function Collapse(_ref) {
6141
6158
  }, children)));
6142
6159
  };
6143
6160
 
6144
- var StyledWrapper$b = index$a(View)(function () {
6161
+ var StyledWrapper$c = index$a(View)(function () {
6145
6162
  return {};
6146
6163
  });
6147
6164
  var StyledItemWrapper$1 = index$a(View)(function (_ref) {
@@ -6194,7 +6211,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
6194
6211
  });
6195
6212
  });
6196
6213
 
6197
- var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6214
+ var _excluded$u = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6198
6215
  var Text = function Text(_ref) {
6199
6216
  var children = _ref.children,
6200
6217
  _ref$fontSize = _ref.fontSize,
@@ -6207,7 +6224,7 @@ var Text = function Text(_ref) {
6207
6224
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6208
6225
  _ref$allowFontScaling = _ref.allowFontScaling,
6209
6226
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6210
- nativeProps = _objectWithoutProperties(_ref, _excluded$t);
6227
+ nativeProps = _objectWithoutProperties(_ref, _excluded$u);
6211
6228
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6212
6229
  themeFontSize: fontSize,
6213
6230
  themeFontWeight: fontWeight,
@@ -6732,10 +6749,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
6732
6749
  };
6733
6750
  });
6734
6751
 
6735
- var _excluded$s = ["style"];
6752
+ var _excluded$t = ["style"];
6736
6753
  var AnimatedIcon = function AnimatedIcon(_ref) {
6737
6754
  var style = _ref.style,
6738
- otherProps = _objectWithoutProperties(_ref, _excluded$s);
6755
+ otherProps = _objectWithoutProperties(_ref, _excluded$t);
6739
6756
  var rotateAnimation = useRef(new Animated.Value(0));
6740
6757
  useEffect(function () {
6741
6758
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -6841,7 +6858,7 @@ var AccordionItem = function AccordionItem(_ref) {
6841
6858
  }, content));
6842
6859
  };
6843
6860
 
6844
- var _excluded$r = ["key"];
6861
+ var _excluded$s = ["key"];
6845
6862
  var Accordion = function Accordion(_ref) {
6846
6863
  var items = _ref.items,
6847
6864
  activeItemKey = _ref.activeItemKey,
@@ -6857,12 +6874,12 @@ var Accordion = function Accordion(_ref) {
6857
6874
  _usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
6858
6875
  _activeItemKey = _usePropsOrInternalSt2[0],
6859
6876
  _onItemPress = _usePropsOrInternalSt2[1];
6860
- return /*#__PURE__*/React.createElement(StyledWrapper$b, {
6877
+ return /*#__PURE__*/React.createElement(StyledWrapper$c, {
6861
6878
  style: style,
6862
6879
  testID: testID
6863
6880
  }, items.map(function (_ref2, index) {
6864
6881
  var key = _ref2.key,
6865
- props = _objectWithoutProperties(_ref2, _excluded$r);
6882
+ props = _objectWithoutProperties(_ref2, _excluded$s);
6866
6883
  var open = _activeItemKey === key;
6867
6884
  return /*#__PURE__*/React.createElement(React.Fragment, {
6868
6885
  key: key
@@ -7045,7 +7062,7 @@ var Attachment = function Attachment(_ref) {
7045
7062
  })) : null);
7046
7063
  };
7047
7064
 
7048
- var StyledWrapper$a = index$a(TouchableOpacity)(function (_ref) {
7065
+ var StyledWrapper$b = index$a(TouchableOpacity)(function (_ref) {
7049
7066
  var themeSize = _ref.themeSize,
7050
7067
  themeIntent = _ref.themeIntent,
7051
7068
  theme = _ref.theme;
@@ -7114,7 +7131,7 @@ var Avatar = function Avatar(_ref) {
7114
7131
  hasImageError = _useState2[0],
7115
7132
  setHasImageError = _useState2[1];
7116
7133
  if (title === undefined && source === undefined) return null;
7117
- return /*#__PURE__*/React.createElement(StyledWrapper$a, {
7134
+ return /*#__PURE__*/React.createElement(StyledWrapper$b, {
7118
7135
  testID: testID,
7119
7136
  onPress: onPress,
7120
7137
  disabled: onPress === undefined,
@@ -7138,7 +7155,7 @@ var Avatar = function Avatar(_ref) {
7138
7155
  };
7139
7156
 
7140
7157
  var VISIBLE_RATIO = 0.7;
7141
- var StyledWrapper$9 = index$a(View)(function (_ref) {
7158
+ var StyledWrapper$a = index$a(View)(function (_ref) {
7142
7159
  var theme = _ref.theme,
7143
7160
  themeSize = _ref.themeSize,
7144
7161
  themeAvatarCount = _ref.themeAvatarCount;
@@ -7200,7 +7217,7 @@ var AvatarStack = function AvatarStack(_ref) {
7200
7217
  });
7201
7218
  avatars.push(remainingAvatar);
7202
7219
  }
7203
- return /*#__PURE__*/React.createElement(StyledWrapper$9, {
7220
+ return /*#__PURE__*/React.createElement(StyledWrapper$a, {
7204
7221
  themeSize: size,
7205
7222
  themeAvatarCount: avatars.length,
7206
7223
  style: style,
@@ -7260,7 +7277,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
7260
7277
  };
7261
7278
  });
7262
7279
 
7263
- var _excluded$q = ["children", "visible", "intent", "style", "testID"];
7280
+ var _excluded$r = ["children", "visible", "intent", "style", "testID"];
7264
7281
  var Status = function Status(_ref) {
7265
7282
  var children = _ref.children,
7266
7283
  _ref$visible = _ref.visible,
@@ -7269,7 +7286,7 @@ var Status = function Status(_ref) {
7269
7286
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7270
7287
  style = _ref.style,
7271
7288
  testID = _ref.testID,
7272
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7289
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7273
7290
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7274
7291
  opacity = _React$useRef.current;
7275
7292
  var isFirstRendering = React.useRef(true);
@@ -7302,7 +7319,7 @@ var Status = function Status(_ref) {
7302
7319
  }));
7303
7320
  };
7304
7321
 
7305
- var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
7322
+ var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
7306
7323
  var DEFAULT_MAX_NUMBER = 99;
7307
7324
  var getPaddingState = function getPaddingState(content) {
7308
7325
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7317,7 +7334,7 @@ var Badge = function Badge(_ref) {
7317
7334
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7318
7335
  style = _ref.style,
7319
7336
  testID = _ref.testID,
7320
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7337
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7321
7338
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7322
7339
  opacity = _React$useRef.current;
7323
7340
  var isFirstRendering = React.useRef(true);
@@ -7421,7 +7438,7 @@ function omit(keys, obj) {
7421
7438
  return result;
7422
7439
  }
7423
7440
 
7424
- var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7441
+ var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7425
7442
  var getInactiveIcon = function getInactiveIcon(icon) {
7426
7443
  var inactiveIcon = "".concat(icon, "-outlined");
7427
7444
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7432,7 +7449,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7432
7449
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7433
7450
  selectedTabKey = _ref.selectedTabKey,
7434
7451
  tabs = _ref.tabs,
7435
- nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7452
+ nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7436
7453
  var insets = useSafeAreaInsets();
7437
7454
  /**
7438
7455
  * List of loaded tabs, tabs will be loaded when navigated to.
@@ -7519,13 +7536,13 @@ var StyledDivider = index$a(View)(function (_ref) {
7519
7536
  }, horizontalMargin), verticalMargin);
7520
7537
  });
7521
7538
 
7522
- var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
7539
+ var _excluded$o = ["marginHorizontal", "marginVertical", "style", "testID"];
7523
7540
  var Divider = function Divider(_ref) {
7524
7541
  var marginHorizontal = _ref.marginHorizontal,
7525
7542
  marginVertical = _ref.marginVertical,
7526
7543
  style = _ref.style,
7527
7544
  testID = _ref.testID,
7528
- nativeProps = _objectWithoutProperties(_ref, _excluded$n);
7545
+ nativeProps = _objectWithoutProperties(_ref, _excluded$o);
7529
7546
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
7530
7547
  themeMarginHorizontal: marginHorizontal,
7531
7548
  themeMarginVertical: marginVertical,
@@ -7536,7 +7553,7 @@ var Divider = function Divider(_ref) {
7536
7553
 
7537
7554
  var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
7538
7555
  var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
7539
- var StyledWrapper$8 = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
7556
+ var StyledWrapper$9 = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
7540
7557
  flexDirection: 'column-reverse'
7541
7558
  }));
7542
7559
  var StyledKeyboardAvoidingView = index$a(KeyboardAvoidingView)(function () {
@@ -7589,7 +7606,7 @@ var StyledFooter = index$a(View)(function (_ref4) {
7589
7606
  flexDirection: 'row'
7590
7607
  };
7591
7608
  });
7592
- var StyledIconWrapper$2 = index$a(View)(function (_ref5) {
7609
+ var StyledIconWrapper$3 = index$a(View)(function (_ref5) {
7593
7610
  var theme = _ref5.theme;
7594
7611
  return {
7595
7612
  alignItems: 'center',
@@ -7655,7 +7672,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
7655
7672
  }, themeStyling());
7656
7673
  });
7657
7674
 
7658
- var _excluded$m = ["count", "size", "testID", "themeVariant"];
7675
+ var _excluded$n = ["count", "size", "testID", "themeVariant"];
7659
7676
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7660
7677
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
7661
7678
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -7687,7 +7704,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
7687
7704
  size = _ref2$size === void 0 ? 12 : _ref2$size,
7688
7705
  testID = _ref2.testID,
7689
7706
  themeVariant = _ref2.themeVariant,
7690
- nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
7707
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$n);
7691
7708
  var progressAnimation = useRef(new Animated.Value(0));
7692
7709
  useEffect(function () {
7693
7710
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -8105,7 +8122,7 @@ var Header = function Header(_ref) {
8105
8122
  style: {
8106
8123
  flex: 1
8107
8124
  }
8108
- }, 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, {
8109
8126
  icon: "cancel",
8110
8127
  onPress: onRequestClose,
8111
8128
  intent: "text",
@@ -8114,11 +8131,11 @@ var Header = function Header(_ref) {
8114
8131
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
8115
8132
  };
8116
8133
 
8117
- var _excluded$l = ["scrollEventThrottle"];
8134
+ var _excluded$m = ["scrollEventThrottle"];
8118
8135
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8119
8136
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8120
8137
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8121
- props = _objectWithoutProperties(_ref, _excluded$l);
8138
+ props = _objectWithoutProperties(_ref, _excluded$m);
8122
8139
  var _useContext = useContext(BottomSheetContext),
8123
8140
  setInternalShowDivider = _useContext.setInternalShowDivider;
8124
8141
  var onScrollBeginDrag = useCallback(function (e) {
@@ -8226,7 +8243,7 @@ var BottomSheet = function BottomSheet(_ref) {
8226
8243
  transparent: true,
8227
8244
  testID: testID,
8228
8245
  onShow: onOpen
8229
- }, /*#__PURE__*/React.createElement(StyledWrapper$8, {
8246
+ }, /*#__PURE__*/React.createElement(StyledWrapper$9, {
8230
8247
  pointerEvents: "box-none"
8231
8248
  }, /*#__PURE__*/React.createElement(StyledKeyboardAvoidingView, _extends$1({
8232
8249
  behavior: Platform.OS === 'ios' ? 'padding' : 'height'
@@ -8433,7 +8450,7 @@ var borderWidths = {
8433
8450
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
8434
8451
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
8435
8452
 
8436
- var _excluded$k = ["theme"];
8453
+ var _excluded$l = ["theme"];
8437
8454
  var getThemeValue = function getThemeValue(theme, key, props) {
8438
8455
  var propConfig = config[key];
8439
8456
  var propValue = props[key];
@@ -8460,18 +8477,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
8460
8477
  var configKeys = Object.keys(config);
8461
8478
  var StyledBox = index$a(View)(function (_ref5) {
8462
8479
  var theme = _ref5.theme,
8463
- otherProps = _objectWithoutProperties(_ref5, _excluded$k);
8480
+ otherProps = _objectWithoutProperties(_ref5, _excluded$l);
8464
8481
  var styleProps = pick(configKeys, otherProps);
8465
8482
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
8466
8483
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
8467
8484
  });
8468
8485
 
8469
- var _excluded$j = ["children", "style", "testID"];
8486
+ var _excluded$k = ["children", "style", "testID"];
8470
8487
  var Box = function Box(_ref) {
8471
8488
  var children = _ref.children,
8472
8489
  style = _ref.style,
8473
8490
  testID = _ref.testID,
8474
- otherProps = _objectWithoutProperties(_ref, _excluded$j);
8491
+ otherProps = _objectWithoutProperties(_ref, _excluded$k);
8475
8492
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
8476
8493
  style: style,
8477
8494
  testID: testID
@@ -11039,7 +11056,7 @@ var Calendar = function Calendar(_ref) {
11039
11056
  })));
11040
11057
  };
11041
11058
 
11042
- var _excluded$i = ["rounded", "size", "testID", "style"];
11059
+ var _excluded$j = ["rounded", "size", "testID", "style"];
11043
11060
  var Image = function Image(_ref) {
11044
11061
  var _ref$rounded = _ref.rounded,
11045
11062
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11047,7 +11064,7 @@ var Image = function Image(_ref) {
11047
11064
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11048
11065
  testID = _ref.testID,
11049
11066
  style = _ref.style,
11050
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
11067
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
11051
11068
  var theme = useTheme();
11052
11069
  var imageSize = theme.__hd__.image.sizes[size];
11053
11070
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -11251,12 +11268,12 @@ var Indicator = index$a(View)(function (_ref2) {
11251
11268
  };
11252
11269
  });
11253
11270
 
11254
- var _excluded$h = ["intent", "children"];
11271
+ var _excluded$i = ["intent", "children"];
11255
11272
  var DataCard = function DataCard(_ref) {
11256
11273
  var _ref$intent = _ref.intent,
11257
11274
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11258
11275
  children = _ref.children,
11259
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11276
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11260
11277
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
11261
11278
  themeIntent: intent,
11262
11279
  testID: "data-card-indicator"
@@ -11274,11 +11291,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
11274
11291
  });
11275
11292
  });
11276
11293
 
11277
- var _excluded$g = ["intent", "children"];
11294
+ var _excluded$h = ["intent", "children"];
11278
11295
  var Card = function Card(_ref) {
11279
11296
  var intent = _ref.intent,
11280
11297
  children = _ref.children,
11281
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11298
+ nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11282
11299
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
11283
11300
  themeIntent: intent
11284
11301
  }), children);
@@ -11294,7 +11311,7 @@ var StyledPageControl = index$a(PageControl)(function (_ref) {
11294
11311
  marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
11295
11312
  };
11296
11313
  });
11297
- var StyledWrapper$7 = index$a(View)({});
11314
+ var StyledWrapper$8 = index$a(View)({});
11298
11315
  var StyledCard = index$a(Card$1)(function (_ref2) {
11299
11316
  var theme = _ref2.theme;
11300
11317
  return {
@@ -11430,7 +11447,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11430
11447
  }, /*#__PURE__*/React.createElement(StyledShadow, null, /*#__PURE__*/React.createElement(StyledCard, null, item)));
11431
11448
  }, [itemWidth]);
11432
11449
  var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
11433
- return /*#__PURE__*/React.createElement(StyledWrapper$7, {
11450
+ return /*#__PURE__*/React.createElement(StyledWrapper$8, {
11434
11451
  style: style,
11435
11452
  testID: testID
11436
11453
  }, /*#__PURE__*/React.createElement(FlatList, {
@@ -11484,7 +11501,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
11484
11501
  }));
11485
11502
  });
11486
11503
 
11487
- var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11504
+ var _excluded$g = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
11488
11505
  function useStateFromProp(initialValue) {
11489
11506
  var _useState = useState(initialValue),
11490
11507
  _useState2 = _slicedToArray(_useState, 2),
@@ -11509,7 +11526,7 @@ var Carousel = function Carousel(_ref) {
11509
11526
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11510
11527
  _ref$pageControlPosit = _ref.pageControlPosition,
11511
11528
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11512
- nativeProps = _objectWithoutProperties(_ref, _excluded$f);
11529
+ nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11513
11530
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11514
11531
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
11515
11532
  var carouselRef = useRef(null);
@@ -11599,7 +11616,7 @@ var index$8 = Object.assign(Carousel, {
11599
11616
  Card: CardCarousel
11600
11617
  });
11601
11618
 
11602
- var StyledWrapper$6 = index$a(TouchableOpacity)(function (_ref) {
11619
+ var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
11603
11620
  var theme = _ref.theme,
11604
11621
  themeWithBorder = _ref.themeWithBorder,
11605
11622
  themeDisabled = _ref.themeDisabled;
@@ -11656,7 +11673,7 @@ var Checkbox = function Checkbox(_ref) {
11656
11673
  onPress = _ref.onPress,
11657
11674
  style = _ref.style,
11658
11675
  testID = _ref.testID;
11659
- return /*#__PURE__*/React.createElement(StyledWrapper$6, {
11676
+ return /*#__PURE__*/React.createElement(StyledWrapper$7, {
11660
11677
  onPress: onPress,
11661
11678
  disabled: disabled,
11662
11679
  themeDisabled: disabled,
@@ -11835,7 +11852,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
11835
11852
  };
11836
11853
  });
11837
11854
 
11838
- 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"];
11839
11856
  var getState$1 = function getState(_ref) {
11840
11857
  var disabled = _ref.disabled,
11841
11858
  error = _ref.error,
@@ -11887,7 +11904,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11887
11904
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11888
11905
  _ref2$variant = _ref2.variant,
11889
11906
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
11890
- nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
11907
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
11891
11908
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11892
11909
  var isEmptyValue = displayText.length === 0;
11893
11910
  var actualSuffix = loading ? 'loading' : suffix;
@@ -12322,11 +12339,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
12322
12339
  }))));
12323
12340
  };
12324
12341
 
12325
- var _excluded$d = ["variant"];
12342
+ var _excluded$e = ["variant"];
12326
12343
  var DatePicker = function DatePicker(_ref) {
12327
12344
  var _ref$variant = _ref.variant,
12328
12345
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
12329
- props = _objectWithoutProperties(_ref, _excluded$d);
12346
+ props = _objectWithoutProperties(_ref, _excluded$e);
12330
12347
  if (variant === 'calendar') {
12331
12348
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
12332
12349
  }
@@ -12623,7 +12640,7 @@ var index$7 = Object.assign(Drawer, {
12623
12640
  Dragable: DragableDrawer
12624
12641
  });
12625
12642
 
12626
- var StyledWrapper$5 = index$a(View)(function (_ref) {
12643
+ var StyledWrapper$6 = index$a(View)(function (_ref) {
12627
12644
  var theme = _ref.theme;
12628
12645
  return {
12629
12646
  display: 'flex',
@@ -12665,7 +12682,7 @@ var Empty = function Empty(_ref) {
12665
12682
  _ref$variant = _ref.variant,
12666
12683
  variant = _ref$variant === void 0 ? 'light' : _ref$variant;
12667
12684
  var theme = useTheme();
12668
- return /*#__PURE__*/React.createElement(StyledWrapper$5, {
12685
+ return /*#__PURE__*/React.createElement(StyledWrapper$6, {
12669
12686
  style: style,
12670
12687
  testID: testID
12671
12688
  }, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
@@ -12767,7 +12784,7 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
12767
12784
  };
12768
12785
  });
12769
12786
 
12770
- 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"],
12771
12788
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
12772
12789
  var renderImage$1 = function renderImage(image) {
12773
12790
  if ( /*#__PURE__*/isValidElement(image)) {
@@ -12793,7 +12810,7 @@ var ErrorPage = function ErrorPage(_ref) {
12793
12810
  onCtaPress = _ref.onCtaPress,
12794
12811
  secondaryCtaText = _ref.secondaryCtaText,
12795
12812
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
12796
- nativeProps = _objectWithoutProperties(_ref, _excluded$c);
12813
+ nativeProps = _objectWithoutProperties(_ref, _excluded$d);
12797
12814
  var showCta = ctaText && onCtaPress !== undefined;
12798
12815
  var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
12799
12816
  var showButtonContainer = showCta || showSecondaryCta;
@@ -12949,11 +12966,11 @@ var StyledIconContainer = index$a(Box)(function (_ref4) {
12949
12966
  };
12950
12967
  });
12951
12968
 
12952
- var _excluded$b = ["active"];
12969
+ var _excluded$c = ["active"];
12953
12970
  var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
12954
12971
  var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
12955
12972
  var active = _ref.active,
12956
- iconProps = _objectWithoutProperties(_ref, _excluded$b);
12973
+ iconProps = _objectWithoutProperties(_ref, _excluded$c);
12957
12974
  var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
12958
12975
  useEffect(function () {
12959
12976
  var animation = Animated.timing(rotateAnimation.current, {
@@ -13398,7 +13415,7 @@ var List = {
13398
13415
  BasicItem: BasicListItem
13399
13416
  };
13400
13417
 
13401
- var StyledWrapper$4 = index$a(View)(function () {
13418
+ var StyledWrapper$5 = index$a(View)(function () {
13402
13419
  return {
13403
13420
  alignContent: 'flex-start'
13404
13421
  };
@@ -13582,7 +13599,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
13582
13599
  blur: blur
13583
13600
  };
13584
13601
  });
13585
- return /*#__PURE__*/React.createElement(StyledWrapper$4, {
13602
+ return /*#__PURE__*/React.createElement(StyledWrapper$5, {
13586
13603
  style: style,
13587
13604
  testID: testID
13588
13605
  }, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
@@ -13699,7 +13716,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
13699
13716
  };
13700
13717
  });
13701
13718
 
13702
- var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
13719
+ var _excluded$b = ["value", "renderValue", "intent", "style", "testID"];
13703
13720
  var HalfCircle = function HalfCircle(_ref) {
13704
13721
  var type = _ref.type,
13705
13722
  themeIntent = _ref.themeIntent;
@@ -13720,7 +13737,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13720
13737
  intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
13721
13738
  style = _ref2.style,
13722
13739
  testID = _ref2.testID,
13723
- nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
13740
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
13724
13741
  var theme = useTheme$1();
13725
13742
  var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
13726
13743
  var progressAnimatedValue = useRef(new Animated.Value(0));
@@ -13817,7 +13834,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
13817
13834
  }, renderValue(value)))));
13818
13835
  };
13819
13836
 
13820
- var StyledWrapper$3 = index$a(View)(function (_ref) {
13837
+ var StyledWrapper$4 = index$a(View)(function (_ref) {
13821
13838
  var theme = _ref.theme,
13822
13839
  themeIntent = _ref.themeIntent;
13823
13840
  return {
@@ -13837,14 +13854,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
13837
13854
  };
13838
13855
  });
13839
13856
 
13840
- var _excluded$9 = ["value", "intent", "style", "testID"];
13857
+ var _excluded$a = ["value", "intent", "style", "testID"];
13841
13858
  var ProgressBar = function ProgressBar(_ref) {
13842
13859
  var value = _ref.value,
13843
13860
  _ref$intent = _ref.intent,
13844
13861
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
13845
13862
  style = _ref.style,
13846
13863
  testID = _ref.testID,
13847
- nativeProps = _objectWithoutProperties(_ref, _excluded$9);
13864
+ nativeProps = _objectWithoutProperties(_ref, _excluded$a);
13848
13865
  var _useState = useState(0),
13849
13866
  _useState2 = _slicedToArray(_useState, 2),
13850
13867
  width = _useState2[0],
@@ -13870,7 +13887,7 @@ var ProgressBar = function ProgressBar(_ref) {
13870
13887
  outputRange: [999, 0],
13871
13888
  extrapolate: 'clamp'
13872
13889
  });
13873
- return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
13890
+ return /*#__PURE__*/React.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
13874
13891
  testID: testID,
13875
13892
  style: style,
13876
13893
  themeIntent: intent
@@ -14035,14 +14052,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
14035
14052
  }, dotProps))));
14036
14053
  };
14037
14054
 
14038
- var _excluded$8 = ["testID", "size", "intent"];
14055
+ var _excluded$9 = ["testID", "size", "intent"];
14039
14056
  var Spinner = function Spinner(_ref) {
14040
14057
  var testID = _ref.testID,
14041
14058
  _ref$size = _ref.size,
14042
14059
  size = _ref$size === void 0 ? 'medium' : _ref$size,
14043
14060
  _ref$intent = _ref.intent,
14044
14061
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
14045
- nativeProps = _objectWithoutProperties(_ref, _excluded$8);
14062
+ nativeProps = _objectWithoutProperties(_ref, _excluded$9);
14046
14063
  return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
14047
14064
  testID: testID
14048
14065
  }, /*#__PURE__*/React.createElement(AnimatedSpinner, {
@@ -14075,7 +14092,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
14075
14092
  }, children);
14076
14093
  };
14077
14094
 
14078
- var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14095
+ var _excluded$8 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
14079
14096
  var renderActions = function renderActions(actions, width, progress, direction) {
14080
14097
  var trans = progress.interpolate({
14081
14098
  inputRange: [0, 1],
@@ -14100,7 +14117,7 @@ var Swipeable = function Swipeable(_ref) {
14100
14117
  leftActionsWidth = _ref.leftActionsWidth,
14101
14118
  rightActions = _ref.rightActions,
14102
14119
  rightActionsWidth = _ref.rightActionsWidth,
14103
- swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
14120
+ swipeableProps = _objectWithoutProperties(_ref, _excluded$8);
14104
14121
  var _useWindowDimensions = useWindowDimensions(),
14105
14122
  width = _useWindowDimensions.width;
14106
14123
  var swipeableRef = useRef(null);
@@ -14253,13 +14270,13 @@ var StyledHeading = index$a(View)(function (_ref) {
14253
14270
  justifyContent: 'space-between'
14254
14271
  };
14255
14272
  });
14256
- var StyledIconWrapper$1 = index$a(View)(function (_ref2) {
14273
+ var StyledIconWrapper$2 = index$a(View)(function (_ref2) {
14257
14274
  var theme = _ref2.theme;
14258
14275
  return {
14259
14276
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
14260
14277
  };
14261
14278
  });
14262
- var StyledWrapper$2 = index$a(View)(function () {
14279
+ var StyledWrapper$3 = index$a(View)(function () {
14263
14280
  return {
14264
14281
  display: 'flex',
14265
14282
  flexDirection: 'row'
@@ -14292,7 +14309,7 @@ var SectionHeading = function SectionHeading(_ref) {
14292
14309
  return /*#__PURE__*/React.createElement(StyledHeading, {
14293
14310
  style: style,
14294
14311
  testID: testID
14295
- }, /*#__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, {
14296
14313
  icon: icon,
14297
14314
  size: ICON_SIZE_MAP[fontSize],
14298
14315
  intent: ICON_INTENT_MAP[intent]
@@ -14405,7 +14422,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
14405
14422
  };
14406
14423
  });
14407
14424
 
14408
- var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14425
+ var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
14409
14426
  var BaseOptionList = function BaseOptionList(_ref) {
14410
14427
  var keyExtractor = _ref.keyExtractor,
14411
14428
  loading = _ref.loading,
@@ -14414,7 +14431,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
14414
14431
  sections = _ref.sections,
14415
14432
  renderItem = _ref.renderItem,
14416
14433
  sectionListRef = _ref.sectionListRef,
14417
- rest = _objectWithoutProperties(_ref, _excluded$6);
14434
+ rest = _objectWithoutProperties(_ref, _excluded$7);
14418
14435
  var theme = useTheme$1();
14419
14436
  var _useState = useState(false),
14420
14437
  _useState2 = _slicedToArray(_useState, 2),
@@ -14483,7 +14500,7 @@ var Option$2 = function Option(_ref) {
14483
14500
  return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
14484
14501
  };
14485
14502
 
14486
- 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"];
14487
14504
  var OptionList$1 = function OptionList(_ref) {
14488
14505
  var keyExtractor = _ref.keyExtractor,
14489
14506
  loading = _ref.loading,
@@ -14494,7 +14511,7 @@ var OptionList$1 = function OptionList(_ref) {
14494
14511
  renderOption = _ref.renderOption,
14495
14512
  value = _ref.value,
14496
14513
  sectionListRef = _ref.sectionListRef,
14497
- rest = _objectWithoutProperties(_ref, _excluded$5);
14514
+ rest = _objectWithoutProperties(_ref, _excluded$6);
14498
14515
  var renderItem = function renderItem(info) {
14499
14516
  var item = info.item;
14500
14517
  var selected = value.includes(info.item.value);
@@ -14682,7 +14699,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
14682
14699
  };
14683
14700
  });
14684
14701
 
14685
- 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"];
14686
14703
  var OptionList = function OptionList(_ref) {
14687
14704
  var keyExtractor = _ref.keyExtractor,
14688
14705
  loading = _ref.loading,
@@ -14693,7 +14710,7 @@ var OptionList = function OptionList(_ref) {
14693
14710
  renderOption = _ref.renderOption,
14694
14711
  value = _ref.value,
14695
14712
  sectionListRef = _ref.sectionListRef,
14696
- rest = _objectWithoutProperties(_ref, _excluded$4);
14713
+ rest = _objectWithoutProperties(_ref, _excluded$5);
14697
14714
  var renderItem = function renderItem(info) {
14698
14715
  var item = info.item;
14699
14716
  var selected = item.value === value;
@@ -14858,7 +14875,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
14858
14875
  };
14859
14876
  });
14860
14877
 
14861
- var _excluded$3 = ["intent", "variant", "style", "onLayout"];
14878
+ var _excluded$4 = ["intent", "variant", "style", "onLayout"];
14862
14879
  var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
14863
14880
  var gradientPositions = {
14864
14881
  start: {
@@ -14890,7 +14907,7 @@ var Skeleton = function Skeleton(_ref) {
14890
14907
  variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
14891
14908
  style = _ref.style,
14892
14909
  onLayout = _ref.onLayout,
14893
- props = _objectWithoutProperties(_ref, _excluded$3);
14910
+ props = _objectWithoutProperties(_ref, _excluded$4);
14894
14911
  var theme = useTheme();
14895
14912
  var colors = useMemo(function () {
14896
14913
  return getGradientColors(theme, intent);
@@ -15033,7 +15050,7 @@ var StyledSuccessModal = index$a(Modal)({
15033
15050
  width: '100%'
15034
15051
  });
15035
15052
 
15036
- 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"];
15037
15054
  var renderImage = function renderImage(image) {
15038
15055
  if ( /*#__PURE__*/isValidElement(image)) {
15039
15056
  return /*#__PURE__*/React.cloneElement(image, {
@@ -15059,7 +15076,7 @@ var SuccessPage = function SuccessPage(_ref) {
15059
15076
  onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
15060
15077
  secondaryCtaText = _ref.secondaryCtaText,
15061
15078
  onSecondaryCtaPress = _ref.onSecondaryCtaPress,
15062
- nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15079
+ nativeProps = _objectWithoutProperties(_ref, _excluded$3);
15063
15080
  var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
15064
15081
  return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
15065
15082
  testID: testID,
@@ -15090,7 +15107,7 @@ var Success = function Success(props) {
15090
15107
  };
15091
15108
 
15092
15109
  var AnimatedView = Animated.createAnimatedComponent(View);
15093
- var StyledWrapper$1 = index$a(View)(function (_ref) {
15110
+ var StyledWrapper$2 = index$a(View)(function (_ref) {
15094
15111
  var theme = _ref.theme;
15095
15112
  return {
15096
15113
  flexDirection: 'row',
@@ -15112,7 +15129,7 @@ var StyledTextWrapper = index$a(AnimatedView)(function (_ref2) {
15112
15129
  zIndex: 1
15113
15130
  };
15114
15131
  });
15115
- var StyledIconWrapper = index$a(AnimatedView)(function (_ref3) {
15132
+ var StyledIconWrapper$1 = index$a(AnimatedView)(function (_ref3) {
15116
15133
  var theme = _ref3.theme;
15117
15134
  return {
15118
15135
  paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
@@ -15188,7 +15205,7 @@ var Option = function Option(_ref2) {
15188
15205
  badge: badge
15189
15206
  }));
15190
15207
  }
15191
- return /*#__PURE__*/React.createElement(StyledIconWrapper, {
15208
+ return /*#__PURE__*/React.createElement(StyledIconWrapper$1, {
15192
15209
  style: {
15193
15210
  transform: [{
15194
15211
  translateX: translateX
@@ -15244,7 +15261,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15244
15261
  return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
15245
15262
  },
15246
15263
  testID: testID
15247
- }, /*#__PURE__*/React.createElement(StyledWrapper$1, {
15264
+ }, /*#__PURE__*/React.createElement(StyledWrapper$2, {
15248
15265
  onLayout: onContainerLayout,
15249
15266
  style: style
15250
15267
  }, options.map(function (opt, index) {
@@ -15268,7 +15285,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
15268
15285
  })));
15269
15286
  };
15270
15287
 
15271
- var StyledWrapper = index$a(View)(function (_ref) {
15288
+ var StyledWrapper$1 = index$a(View)(function (_ref) {
15272
15289
  var theme = _ref.theme,
15273
15290
  themeVariant = _ref.themeVariant;
15274
15291
  return {
@@ -15330,7 +15347,7 @@ var Switch = function Switch(_ref2) {
15330
15347
  testID: testID,
15331
15348
  onPress: onPress,
15332
15349
  disabled: disabled
15333
- }, /*#__PURE__*/React.createElement(StyledWrapper, {
15350
+ }, /*#__PURE__*/React.createElement(StyledWrapper$1, {
15334
15351
  themeVariant: variant,
15335
15352
  style: style
15336
15353
  }, /*#__PURE__*/React.createElement(StyledKnot, {
@@ -15951,7 +15968,7 @@ var StyledText = index$a(Typography.Text)(function (_ref3) {
15951
15968
  };
15952
15969
  });
15953
15970
 
15954
- var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
15971
+ var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
15955
15972
  var Tag = function Tag(_ref) {
15956
15973
  var content = _ref.content,
15957
15974
  _ref$variant = _ref.variant,
@@ -15960,7 +15977,7 @@ var Tag = function Tag(_ref) {
15960
15977
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
15961
15978
  style = _ref.style,
15962
15979
  testID = _ref.testID,
15963
- nativeProps = _objectWithoutProperties(_ref, _excluded$1);
15980
+ nativeProps = _objectWithoutProperties(_ref, _excluded$2);
15964
15981
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
15965
15982
  themeIntent: intent,
15966
15983
  themeVariant: variant,
@@ -16576,16 +16593,76 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
16576
16593
  }));
16577
16594
  };
16578
16595
 
16579
- var _excluded = ["children"];
16596
+ var _excluded$1 = ["children"];
16580
16597
  var Toolbar = function Toolbar(_ref) {
16581
16598
  var children = _ref.children,
16582
- rest = _objectWithoutProperties(_ref, _excluded);
16599
+ rest = _objectWithoutProperties(_ref, _excluded$1);
16583
16600
  return /*#__PURE__*/React.createElement(ToolbarWrapper, rest, children);
16584
16601
  };
16585
16602
  var index$1 = Object.assign(Toolbar, {
16586
16603
  Group: ToolbarGroup
16587
16604
  });
16588
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
+
16589
16666
  var RefreshControl = function RefreshControl(_ref) {
16590
16667
  var props = _extends$1({}, _ref);
16591
16668
  var theme = useTheme();
@@ -32972,4 +33049,4 @@ var index = Object.assign(RichTextEditor$1, {
32972
33049
  Toolbar: EditorToolbar
32973
33050
  });
32974
33051
 
32975
- 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 };