ywana-core8 0.0.607 → 0.0.610

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.607",
3
+ "version": "0.0.610",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -60,7 +60,7 @@ const FieldViewer = (props) => {
60
60
  case TYPES.ENTITY:
61
61
  return <EntityViewer field={field} value={value} />
62
62
  case TYPES.ARRAY:
63
- return item === TYPES.STRING ? <ListViewer label={label} value={value} /> : <ArrayViewer label={label} item={item} value={value} />
63
+ return item === TYPES.STRING ? <ListViewer field={field} value={value} /> : <ArrayViewer label={label} item={item} value={value} />
64
64
  default:
65
65
  return <div>{label}</div>
66
66
  }
@@ -71,7 +71,7 @@ export const Planner = ({ title, events = [], lanes = [], navigation = true, onS
71
71
  if (element) element.scrollIntoView({
72
72
  behavior: 'smooth',
73
73
  block: 'start',
74
- inline: 'start'
74
+ inline: 'start',
75
75
  })
76
76
  }
77
77
 
@@ -16,7 +16,8 @@ export const Viewer = ({ title, src, info, actions = [], tools = false, onClose
16
16
  const headerTitle = <Text use="headline6">{title}</Text>
17
17
  return (
18
18
  <div className="viewer">
19
- <Header icon={{ icon: 'close', clickable: true, action: onClose }} title={headerTitle} >
19
+ <Header icon="view" title={headerTitle} >
20
+ {onClose ? <Icon icon="close" clickable action={onClose} /> : null}
20
21
  {showDetails ? '' : <Icon icon="info" clickable action={toggleDetails} />}
21
22
  {actions}
22
23
  </Header>