ywana-core8 0.0.356 → 0.0.359
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 +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/explorer/Explorer.css +2 -2
- package/src/widgets/upload/UploadDialog.js +8 -4
package/package.json
CHANGED
@@ -64,7 +64,8 @@
|
|
64
64
|
}
|
65
65
|
|
66
66
|
.file-icon--selected {
|
67
|
-
background-color: var(--divider-color);
|
67
|
+
background-color: var(--divider-color) !important;
|
68
|
+
box-shadow: var(--shadow1);
|
68
69
|
}
|
69
70
|
|
70
71
|
.file-icon:hover {
|
@@ -114,5 +115,4 @@
|
|
114
115
|
border-top: solid 1px var(--divider-color);
|
115
116
|
display: flex;
|
116
117
|
align-items: center;
|
117
|
-
padding: 0 .5rem;
|
118
118
|
}
|
@@ -6,12 +6,16 @@ import { SiteContext, Dialog } from '../../site';
|
|
6
6
|
/**
|
7
7
|
* Upload Dialog
|
8
8
|
*/
|
9
|
-
export const UploadDialog = ({ label, target, accept, onSuccess, onClose }) => {
|
9
|
+
export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose }) => {
|
10
10
|
|
11
11
|
const site = useContext(SiteContext);
|
12
12
|
|
13
|
-
function
|
14
|
-
if (onSuccess) onSuccess(
|
13
|
+
function success(file, message) {
|
14
|
+
if (onSuccess) onSuccess(file, message)
|
15
|
+
}
|
16
|
+
|
17
|
+
function complete(uploads) {
|
18
|
+
if (onComplete) onComplete(uploads)
|
15
19
|
}
|
16
20
|
|
17
21
|
function onAction(action) {
|
@@ -30,7 +34,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onClose }) => {
|
|
30
34
|
const title = <Text use="headline6">{label}</Text>
|
31
35
|
return (
|
32
36
|
<Dialog title={title} open={true} onAction={onAction} actions={actions} eventPropagation={true}>
|
33
|
-
<Uploader label={label} accept={accept} target={target} onComplete={
|
37
|
+
<Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
|
34
38
|
</Dialog>
|
35
39
|
)
|
36
40
|
}
|