ywana-core8 0.0.35 → 0.0.36

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": "ywana-core8",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -3,7 +3,6 @@
3
3
  }
4
4
 
5
5
  .content-editor>section {
6
-
7
6
  margin-bottom: 1rem;
8
7
  }
9
8
 
@@ -90,14 +89,12 @@
90
89
  background-color: var(--paper-color) !important;
91
90
  }
92
91
 
93
-
94
92
  .collection-adder td.actions {
95
93
  border: solid 0px red;
96
94
  display: flex;
97
95
  align-items: center;
98
96
  }
99
97
 
100
-
101
98
  .field-editor {
102
99
  padding: 0;
103
100
  }
@@ -32,8 +32,8 @@ export const CreateContentDialog = ({ label, type, value = {}, filter, validator
32
32
  }
33
33
 
34
34
  function createFilter(field, content) {
35
- return field.required === true || field.optional === true
36
- // TODO: execute props.filter
35
+ const visible = field.required === true || field.optional === true
36
+ return filter ? visible && filter(field, content) : visible
37
37
  }
38
38
 
39
39
  const actions = (