react-crud-mobile 1.3.13 → 1.3.15

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.
@@ -498,8 +498,8 @@ function UISelect(props) {
498
498
  var items = reactCrudUtils.Utils.nvl(scope.getOptions(), []);
499
499
  var placeholder = scope.attr('placeholder', 'Selecione...');
500
500
  var value = scope.getDisplayValue();
501
- var theme = reactCrudUtils.useTheme();
502
501
  var main = reactCrudUtils.ViewUtils.getCrud('view');
502
+ var theme = scope.getTheme();
503
503
  var handlePress = function handlePress() {
504
504
  var _modalVisible = !modalVisible;
505
505
  main.data.selectIsOpen = _modalVisible;
@@ -510,6 +510,8 @@ function UISelect(props) {
510
510
  var val = value;
511
511
  if (element.isObject && val != null && val.object) {
512
512
  scope.changeValue(val == null ? void 0 : val.object);
513
+ } else if (val != null && val.value) {
514
+ scope.changeValue(val == null ? void 0 : val.value);
513
515
  } else {
514
516
  scope.changeValue(value);
515
517
  }
@@ -592,16 +594,14 @@ var styles$3 = /*#__PURE__*/reactNative.StyleSheet.create({
592
594
  selectLabel: {
593
595
  flex: 1
594
596
  },
597
+ modalTop: {
598
+ backgroundColor: 'primary',
599
+ width: '100%'
600
+ },
595
601
  modalSafe: {
596
602
  flex: 1,
597
- backgroundColor: 'background',
598
- paddingTop: reactNative.StatusBar.currentHeight || 0
599
- },
600
- modalHeader: {
601
- flexDirection: 'row',
602
- alignItems: 'center',
603
- padding: 15,
604
- backgroundColor: '#6200ea'
603
+ width: '100%',
604
+ backgroundColor: 'background'
605
605
  },
606
606
  modalCloseButton: {
607
607
  padding: 10
@@ -612,17 +612,16 @@ var styles$3 = /*#__PURE__*/reactNative.StyleSheet.create({
612
612
  },
613
613
  modalTitle: {
614
614
  fontSize: 18,
615
- color: 'white',
616
615
  fontWeight: 'bold',
617
616
  marginLeft: 10
618
617
  },
619
618
  modalContent: {
620
619
  flex: 1,
621
- width: '100%',
622
- alignSelf: 'flex-start',
623
- flexDirection: 'row',
624
- flexWrap: 'wrap',
625
- padding: 20
620
+ backgroundColor: 'background',
621
+ paddingTop: 10,
622
+ paddingBottom: 10,
623
+ paddingLeft: 15,
624
+ paddingRight: 15
626
625
  }
627
626
  });
628
627