@hero-design/rn 8.127.1-test-auto-workflow.0 → 8.127.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.
- package/CHANGELOG.md +8 -5
- package/es/index.js +7 -4
- package/lib/index.js +7 -4
- package/package.json +7 -7
- package/src/components/BottomSheet/Header.tsx +2 -2
- package/src/components/BottomSheet/StyledBottomSheet.tsx +2 -1
- package/src/theme/components/bottomSheet.ts +3 -1
- package/types/theme/components/bottomSheet.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
-
## 8.127.1
|
|
3
|
+
## 8.127.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
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
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
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`.
|
|
12
15
|
|
|
13
16
|
## 8.127.0
|
|
14
17
|
|
package/es/index.js
CHANGED
|
@@ -5815,7 +5815,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
5815
5815
|
};
|
|
5816
5816
|
var sizes = {
|
|
5817
5817
|
closeIcon: theme.sizes.xxxlarge,
|
|
5818
|
-
floatingCloseIcon
|
|
5818
|
+
// Renamed from floatingCloseIcon — shared by both fixed and floating variants
|
|
5819
|
+
closeIconSize: theme.sizes.smallMedium,
|
|
5820
|
+
headerMinHeight: theme.sizes.xxxxxlarge
|
|
5819
5821
|
};
|
|
5820
5822
|
var space = {
|
|
5821
5823
|
headerWrapperVerticalPadding: theme.space.small,
|
|
@@ -10825,6 +10827,7 @@ var StyledHeaderWrapper = index$c(View)(function (_ref5) {
|
|
|
10825
10827
|
var theme = _ref5.theme;
|
|
10826
10828
|
return {
|
|
10827
10829
|
flexDirection: 'row',
|
|
10830
|
+
minHeight: theme.__hd__.bottomSheet.sizes.headerMinHeight,
|
|
10828
10831
|
paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
|
|
10829
10832
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
10830
10833
|
};
|
|
@@ -10846,7 +10849,7 @@ var StyledFooter = index$c(View)(function (_ref6) {
|
|
|
10846
10849
|
var StyledIconWrapper$3 = index$c(View)(function (_ref7) {
|
|
10847
10850
|
var theme = _ref7.theme;
|
|
10848
10851
|
return {
|
|
10849
|
-
alignItems: '
|
|
10852
|
+
alignItems: 'center',
|
|
10850
10853
|
justifyContent: 'center',
|
|
10851
10854
|
width: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
10852
10855
|
height: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
@@ -11550,14 +11553,14 @@ var Header = function Header(_ref) {
|
|
|
11550
11553
|
onPress: onRequestClose,
|
|
11551
11554
|
intent: "text",
|
|
11552
11555
|
testID: "bottom-sheet-close-icon",
|
|
11553
|
-
size: "
|
|
11556
|
+
size: "xxxsmall"
|
|
11554
11557
|
}) : /*#__PURE__*/React__default.createElement(StyledFloatingHeaderWrapper, {
|
|
11555
11558
|
onPress: onRequestClose,
|
|
11556
11559
|
testID: "bottom-sheet-close-icon"
|
|
11557
11560
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
11558
11561
|
icon: "cancel",
|
|
11559
11562
|
style: {
|
|
11560
|
-
fontSize: theme.__hd__.bottomSheet.sizes.
|
|
11563
|
+
fontSize: theme.__hd__.bottomSheet.sizes.closeIconSize
|
|
11561
11564
|
}
|
|
11562
11565
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
11563
11566
|
};
|
package/lib/index.js
CHANGED
|
@@ -5845,7 +5845,9 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
5845
5845
|
};
|
|
5846
5846
|
var sizes = {
|
|
5847
5847
|
closeIcon: theme.sizes.xxxlarge,
|
|
5848
|
-
floatingCloseIcon
|
|
5848
|
+
// Renamed from floatingCloseIcon — shared by both fixed and floating variants
|
|
5849
|
+
closeIconSize: theme.sizes.smallMedium,
|
|
5850
|
+
headerMinHeight: theme.sizes.xxxxxlarge
|
|
5849
5851
|
};
|
|
5850
5852
|
var space = {
|
|
5851
5853
|
headerWrapperVerticalPadding: theme.space.small,
|
|
@@ -10855,6 +10857,7 @@ var StyledHeaderWrapper = index$c(reactNative.View)(function (_ref5) {
|
|
|
10855
10857
|
var theme = _ref5.theme;
|
|
10856
10858
|
return {
|
|
10857
10859
|
flexDirection: 'row',
|
|
10860
|
+
minHeight: theme.__hd__.bottomSheet.sizes.headerMinHeight,
|
|
10858
10861
|
paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
|
|
10859
10862
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
10860
10863
|
};
|
|
@@ -10876,7 +10879,7 @@ var StyledFooter = index$c(reactNative.View)(function (_ref6) {
|
|
|
10876
10879
|
var StyledIconWrapper$3 = index$c(reactNative.View)(function (_ref7) {
|
|
10877
10880
|
var theme = _ref7.theme;
|
|
10878
10881
|
return {
|
|
10879
|
-
alignItems: '
|
|
10882
|
+
alignItems: 'center',
|
|
10880
10883
|
justifyContent: 'center',
|
|
10881
10884
|
width: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
10882
10885
|
height: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
@@ -11580,14 +11583,14 @@ var Header = function Header(_ref) {
|
|
|
11580
11583
|
onPress: onRequestClose,
|
|
11581
11584
|
intent: "text",
|
|
11582
11585
|
testID: "bottom-sheet-close-icon",
|
|
11583
|
-
size: "
|
|
11586
|
+
size: "xxxsmall"
|
|
11584
11587
|
}) : /*#__PURE__*/React__namespace.default.createElement(StyledFloatingHeaderWrapper, {
|
|
11585
11588
|
onPress: onRequestClose,
|
|
11586
11589
|
testID: "bottom-sheet-close-icon"
|
|
11587
11590
|
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
11588
11591
|
icon: "cancel",
|
|
11589
11592
|
style: {
|
|
11590
|
-
fontSize: theme.__hd__.bottomSheet.sizes.
|
|
11593
|
+
fontSize: theme.__hd__.bottomSheet.sizes.closeIconSize
|
|
11591
11594
|
}
|
|
11592
11595
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
11593
11596
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.127.1
|
|
3
|
+
"version": "8.127.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@emotion/native": "^11.9.3",
|
|
24
24
|
"@emotion/react": "^11.9.3",
|
|
25
|
-
"@hero-design/colors": "8.47.
|
|
25
|
+
"@hero-design/colors": "8.47.3",
|
|
26
26
|
"d3": "^7.8.5",
|
|
27
27
|
"date-fns": "^2.30.0",
|
|
28
28
|
"hero-editor": "^1.17.0",
|
|
29
29
|
"nanoid": "^5.0.9"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@hero-design/react-native-month-year-picker": "^8.45.
|
|
32
|
+
"@hero-design/react-native-month-year-picker": "^8.45.2",
|
|
33
33
|
"@ptomasroos/react-native-multi-slider": "^2.2.2",
|
|
34
34
|
"@react-native-community/datetimepicker": "^8.4.4",
|
|
35
35
|
"@react-native-community/slider": "^5.0.1",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@eslint/compat": "^1.1.1",
|
|
59
59
|
"@eslint/eslintrc": "^3.1.0",
|
|
60
60
|
"@eslint/js": "^9.8.0",
|
|
61
|
-
"@hero-design/eslint-plugin": "9.2.
|
|
62
|
-
"@hero-design/react-native-month-year-picker": "^8.45.
|
|
61
|
+
"@hero-design/eslint-plugin": "9.2.3",
|
|
62
|
+
"@hero-design/react-native-month-year-picker": "^8.45.2",
|
|
63
63
|
"@ptomasroos/react-native-multi-slider": "^2.2.2",
|
|
64
64
|
"@react-native-community/datetimepicker": "8.4.4",
|
|
65
65
|
"@react-native-community/slider": "^5.0.1",
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
"babel-plugin-inline-import": "^3.0.0",
|
|
84
84
|
"core-js": "^3.33.0",
|
|
85
85
|
"eslint": "^8.56.0",
|
|
86
|
-
"eslint-config-hd": "8.42.
|
|
86
|
+
"eslint-config-hd": "8.42.5",
|
|
87
87
|
"expo-linear-gradient": "55.0.9",
|
|
88
88
|
"jest": "^29.2.1",
|
|
89
89
|
"jest-environment-jsdom": "^29.2.1",
|
|
90
90
|
"jest-junit": "^16.0.0",
|
|
91
|
-
"prettier-config-hd": "8.42.
|
|
91
|
+
"prettier-config-hd": "8.42.4",
|
|
92
92
|
"react": "19.1.0",
|
|
93
93
|
"react-dom": "19.1.0",
|
|
94
94
|
"react-native": "0.81.5",
|
|
@@ -47,7 +47,7 @@ const Header = ({
|
|
|
47
47
|
onPress={onRequestClose}
|
|
48
48
|
intent="text"
|
|
49
49
|
testID="bottom-sheet-close-icon"
|
|
50
|
-
size="
|
|
50
|
+
size="xxxsmall"
|
|
51
51
|
/>
|
|
52
52
|
) : (
|
|
53
53
|
<StyledFloatingHeaderWrapper
|
|
@@ -57,7 +57,7 @@ const Header = ({
|
|
|
57
57
|
<Icon
|
|
58
58
|
icon="cancel"
|
|
59
59
|
style={{
|
|
60
|
-
fontSize: theme.__hd__.bottomSheet.sizes.
|
|
60
|
+
fontSize: theme.__hd__.bottomSheet.sizes.closeIconSize,
|
|
61
61
|
}}
|
|
62
62
|
/>
|
|
63
63
|
</StyledFloatingHeaderWrapper>
|
|
@@ -58,6 +58,7 @@ const StyledBackdrop = styled(AnimatedPressable)<
|
|
|
58
58
|
|
|
59
59
|
const StyledHeaderWrapper = styled(View)(({ theme }) => ({
|
|
60
60
|
flexDirection: 'row',
|
|
61
|
+
minHeight: theme.__hd__.bottomSheet.sizes.headerMinHeight,
|
|
61
62
|
paddingVertical: theme.__hd__.bottomSheet.space.headerWrapperVerticalPadding,
|
|
62
63
|
paddingHorizontal:
|
|
63
64
|
theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding,
|
|
@@ -77,7 +78,7 @@ const StyledFooter = styled(View)<ViewProps>(({ theme }) => ({
|
|
|
77
78
|
}));
|
|
78
79
|
|
|
79
80
|
const StyledIconWrapper = styled(View)<ViewProps>(({ theme }) => ({
|
|
80
|
-
alignItems: '
|
|
81
|
+
alignItems: 'center',
|
|
81
82
|
justifyContent: 'center',
|
|
82
83
|
width: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
83
84
|
height: theme.__hd__.bottomSheet.sizes.closeIcon,
|
|
@@ -10,7 +10,9 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
|
|
|
10
10
|
|
|
11
11
|
const sizes = {
|
|
12
12
|
closeIcon: theme.sizes.xxxlarge,
|
|
13
|
-
floatingCloseIcon
|
|
13
|
+
// Renamed from floatingCloseIcon — shared by both fixed and floating variants
|
|
14
|
+
closeIconSize: theme.sizes.smallMedium,
|
|
15
|
+
headerMinHeight: theme.sizes.xxxxxlarge,
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
const space = {
|