react-crud-mobile 1.3.347 → 1.3.348

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.
@@ -831,18 +831,19 @@ function UIInput(props) {
831
831
  }
832
832
  }
833
833
  };
834
- var size = element.size;
835
834
  //v5
836
835
  var defs = _extends({}, Utils.nvl(decode[type], {}), element.inputProps);
837
836
  var inputStyle = Utils.call(function () {
837
+ var size = element.size;
838
838
  var css = {};
839
839
  if (size === 'small') {
840
+ css.height = 35;
840
841
  css.fontSize = 12;
841
842
  }
842
843
  css.fontSize = Utils.nvl(element.fontSize, css.fontSize);
843
844
  css = _extends({}, style(type), style('input', css));
844
845
  css.lineHeight = parseInt(css.fontSize) + 2;
845
- //v2
846
+ //v1
846
847
  return css;
847
848
  });
848
849
  if (defs.autoHeight) {
@@ -851,17 +852,9 @@ function UIInput(props) {
851
852
  };
852
853
  inputStyle = _extends({}, inputStyle, defs.style);
853
854
  }
854
- var baseStyle = Utils.call(function () {
855
- var css = _extends({}, style('base', defs == null ? void 0 : defs.baseStyle));
856
- css.height = 40;
857
- if (size === 'small') {
858
- css.height = 30;
859
- }
860
- return css;
861
- });
862
855
  return /*#__PURE__*/jsxs(Fragment, {
863
856
  children: [/*#__PURE__*/jsxs(View, {
864
- style: _extends({}, baseStyle),
857
+ style: style('base', defs == null ? void 0 : defs.baseStyle),
865
858
  children: [scope.getPart('left'), /*#__PURE__*/jsx(TextInput, _extends({
866
859
  onChangeText: onChange,
867
860
  value: value,
@@ -894,6 +887,7 @@ var styles$6 = /*#__PURE__*/StyleSheet.create({
894
887
  input: {
895
888
  marginHorizontal: 0,
896
889
  marginVertical: 0,
890
+ height: 40,
897
891
  width: '100%',
898
892
  flex: 1
899
893
  },