ywana-core8 0.0.786 → 0.0.788
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +2 -2
- package/src/widgets/upload/UploadDialog.js +2 -2
package/package.json
CHANGED
package/src/site/dialog.js
CHANGED
@@ -11,7 +11,7 @@ import './dialog.css'
|
|
11
11
|
export const Dialog = (props) => {
|
12
12
|
|
13
13
|
const site = useContext(SiteContext)
|
14
|
-
const { icon, title = "Dialog", toolbar, children, actions, className, onClose, overlayCanClose=true } = props
|
14
|
+
const { icon, title = "Dialog", toolbar, children, actions, className, onClose, overlayCanClose = true } = props
|
15
15
|
|
16
16
|
function overlayClose() {
|
17
17
|
if (overlayCanClose) {
|
@@ -24,7 +24,7 @@ export const Dialog = (props) => {
|
|
24
24
|
if (className === "prompt") {
|
25
25
|
site.closePromptDialog()
|
26
26
|
} else {
|
27
|
-
site.closeDialog()
|
27
|
+
site.closeDialog()
|
28
28
|
}
|
29
29
|
}
|
30
30
|
|
@@ -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, disabled }) => {
|
9
|
+
export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onClose, children, className, disabled, overlayCanClose = true }) => {
|
10
10
|
|
11
11
|
const site = useContext(SiteContext);
|
12
12
|
|
@@ -33,7 +33,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onC
|
|
33
33
|
|
34
34
|
const title = <Text use="headline6">{label}</Text>
|
35
35
|
return (
|
36
|
-
<Dialog title={title} open={true} onAction={onAction} actions={actions} className={className}>
|
36
|
+
<Dialog title={title} open={true} onAction={onAction} actions={actions} className={className} overlayCanClose={overlayCanClose}>
|
37
37
|
{ disabled ? "" : <Uploader label={label} accept={accept} target={target} onSuccess={success} onComplete={complete} /> }
|
38
38
|
{children}
|
39
39
|
</Dialog>
|