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
|
@@ -482,6 +482,7 @@ function UIButton(props) {
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
function UISelect(props) {
|
|
485
|
+
var _theme$colors;
|
|
485
486
|
var _useState = useState(false),
|
|
486
487
|
modalVisible = _useState[0],
|
|
487
488
|
setModalVisible = _useState[1];
|
|
@@ -497,6 +498,7 @@ function UISelect(props) {
|
|
|
497
498
|
main.data.selectIsOpen = _modalVisible;
|
|
498
499
|
setModalVisible(_modalVisible);
|
|
499
500
|
};
|
|
501
|
+
var iconColor = Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
|
|
500
502
|
var onClick = function onClick(_ref) {
|
|
501
503
|
var value = _ref.value;
|
|
502
504
|
var val = value;
|
|
@@ -524,9 +526,10 @@ function UISelect(props) {
|
|
|
524
526
|
style: style('selectLabel'),
|
|
525
527
|
children: Utils.nvl(value, placeholder)
|
|
526
528
|
}), /*#__PURE__*/jsx(Ionicons$1, {
|
|
527
|
-
name: "
|
|
528
|
-
size:
|
|
529
|
-
color:
|
|
529
|
+
name: "chevron-down-outline",
|
|
530
|
+
size: 24,
|
|
531
|
+
color: scope.getPart('iconColor', null, iconColor),
|
|
532
|
+
style: style('modalCloseText', {})
|
|
530
533
|
})]
|
|
531
534
|
}), /*#__PURE__*/jsxs(Modal, {
|
|
532
535
|
animationType: "slide",
|
|
@@ -586,14 +589,16 @@ var styles$3 = /*#__PURE__*/StyleSheet.create({
|
|
|
586
589
|
selectLabel: {
|
|
587
590
|
flex: 1
|
|
588
591
|
},
|
|
589
|
-
modalTop: {
|
|
590
|
-
backgroundColor: 'primary',
|
|
591
|
-
width: '100%'
|
|
592
|
-
},
|
|
593
592
|
modalSafe: {
|
|
594
593
|
flex: 1,
|
|
595
|
-
|
|
596
|
-
|
|
594
|
+
backgroundColor: 'background',
|
|
595
|
+
paddingTop: StatusBar.currentHeight || 0
|
|
596
|
+
},
|
|
597
|
+
modalHeader: {
|
|
598
|
+
flexDirection: 'row',
|
|
599
|
+
alignItems: 'center',
|
|
600
|
+
padding: 15,
|
|
601
|
+
backgroundColor: 'theme'
|
|
597
602
|
},
|
|
598
603
|
modalCloseButton: {
|
|
599
604
|
padding: 10
|
|
@@ -604,16 +609,17 @@ var styles$3 = /*#__PURE__*/StyleSheet.create({
|
|
|
604
609
|
},
|
|
605
610
|
modalTitle: {
|
|
606
611
|
fontSize: 18,
|
|
612
|
+
color: 'white',
|
|
607
613
|
fontWeight: 'bold',
|
|
608
614
|
marginLeft: 10
|
|
609
615
|
},
|
|
610
616
|
modalContent: {
|
|
611
617
|
flex: 1,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
618
|
+
width: '100%',
|
|
619
|
+
alignSelf: 'flex-start',
|
|
620
|
+
flexDirection: 'row',
|
|
621
|
+
flexWrap: 'wrap',
|
|
622
|
+
padding: 20
|
|
617
623
|
}
|
|
618
624
|
});
|
|
619
625
|
|