react-crud-mobile 1.3.15 → 1.3.17
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 +20 -14
- 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 +20 -14
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +20 -11
|
@@ -490,6 +490,7 @@ function UIButton(props) {
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
function UISelect(props) {
|
|
493
|
+
var _theme$colors;
|
|
493
494
|
var _useState = React.useState(false),
|
|
494
495
|
modalVisible = _useState[0],
|
|
495
496
|
setModalVisible = _useState[1];
|
|
@@ -505,6 +506,7 @@ function UISelect(props) {
|
|
|
505
506
|
main.data.selectIsOpen = _modalVisible;
|
|
506
507
|
setModalVisible(_modalVisible);
|
|
507
508
|
};
|
|
509
|
+
var iconColor = reactCrudUtils.Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
|
|
508
510
|
var onClick = function onClick(_ref) {
|
|
509
511
|
var value = _ref.value;
|
|
510
512
|
var val = value;
|
|
@@ -532,9 +534,10 @@ function UISelect(props) {
|
|
|
532
534
|
style: style('selectLabel'),
|
|
533
535
|
children: reactCrudUtils.Utils.nvl(value, placeholder)
|
|
534
536
|
}), /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
|
535
|
-
name: "
|
|
536
|
-
size:
|
|
537
|
-
color:
|
|
537
|
+
name: "chevron-down-outline",
|
|
538
|
+
size: 24,
|
|
539
|
+
color: scope.getPart('iconColor', null, iconColor),
|
|
540
|
+
style: style('modalCloseText', {})
|
|
538
541
|
})]
|
|
539
542
|
}), /*#__PURE__*/jsxRuntime.jsxs(reactNative.Modal, {
|
|
540
543
|
animationType: "slide",
|
|
@@ -594,14 +597,16 @@ var styles$3 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
|
594
597
|
selectLabel: {
|
|
595
598
|
flex: 1
|
|
596
599
|
},
|
|
597
|
-
modalTop: {
|
|
598
|
-
backgroundColor: 'primary',
|
|
599
|
-
width: '100%'
|
|
600
|
-
},
|
|
601
600
|
modalSafe: {
|
|
602
601
|
flex: 1,
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
backgroundColor: 'background',
|
|
603
|
+
paddingTop: reactNative.StatusBar.currentHeight || 0
|
|
604
|
+
},
|
|
605
|
+
modalHeader: {
|
|
606
|
+
flexDirection: 'row',
|
|
607
|
+
alignItems: 'center',
|
|
608
|
+
padding: 15,
|
|
609
|
+
backgroundColor: 'theme'
|
|
605
610
|
},
|
|
606
611
|
modalCloseButton: {
|
|
607
612
|
padding: 10
|
|
@@ -612,16 +617,17 @@ var styles$3 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
|
612
617
|
},
|
|
613
618
|
modalTitle: {
|
|
614
619
|
fontSize: 18,
|
|
620
|
+
color: 'white',
|
|
615
621
|
fontWeight: 'bold',
|
|
616
622
|
marginLeft: 10
|
|
617
623
|
},
|
|
618
624
|
modalContent: {
|
|
619
625
|
flex: 1,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
626
|
+
width: '100%',
|
|
627
|
+
alignSelf: 'flex-start',
|
|
628
|
+
flexDirection: 'row',
|
|
629
|
+
flexWrap: 'wrap',
|
|
630
|
+
padding: 20
|
|
625
631
|
}
|
|
626
632
|
});
|
|
627
633
|
|