react-crud-mobile 1.3.345 → 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 +10 -4
- 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 +10 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +15 -4
@@ -840,13 +840,12 @@ function UIInput(props) {
|
|
840
840
|
}
|
841
841
|
}
|
842
842
|
};
|
843
|
+
var size = element.size;
|
843
844
|
//v5
|
844
845
|
var defs = _extends({}, reactCrudUtils.Utils.nvl(decode[type], {}), element.inputProps);
|
845
846
|
var inputStyle = reactCrudUtils.Utils.call(function () {
|
846
|
-
var size = element.size;
|
847
847
|
var css = {};
|
848
848
|
if (size === 'small') {
|
849
|
-
css.height = 35;
|
850
849
|
css.fontSize = 12;
|
851
850
|
}
|
852
851
|
css.fontSize = reactCrudUtils.Utils.nvl(element.fontSize, css.fontSize);
|
@@ -861,9 +860,17 @@ function UIInput(props) {
|
|
861
860
|
};
|
862
861
|
inputStyle = _extends({}, inputStyle, defs.style);
|
863
862
|
}
|
863
|
+
var baseStyle = reactCrudUtils.Utils.call(function () {
|
864
|
+
var css = _extends({}, style('base', defs == null ? void 0 : defs.baseStyle));
|
865
|
+
css.height = 40;
|
866
|
+
if (size === 'small') {
|
867
|
+
css.height = 30;
|
868
|
+
}
|
869
|
+
return css;
|
870
|
+
});
|
864
871
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
865
872
|
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
866
|
-
style:
|
873
|
+
style: _extends({}, baseStyle),
|
867
874
|
children: [scope.getPart('left'), /*#__PURE__*/jsxRuntime.jsx(reactNative.TextInput, _extends({
|
868
875
|
onChangeText: onChange,
|
869
876
|
value: value,
|
@@ -896,7 +903,6 @@ var styles$6 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
896
903
|
input: {
|
897
904
|
marginHorizontal: 0,
|
898
905
|
marginVertical: 0,
|
899
|
-
height: 40,
|
900
906
|
width: '100%',
|
901
907
|
flex: 1
|
902
908
|
},
|