@hero-design/rn 8.98.1 → 8.99.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.
Files changed (65) 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 +45 -66
  5. package/lib/index.js +45 -66
  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/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +120 -0
  27. package/src/components/StatusScreens/Empty/__tests__/index.spec.tsx +21 -1
  28. package/src/components/StatusScreens/Empty/index.tsx +1 -1
  29. package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +134 -0
  30. package/src/components/StatusScreens/Error/__tests__/index.spec.tsx +14 -0
  31. package/src/components/StatusScreens/Error/index.tsx +1 -1
  32. package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +134 -0
  33. package/src/components/StatusScreens/Success/__tests__/index.spec.tsx +13 -0
  34. package/src/components/StatusScreens/Success/index.tsx +1 -1
  35. package/src/components/Tabs/ScrollableTabs.tsx +0 -1
  36. package/src/components/Tabs/index.tsx +0 -1
  37. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +2 -2
  38. package/stats/8.98.1/rn-stats.html +3 -1
  39. package/stats/8.99.0/rn-stats.html +4842 -0
  40. package/stats/8.99.1/rn-stats.html +4842 -0
  41. package/testUtils/setup.tsx +0 -1
  42. package/types/components/Accordion/StyledAccordion.d.ts +3 -5
  43. package/types/components/Alert/StyledAlert.d.ts +3 -5
  44. package/types/components/Attachment/StyledAttachment.d.ts +3 -5
  45. package/types/components/Avatar/StyledAvatar.d.ts +3 -5
  46. package/types/components/BottomSheet/StyledBottomSheet.d.ts +3 -5
  47. package/types/components/Button/StyledButton.d.ts +3 -5
  48. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -5
  49. package/types/components/Calendar/StyledCalendar.d.ts +3 -5
  50. package/types/components/Checkbox/StyledCheckbox.d.ts +3 -5
  51. package/types/components/Chip/StyledChip.d.ts +2 -5
  52. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +2 -5
  53. package/types/components/FAB/StyledFAB.d.ts +2 -2
  54. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +2 -2
  55. package/types/components/List/StyledBasicListItem.d.ts +3 -5
  56. package/types/components/List/StyledListItem.d.ts +3 -5
  57. package/types/components/Radio/Radio.d.ts +6 -1
  58. package/types/components/Radio/types.d.ts +3 -1
  59. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -5
  60. package/types/components/StatusScreens/Empty/index.d.ts +1 -1
  61. package/types/components/StatusScreens/Error/index.d.ts +1 -1
  62. package/types/components/StatusScreens/Success/index.d.ts +1 -1
  63. package/types/components/Swipeable/StyledSwipeable.d.ts +2 -5
  64. package/types/components/Toast/StyledToast.d.ts +3 -5
  65. 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
  });
@@ -21423,7 +21408,6 @@ var ScrollableTab = function ScrollableTab(_ref) {
21423
21408
  testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
21424
21409
  variant: variant
21425
21410
  }), /*#__PURE__*/React__namespace.default.createElement(PagerView__default.default, {
21426
- useNext: true,
21427
21411
  initialPage: selectedTabIndex,
21428
21412
  ref: pagerViewRef,
21429
21413
  onPageScrollStateChanged: onPageScrollStateChanged,
@@ -21559,7 +21543,6 @@ var Tabs = function Tabs(_ref2) {
21559
21543
  tabsLength: tabs.length,
21560
21544
  tabsWidth: tabsWidth
21561
21545
  }))), /*#__PURE__*/React__namespace.default.createElement(AnimatedPagerView, {
21562
- useNext: true,
21563
21546
  initialPage: selectedTabIndex,
21564
21547
  ref: pagerViewRef,
21565
21548
  onPageSelected: function onPageSelected(e) {
@@ -24426,7 +24409,7 @@ function requireReactDom_production_min() {
24426
24409
  if (ia) {
24427
24410
  var xe;
24428
24411
  if (ia) {
24429
- var ye = ("oninput" in document);
24412
+ var ye = "oninput" in document;
24430
24413
  if (!ye) {
24431
24414
  var ze = document.createElement("div");
24432
24415
  ze.setAttribute("oninput", "return;");
@@ -30611,7 +30594,7 @@ function requireLib() {
30611
30594
  }, I.set = function (e, t, r) {
30612
30595
  return L.set.call(this, e[0], t, r, e[0]);
30613
30596
  };
30614
- var K = new ( /*#__PURE__*/function () {
30597
+ var K = new (/*#__PURE__*/function () {
30615
30598
  function _class(e) {
30616
30599
  var _this = this;
30617
30600
  _classCallCheck(this, _class);
@@ -30668,7 +30651,7 @@ function requireLib() {
30668
30651
  }), r, n];
30669
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);
30670
30653
  }
30671
- _createClass(_class, [{
30654
+ return _createClass(_class, [{
30672
30655
  key: "createDraft",
30673
30656
  value: function createDraft(e) {
30674
30657
  var t;
@@ -30713,7 +30696,6 @@ function requireLib() {
30713
30696
  });
30714
30697
  }
30715
30698
  }]);
30716
- return _class;
30717
30699
  }())(),
30718
30700
  X = K.produce,
30719
30701
  J = (K.produceWithPatches.bind(K), K.setAutoFreeze.bind(K), K.setUseStrictShallowCopy.bind(K), K.applyPatches.bind(K), K.createDraft.bind(K)),
@@ -31277,12 +31259,12 @@ function requireLib() {
31277
31259
  e.setSelection(t);
31278
31260
  }
31279
31261
  },
31280
- ve = function ve(e, t) {
31262
+ _ve = function ve(e, t) {
31281
31263
  for (var r in e) {
31282
31264
  var u = e[r],
31283
31265
  o = t[r];
31284
31266
  if (n(u) && n(o)) {
31285
- if (!ve(u, o)) return !1;
31267
+ if (!_ve(u, o)) return !1;
31286
31268
  } else if (Array.isArray(u) && Array.isArray(o)) {
31287
31269
  if (u.length !== o.length) return !1;
31288
31270
  for (var a = 0; a < u.length; a++) if (u[a] !== o[a]) return !1;
@@ -32352,7 +32334,7 @@ function requireLib() {
32352
32334
  function u(e) {
32353
32335
  return De(e, _e);
32354
32336
  }
32355
- return ve(n ? u(e) : e, n ? u(t) : t);
32337
+ return _ve(n ? u(e) : e, n ? u(t) : t);
32356
32338
  },
32357
32339
  isText: function isText(e) {
32358
32340
  return n(e) && "string" == typeof e.text;
@@ -32463,7 +32445,7 @@ function requireLib() {
32463
32445
  var l = s.codePointAt(0);
32464
32446
  if (!l) break;
32465
32447
  var c = lt(s, l);
32466
- 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;
32467
32449
  if (ct(u, We.RI) && ct(o, We.RI) && !(i = null !== i ? !i : !!r || Dt(e.substring(0, e.length - a)))) break;
32468
32450
  if (u !== We.None && o !== We.None && dt(u, o)) break;
32469
32451
  a += s.length;
@@ -32840,10 +32822,10 @@ function requireLib() {
32840
32822
  }
32841
32823
  var Lt = ["text"],
32842
32824
  It = ["children"],
32843
- Wt = function Wt(e, t) {
32825
+ _Wt = function Wt(e, t) {
32844
32826
  if (Be.isElement(t)) {
32845
32827
  var r = t;
32846
- 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]);
32847
32829
  }
32848
32830
  return !ke.isEditor(t);
32849
32831
  };
@@ -34274,7 +34256,7 @@ function requireLib() {
34274
34256
  at: h,
34275
34257
  mode: "highest",
34276
34258
  match: function match(t) {
34277
- return B.includes(t) && Wt(e, t);
34259
+ return B.includes(t) && _Wt(e, t);
34278
34260
  }
34279
34261
  }),
34280
34262
  E = b && ke.pathRef(e, b[1]);
@@ -35755,13 +35737,13 @@ function requireLib() {
35755
35737
  n = _hr2[0];
35756
35738
  return n;
35757
35739
  },
35758
- vr = function vr(e) {
35740
+ _vr = function vr(e) {
35759
35741
  var t = "";
35760
35742
  if (dr(e) && e.nodeValue) return e.nodeValue;
35761
35743
  if (lr(e)) {
35762
35744
  for (var _i9 = 0, _Array$from = Array.from(e.childNodes); _i9 < _Array$from.length; _i9++) {
35763
35745
  var r = _Array$from[_i9];
35764
- t += vr(r);
35746
+ t += _vr(r);
35765
35747
  }
35766
35748
  var n = getComputedStyle(e).getPropertyValue("display");
35767
35749
  "block" !== n && "list" !== n && "BR" !== e.tagName || (t += "\n");
@@ -35772,7 +35754,7 @@ function requireLib() {
35772
35754
  gr = function gr(e) {
35773
35755
  return null != e.getSelection ? e.getSelection() : document.getSelection();
35774
35756
  },
35775
- Cr = function Cr(e, t, r) {
35757
+ _Cr = function Cr(e, t, r) {
35776
35758
  var n = t.target;
35777
35759
  if (lr(n) && n.matches('[contentEditable="false"]')) return !1;
35778
35760
  var _ln$getWindow = ln.getWindow(e),
@@ -35808,7 +35790,7 @@ function requireLib() {
35808
35790
  _iterator43.f();
35809
35791
  }
35810
35792
  });
35811
- return !(!o || o === t) && Cr(e, o, r);
35793
+ return !(!o || o === t) && _Cr(e, o, r);
35812
35794
  },
35813
35795
  mr = function mr(e, t) {
35814
35796
  return Boolean(e.compareDocumentPosition(t) & ar.DOCUMENT_POSITION_PRECEDING);
@@ -36122,7 +36104,7 @@ function requireLib() {
36122
36104
  if (lr(t) && t.childNodes.length) {
36123
36105
  var n = r === t.childNodes.length,
36124
36106
  u = n ? r - 1 : r;
36125
- 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;) {
36126
36108
  var _hr3, _hr4;
36127
36109
  var o = n ? t.childNodes.length - 1 : 0;
36128
36110
  t = pr(t, o, n ? "backward" : "forward");
@@ -36226,13 +36208,13 @@ function requireLib() {
36226
36208
  var f = t.getRangeAt(0),
36227
36209
  d = t.getRangeAt(t.rangeCount - 1);
36228
36210
  if (a instanceof HTMLTableRowElement && f.startContainer instanceof HTMLTableRowElement && d.startContainer instanceof HTMLTableRowElement) {
36229
- var B = function B(e) {
36230
- 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;
36231
36213
  };
36232
36214
  var h = f.startContainer,
36233
36215
  p = d.startContainer,
36234
- v = B(h.children[f.startOffset]),
36235
- D = B(p.children[d.startOffset]);
36216
+ v = _B2(h.children[f.startOffset]),
36217
+ D = _B2(p.children[d.startOffset]);
36236
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;
36237
36219
  } else f.startContainer === a ? (u = d.endContainer, o = d.endOffset, i = f.startOffset) : (u = f.startContainer, o = f.endOffset, i = d.startOffset);
36238
36220
  } else u = t.anchorNode, o = t.anchorOffset, a = t.focusNode, i = t.focusOffset;
@@ -37372,7 +37354,7 @@ function requireLib() {
37372
37354
  handleDomMutations: function handleDomMutations(e) {
37373
37355
  var r;
37374
37356
  D() || v() || e.some(function (r) {
37375
- return Cr(t, r, e);
37357
+ return _Cr(t, r, e);
37376
37358
  }) && (null === (r = on.get(t)) || void 0 === r || r());
37377
37359
  },
37378
37360
  handleInput: function handleInput() {
@@ -37821,15 +37803,14 @@ function requireLib() {
37821
37803
  characterDataOldValue: !0
37822
37804
  };
37823
37805
  var uo = /*#__PURE__*/function (_e$Component) {
37824
- _inherits(uo, _e$Component);
37825
- var _super = _createSuper(uo);
37826
37806
  function uo() {
37827
37807
  var _this3;
37828
37808
  _classCallCheck(this, uo);
37829
- _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);
37830
37810
  return _this3;
37831
37811
  }
37832
- _createClass(uo, [{
37812
+ _inherits(uo, _e$Component);
37813
+ return _createClass(uo, [{
37833
37814
  key: "observe",
37834
37815
  value: function observe() {
37835
37816
  var e,
@@ -37852,7 +37833,7 @@ function requireLib() {
37852
37833
  if (t.current) {
37853
37834
  var _r8;
37854
37835
  var u = n.filter(function (t) {
37855
- return Cr(e, t, n);
37836
+ return _Cr(e, t, n);
37856
37837
  });
37857
37838
  (_r8 = r).push.apply(_r8, _toConsumableArray(u));
37858
37839
  }
@@ -37898,7 +37879,6 @@ function requireLib() {
37898
37879
  return this.props.children;
37899
37880
  }
37900
37881
  }]);
37901
- return uo;
37902
37882
  }(e.Component);
37903
37883
  yu(uo, "contextType", Bu);
37904
37884
  var oo = br ? uo : function (e) {
@@ -38290,9 +38270,8 @@ function requireLib() {
38290
38270
  w(e && N ? null === (t = e.getBoundingClientRect()) || void 0 === t ? void 0 : t.height : void 0);
38291
38271
  }, [N]);
38292
38272
  if (N) {
38293
- var _R$push;
38294
38273
  var z = ke.start(C, []);
38295
- 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));
38296
38275
  }
38297
38276
  var L = C.marks;
38298
38277
  if (P.hasMarkPlaceholder = !1, C.selection && me.isCollapsed(C.selection) && L) {
@@ -39054,7 +39033,7 @@ function requireLib() {
39054
39033
  g = window.btoa(encodeURIComponent(D));
39055
39034
  c.setAttribute("data-slate-fragment", g), e.setData("application/".concat(t), g);
39056
39035
  var C = l.ownerDocument.createElement("div");
39057
- 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;
39058
39037
  }
39059
39038
  }
39060
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.1",
3
+ "version": "8.99.1",
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={