secullum-react-native-ui 4.18.4 → 4.18.6

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.
@@ -205,8 +205,7 @@ class DropDown extends React.Component {
205
205
  modalOverlay: {
206
206
  justifyContent: this.shouldDisplaySearchField()
207
207
  ? 'flex-start'
208
- : 'center',
209
- paddingTop: this.shouldDisplaySearchField() && react_native_1.Platform.OS === 'ios' ? 44 : 0
208
+ : 'center'
210
209
  },
211
210
  modalContainer: {
212
211
  maxHeight: '95%',
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeyboardAvoidingView = void 0;
4
4
  const React = require("react");
5
5
  const react_native_1 = require("react-native");
6
+ const layout_1 = require("../modules/layout");
6
7
  class KeyboardAvoidingView extends React.Component {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -78,16 +79,16 @@ class KeyboardAvoidingView extends React.Component {
78
79
  const availableHeight = react_native_1.Dimensions.get('window').height - keyboardHeight - extraWindowHeight;
79
80
  return (React.createElement(react_native_1.View, { style: [{ height: availableHeight }, !keyBoardShow && { flex: 1 }] },
80
81
  React.createElement(react_native_1.ScrollView
81
- // On Android 15 (API 35) devices, when the keyboard appears,
82
- // the ScrollView does not resize correctly and may hide focused input fields.
83
- // Related issue on GitLab: 11635
82
+ // On Android 15+ (API 35+), with edge-to-edge enforced, the window is not
83
+ // resized when the keyboard appears, so the ScrollView does not gain any
84
+ // scroll room and may hide focused input fields.
85
+ // Related issues on GitLab: 11635, 14734
84
86
  , {
85
- // On Android 15 (API 35) devices, when the keyboard appears,
86
- // the ScrollView does not resize correctly and may hide focused input fields.
87
- // Related issue on GitLab: 11635
88
- contentContainerStyle: react_native_1.Platform.OS === 'android' &&
89
- react_native_1.Platform.Version === 35 &&
90
- keyboardHeight > 0
87
+ // On Android 15+ (API 35+), with edge-to-edge enforced, the window is not
88
+ // resized when the keyboard appears, so the ScrollView does not gain any
89
+ // scroll room and may hide focused input fields.
90
+ // Related issues on GitLab: 11635, 14734
91
+ contentContainerStyle: (0, layout_1.isEdgeToEdge)() && keyboardHeight > 0
91
92
  ? { paddingBottom: keyboardHeight }
92
93
  : undefined, ref: this.scrollViewRef,
93
94
  // @ts-ignore: O react-native não tem auto, mas o react-native-web aceita
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Modal = void 0;
4
4
  const React = require("react");
5
5
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
6
- const layout_1 = require("../modules/layout");
7
6
  const react_native_1 = require("react-native");
8
7
  // From the most specific to the most generic, in the order Yoga resolves each edge.
9
8
  // paddingStart/End map to left/right in LTR, which is the only case we support.
@@ -52,20 +51,17 @@ class Modal extends React.Component {
52
51
  styles.overlay,
53
52
  overlayStyle
54
53
  ]);
55
- // sec-issues#14678: On edge-to-edge the modal window is the whole screen,
56
- // including the system bar areas, and React Native no longer applies
57
- // fitsSystemWindows to that window. The safe area is added to the padding
58
- // of the consumer that already declared it and is applied last, so that
59
- // no overlayStyle accidentally overrides it. On Android, when the navigation
60
- // bar moves to the side, the inset comes in from the left or right instead
61
- // of from the bottom.
62
- const safeAreaStyle = (0, layout_1.isEdgeToEdge)() && insets
54
+ // sec-issues#14678, sec-issues#14736: the modal window covers the
55
+ // system bar areas, so the content has to account for them itself.
56
+ // There is intentionally no platform-specific condition here because
57
+ // the insets are the overlap between the provider view and the system
58
+ // bars, so they already come in as zero when the window does not cover them.
59
+ const safeAreaStyle = insets
63
60
  ? {
64
61
  paddingTop: resolvePadding(flattenedOverlayStyle, 'top') + insets.top,
65
62
  paddingBottom: resolvePadding(flattenedOverlayStyle, 'bottom') +
66
63
  insets.bottom,
67
- paddingLeft: resolvePadding(flattenedOverlayStyle, 'left') +
68
- insets.left,
64
+ paddingLeft: resolvePadding(flattenedOverlayStyle, 'left') + insets.left,
69
65
  paddingRight: resolvePadding(flattenedOverlayStyle, 'right') +
70
66
  insets.right
71
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.18.4",
3
+ "version": "4.18.6",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [