@hh.ru/magritte-ui-upload 3.1.2 → 3.1.3
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/FileName.js +1 -1
- package/FileView.js +1 -1
- package/FileViewWithPreview.js +1 -1
- package/MultiUpload.js +1 -1
- package/SingleUpload.js +1 -1
- package/Upload.js +1 -1
- package/index.css +2205 -2205
- package/index.js +1 -1
- package/package.json +11 -11
- package/upload-2OqTHyaW.js +5 -0
- package/upload-2OqTHyaW.js.map +1 -0
- package/upload-BvMA0jDs.js +0 -5
- package/upload-BvMA0jDs.js.map +0 -1
package/FileName.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_3-1-
|
|
5
|
+
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_3-1-3","fileNameBody":"magritte-file-name-body___PTTMc_3-1-3","file-name-body_medium":"magritte-file-name-body_medium___sfmmq_3-1-3","fileNameBodyMedium":"magritte-file-name-body_medium___sfmmq_3-1-3","file-name":"magritte-file-name___ZSL2g_3-1-3","fileName":"magritte-file-name___ZSL2g_3-1-3"};
|
|
6
6
|
|
|
7
7
|
const parse = (file) => {
|
|
8
8
|
const name = file.name;
|
package/FileView.js
CHANGED
|
@@ -10,7 +10,7 @@ import { FileName } from './FileName.js';
|
|
|
10
10
|
import { getUploadIcon, bytes2mb } from './utils.js';
|
|
11
11
|
import 'classnames';
|
|
12
12
|
|
|
13
|
-
var styles = {"file-info-body":"magritte-file-info-body___HmfXd_3-1-
|
|
13
|
+
var styles = {"file-info-body":"magritte-file-info-body___HmfXd_3-1-3","fileInfoBody":"magritte-file-info-body___HmfXd_3-1-3","file-info-and-controls":"magritte-file-info-and-controls___61iyY_3-1-3","fileInfoAndControls":"magritte-file-info-and-controls___61iyY_3-1-3","file-info-container":"magritte-file-info-container___WFab8_3-1-3","fileInfoContainer":"magritte-file-info-container___WFab8_3-1-3","file-info":"magritte-file-info___HrqiB_3-1-3","fileInfo":"magritte-file-info___HrqiB_3-1-3","controls":"magritte-controls___WdH7A_3-1-3"};
|
|
14
14
|
|
|
15
15
|
const FileView = ({ uploadType, loadedFile, preview, renderFileInfo, onFileDelete, 'aria-label': ariaLabel, isLast = false, }) => {
|
|
16
16
|
const isLoading = Boolean(loadedFile?.loading);
|
package/FileViewWithPreview.js
CHANGED
|
@@ -13,7 +13,7 @@ import './FileName.js';
|
|
|
13
13
|
import 'classnames';
|
|
14
14
|
import 'react';
|
|
15
15
|
|
|
16
|
-
var styles = {"item":"magritte-item___vVDG-_3-1-
|
|
16
|
+
var styles = {"item":"magritte-item___vVDG-_3-1-3"};
|
|
17
17
|
|
|
18
18
|
const FileViewWithPreview = ({ loadedFile, ...otherProps }) => {
|
|
19
19
|
const uploadType = getFileType(loadedFile.data.type);
|
package/MultiUpload.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Placeholder } from './Placeholder.js';
|
|
|
8
8
|
import { useDropActions } from './useDropActions.js';
|
|
9
9
|
import { useDropButtons } from './useDropButtons.js';
|
|
10
10
|
import { getAvaliableFileTypes, getUploadIcon, DEFAULT_ACCEPT, RenderFileInfoDefault } from './utils.js';
|
|
11
|
-
import { s as styles } from './upload-
|
|
11
|
+
import { s as styles } from './upload-2OqTHyaW.js';
|
|
12
12
|
import './FileView.js';
|
|
13
13
|
import '@hh.ru/magritte-ui-action';
|
|
14
14
|
import '@hh.ru/magritte-ui-avatar';
|
package/SingleUpload.js
CHANGED
|
@@ -15,7 +15,7 @@ import { useDropActions } from './useDropActions.js';
|
|
|
15
15
|
import { useDropButtons } from './useDropButtons.js';
|
|
16
16
|
import { useFilePreview } from './useFilePreview.js';
|
|
17
17
|
import { getAvaliableFileTypes, getUploadIcon, bytes2mb, DEFAULT_ACCEPT, RenderFileInfoDefault } from './utils.js';
|
|
18
|
-
import { s as styles } from './upload-
|
|
18
|
+
import { s as styles } from './upload-2OqTHyaW.js';
|
|
19
19
|
import '@hh.ru/magritte-ui-action';
|
|
20
20
|
import '@hh.ru/magritte-ui-divider';
|
|
21
21
|
import '@hh.ru/magritte-ui-breakpoint';
|
package/Upload.js
CHANGED
|
@@ -21,7 +21,7 @@ import '@hh.ru/magritte-ui-breakpoint';
|
|
|
21
21
|
import '@hh.ru/magritte-ui-typography';
|
|
22
22
|
import './useDropActions.js';
|
|
23
23
|
import './useDropButtons.js';
|
|
24
|
-
import './upload-
|
|
24
|
+
import './upload-2OqTHyaW.js';
|
|
25
25
|
|
|
26
26
|
const Upload = ({ multiple, ...uploadProps }) => {
|
|
27
27
|
if (multiple) {
|