ywana-core8 0.0.620 → 0.0.623
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 +36 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +18 -2
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +36 -35
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +36 -35
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.css +19 -2
- package/src/domain/CollectionPage.js +4 -0
- package/src/html/button.js +2 -1
package/package.json
CHANGED
@@ -25,12 +25,12 @@ menu.collection-page>main.collection-filters {
|
|
25
25
|
}
|
26
26
|
|
27
27
|
menu.collection-page>.list {
|
28
|
-
overflow:auto;
|
28
|
+
overflow: auto;
|
29
29
|
}
|
30
30
|
|
31
31
|
menu.collection-page>main {
|
32
32
|
flex: 1;
|
33
|
-
overflow:auto;
|
33
|
+
overflow: auto;
|
34
34
|
}
|
35
35
|
|
36
36
|
menu.collection-page>footer>.search-box {
|
@@ -47,4 +47,21 @@ main.collection-page>.content-editor {
|
|
47
47
|
flex: 1;
|
48
48
|
}
|
49
49
|
|
50
|
+
main.collection-page.dock-to-right {
|
51
|
+
display: grid;
|
52
|
+
grid-template-areas: "header header" "main dock" "footer dock";
|
53
|
+
grid-template-columns: 1fr auto;
|
54
|
+
grid-template-rows: auto 1fr auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
main.collection-page.dock-to-right>header {
|
58
|
+
grid-area: header;
|
59
|
+
}
|
60
|
+
|
61
|
+
main.collection-page.dock-to-right>main {
|
62
|
+
grid-area: main;
|
63
|
+
}
|
50
64
|
|
65
|
+
main.collection-page.dock-to-right>article {
|
66
|
+
grid-area: dock;
|
67
|
+
}
|
@@ -24,6 +24,7 @@ export const CollectionPage = (props) => {
|
|
24
24
|
autosave = false, delay = 1000,
|
25
25
|
groupBy, levels, sorter,
|
26
26
|
editor,
|
27
|
+
footer,
|
27
28
|
children
|
28
29
|
} = props
|
29
30
|
|
@@ -87,6 +88,9 @@ export const CollectionPage = (props) => {
|
|
87
88
|
<main key={id} className={`collection-page ${className}`}>
|
88
89
|
<CollectionEditor icon={icon} schema={schema} layout={editor} autosave={autosave} delay={delay} canDelete={canDelete} canEdit={canEdit} onReload={reloadSelection} />
|
89
90
|
{children ? <article>{children}</article> : null}
|
91
|
+
<footer>
|
92
|
+
{footer}
|
93
|
+
</footer>
|
90
94
|
</main>
|
91
95
|
</Fragment>
|
92
96
|
)
|
package/src/html/button.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Icon } from './icon'
|
3
|
+
import { Text } from './text'
|
3
4
|
import './button.css'
|
4
5
|
|
5
6
|
/**
|
@@ -20,7 +21,7 @@ export const Button = ({ label, icon, action, disabled = false, outlined, raised
|
|
20
21
|
return (
|
21
22
|
<button className={`btn ${style}`} onClick={click}>
|
22
23
|
{ icon ? <Icon icon={icon} size="small" clickable action={click} /> : null }
|
23
|
-
<
|
24
|
+
<Text>{ label }</Text>
|
24
25
|
</button>
|
25
26
|
)
|
26
27
|
}
|