@majoo-ui/react 1.61.0-rc.11 → 1.61.0-rc.13

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/index.esm.js CHANGED
@@ -28461,7 +28461,7 @@ const Upload = ({
28461
28461
  let newFile = files[i];
28462
28462
  newFile.uid = new Date().getTime();
28463
28463
  newFile.url = URL.createObjectURL(newFile);
28464
- if (action) {
28464
+ if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
28465
28465
  upload({
28466
28466
  url: action,
28467
28467
  file: newFile,
package/index.umd.js CHANGED
@@ -28964,7 +28964,7 @@
28964
28964
  let newFile = files[i];
28965
28965
  newFile.uid = new Date().getTime();
28966
28966
  newFile.url = URL.createObjectURL(newFile);
28967
- if (action) {
28967
+ if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
28968
28968
  upload({
28969
28969
  url: action,
28970
28970
  file: newFile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.61.0-rc.11",
3
+ "version": "1.61.0-rc.13",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",