ywana-core8 0.0.357 → 0.0.358

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.357",
3
+ "version": "0.0.358",
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 {
@@ -6,14 +6,18 @@ 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) {
13
+ function success(uploads) {
14
14
  if (onSuccess) onSuccess(uploads)
15
15
  }
16
16
 
17
+ function complete(uploads) {
18
+ if (onComplete) onComplete(uploads)
19
+ }
20
+
17
21
  function onAction(action) {
18
22
  if (action === 'CLOSE') {
19
23
  site.closeDialog();
@@ -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
  }