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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.356",
3
+ "version": "0.0.359",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -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 onComplete(uploads) {
14
- if (onSuccess) onSuccess(uploads)
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={onComplete} />
37
+ <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
34
38
  </Dialog>
35
39
  )
36
40
  }