react-crud-mobile 1.0.549 → 1.0.551

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,5 +1,5 @@
1
1
  {
2
- "version": "1.0.549",
2
+ "version": "1.0.551",
3
3
  "license": "MIT",
4
4
  "description": "Uma biblioteca de componentes para React Native",
5
5
  "main": "dist/index.js",
@@ -157,21 +157,23 @@ export default function UIElement(props: ElementType) {
157
157
  const getStyle = (part?: string) => {
158
158
  let type = Utils.nvl(original.type, 'none');
159
159
  let key = Utils.nvl(part, 'root');
160
- let def = { ...styles[key], ...elementStyle?.[type]?.[key] };
160
+ let def = { ...styles[key] };
161
161
  let hasChild = hasChildren();
162
162
 
163
163
  if (!part && !hasChild) {
164
164
  def = { ...def };
165
165
  }
166
166
 
167
- if (hasChild && part) {
168
- def = { ...def, ...withChildStyles[part] };
169
- }
170
-
171
167
  if (scope.isInput()) {
172
168
  def = { ...def, ...elementStyle.input[key] };
173
169
  }
174
170
 
171
+ def = { ...def, ...elementStyle?.[type]?.[key] };
172
+
173
+ if (hasChild && part) {
174
+ def = { ...def, ...withChildStyles[part] };
175
+ }
176
+
175
177
  return { ...def, ...scope.getStyle(part, def) };
176
178
  };
177
179
 
@@ -505,8 +507,10 @@ elementStyle.quantity = {
505
507
  backgroundColor: 'primarySoft',
506
508
  fontWeight: 600,
507
509
  fontSize: 16,
508
- padding: 5,
509
510
  borderRadius: 25,
511
+ borderWidth: 0,
512
+ paddingHorizontal: 5,
513
+ paddingVertical: 5,
510
514
  flexWrap: 'nowrap',
511
515
  flex: 1,
512
516
  flexDirection: 'row',