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