react-crud-mobile 1.3.382 → 1.3.384
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 -33
- 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 -33
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIModal.tsx +23 -37
- package/src/elements/core/UISelect.tsx +1 -1
|
@@ -11,10 +11,10 @@ var reactNative = require('react-native');
|
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var Ionicons = _interopDefault(require('@expo/vector-icons/Ionicons'));
|
|
13
13
|
var vectorIcons = require('@expo/vector-icons');
|
|
14
|
+
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
14
15
|
var Slider = _interopDefault(require('@react-native-community/slider'));
|
|
15
16
|
var Toast = require('react-native-toast-message');
|
|
16
17
|
var Toast__default = _interopDefault(Toast);
|
|
17
|
-
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
18
18
|
|
|
19
19
|
function _extends() {
|
|
20
20
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -581,9 +581,9 @@ function UISelect(props) {
|
|
|
581
581
|
onRequestClose: function onRequestClose() {
|
|
582
582
|
return setModalVisible(false);
|
|
583
583
|
},
|
|
584
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
584
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNativeSafeAreaContext.SafeAreaView, {
|
|
585
585
|
style: style('modalTop')
|
|
586
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(
|
|
586
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaView, {
|
|
587
587
|
style: style('modalSafe'),
|
|
588
588
|
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
589
589
|
style: scope.getStyle('header', headerStyle),
|
|
@@ -1543,35 +1543,31 @@ function UIModal(props) {
|
|
|
1543
1543
|
children: content
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
style:
|
|
1553
|
-
children:
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
}), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
|
|
1572
|
-
children: content
|
|
1573
|
-
}), bottom]
|
|
1574
|
-
}), /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
|
|
1546
|
+
return /*#__PURE__*/jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaView, {
|
|
1547
|
+
style: style('modalSafe'),
|
|
1548
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
1549
|
+
style: scope.getStyle('header', headerStyle),
|
|
1550
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.TouchableOpacity, {
|
|
1551
|
+
onPress: onClose,
|
|
1552
|
+
style: style('modalCloseButton'),
|
|
1553
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Ionicons, {
|
|
1554
|
+
name: "chevron-back-outline",
|
|
1555
|
+
size: 24,
|
|
1556
|
+
color: color,
|
|
1557
|
+
style: style('modalCloseText', defaults)
|
|
1558
|
+
})
|
|
1559
|
+
}), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
1560
|
+
style: style('modalTitle', defaults),
|
|
1561
|
+
children: label
|
|
1562
|
+
}), !reactCrudUtils.Utils.isEmpty(headerRight) && /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
|
|
1563
|
+
scope: scope,
|
|
1564
|
+
crud: curr,
|
|
1565
|
+
"transient": true,
|
|
1566
|
+
children: headerRight
|
|
1567
|
+
})]
|
|
1568
|
+
}), /*#__PURE__*/jsxRuntime.jsx(ModalContent, {
|
|
1569
|
+
children: content
|
|
1570
|
+
}), bottom, /*#__PURE__*/jsxRuntime.jsx(UIToast, {})]
|
|
1575
1571
|
});
|
|
1576
1572
|
};
|
|
1577
1573
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
|
|
@@ -1584,7 +1580,7 @@ function UIModal(props) {
|
|
|
1584
1580
|
}
|
|
1585
1581
|
var styles$8 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
1586
1582
|
modalTop: {
|
|
1587
|
-
backgroundColor: '
|
|
1583
|
+
backgroundColor: 'background',
|
|
1588
1584
|
width: '100%'
|
|
1589
1585
|
},
|
|
1590
1586
|
modalSafe: {
|