react-crud-mobile 1.3.134 → 1.3.136
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/dist/react-crud-mobile.cjs.development.js +29 -8
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +29 -8
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +31 -7
|
@@ -1400,6 +1400,34 @@ function UIModal(_ref) {
|
|
|
1400
1400
|
children: props.children
|
|
1401
1401
|
});
|
|
1402
1402
|
};
|
|
1403
|
+
var ModalContent = function ModalContent(_ref2) {
|
|
1404
|
+
var children = _ref2.children;
|
|
1405
|
+
var disableScroll = scope.getPart('disableScroll', false);
|
|
1406
|
+
var disableContent = scope.getPart('disableContent', false);
|
|
1407
|
+
console.log(scope.original);
|
|
1408
|
+
if (disableContent) {
|
|
1409
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
1410
|
+
children: children
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
if (disableScroll) {
|
|
1414
|
+
return /*#__PURE__*/jsx(View, {
|
|
1415
|
+
style: style('modalContent'),
|
|
1416
|
+
ref: scrollRef,
|
|
1417
|
+
children: children
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
return /*#__PURE__*/jsx(ScrollView, {
|
|
1421
|
+
contentContainerStyle: {
|
|
1422
|
+
flexGrow: 1,
|
|
1423
|
+
paddingBottom: 50
|
|
1424
|
+
},
|
|
1425
|
+
style: style('modalContent'),
|
|
1426
|
+
nestedScrollEnabled: true,
|
|
1427
|
+
ref: scrollRef,
|
|
1428
|
+
children: children
|
|
1429
|
+
});
|
|
1430
|
+
};
|
|
1403
1431
|
return /*#__PURE__*/jsxs(Modal, {
|
|
1404
1432
|
animationType: "slide",
|
|
1405
1433
|
transparent: true,
|
|
@@ -1429,14 +1457,7 @@ function UIModal(_ref) {
|
|
|
1429
1457
|
"transient": true,
|
|
1430
1458
|
children: headerRight
|
|
1431
1459
|
})]
|
|
1432
|
-
}), /*#__PURE__*/jsx(
|
|
1433
|
-
contentContainerStyle: {
|
|
1434
|
-
flexGrow: 1,
|
|
1435
|
-
paddingBottom: 50
|
|
1436
|
-
},
|
|
1437
|
-
style: style('modalContent'),
|
|
1438
|
-
nestedScrollEnabled: true,
|
|
1439
|
-
ref: scrollRef,
|
|
1460
|
+
}), /*#__PURE__*/jsx(ModalContent, {
|
|
1440
1461
|
children: /*#__PURE__*/jsx(View, {
|
|
1441
1462
|
style: {
|
|
1442
1463
|
flex: 1,
|