@panneau/modal-upload 4.0.2 → 4.0.4
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/es/index.js +16 -16
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
1
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
3
|
import Dashboard from '@uppy/react/dashboard';
|
|
3
4
|
import Dialog from '@panneau/modal-dialog';
|
|
4
5
|
import '@uppy/core/css/style.css';
|
|
5
6
|
import '@uppy/dashboard/css/style.css';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
8
|
|
|
7
9
|
var _excluded = ["id", "title", "uppy", "plugins", "onClose"];
|
|
8
|
-
|
|
9
|
-
// import '@uppy/react/css/style.css';
|
|
10
|
-
|
|
11
10
|
var DEFAULT_PLUGINS = [];
|
|
12
11
|
function UploadModal(_ref) {
|
|
13
12
|
var id = _ref.id,
|
|
@@ -20,22 +19,23 @@ function UploadModal(_ref) {
|
|
|
20
19
|
_ref$onClose = _ref.onClose,
|
|
21
20
|
onClose = _ref$onClose === void 0 ? null : _ref$onClose,
|
|
22
21
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/jsx(Dialog, {
|
|
24
23
|
id: id,
|
|
25
24
|
size: "lg",
|
|
26
25
|
onClose: onClose,
|
|
27
|
-
title: title
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
title: title,
|
|
27
|
+
children: uppy !== null ? /*#__PURE__*/jsx(Dashboard, _objectSpread(_objectSpread({
|
|
28
|
+
inline: true,
|
|
29
|
+
width: "100%",
|
|
30
|
+
height: "350px",
|
|
31
|
+
showAddFilesPanel: true,
|
|
32
|
+
proudlyDisplayPoweredByUppy: false
|
|
33
|
+
}, props), {}, {
|
|
34
|
+
uppy: uppy,
|
|
35
|
+
onRequestClose: onClose,
|
|
36
|
+
plugins: plugins
|
|
37
|
+
})) : null
|
|
38
|
+
});
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export { UploadModal as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-upload",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "File upload modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
|
-
"@panneau/core": "^4.0.
|
|
61
|
-
"@panneau/modal-dialog": "^4.0.
|
|
62
|
-
"@panneau/uppy": "^4.0.
|
|
60
|
+
"@panneau/core": "^4.0.4",
|
|
61
|
+
"@panneau/modal-dialog": "^4.0.4",
|
|
62
|
+
"@panneau/uppy": "^4.0.4",
|
|
63
63
|
"@uppy/core": "^5.1.1",
|
|
64
64
|
"@uppy/dashboard": "^5.0.4",
|
|
65
65
|
"@uppy/react": "^5.1.1",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
75
75
|
}
|