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/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tree.css +1 -0
- package/src/widgets/kanban/Kanban.css +6 -0
- package/src/widgets/kanban/Kanban.js +3 -2
- package/src/widgets/kanban/Kanban.test.js +4 -3
package/package.json
CHANGED
package/src/html/tree.css
CHANGED
@@ -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,
|
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>
|