@hero-design/rn-work-uikit 1.12.1 → 1.12.3-test-auto-workflow.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
+ ## 1.12.3-test-auto-workflow.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4880](https://github.com/Thinkei/hero-design/pull/4880) [`58e5d24cb3a296fee8b4192594656a08bf983ab5`](https://github.com/Thinkei/hero-design/commit/58e5d24cb3a296fee8b4192594656a08bf983ab5) Thanks [@tqdungit](https://github.com/tqdungit)! - Update `engines.node` to enforce Node.js 20/22 support. Published packages now require `^20.0.0 || ^22.0.0`, dropping support for Node 14/16/18 and older ranges. Internal packages are set to `^22.0.0`.
8
+
9
+ - Updated dependencies [[`58e5d24cb3a296fee8b4192594656a08bf983ab5`](https://github.com/Thinkei/hero-design/commit/58e5d24cb3a296fee8b4192594656a08bf983ab5)]:
10
+ - @hero-design/react-native-month-year-picker@8.45.2-test-auto-workflow.0
11
+ - @hero-design/rn@8.120.1-test-auto-workflow.0
12
+
13
+ ## 1.12.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`c3c35f0c8d2825138330aaae0ae383b624b8e067`](https://github.com/Thinkei/hero-design/commit/c3c35f0c8d2825138330aaae0ae383b624b8e067)]:
18
+ - @hero-design/rn@8.120.0
19
+
3
20
  ## 1.12.1
4
21
 
5
22
  ### Patch Changes
package/es/index.js CHANGED
@@ -16567,10 +16567,12 @@ var BottomNavigation = function BottomNavigation(_ref) {
16567
16567
  })), /*#__PURE__*/React__default.createElement(BottomBarWrapper, {
16568
16568
  themeInsets: insets
16569
16569
  }, /*#__PURE__*/React__default.createElement(BottomBar, null, tabs.map(function (tab) {
16570
+ var _badge$count, _badge$testID;
16570
16571
  var key = tab.key,
16571
16572
  icon = tab.icon,
16572
16573
  title = tab.title,
16573
- testID = tab.testID;
16574
+ testID = tab.testID,
16575
+ badge = tab.badge;
16574
16576
  var active = selectedTabKey === key;
16575
16577
  var inactiveIcon = getInactiveIcon(icon);
16576
16578
  return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
@@ -16579,11 +16581,16 @@ var BottomNavigation = function BottomNavigation(_ref) {
16579
16581
  return onTabPress(key);
16580
16582
  },
16581
16583
  testID: testID
16582
- }, /*#__PURE__*/React__default.createElement(BottomBarItem, null, /*#__PURE__*/React__default.createElement(Icon, {
16584
+ }, /*#__PURE__*/React__default.createElement(BottomBarItem, null, /*#__PURE__*/React__default.createElement(Status, {
16585
+ content: (_badge$count = badge === null || badge === void 0 ? void 0 : badge.count) !== null && _badge$count !== void 0 ? _badge$count : 0,
16586
+ visible: !!badge && badge.count > 0,
16587
+ max: badge === null || badge === void 0 ? void 0 : badge.max,
16588
+ testID: (_badge$testID = badge === null || badge === void 0 ? void 0 : badge.testID) !== null && _badge$testID !== void 0 ? _badge$testID : "bottom-nav-badge-".concat(key)
16589
+ }, /*#__PURE__*/React__default.createElement(Icon, {
16583
16590
  icon: active ? icon : inactiveIcon,
16584
16591
  intent: active ? 'primary' : 'muted',
16585
16592
  testID: "hero-icon-".concat(icon)
16586
- }), !!title && /*#__PURE__*/React__default.createElement(StyledBottomBarText, {
16593
+ })), !!title && /*#__PURE__*/React__default.createElement(StyledBottomBarText, {
16587
16594
  intent: active ? 'primary' : 'muted',
16588
16595
  numberOfLines: 1
16589
16596
  }, title)));
package/lib/index.js CHANGED
@@ -16596,10 +16596,12 @@ var BottomNavigation = function BottomNavigation(_ref) {
16596
16596
  })), /*#__PURE__*/React__namespace.default.createElement(BottomBarWrapper, {
16597
16597
  themeInsets: insets
16598
16598
  }, /*#__PURE__*/React__namespace.default.createElement(BottomBar, null, tabs.map(function (tab) {
16599
+ var _badge$count, _badge$testID;
16599
16600
  var key = tab.key,
16600
16601
  icon = tab.icon,
16601
16602
  title = tab.title,
16602
- testID = tab.testID;
16603
+ testID = tab.testID,
16604
+ badge = tab.badge;
16603
16605
  var active = selectedTabKey === key;
16604
16606
  var inactiveIcon = getInactiveIcon(icon);
16605
16607
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
@@ -16608,11 +16610,16 @@ var BottomNavigation = function BottomNavigation(_ref) {
16608
16610
  return onTabPress(key);
16609
16611
  },
16610
16612
  testID: testID
16611
- }, /*#__PURE__*/React__namespace.default.createElement(BottomBarItem, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
16613
+ }, /*#__PURE__*/React__namespace.default.createElement(BottomBarItem, null, /*#__PURE__*/React__namespace.default.createElement(Status, {
16614
+ content: (_badge$count = badge === null || badge === void 0 ? void 0 : badge.count) !== null && _badge$count !== void 0 ? _badge$count : 0,
16615
+ visible: !!badge && badge.count > 0,
16616
+ max: badge === null || badge === void 0 ? void 0 : badge.max,
16617
+ testID: (_badge$testID = badge === null || badge === void 0 ? void 0 : badge.testID) !== null && _badge$testID !== void 0 ? _badge$testID : "bottom-nav-badge-".concat(key)
16618
+ }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
16612
16619
  icon: active ? icon : inactiveIcon,
16613
16620
  intent: active ? 'primary' : 'muted',
16614
16621
  testID: "hero-icon-".concat(icon)
16615
- }), !!title && /*#__PURE__*/React__namespace.default.createElement(StyledBottomBarText, {
16622
+ })), !!title && /*#__PURE__*/React__namespace.default.createElement(StyledBottomBarText, {
16616
16623
  intent: active ? 'primary' : 'muted',
16617
16624
  numberOfLines: 1
16618
16625
  }, title)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.12.1",
3
+ "version": "1.12.3-test-auto-workflow.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@emotion/native": "^11.9.3",
25
25
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "8.119.1",
26
+ "@hero-design/rn": "8.120.1-test-auto-workflow.0",
27
27
  "hero-editor": "^1.17.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@hero-design/react-native-month-year-picker": "^8.45.1",
30
+ "@hero-design/react-native-month-year-picker": "^8.45.2-test-auto-workflow.0",
31
31
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
32
32
  "@react-native-community/datetimepicker": "^8.4.4",
33
33
  "@react-native-community/slider": " ^5.0.1",
@@ -53,8 +53,8 @@
53
53
  "@eslint/compat": "^1.1.1",
54
54
  "@eslint/eslintrc": "^3.1.0",
55
55
  "@eslint/js": "^9.8.0",
56
- "@hero-design/eslint-plugin": "9.2.2",
57
- "@hero-design/react-native-month-year-picker": "^8.45.1",
56
+ "@hero-design/eslint-plugin": "9.2.3-test-auto-workflow.0",
57
+ "@hero-design/react-native-month-year-picker": "^8.45.2-test-auto-workflow.0",
58
58
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
59
59
  "@react-native-community/datetimepicker": "8.4.4",
60
60
  "@react-native-community/slider": "^5.0.1",
@@ -102,5 +102,8 @@
102
102
  "ts-jest": "^29.1.1",
103
103
  "typescript": "^5.7.3"
104
104
  },
105
+ "engines": {
106
+ "node": "^20.0.0 || ^22.0.0"
107
+ },
105
108
  "prettier": "prettier-config-hd"
106
109
  }