react-crud-mobile 1.3.341 → 1.3.343

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.341",
3
+ "version": "1.3.343",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -740,6 +740,12 @@ export default function UIElement(props: ElementType) {
740
740
  }
741
741
  };
742
742
 
743
+ if (original.hideEmpty && !scope.isType('list', 'select', 'complete')) {
744
+ let value = scope.getValue();
745
+
746
+ if (Utils.isEmpty(value)) return <></>;
747
+ }
748
+
743
749
  return (
744
750
  <CrudContext.Provider value={{ crud, theme }}>
745
751
  <Tag ref={ref} style={getStyle()} {...custom}>
@@ -29,7 +29,7 @@ export default function UIInput(props: ChildType) {
29
29
  };
30
30
 
31
31
  const style = (part: string, extra?: any) => {
32
- return { ...scope.getStyle(part, styles[part]), ...extra };
32
+ return { ...scope.getStyle(part, { ...styles[part], ...extra }) };
33
33
  };
34
34
 
35
35
  const CustomIcon = () => {
@@ -78,7 +78,7 @@ export default function UIInput(props: ChildType) {
78
78
  }
79
79
 
80
80
  css.fontSize = Utils.nvl(element.fontSize, css.fontSize);
81
- css = { ...style(type), ...css, ...style('input') };
81
+ css = { ...style(type), ...style('input', css) };
82
82
  css.lineHeight = parseInt(css.fontSize) + 2;
83
83
  //v1
84
84
  return css;