react-crud-mobile 1.3.344 → 1.3.346
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 +11 -5
- 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 +11 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +16 -5
@@ -831,13 +831,12 @@ function UIInput(props) {
|
|
831
831
|
}
|
832
832
|
}
|
833
833
|
};
|
834
|
-
|
834
|
+
var size = element.size;
|
835
|
+
//v5
|
835
836
|
var defs = _extends({}, Utils.nvl(decode[type], {}), element.inputProps);
|
836
837
|
var inputStyle = Utils.call(function () {
|
837
|
-
var size = element.size;
|
838
838
|
var css = {};
|
839
839
|
if (size === 'small') {
|
840
|
-
css.height = 35;
|
841
840
|
css.fontSize = 12;
|
842
841
|
}
|
843
842
|
css.fontSize = Utils.nvl(element.fontSize, css.fontSize);
|
@@ -852,9 +851,17 @@ function UIInput(props) {
|
|
852
851
|
};
|
853
852
|
inputStyle = _extends({}, inputStyle, defs.style);
|
854
853
|
}
|
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
|
+
});
|
855
862
|
return /*#__PURE__*/jsxs(Fragment, {
|
856
863
|
children: [/*#__PURE__*/jsxs(View, {
|
857
|
-
style:
|
864
|
+
style: _extends({}, baseStyle),
|
858
865
|
children: [scope.getPart('left'), /*#__PURE__*/jsx(TextInput, _extends({
|
859
866
|
onChangeText: onChange,
|
860
867
|
value: value,
|
@@ -887,7 +894,6 @@ var styles$6 = /*#__PURE__*/StyleSheet.create({
|
|
887
894
|
input: {
|
888
895
|
marginHorizontal: 0,
|
889
896
|
marginVertical: 0,
|
890
|
-
height: 40,
|
891
897
|
width: '100%',
|
892
898
|
flex: 1
|
893
899
|
},
|