intelicoreact 1.0.81 → 1.0.82

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.
@@ -27,8 +27,7 @@ var FileLoaderLocal = function FileLoaderLocal(_ref) {
27
27
  className = _ref.className,
28
28
  value = _ref.value,
29
29
  isNoTrashIcon = _ref.isNoTrashIcon,
30
- maxItemSizeBytes = _ref.maxItemSizeBytes,
31
- globalMaxItemsSizeBytes = _ref.globalMaxItemsSizeBytes;
30
+ maxItemSizeBytes = _ref.maxItemSizeBytes;
32
31
 
33
32
  var getFileName = function getFileName(value) {
34
33
  var result = value.match(/[^\\]+$/);
@@ -46,9 +45,7 @@ var FileLoaderLocal = function FileLoaderLocal(_ref) {
46
45
  };
47
46
 
48
47
  var isFileSizeOutOfLimit = function isFileSizeOutOfLimit(file) {
49
- if (globalMaxItemSizeBytes) {
50
- return file.size > globalMaxItemsSizeBytes;
51
- } else return file.size > maxItemSizeBytes;
48
+ return file.size > maxItemSizeBytes;
52
49
  };
53
50
 
54
51
  var checkExtension = function checkExtension(valueExtension) {
@@ -68,7 +65,7 @@ var FileLoaderLocal = function FileLoaderLocal(_ref) {
68
65
  valueExtension: valueExtension,
69
66
  e: e,
70
67
  file: file,
71
- error: "Max file size is ".concat((0, _utils.convertBytes)(globalMaxItemsSizeBytes || maxItemSizeBytes))
68
+ error: "Max file size is ".concat((0, _utils.renderFileSize)(maxItemSizeBytes))
72
69
  });
73
70
  } else if (!checkExtension(valueExtension)) {
74
71
  onChange({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [