react-crud-mobile 1.3.345 → 1.3.347

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.345",
3
+ "version": "1.3.347",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -66,21 +66,21 @@ 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
 
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
- //v1
83
+ //v2
84
84
  return css;
85
85
  });
86
86
 
@@ -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={style('base', defs?.baseStyle)}>
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
  },