@hero-design/rn 8.98.0 → 8.99.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.
Files changed (53) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/babel.config.js +4 -1
  4. package/es/index.js +50 -69
  5. package/lib/index.js +50 -69
  6. package/package.json +39 -19
  7. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +0 -3
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  9. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +87 -87
  10. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -4
  12. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  13. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  14. package/src/components/Radio/Radio.tsx +7 -1
  15. package/src/components/Radio/RadioGroup.tsx +1 -0
  16. package/src/components/Radio/__tests__/Radio.spec.tsx +15 -0
  17. package/src/components/Radio/__tests__/RadioGroup.spec.tsx +27 -0
  18. package/src/components/Radio/types.ts +3 -1
  19. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1472 -1496
  20. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +2992 -3040
  21. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1644 -1672
  22. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2512 -2554
  23. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +6 -6
  24. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -24
  25. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  26. package/src/components/Tabs/ScrollableTabs.tsx +0 -1
  27. package/src/components/Tabs/StyledScrollableTabs.tsx +8 -2
  28. package/src/components/Tabs/index.tsx +0 -1
  29. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +2 -2
  30. package/stats/8.98.1/rn-stats.html +4844 -0
  31. package/stats/8.99.0/rn-stats.html +4842 -0
  32. package/testUtils/setup.tsx +0 -1
  33. package/types/components/Accordion/StyledAccordion.d.ts +3 -5
  34. package/types/components/Alert/StyledAlert.d.ts +3 -5
  35. package/types/components/Attachment/StyledAttachment.d.ts +3 -5
  36. package/types/components/Avatar/StyledAvatar.d.ts +3 -5
  37. package/types/components/BottomSheet/StyledBottomSheet.d.ts +3 -5
  38. package/types/components/Button/StyledButton.d.ts +3 -5
  39. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -5
  40. package/types/components/Calendar/StyledCalendar.d.ts +3 -5
  41. package/types/components/Checkbox/StyledCheckbox.d.ts +3 -5
  42. package/types/components/Chip/StyledChip.d.ts +2 -5
  43. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +2 -5
  44. package/types/components/FAB/StyledFAB.d.ts +2 -2
  45. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +2 -2
  46. package/types/components/List/StyledBasicListItem.d.ts +3 -5
  47. package/types/components/List/StyledListItem.d.ts +3 -5
  48. package/types/components/Radio/Radio.d.ts +6 -1
  49. package/types/components/Radio/types.d.ts +3 -1
  50. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -5
  51. package/types/components/Swipeable/StyledSwipeable.d.ts +2 -5
  52. package/types/components/Toast/StyledToast.d.ts +3 -5
  53. package/types/components/Toolbar/StyledToolbar.d.ts +3 -5
package/lib/index.js CHANGED
@@ -59,6 +59,9 @@ function _assertThisInitialized(e) {
59
59
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
60
60
  return e;
61
61
  }
62
+ function _callSuper(t, o, e) {
63
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
64
+ }
62
65
  function _classCallCheck(a, n) {
63
66
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
64
67
  }
@@ -121,18 +124,6 @@ function _createForOfIteratorHelper(r, e) {
121
124
  }
122
125
  };
123
126
  }
124
- function _createSuper(t) {
125
- var r = _isNativeReflectConstruct();
126
- return function () {
127
- var e,
128
- o = _getPrototypeOf(t);
129
- if (r) {
130
- var s = _getPrototypeOf(this).constructor;
131
- e = Reflect.construct(o, arguments, s);
132
- } else e = o.apply(this, arguments);
133
- return _possibleConstructorReturn(this, e);
134
- };
135
- }
136
127
  function _defineProperty(e, r, t) {
137
128
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
138
129
  value: t,
@@ -1230,7 +1221,7 @@ var Values = /*#__PURE__*/function () {
1230
1221
  if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
1231
1222
  return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray(parsed.values), [parsed.alpha]));
1232
1223
  }
1233
- _createClass(Values, [{
1224
+ return _createClass(Values, [{
1234
1225
  key: "hex",
1235
1226
  get: function get() {
1236
1227
  return this.hexString().replace(/^#/, '');
@@ -1327,7 +1318,6 @@ var Values = /*#__PURE__*/function () {
1327
1318
  return this;
1328
1319
  }
1329
1320
  }]);
1330
- return Values;
1331
1321
  }();
1332
1322
  Values.VERSION = 'v2.1.1';
1333
1323
  var mixColor = function mixColor(color) {
@@ -1346,8 +1336,7 @@ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85,
1346
1336
  var createColorScales = function createColorScales(base) {
1347
1337
  var mixed = mixColor(base);
1348
1338
  return Object.assign(Object.assign({}, STEPS.reduce(function (acc, step) {
1349
- var _Object$assign;
1350
- return Object.assign(Object.assign({}, acc), (_Object$assign = {}, _defineProperty(_Object$assign, "lighten".concat(step), mixed.tint(step)), _defineProperty(_Object$assign, "darken".concat(step), mixed.shade(step)), _Object$assign));
1339
+ return Object.assign(Object.assign({}, acc), _defineProperty(_defineProperty({}, "lighten".concat(step), mixed.tint(step)), "darken".concat(step), mixed.shade(step)));
1351
1340
  }, {})), {
1352
1341
  base: mixed.base
1353
1342
  });
@@ -2237,7 +2226,6 @@ var getFontSizes = function getFontSizes(baseFontSize) {
2237
2226
  xsmall: scale(fontSizes[0]) // 10
2238
2227
  };
2239
2228
  };
2240
-
2241
2229
  var getLineHeights = function getLineHeights(fontSizes) {
2242
2230
  var additionalSpace = 8;
2243
2231
  return {
@@ -2308,7 +2296,6 @@ var getBorderWidths = function getBorderWidths(baseBorderWidth) {
2308
2296
  medium: baseBorderWidth * 2 // 2
2309
2297
  };
2310
2298
  };
2311
-
2312
2299
  var getRadii = function getRadii(baseRadius) {
2313
2300
  return {
2314
2301
  rounded: 999,
@@ -7029,7 +7016,6 @@ function requireCssToReactNative() {
7029
7016
  fontWeight: tokenStream.expect(WORD) // Also match numbers as strings
7030
7017
  };
7031
7018
  };
7032
-
7033
7019
  var shadowOffset = function shadowOffset(tokenStream) {
7034
7020
  return {
7035
7021
  shadowOffset: parseShadowOffset(tokenStream)
@@ -9025,7 +9011,6 @@ var StyledText$2 = index$b(Typography.Body)(function (_ref2) {
9025
9011
  ios: {
9026
9012
  lineHeight: 0 // center on ios
9027
9013
  },
9028
-
9029
9014
  android: {
9030
9015
  lineHeight: null,
9031
9016
  // center on android
@@ -9036,7 +9021,6 @@ var StyledText$2 = index$b(Typography.Body)(function (_ref2) {
9036
9021
  }
9037
9022
  }));
9038
9023
  });
9039
-
9040
9024
  var StyledImage$1 = index$b(reactNative.Image)(function (_ref3) {
9041
9025
  var themeSize = _ref3.themeSize,
9042
9026
  theme = _ref3.theme;
@@ -15700,7 +15684,6 @@ var calculateSnapPointsData = function calculateSnapPointsData(minimumHeight, he
15700
15684
  maxHeightOffset: 0 // Max height
15701
15685
  };
15702
15686
  };
15703
-
15704
15687
  var calculateAnimatedToValue = function calculateAnimatedToValue(position, heightSnapPoints) {
15705
15688
  var distances = heightSnapPoints.map(function (height) {
15706
15689
  return Math.abs(position - height);
@@ -17076,7 +17059,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
17076
17059
  var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
17077
17060
  _excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
17078
17061
  var renderImage$1 = function renderImage(image) {
17079
- if ( /*#__PURE__*/React.isValidElement(image)) {
17062
+ if (/*#__PURE__*/React.isValidElement(image)) {
17080
17063
  return /*#__PURE__*/React__namespace.default.cloneElement(image, {
17081
17064
  testID: 'error-image'
17082
17065
  });
@@ -18998,7 +18981,6 @@ var ProgressCircle = function ProgressCircle(_ref) {
18998
18981
  inputRange: [0, 100],
18999
18982
  outputRange: [circumference - minArc, 0] // Full circle to zero offset
19000
18983
  });
19001
-
19002
18984
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
19003
18985
  testID: testID,
19004
18986
  style: style
@@ -19658,12 +19640,14 @@ var Radio = function Radio(_ref2) {
19658
19640
  testID = _ref2.testID,
19659
19641
  _ref2$inactiveIntent = _ref2.inactiveIntent,
19660
19642
  inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent,
19661
- children = _ref2.children;
19643
+ children = _ref2.children,
19644
+ prefix = _ref2.prefix;
19662
19645
  return /*#__PURE__*/React__namespace.default.createElement(StyledRadio, {
19663
19646
  onPress: onPress,
19664
19647
  selected: checked,
19665
19648
  title: text,
19666
19649
  subtitle: subText,
19650
+ prefix: prefix,
19667
19651
  suffix: /*#__PURE__*/React__namespace.default.createElement(RadioCircle, {
19668
19652
  checked: checked,
19669
19653
  text: text
@@ -19710,7 +19694,8 @@ var RadioGroup = function RadioGroup(_ref) {
19710
19694
  onPress: function onPress() {
19711
19695
  return _onPress(option.value);
19712
19696
  },
19713
- inactiveIntent: inactiveIntent
19697
+ inactiveIntent: inactiveIntent,
19698
+ prefix: option.prefix
19714
19699
  }, option.children));
19715
19700
  }));
19716
19701
  };
@@ -19780,10 +19765,10 @@ var SectionHeading = function SectionHeading(_ref) {
19780
19765
  icon: icon,
19781
19766
  size: ICON_SIZE_MAP[size],
19782
19767
  intent: ICON_INTENT_MAP[intent]
19783
- }) : /*#__PURE__*/React__namespace.default.cloneElement(icon, _objectSpread2({
19768
+ }) : (/*#__PURE__*/React__namespace.default.cloneElement(icon, _objectSpread2({
19784
19769
  size: ICON_SIZE_MAP[size],
19785
19770
  intent: ICON_INTENT_MAP[intent]
19786
- }, icon.props)))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
19771
+ }, icon.props))))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
19787
19772
  intent: intent
19788
19773
  }, text) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
19789
19774
  variant: "small",
@@ -19862,7 +19847,7 @@ var useKeyboard = function useKeyboard() {
19862
19847
  keyboardHeight: keyboardHeight
19863
19848
  };
19864
19849
  };
19865
- var deepCompareValue = function deepCompareValue(a, b) {
19850
+ var _deepCompareValue = function deepCompareValue(a, b) {
19866
19851
  // Handle strict equality first (handles primitives, null, undefined)
19867
19852
  if (a === b) return true;
19868
19853
  // Special handling for NaN (NaN !== NaN in JS)
@@ -19877,7 +19862,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
19877
19862
  if (Array.isArray(a) && Array.isArray(b)) {
19878
19863
  if (a.length !== b.length) return false;
19879
19864
  return a.every(function (val, index) {
19880
- return deepCompareValue(val, b[index]);
19865
+ return _deepCompareValue(val, b[index]);
19881
19866
  });
19882
19867
  }
19883
19868
  // If one is array and the other isn't, return false
@@ -19888,7 +19873,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
19888
19873
  var keysB = Object.keys(b);
19889
19874
  if (keysA.length !== keysB.length) return false;
19890
19875
  return keysA.every(function (key) {
19891
- return keysB.includes(key) && deepCompareValue(a[key], b[key]);
19876
+ return keysB.includes(key) && _deepCompareValue(a[key], b[key]);
19892
19877
  });
19893
19878
  }
19894
19879
  // If none of the above conditions matched, they're not equal
@@ -20222,7 +20207,7 @@ var OptionList = function OptionList(_ref) {
20222
20207
  rest = _objectWithoutProperties(_ref, _excluded$c);
20223
20208
  var renderItem = function renderItem(info) {
20224
20209
  var item = info.item;
20225
- var selected = deepCompareValue(item.value, value);
20210
+ var selected = _deepCompareValue(item.value, value);
20226
20211
  var onItemPress = function onItemPress() {
20227
20212
  if (value === item.value) {
20228
20213
  onPress(null);
@@ -20293,7 +20278,7 @@ var SingleSelect = function SingleSelect(_ref) {
20293
20278
  var sections = toSections(options);
20294
20279
  var flatOptions = toFlatOptions(options);
20295
20280
  var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
20296
- return deepCompareValue(opt.value, value);
20281
+ return _deepCompareValue(opt.value, value);
20297
20282
  })) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
20298
20283
  var rawValue = value ? String(value) : undefined;
20299
20284
  var bottomSheetVariant = bottomSheetConfig.variant,
@@ -20559,7 +20544,7 @@ var StyledSuccessModal = index$b(ModalWrapper)({
20559
20544
 
20560
20545
  var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"];
20561
20546
  var renderImage = function renderImage(image) {
20562
- if ( /*#__PURE__*/React.isValidElement(image)) {
20547
+ if (/*#__PURE__*/React.isValidElement(image)) {
20563
20548
  return /*#__PURE__*/React__namespace.default.cloneElement(image, {
20564
20549
  testID: 'success-image'
20565
20550
  });
@@ -20946,6 +20931,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
20946
20931
  });
20947
20932
  };
20948
20933
 
20934
+ var isAndroid8 = reactNative.Platform.OS === 'android' && (reactNative.Platform.Version === 26 || reactNative.Platform.Version === 27);
20949
20935
  var TabScreen = index$b(reactNative.View)({
20950
20936
  flex: 1
20951
20937
  });
@@ -20985,13 +20971,14 @@ var HeaderTabItemOutline = index$b(reactNative.Animated.View)(function (_ref4) {
20985
20971
  });
20986
20972
  var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
20987
20973
  var theme = _ref5.theme;
20988
- return {
20974
+ return _objectSpread2({
20989
20975
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
20990
20976
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
20991
20977
  position: 'relative',
20992
- justifyContent: 'center',
20978
+ justifyContent: 'center'
20979
+ }, !isAndroid8 && {
20993
20980
  alignItems: 'center'
20994
- };
20981
+ });
20995
20982
  });
20996
20983
  var HeaderTabItemIndicator = index$b(reactNative.Animated.View)(function (_ref6) {
20997
20984
  var theme = _ref6.theme;
@@ -21421,7 +21408,6 @@ var ScrollableTab = function ScrollableTab(_ref) {
21421
21408
  testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
21422
21409
  variant: variant
21423
21410
  }), /*#__PURE__*/React__namespace.default.createElement(PagerView__default.default, {
21424
- useNext: true,
21425
21411
  initialPage: selectedTabIndex,
21426
21412
  ref: pagerViewRef,
21427
21413
  onPageScrollStateChanged: onPageScrollStateChanged,
@@ -21557,7 +21543,6 @@ var Tabs = function Tabs(_ref2) {
21557
21543
  tabsLength: tabs.length,
21558
21544
  tabsWidth: tabsWidth
21559
21545
  }))), /*#__PURE__*/React__namespace.default.createElement(AnimatedPagerView, {
21560
- useNext: true,
21561
21546
  initialPage: selectedTabIndex,
21562
21547
  ref: pagerViewRef,
21563
21548
  onPageSelected: function onPageSelected(e) {
@@ -24424,7 +24409,7 @@ function requireReactDom_production_min() {
24424
24409
  if (ia) {
24425
24410
  var xe;
24426
24411
  if (ia) {
24427
- var ye = ("oninput" in document);
24412
+ var ye = "oninput" in document;
24428
24413
  if (!ye) {
24429
24414
  var ze = document.createElement("div");
24430
24415
  ze.setAttribute("oninput", "return;");
@@ -30609,7 +30594,7 @@ function requireLib() {
30609
30594
  }, I.set = function (e, t, r) {
30610
30595
  return L.set.call(this, e[0], t, r, e[0]);
30611
30596
  };
30612
- var K = new ( /*#__PURE__*/function () {
30597
+ var K = new (/*#__PURE__*/function () {
30613
30598
  function _class(e) {
30614
30599
  var _this = this;
30615
30600
  _classCallCheck(this, _class);
@@ -30666,7 +30651,7 @@ function requireLib() {
30666
30651
  }), r, n];
30667
30652
  }, "boolean" == typeof (e === null || e === void 0 ? void 0 : e.autoFreeze) && this.setAutoFreeze(e.autoFreeze), "boolean" == typeof (e === null || e === void 0 ? void 0 : e.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
30668
30653
  }
30669
- _createClass(_class, [{
30654
+ return _createClass(_class, [{
30670
30655
  key: "createDraft",
30671
30656
  value: function createDraft(e) {
30672
30657
  var t;
@@ -30711,7 +30696,6 @@ function requireLib() {
30711
30696
  });
30712
30697
  }
30713
30698
  }]);
30714
- return _class;
30715
30699
  }())(),
30716
30700
  X = K.produce,
30717
30701
  J = (K.produceWithPatches.bind(K), K.setAutoFreeze.bind(K), K.setUseStrictShallowCopy.bind(K), K.applyPatches.bind(K), K.createDraft.bind(K)),
@@ -31275,12 +31259,12 @@ function requireLib() {
31275
31259
  e.setSelection(t);
31276
31260
  }
31277
31261
  },
31278
- ve = function ve(e, t) {
31262
+ _ve = function ve(e, t) {
31279
31263
  for (var r in e) {
31280
31264
  var u = e[r],
31281
31265
  o = t[r];
31282
31266
  if (n(u) && n(o)) {
31283
- if (!ve(u, o)) return !1;
31267
+ if (!_ve(u, o)) return !1;
31284
31268
  } else if (Array.isArray(u) && Array.isArray(o)) {
31285
31269
  if (u.length !== o.length) return !1;
31286
31270
  for (var a = 0; a < u.length; a++) if (u[a] !== o[a]) return !1;
@@ -32350,7 +32334,7 @@ function requireLib() {
32350
32334
  function u(e) {
32351
32335
  return De(e, _e);
32352
32336
  }
32353
- return ve(n ? u(e) : e, n ? u(t) : t);
32337
+ return _ve(n ? u(e) : e, n ? u(t) : t);
32354
32338
  },
32355
32339
  isText: function isText(e) {
32356
32340
  return n(e) && "string" == typeof e.text;
@@ -32461,7 +32445,7 @@ function requireLib() {
32461
32445
  var l = s.codePointAt(0);
32462
32446
  if (!l) break;
32463
32447
  var c = lt(s, l);
32464
- if ((_ref3 = r ? [o, c] : [c, u], _ref4 = _slicedToArray(_ref3, 2), u = _ref4[0], o = _ref4[1]), ct(u, We.ZWJ) && ct(o, We.ExtPict) && !pt(r ? e.substring(0, a) : e.substring(0, e.length - a))) break;
32448
+ if (_ref3 = r ? [o, c] : [c, u], _ref4 = _slicedToArray(_ref3, 2), u = _ref4[0], o = _ref4[1], ct(u, We.ZWJ) && ct(o, We.ExtPict) && !pt(r ? e.substring(0, a) : e.substring(0, e.length - a))) break;
32465
32449
  if (ct(u, We.RI) && ct(o, We.RI) && !(i = null !== i ? !i : !!r || Dt(e.substring(0, e.length - a)))) break;
32466
32450
  if (u !== We.None && o !== We.None && dt(u, o)) break;
32467
32451
  a += s.length;
@@ -32838,10 +32822,10 @@ function requireLib() {
32838
32822
  }
32839
32823
  var Lt = ["text"],
32840
32824
  It = ["children"],
32841
- Wt = function Wt(e, t) {
32825
+ _Wt = function Wt(e, t) {
32842
32826
  if (Be.isElement(t)) {
32843
32827
  var r = t;
32844
- return !!ke.isVoid(e, t) || 1 === r.children.length && Wt(e, r.children[0]);
32828
+ return !!ke.isVoid(e, t) || 1 === r.children.length && _Wt(e, r.children[0]);
32845
32829
  }
32846
32830
  return !ke.isEditor(t);
32847
32831
  };
@@ -34272,7 +34256,7 @@ function requireLib() {
34272
34256
  at: h,
34273
34257
  mode: "highest",
34274
34258
  match: function match(t) {
34275
- return B.includes(t) && Wt(e, t);
34259
+ return B.includes(t) && _Wt(e, t);
34276
34260
  }
34277
34261
  }),
34278
34262
  E = b && ke.pathRef(e, b[1]);
@@ -35753,13 +35737,13 @@ function requireLib() {
35753
35737
  n = _hr2[0];
35754
35738
  return n;
35755
35739
  },
35756
- vr = function vr(e) {
35740
+ _vr = function vr(e) {
35757
35741
  var t = "";
35758
35742
  if (dr(e) && e.nodeValue) return e.nodeValue;
35759
35743
  if (lr(e)) {
35760
35744
  for (var _i9 = 0, _Array$from = Array.from(e.childNodes); _i9 < _Array$from.length; _i9++) {
35761
35745
  var r = _Array$from[_i9];
35762
- t += vr(r);
35746
+ t += _vr(r);
35763
35747
  }
35764
35748
  var n = getComputedStyle(e).getPropertyValue("display");
35765
35749
  "block" !== n && "list" !== n && "BR" !== e.tagName || (t += "\n");
@@ -35770,7 +35754,7 @@ function requireLib() {
35770
35754
  gr = function gr(e) {
35771
35755
  return null != e.getSelection ? e.getSelection() : document.getSelection();
35772
35756
  },
35773
- Cr = function Cr(e, t, r) {
35757
+ _Cr = function Cr(e, t, r) {
35774
35758
  var n = t.target;
35775
35759
  if (lr(n) && n.matches('[contentEditable="false"]')) return !1;
35776
35760
  var _ln$getWindow = ln.getWindow(e),
@@ -35806,7 +35790,7 @@ function requireLib() {
35806
35790
  _iterator43.f();
35807
35791
  }
35808
35792
  });
35809
- return !(!o || o === t) && Cr(e, o, r);
35793
+ return !(!o || o === t) && _Cr(e, o, r);
35810
35794
  },
35811
35795
  mr = function mr(e, t) {
35812
35796
  return Boolean(e.compareDocumentPosition(t) & ar.DOCUMENT_POSITION_PRECEDING);
@@ -36120,7 +36104,7 @@ function requireLib() {
36120
36104
  if (lr(t) && t.childNodes.length) {
36121
36105
  var n = r === t.childNodes.length,
36122
36106
  u = n ? r - 1 : r;
36123
- for ((_hr3 = hr(t, u, n ? "backward" : "forward"), _hr4 = _slicedToArray(_hr3, 2), t = _hr4[0], u = _hr4[1]), n = u < r; lr(t) && t.childNodes.length;) {
36107
+ for (_hr3 = hr(t, u, n ? "backward" : "forward"), _hr4 = _slicedToArray(_hr3, 2), t = _hr4[0], u = _hr4[1], n = u < r; lr(t) && t.childNodes.length;) {
36124
36108
  var _hr3, _hr4;
36125
36109
  var o = n ? t.childNodes.length - 1 : 0;
36126
36110
  t = pr(t, o, n ? "backward" : "forward");
@@ -36224,13 +36208,13 @@ function requireLib() {
36224
36208
  var f = t.getRangeAt(0),
36225
36209
  d = t.getRangeAt(t.rangeCount - 1);
36226
36210
  if (a instanceof HTMLTableRowElement && f.startContainer instanceof HTMLTableRowElement && d.startContainer instanceof HTMLTableRowElement) {
36227
- var B = function B(e) {
36228
- return e.childElementCount > 0 ? B(e.children[0]) : e;
36211
+ var _B2 = function B(e) {
36212
+ return e.childElementCount > 0 ? _B2(e.children[0]) : e;
36229
36213
  };
36230
36214
  var h = f.startContainer,
36231
36215
  p = d.startContainer,
36232
- v = B(h.children[f.startOffset]),
36233
- D = B(p.children[d.startOffset]);
36216
+ v = _B2(h.children[f.startOffset]),
36217
+ D = _B2(p.children[d.startOffset]);
36234
36218
  i = 0, u = D.childNodes.length > 0 ? D.childNodes[0] : D, a = v.childNodes.length > 0 ? v.childNodes[0] : v, o = D instanceof HTMLElement ? D.innerHTML.length : 0;
36235
36219
  } else f.startContainer === a ? (u = d.endContainer, o = d.endOffset, i = f.startOffset) : (u = f.startContainer, o = f.endOffset, i = d.startOffset);
36236
36220
  } else u = t.anchorNode, o = t.anchorOffset, a = t.focusNode, i = t.focusOffset;
@@ -37370,7 +37354,7 @@ function requireLib() {
37370
37354
  handleDomMutations: function handleDomMutations(e) {
37371
37355
  var r;
37372
37356
  D() || v() || e.some(function (r) {
37373
- return Cr(t, r, e);
37357
+ return _Cr(t, r, e);
37374
37358
  }) && (null === (r = on.get(t)) || void 0 === r || r());
37375
37359
  },
37376
37360
  handleInput: function handleInput() {
@@ -37819,15 +37803,14 @@ function requireLib() {
37819
37803
  characterDataOldValue: !0
37820
37804
  };
37821
37805
  var uo = /*#__PURE__*/function (_e$Component) {
37822
- _inherits(uo, _e$Component);
37823
- var _super = _createSuper(uo);
37824
37806
  function uo() {
37825
37807
  var _this3;
37826
37808
  _classCallCheck(this, uo);
37827
- _this3 = _super.apply(this, arguments), yu(_assertThisInitialized(_this3), "context", null), yu(_assertThisInitialized(_this3), "manager", null), yu(_assertThisInitialized(_this3), "mutationObserver", null);
37809
+ _this3 = _callSuper(this, uo, arguments), yu(_assertThisInitialized(_this3), "context", null), yu(_assertThisInitialized(_this3), "manager", null), yu(_assertThisInitialized(_this3), "mutationObserver", null);
37828
37810
  return _this3;
37829
37811
  }
37830
- _createClass(uo, [{
37812
+ _inherits(uo, _e$Component);
37813
+ return _createClass(uo, [{
37831
37814
  key: "observe",
37832
37815
  value: function observe() {
37833
37816
  var e,
@@ -37850,7 +37833,7 @@ function requireLib() {
37850
37833
  if (t.current) {
37851
37834
  var _r8;
37852
37835
  var u = n.filter(function (t) {
37853
- return Cr(e, t, n);
37836
+ return _Cr(e, t, n);
37854
37837
  });
37855
37838
  (_r8 = r).push.apply(_r8, _toConsumableArray(u));
37856
37839
  }
@@ -37896,7 +37879,6 @@ function requireLib() {
37896
37879
  return this.props.children;
37897
37880
  }
37898
37881
  }]);
37899
- return uo;
37900
37882
  }(e.Component);
37901
37883
  yu(uo, "contextType", Bu);
37902
37884
  var oo = br ? uo : function (e) {
@@ -38288,9 +38270,8 @@ function requireLib() {
38288
38270
  w(e && N ? null === (t = e.getBoundingClientRect()) || void 0 === t ? void 0 : t.height : void 0);
38289
38271
  }, [N]);
38290
38272
  if (N) {
38291
- var _R$push;
38292
38273
  var z = ke.start(C, []);
38293
- R.push((_R$push = {}, _defineProperty(_R$push, an, !0), _defineProperty(_R$push, "placeholder", s), _defineProperty(_R$push, "onPlaceholderResize", _), _defineProperty(_R$push, "anchor", z), _defineProperty(_R$push, "focus", z), _R$push));
38274
+ R.push(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, an, !0), "placeholder", s), "onPlaceholderResize", _), "anchor", z), "focus", z));
38294
38275
  }
38295
38276
  var L = C.marks;
38296
38277
  if (P.hasMarkPlaceholder = !1, C.selection && me.isCollapsed(C.selection) && L) {
@@ -39052,7 +39033,7 @@ function requireLib() {
39052
39033
  g = window.btoa(encodeURIComponent(D));
39053
39034
  c.setAttribute("data-slate-fragment", g), e.setData("application/".concat(t), g);
39054
39035
  var C = l.ownerDocument.createElement("div");
39055
- return C.appendChild(l), C.setAttribute("hidden", "true"), l.ownerDocument.body.appendChild(C), e.setData("text/html", C.innerHTML), e.setData("text/plain", vr(C)), l.ownerDocument.body.removeChild(C), e;
39036
+ return C.appendChild(l), C.setAttribute("hidden", "true"), l.ownerDocument.body.appendChild(C), e.setData("text/html", C.innerHTML), e.setData("text/plain", _vr(C)), l.ownerDocument.body.removeChild(C), e;
39056
39037
  }
39057
39038
  }
39058
39039
  }, r.insertData = function (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.98.0",
3
+ "version": "8.99.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -32,22 +32,25 @@
32
32
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
33
33
  "@react-native-community/datetimepicker": "^3.5.2 || ^7.6.1",
34
34
  "@react-native-community/slider": "^4.5.1",
35
- "react": "18.2.0",
36
- "react-native": "^0.74.5",
37
- "react-native-gesture-handler": "^2.15.0",
35
+ "react": "18.3.1",
36
+ "react-native": "0.76.9",
37
+ "react-native-gesture-handler": "~2.20.2",
38
38
  "react-native-linear-gradient": "^2.8.3",
39
- "react-native-pager-view": "^6.2.1",
39
+ "react-native-pager-view": "^6.7.0",
40
40
  "react-native-safe-area-context": "^4.7.0",
41
41
  "react-native-svg": "^15.11.2",
42
42
  "react-native-vector-icons": "^9.1.0",
43
43
  "react-native-webview": "^13.10.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/core": "^7.20.0",
47
- "@babel/preset-env": "^7.20.0",
48
- "@babel/preset-react": "^7.20.0",
49
- "@babel/preset-typescript": "^7.20.0",
50
- "@babel/runtime": "^7.26.10",
46
+ "@babel/core": "^7.25.2",
47
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
48
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
49
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
50
+ "@babel/preset-env": "^7.25.3",
51
+ "@babel/preset-react": "^7.26.3",
52
+ "@babel/preset-typescript": "^7.27.0",
53
+ "@babel/runtime": "^7.25.0",
51
54
  "@emotion/jest": "^11.11.0",
52
55
  "@eslint/compat": "^1.1.1",
53
56
  "@eslint/eslintrc": "^3.1.0",
@@ -55,8 +58,15 @@
55
58
  "@hero-design/eslint-plugin": "9.2.0",
56
59
  "@hero-design/react-native-month-year-picker": "^8.43.1",
57
60
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
58
- "@react-native-community/datetimepicker": "7.6.1",
61
+ "@react-native-community/cli": "15.0.1",
62
+ "@react-native-community/cli-platform-android": "15.0.1",
63
+ "@react-native-community/cli-platform-ios": "15.0.1",
64
+ "@react-native-community/datetimepicker": "8.2.0",
59
65
  "@react-native-community/slider": "^4.5.1",
66
+ "@react-native/babel-preset": "0.76.9",
67
+ "@react-native/eslint-config": "0.76.9",
68
+ "@react-native/metro-config": "0.76.9",
69
+ "@react-native/typescript-config": "0.76.9",
60
70
  "@rollup/plugin-babel": "^6.0.4",
61
71
  "@rollup/plugin-commonjs": "^28.0.1",
62
72
  "@rollup/plugin-json": "^6.1.0",
@@ -70,24 +80,34 @@
70
80
  "@types/jest": "^29.5.3",
71
81
  "@types/react": "^18.2.0",
72
82
  "@types/react-native-vector-icons": "^6.4.10",
83
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
84
+ "@typescript-eslint/parser": "^5.12.1",
73
85
  "babel-plugin-inline-import": "^3.0.0",
74
- "babel-preset-expo": "^11.0.15",
86
+ "config-tsconfig": "8.42.5",
75
87
  "core-js": "^3.33.0",
76
88
  "eslint": "^8.56.0",
89
+ "eslint-config-airbnb": "^19.0.4",
77
90
  "eslint-config-hd": "8.42.5",
78
- "eslint-plugin-import": "^2.27.5",
91
+ "eslint-config-prettier": "^8.5.0",
92
+ "eslint-import-resolver-typescript": "^3.5.2",
93
+ "eslint-plugin-import": "^2.26.0",
94
+ "eslint-plugin-jsx-a11y": "^6.5.1",
95
+ "eslint-plugin-prettier": "^4.0.0",
96
+ "eslint-plugin-react": "^7.37.3",
97
+ "eslint-plugin-react-hooks": "^4.3.0",
79
98
  "jest": "^29.2.1",
80
99
  "jest-environment-jsdom": "^29.2.1",
81
100
  "jest-junit": "^16.0.0",
101
+ "prettier": "^2.5.1",
82
102
  "prettier-config-hd": "8.42.4",
83
- "react": "18.2.0",
103
+ "react": "18.3.1",
84
104
  "react-dom": "^18.2.0",
85
- "react-native": "0.74.5",
86
- "react-native-gesture-handler": "^2.15.0",
105
+ "react-native": "0.76.9",
106
+ "react-native-gesture-handler": "~2.20.2",
87
107
  "react-native-linear-gradient": "2.8.3",
88
- "react-native-pager-view": "^6.2.1",
89
- "react-native-safe-area-context": "^4.7.0",
90
- "react-native-svg": "^15.11.2",
108
+ "react-native-pager-view": "6.5.1",
109
+ "react-native-safe-area-context": "4.12.0",
110
+ "react-native-svg": "15.8.0",
91
111
  "react-native-vector-icons": "^9.1.0",
92
112
  "react-native-webview": "13.10.3",
93
113
  "react-test-renderer": "18.2.0",
@@ -769,7 +769,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
769
769
  >
770
770
  <View
771
771
  collapsable={false}
772
- style={{}}
773
772
  >
774
773
  <View
775
774
  accessibilityState={
@@ -1953,7 +1952,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1953
1952
  >
1954
1953
  <View
1955
1954
  collapsable={false}
1956
- style={{}}
1957
1955
  >
1958
1956
  <View
1959
1957
  accessibilityState={
@@ -2784,7 +2782,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2784
2782
  >
2785
2783
  <View
2786
2784
  collapsable={false}
2787
- style={{}}
2788
2785
  >
2789
2786
  <View
2790
2787
  accessibilityState={