ywana-core8 0.0.700 → 0.0.702

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.
@@ -10,6 +10,7 @@ export const Wrapper: React.FC = ({ children }) => {
10
10
  return (
11
11
  <div
12
12
  style={{
13
+ fontSize: "10px",
13
14
  width: "100vw",
14
15
  height: "100vh",
15
16
  padding: "0rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.700",
3
+ "version": "0.0.702",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 30rem;
5
- background-color: rgb(237, 237, 237);
5
+ background-color: rgb(243, 243, 243);
6
6
  }
7
7
 
8
8
  .collection-filters>header {
@@ -21,6 +21,28 @@
21
21
  padding: 0.5rem;
22
22
  }
23
23
 
24
+ .collection-filter-resume {
25
+ display: flex;
26
+ flex-direction: row;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ padding: 0.5rem;
30
+ font-size: .8rem;
31
+ font-weight: 300;
32
+ }
33
+
34
+ .collection-filter-resume-label {
35
+ display: flex;
36
+ flex-direction: row;
37
+ justify-content: space-between;
38
+ align-items: center;
39
+ margin-right: 0.2rem;
40
+ }
41
+
42
+ .collection-filter-resume-value {
43
+ font-weight: 400;
44
+ }
45
+
24
46
  .dynamic-filters {
25
47
  display: flex;
26
48
  flex-direction: column;
@@ -36,9 +36,9 @@ export const CollectionFilters = (props) => {
36
36
  <CollectionFiltersResume schema={schema} />
37
37
  <Icon icon={toggleIcon} clickable action={toggle} />
38
38
  </header>
39
- { open ? <div className='dynamic-filters'>
39
+ {open ? <div className='dynamic-filters'>
40
40
  <DynamicForm schema={schema} values={filters} onChange={change} />
41
- </div> : null }
41
+ </div> : null}
42
42
  </div>
43
43
  )
44
44
  }
@@ -54,16 +54,18 @@ const CollectionFiltersResume = (props) => {
54
54
 
55
55
  return (
56
56
  <>
57
- {fields.map(id => {
58
- const field = schema.find(field => field.id === id)
59
- const value = filters[id]
60
- return (
61
- <div className='collection-filter-resume'>
62
- <span className='collection-filter-resume-label'>{field.label}</span>
63
- <span className='collection-filter-resume-value'>{value}</span>
64
- </div>
65
- )
66
- })}
57
+ {fields
58
+ .filter(id => filters[id] !== undefined && filters[id] !== null && filters[id] !== "")
59
+ .map(id => {
60
+ const field = schema.find(field => field.id === id)
61
+ const value = filters[id]
62
+ return (
63
+ <div className='collection-filter-resume'>
64
+ <span className='collection-filter-resume-label'>{field.label}:</span>
65
+ <span className='collection-filter-resume-value'>{value}</span>
66
+ </div>
67
+ )
68
+ })}
67
69
  </>
68
70
  )
69
71
  }
@@ -1,10 +1,10 @@
1
1
  import React from 'react'
2
+ import { Header } from '../html'
2
3
  import { CollectionContextProvider } from './CollectionContext'
3
4
  import { CollectionFilters } from './CollectionFilters'
4
5
  import { CollectionList } from './CollectionList'
5
6
  import { CollectionEditor } from './CollectionEditor'
6
7
  import './CollectionPage.css'
7
- import { Header } from '../html'
8
8
 
9
9
  /**
10
10
  * Collection Page
@@ -0,0 +1 @@
1
+ export { CollectionPage as CollectionPage2, CollectionContext as CollectionContext2 } from './CollectionPage'
package/src/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './widgets'
9
9
  export * from './site'
10
10
  export * from './domain'
11
11
 
12
+ export * from './domain2'
12
13
  export * from './incubator'
13
14
 
14
15
  export const isFunction = value => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);