ywana-core8 0.0.826 → 0.0.827

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.826",
3
+ "version": "0.0.827",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/tree.css CHANGED
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  .tree-item.selected {
31
+ color: var(--accent-color-text);
31
32
  background-color: var(--accent-color);
32
33
  font-weight: 500;
33
34
  }
@@ -63,6 +63,12 @@
63
63
  color: var(--primary-color-light);
64
64
  }
65
65
 
66
+ .kanban-column>footer {
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: space-between;
70
+ }
71
+
66
72
  .kanban-card {
67
73
  margin: 2rem;
68
74
  box-shadow: var(--shadow1);
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import { Icon, Text } from '../../html'
2
+ import { Icon, MenuIcon, Text } from '../../html'
3
3
  import './Kanban.css'
4
4
 
5
5
  /**
@@ -16,7 +16,7 @@ export const Kanban = ({ children }) => {
16
16
  /**
17
17
  * Kanban Column
18
18
  */
19
- export const KanbanColumn = ({ id, accept = [], icon, title, subtitle, badge, children, minified = false, disabled = false }) => {
19
+ export const KanbanColumn = ({ id, actions, icon, title, subtitle, badge, children, minified = false, disabled = false }) => {
20
20
 
21
21
  const [min, setMin] = useState(minified)
22
22
 
@@ -48,6 +48,7 @@ export const KanbanColumn = ({ id, accept = [], icon, title, subtitle, badge, ch
48
48
  </main>
49
49
  <footer>
50
50
  <Icon icon="toggle_off" onIcon="toggle_on" clickable action={toggle} />
51
+ {actions}
51
52
  </footer>
52
53
  </div>
53
54
  )
@@ -1,16 +1,17 @@
1
1
  import React from 'react'
2
2
  import { Kanban, KanbanCard, KanbanColumn } from './Kanban'
3
+ import { Button } from '../../html'
3
4
 
4
5
  const KanbanTest = (prop) => {
5
6
  return (
6
7
  <Kanban>
7
- <KanbanColumn title="TODO" badge="1">
8
+ <KanbanColumn icon="inbox" title="TODO" badge="1">
8
9
  <KanbanCard />
9
10
  </KanbanColumn>
10
- <KanbanColumn title="IN PROGRESS" badge="0">
11
+ <KanbanColumn icon="inbox" title="IN PROGRESS" badge="0">
11
12
 
12
13
  </KanbanColumn>
13
- <KanbanColumn title="DONE" badge="2">
14
+ <KanbanColumn icon="inbox" title="DONE" badge="2" actions={<Button label="Archive" raised />}>
14
15
  <KanbanCard />
15
16
  <KanbanCard />
16
17
  </KanbanColumn>