react-crud-mobile 1.3.346 → 1.3.348

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.346",
3
+ "version": "1.3.348",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -66,14 +66,14 @@ 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 = 35;
77
77
  css.fontSize = 12;
78
78
  }
79
79
 
@@ -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={{ ...baseStyle }}>
97
+ <View style={style('base', defs?.baseStyle)}>
110
98
  {scope.getPart('left')}
111
99
  <TextInput
112
100
  onChangeText={onChange}
@@ -144,6 +132,7 @@ const styles = StyleSheet.create({
144
132
  input: {
145
133
  marginHorizontal: 0,
146
134
  marginVertical: 0,
135
+ height: 40,
147
136
  width: '100%',
148
137
  flex: 1, // Para o input ocupar o espaço restante
149
138
  },