react-crud-mobile 1.3.347 → 1.3.349
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 +6 -11
- 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 +6 -11
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +6 -16
@@ -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 = 30;
|
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
|
-
//
|
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:
|
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,8 @@ var styles$6 = /*#__PURE__*/StyleSheet.create({
|
|
894
887
|
input: {
|
895
888
|
marginHorizontal: 0,
|
896
889
|
marginVertical: 0,
|
890
|
+
paddingVertical: 0,
|
891
|
+
height: 40,
|
897
892
|
width: '100%',
|
898
893
|
flex: 1
|
899
894
|
},
|