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
package/package.json
CHANGED
@@ -66,21 +66,21 @@ export default function UIInput(props: ChildType) {
|
|
66
66
|
},
|
67
67
|
};
|
68
68
|
|
69
|
-
let size = element.size;
|
70
|
-
|
71
69
|
//v5
|
72
70
|
let defs = { ...Utils.nvl(decode[type], {}), ...element.inputProps };
|
73
71
|
let inputStyle = Utils.call(() => {
|
72
|
+
let size = element.size;
|
74
73
|
let css: any = {};
|
75
74
|
|
76
75
|
if (size === 'small') {
|
76
|
+
css.height = 30;
|
77
77
|
css.fontSize = 12;
|
78
78
|
}
|
79
79
|
|
80
80
|
css.fontSize = Utils.nvl(element.fontSize, css.fontSize);
|
81
81
|
css = { ...style(type), ...style('input', css) };
|
82
82
|
css.lineHeight = parseInt(css.fontSize) + 2;
|
83
|
-
//
|
83
|
+
//v1
|
84
84
|
return css;
|
85
85
|
});
|
86
86
|
|
@@ -92,21 +92,9 @@ export default function UIInput(props: ChildType) {
|
|
92
92
|
inputStyle = { ...inputStyle, ...defs.style };
|
93
93
|
}
|
94
94
|
|
95
|
-
let baseStyle = Utils.call(() => {
|
96
|
-
let css = { ...style('base', defs?.baseStyle) };
|
97
|
-
|
98
|
-
css.height = 40;
|
99
|
-
|
100
|
-
if (size === 'small') {
|
101
|
-
css.height = 30;
|
102
|
-
}
|
103
|
-
|
104
|
-
return css;
|
105
|
-
});
|
106
|
-
|
107
95
|
return (
|
108
96
|
<>
|
109
|
-
<View style={
|
97
|
+
<View style={style('base', defs?.baseStyle)}>
|
110
98
|
{scope.getPart('left')}
|
111
99
|
<TextInput
|
112
100
|
onChangeText={onChange}
|
@@ -144,6 +132,8 @@ const styles = StyleSheet.create({
|
|
144
132
|
input: {
|
145
133
|
marginHorizontal: 0,
|
146
134
|
marginVertical: 0,
|
135
|
+
paddingVertical: 0,
|
136
|
+
height: 40,
|
147
137
|
width: '100%',
|
148
138
|
flex: 1, // Para o input ocupar o espaço restante
|
149
139
|
},
|