argous 1.2.201 → 1.2.202

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.
@@ -120,16 +120,11 @@ var DropArea = function (_a, ref) {
120
120
  });
121
121
  }); };
122
122
  return (react_1.default.createElement("div", __assign({ onDragEnter: function () { return setAbrir(true); }, style: __assign({ position: 'relative' }, style) }, props),
123
- abrir && (!(ref === null || ref === void 0 ? void 0 : ref.current) || (ref.current && !ref.current.loading)) && (react_1.default.createElement("div", { onDragLeave: function () { return setAbrir(false); }, onDrop: dropArquivo, onDragOver: function (e) { return e.preventDefault(); }, style: {
124
- position: 'absolute',
125
- border: '1px dashed',
126
- background: 'rgba(0,0,0,0.5)',
127
- zIndex: 5, width: '100%', height: '100%'
128
- } }, loading ?
123
+ abrir && (!(ref === null || ref === void 0 ? void 0 : ref.current) || (ref.current && !ref.current.loading)) && (react_1.default.createElement("div", { onDrop: dropArquivo, onDragOver: function (e) { return e.preventDefault(); }, onDragLeave: function () { return setAbrir(false); }, style: { position: 'absolute', border: '2px dashed', background: 'rgba(0, 0, 0, 0.5)', zIndex: 5, width: '100%', height: '100%', display: 'grid', placeItems: 'center' } }, (loading) ?
129
124
  react_1.default.createElement(core_1.Box, { display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100%' },
130
125
  react_1.default.createElement(core_1.CircularProgress, { disableShrink: true }))
131
126
  :
132
- react_1.default.createElement(md_1.MdFileUpload, { style: { width: '100%', height: '100%' } }))),
127
+ react_1.default.createElement(md_1.MdFileUpload, { style: { width: '100%', height: '99%' } }))),
133
128
  deepMap(children, function (filho) { return filho.type === __1.FilePreparer ? react_1.cloneElement(filho, __assign(__assign({}, filho.props), { ref: ref })) : filho; })));
134
129
  };
135
130
  exports.default = react_1.forwardRef(DropArea);
@@ -43,19 +43,18 @@ const DropArea = ({ children, onChange, style, ...props }, ref) => {
43
43
  return (
44
44
  <div onDragEnter={() => setAbrir(true)} style={{ position: 'relative', ...style }} {...props}>
45
45
  {abrir && (!ref?.current || (ref.current && !ref.current.loading)) && (
46
- <div onDragLeave={() => setAbrir(false)} onDrop={dropArquivo} onDragOver={e => e.preventDefault() }
47
- style={{
48
- position: 'absolute',
49
- border: '1px dashed',
50
- background: 'rgba(0,0,0,0.5)',
51
- zIndex: 5, width: '100%', height: '100%'
52
- }}>
53
- {loading ?
46
+ <div
47
+ onDrop={dropArquivo}
48
+ onDragOver={e => e.preventDefault()}
49
+ onDragLeave={() => setAbrir(false)}
50
+ style={{ position: 'absolute', border: '2px dashed', background: 'rgba(0, 0, 0, 0.5)', zIndex: 5, width: '100%', height: '100%', display: 'grid', placeItems: 'center' }}
51
+ >
52
+ {(loading) ?
54
53
  <Box display='flex' justifyContent='center' alignItems='center' height='100%'>
55
- <CircularProgress disableShrink/>
54
+ <CircularProgress disableShrink />
56
55
  </Box>
57
56
  :
58
- <MdFileUpload style={{ width: '100%', height: '100%' }}/>
57
+ <MdFileUpload style={{ width: '100%', height: '99%' }} />
59
58
  }
60
59
  </div>
61
60
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argous",
3
- "version": "1.2.201",
3
+ "version": "1.2.202",
4
4
  "description": "Argous.",
5
5
  "main": "lib/index.js",
6
6
  "author": "Carlos Schneider",