ywana-core8 0.0.434 → 0.0.435

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.434",
3
+ "version": "0.0.435",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -6,7 +6,7 @@ import { SiteContext, Dialog } from '../../site';
6
6
  /**
7
7
  * Upload Dialog
8
8
  */
9
- export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose, children, className }) => {
9
+ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose, children, className, disabled }) => {
10
10
 
11
11
  const site = useContext(SiteContext);
12
12
 
@@ -34,7 +34,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onC
34
34
  const title = <Text use="headline6">{label}</Text>
35
35
  return (
36
36
  <Dialog title={title} open={true} onAction={onAction} actions={actions} className={className}>
37
- <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
37
+ { disabled ? "" : <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} />
38
38
  {children}
39
39
  </Dialog>
40
40
  )