@hero-design/rn-work-uikit 1.12.1 → 1.12.2
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 +7 -0
- package/es/index.js +10 -3
- package/lib/index.js +10 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`c3c35f0c8d2825138330aaae0ae383b624b8e067`](https://github.com/Thinkei/hero-design/commit/c3c35f0c8d2825138330aaae0ae383b624b8e067)]:
|
|
8
|
+
- @hero-design/rn@8.120.0
|
|
9
|
+
|
|
3
10
|
## 1.12.1
|
|
4
11
|
|
|
5
12
|
### 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(
|
|
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(
|
|
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.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@emotion/native": "^11.9.3",
|
|
25
25
|
"@emotion/react": "^11.9.3",
|
|
26
|
-
"@hero-design/rn": "8.
|
|
26
|
+
"@hero-design/rn": "8.120.0",
|
|
27
27
|
"hero-editor": "^1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|