@hero-design/rn 8.139.0 → 8.139.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.139.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5558](https://github.com/Thinkei/hero-design/pull/5558) [`5367a2d`](https://github.com/Thinkei/hero-design/commit/5367a2dfeefae084e70f5da9a35fa48fd007cb7a) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Select] Fix options list collapsing behind keyboard in nested BottomSheet
8
+
3
9
  ## 8.139.0
4
10
 
5
11
  ### Minor Changes
package/es/index.js CHANGED
@@ -27908,9 +27908,6 @@ function MultiSelect(_ref) {
27908
27908
  _ref$bottomSheetConfi = _ref.bottomSheetConfig,
27909
27909
  bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
27910
27910
  assistiveInfoConfig = _ref.assistiveInfoConfig;
27911
- var _useKeyboard = useKeyboard(),
27912
- isKeyboardVisible = _useKeyboard.isKeyboardVisible,
27913
- keyboardHeight = _useKeyboard.keyboardHeight;
27914
27911
  var _useState = useState(false),
27915
27912
  _useState2 = _slicedToArray(_useState, 2),
27916
27913
  open = _useState2[0],
@@ -27968,9 +27965,6 @@ function MultiSelect(_ref) {
27968
27965
  setOpen(false);
27969
27966
  },
27970
27967
  header: bottomSheetHeader || label,
27971
- style: {
27972
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0
27973
- },
27974
27968
  footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__default.createElement(Footer, {
27975
27969
  label: footerLabel,
27976
27970
  onPress: function onPress() {
@@ -28121,9 +28115,6 @@ var SingleSelect = function SingleSelect(_ref) {
28121
28115
  _ref$bottomSheetConfi = _ref.bottomSheetConfig,
28122
28116
  bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
28123
28117
  assistiveInfoConfig = _ref.assistiveInfoConfig;
28124
- var _useKeyboard = useKeyboard(),
28125
- isKeyboardVisible = _useKeyboard.isKeyboardVisible,
28126
- keyboardHeight = _useKeyboard.keyboardHeight;
28127
28118
  var _useState = useState(false),
28128
28119
  _useState2 = _slicedToArray(_useState, 2),
28129
28120
  open = _useState2[0],
@@ -28174,9 +28165,6 @@ var SingleSelect = function SingleSelect(_ref) {
28174
28165
  setOpen(false);
28175
28166
  },
28176
28167
  header: bottomSheetHeader || label,
28177
- style: {
28178
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0
28179
- },
28180
28168
  onAnimationEnd: function onAnimationEnd() {
28181
28169
  if (open === true) {
28182
28170
  var _sectionListRef$curre;
package/lib/index.js CHANGED
@@ -27937,9 +27937,6 @@ function MultiSelect(_ref) {
27937
27937
  _ref$bottomSheetConfi = _ref.bottomSheetConfig,
27938
27938
  bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
27939
27939
  assistiveInfoConfig = _ref.assistiveInfoConfig;
27940
- var _useKeyboard = useKeyboard(),
27941
- isKeyboardVisible = _useKeyboard.isKeyboardVisible,
27942
- keyboardHeight = _useKeyboard.keyboardHeight;
27943
27940
  var _useState = React.useState(false),
27944
27941
  _useState2 = _slicedToArray(_useState, 2),
27945
27942
  open = _useState2[0],
@@ -27997,9 +27994,6 @@ function MultiSelect(_ref) {
27997
27994
  setOpen(false);
27998
27995
  },
27999
27996
  header: bottomSheetHeader || label,
28000
- style: {
28001
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0
28002
- },
28003
27997
  footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Footer, {
28004
27998
  label: footerLabel,
28005
27999
  onPress: function onPress() {
@@ -28150,9 +28144,6 @@ var SingleSelect = function SingleSelect(_ref) {
28150
28144
  _ref$bottomSheetConfi = _ref.bottomSheetConfig,
28151
28145
  bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
28152
28146
  assistiveInfoConfig = _ref.assistiveInfoConfig;
28153
- var _useKeyboard = useKeyboard(),
28154
- isKeyboardVisible = _useKeyboard.isKeyboardVisible,
28155
- keyboardHeight = _useKeyboard.keyboardHeight;
28156
28147
  var _useState = React.useState(false),
28157
28148
  _useState2 = _slicedToArray(_useState, 2),
28158
28149
  open = _useState2[0],
@@ -28203,9 +28194,6 @@ var SingleSelect = function SingleSelect(_ref) {
28203
28194
  setOpen(false);
28204
28195
  },
28205
28196
  header: bottomSheetHeader || label,
28206
- style: {
28207
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0
28208
- },
28209
28197
  onAnimationEnd: function onAnimationEnd() {
28210
28198
  if (open === true) {
28211
28199
  var _sectionListRef$curre;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.139.0",
3
+ "version": "8.139.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -4,7 +4,6 @@ import type {
4
4
  SectionList,
5
5
  } from 'react-native';
6
6
  import { TouchableOpacity, View } from 'react-native';
7
- import { useKeyboard } from '../../../utils/helpers';
8
7
  import BottomSheet from '../../BottomSheet';
9
8
  import Box from '../../Box';
10
9
  import type { TextInputProps } from '../../TextInput';
@@ -77,7 +76,6 @@ function MultiSelect<V, T extends SelectOptionType<V>>({
77
76
  bottomSheetConfig = {},
78
77
  assistiveInfoConfig,
79
78
  }: MultiSelectProps<V, T>) {
80
- const { isKeyboardVisible, keyboardHeight } = useKeyboard();
81
79
  const [open, setOpen] = useState(false);
82
80
  const [selectingValue, setSelectingValue] = useState(value);
83
81
  const sectionListRef = useRef<SectionList<T, SectionType>>(null);
@@ -147,9 +145,6 @@ function MultiSelect<V, T extends SelectOptionType<V>>({
147
145
  setOpen(false);
148
146
  }}
149
147
  header={bottomSheetHeader || label}
150
- style={{
151
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0,
152
- }}
153
148
  footer={
154
149
  typeof footerLabel === 'string' ? (
155
150
  <Footer
@@ -4,7 +4,7 @@ import type {
4
4
  SectionList,
5
5
  } from 'react-native';
6
6
  import { TouchableOpacity, View } from 'react-native';
7
- import { deepCompareValue, useKeyboard } from '../../../utils/helpers';
7
+ import { deepCompareValue } from '../../../utils/helpers';
8
8
  import BottomSheet from '../../BottomSheet';
9
9
  import type { TextInputProps } from '../../TextInput';
10
10
  import TextInput from '../../TextInput';
@@ -61,7 +61,6 @@ const SingleSelect = <V, T extends SelectOptionType<V>>({
61
61
  bottomSheetConfig = {},
62
62
  assistiveInfoConfig,
63
63
  }: SingleSelectProps<V, T>) => {
64
- const { isKeyboardVisible, keyboardHeight } = useKeyboard();
65
64
  const [open, setOpen] = useState(false);
66
65
  const sectionListRef = useRef<SectionList<T, SectionType>>(null);
67
66
  const sections = toSections(options);
@@ -130,9 +129,6 @@ const SingleSelect = <V, T extends SelectOptionType<V>>({
130
129
  setOpen(false);
131
130
  }}
132
131
  header={bottomSheetHeader || label}
133
- style={{
134
- paddingBottom: isKeyboardVisible ? keyboardHeight : 0,
135
- }}
136
132
  onAnimationEnd={() => {
137
133
  if (open === true) {
138
134
  const scrollParams = getScrollParams(value, sections);