@hero-design/rn-work-uikit 1.13.7 → 1.13.8
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 +16 -0
- package/es/index.js +7 -4
- package/lib/index.js +7 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.13.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#5068](https://github.com/Thinkei/hero-design/pull/5068) [`b613e31036219c871e4f238501f3ed0170843ae6`](https://github.com/Thinkei/hero-design/commit/b613e31036219c871e4f238501f3ed0170843ae6) Thanks [@kristellegangano-debug](https://github.com/kristellegangano-debug)! - [UXT-8928] fix(BottomSheet): reduce close button icon size and enforce header minimum height
|
|
8
|
+
|
|
9
|
+
- Added explicit `minHeight` (64px) to the header wrapper, codifying the layout that previously existed implicitly
|
|
10
|
+
- Reduced close button icon size from 16px to 12px by changing `Button.Icon` size from `xsmall` to `xxxsmall`
|
|
11
|
+
- Centred the close icon within its 48x48px touch target (was right-aligned)
|
|
12
|
+
- Renamed `floatingCloseIcon` theme token to `closeIconSize` since both variants now share the same value
|
|
13
|
+
|
|
14
|
+
**Note:** If you reference `theme.__hd__.bottomSheet.sizes.floatingCloseIcon` directly, update it to `theme.__hd__.bottomSheet.sizes.closeIconSize`.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`b613e31036219c871e4f238501f3ed0170843ae6`](https://github.com/Thinkei/hero-design/commit/b613e31036219c871e4f238501f3ed0170843ae6)]:
|
|
17
|
+
- @hero-design/rn@8.127.1
|
|
18
|
+
|
|
3
19
|
## 1.13.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -3776,6 +3776,7 @@ var StyledHeaderWrapper$1 = index$c(View)(function (_ref5) {
|
|
|
3776
3776
|
var theme = _ref5.theme;
|
|
3777
3777
|
return {
|
|
3778
3778
|
flexDirection: 'row',
|
|
3779
|
+
minHeight: theme.__hd__.bottomSheet.sizes.headerMinHeight,
|
|
3779
3780
|
paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
|
|
3780
3781
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
3781
3782
|
};
|
|
@@ -3797,7 +3798,7 @@ var StyledFooter = index$c(View)(function (_ref6) {
|
|
|
3797
3798
|
var StyledIconWrapper$3 = index$c(View)(function (_ref7) {
|
|
3798
3799
|
var theme = _ref7.theme;
|
|
3799
3800
|
return {
|
|
3800
|
-
alignItems: '
|
|
3801
|
+
alignItems: 'center',
|
|
3801
3802
|
justifyContent: 'center',
|
|
3802
3803
|
width: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
3803
3804
|
height: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
@@ -6125,7 +6126,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
6125
6126
|
};
|
|
6126
6127
|
var sizes = {
|
|
6127
6128
|
closeIcon: theme.sizes.xxxlarge,
|
|
6128
|
-
floatingCloseIcon
|
|
6129
|
+
// Renamed from floatingCloseIcon — shared by both fixed and floating variants
|
|
6130
|
+
closeIconSize: theme.sizes.smallMedium,
|
|
6131
|
+
headerMinHeight: theme.sizes.xxxxxlarge
|
|
6129
6132
|
};
|
|
6130
6133
|
var space = {
|
|
6131
6134
|
headerWrapperVerticalPadding: theme.space.small,
|
|
@@ -9957,14 +9960,14 @@ var Header = function Header(_ref) {
|
|
|
9957
9960
|
onPress: onRequestClose,
|
|
9958
9961
|
intent: "text",
|
|
9959
9962
|
testID: "bottom-sheet-close-icon",
|
|
9960
|
-
size: "
|
|
9963
|
+
size: "xxxsmall"
|
|
9961
9964
|
}) : /*#__PURE__*/React__default.createElement(StyledFloatingHeaderWrapper, {
|
|
9962
9965
|
onPress: onRequestClose,
|
|
9963
9966
|
testID: "bottom-sheet-close-icon"
|
|
9964
9967
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9965
9968
|
icon: "cancel",
|
|
9966
9969
|
style: {
|
|
9967
|
-
fontSize: theme.__hd__.bottomSheet.sizes.
|
|
9970
|
+
fontSize: theme.__hd__.bottomSheet.sizes.closeIconSize
|
|
9968
9971
|
}
|
|
9969
9972
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9970
9973
|
};
|
package/lib/index.js
CHANGED
|
@@ -3806,6 +3806,7 @@ var StyledHeaderWrapper$1 = index$c(reactNative.View)(function (_ref5) {
|
|
|
3806
3806
|
var theme = _ref5.theme;
|
|
3807
3807
|
return {
|
|
3808
3808
|
flexDirection: 'row',
|
|
3809
|
+
minHeight: theme.__hd__.bottomSheet.sizes.headerMinHeight,
|
|
3809
3810
|
paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
|
|
3810
3811
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
3811
3812
|
};
|
|
@@ -3827,7 +3828,7 @@ var StyledFooter = index$c(reactNative.View)(function (_ref6) {
|
|
|
3827
3828
|
var StyledIconWrapper$3 = index$c(reactNative.View)(function (_ref7) {
|
|
3828
3829
|
var theme = _ref7.theme;
|
|
3829
3830
|
return {
|
|
3830
|
-
alignItems: '
|
|
3831
|
+
alignItems: 'center',
|
|
3831
3832
|
justifyContent: 'center',
|
|
3832
3833
|
width: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
3833
3834
|
height: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
@@ -6155,7 +6156,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
6155
6156
|
};
|
|
6156
6157
|
var sizes = {
|
|
6157
6158
|
closeIcon: theme.sizes.xxxlarge,
|
|
6158
|
-
floatingCloseIcon
|
|
6159
|
+
// Renamed from floatingCloseIcon — shared by both fixed and floating variants
|
|
6160
|
+
closeIconSize: theme.sizes.smallMedium,
|
|
6161
|
+
headerMinHeight: theme.sizes.xxxxxlarge
|
|
6159
6162
|
};
|
|
6160
6163
|
var space = {
|
|
6161
6164
|
headerWrapperVerticalPadding: theme.space.small,
|
|
@@ -9987,14 +9990,14 @@ var Header = function Header(_ref) {
|
|
|
9987
9990
|
onPress: onRequestClose,
|
|
9988
9991
|
intent: "text",
|
|
9989
9992
|
testID: "bottom-sheet-close-icon",
|
|
9990
|
-
size: "
|
|
9993
|
+
size: "xxxsmall"
|
|
9991
9994
|
}) : /*#__PURE__*/React__namespace.default.createElement(StyledFloatingHeaderWrapper, {
|
|
9992
9995
|
onPress: onRequestClose,
|
|
9993
9996
|
testID: "bottom-sheet-close-icon"
|
|
9994
9997
|
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
9995
9998
|
icon: "cancel",
|
|
9996
9999
|
style: {
|
|
9997
|
-
fontSize: theme.__hd__.bottomSheet.sizes.
|
|
10000
|
+
fontSize: theme.__hd__.bottomSheet.sizes.closeIconSize
|
|
9998
10001
|
}
|
|
9999
10002
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
10000
10003
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn-work-uikit",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.8",
|
|
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.127.
|
|
26
|
+
"@hero-design/rn": "8.127.1",
|
|
27
27
|
"hero-editor": "^1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|