@hh.ru/magritte-ui-upload 3.3.3 → 3.3.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/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 +114 -114
- package/index.js +1 -1
- package/package.json +11 -11
- package/upload-CEbatoPE.js +5 -0
- package/upload-CEbatoPE.js.map +1 -0
- package/upload-B6NnXYYt.js +0 -5
- package/upload-B6NnXYYt.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-3-
|
|
5
|
+
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_3-3-4","fileNameBody":"magritte-file-name-body___PTTMc_3-3-4","file-name-body_medium":"magritte-file-name-body_medium___sfmmq_3-3-4","fileNameBodyMedium":"magritte-file-name-body_medium___sfmmq_3-3-4","file-name":"magritte-file-name___ZSL2g_3-3-4","fileName":"magritte-file-name___ZSL2g_3-3-4"};
|
|
6
6
|
|
|
7
7
|
const parse = (file) => {
|
|
8
8
|
const name = file.name;
|
package/FileView.js
CHANGED
|
@@ -9,7 +9,7 @@ import { FileName } from './FileName.js';
|
|
|
9
9
|
import { getUploadIcon, bytes2mb } from './utils.js';
|
|
10
10
|
import 'classnames';
|
|
11
11
|
|
|
12
|
-
var styles = {"file-info-body":"magritte-file-info-body___HmfXd_3-3-
|
|
12
|
+
var styles = {"file-info-body":"magritte-file-info-body___HmfXd_3-3-4","fileInfoBody":"magritte-file-info-body___HmfXd_3-3-4","file-info-and-controls":"magritte-file-info-and-controls___61iyY_3-3-4","fileInfoAndControls":"magritte-file-info-and-controls___61iyY_3-3-4","file-info-container":"magritte-file-info-container___WFab8_3-3-4","fileInfoContainer":"magritte-file-info-container___WFab8_3-3-4","file-info":"magritte-file-info___HrqiB_3-3-4","fileInfo":"magritte-file-info___HrqiB_3-3-4","controls":"magritte-controls___WdH7A_3-3-4"};
|
|
13
13
|
|
|
14
14
|
const FileView = ({ uploadType, loadedFile, preview, renderFileInfo, onFileDelete, 'aria-label': ariaLabel, isLast = false, }) => {
|
|
15
15
|
const isLoading = Boolean(loadedFile?.loading);
|
package/FileViewWithPreview.js
CHANGED
|
@@ -12,7 +12,7 @@ import './FileName.js';
|
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import 'react';
|
|
14
14
|
|
|
15
|
-
var styles = {"item":"magritte-item___vVDG-_3-3-
|
|
15
|
+
var styles = {"item":"magritte-item___vVDG-_3-3-4"};
|
|
16
16
|
|
|
17
17
|
const FileViewWithPreview = ({ loadedFile, ...otherProps }) => {
|
|
18
18
|
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-CEbatoPE.js';
|
|
12
12
|
import './FileView.js';
|
|
13
13
|
import '@hh.ru/magritte-ui-avatar';
|
|
14
14
|
import '@hh.ru/magritte-ui-divider';
|
package/SingleUpload.js
CHANGED
|
@@ -14,7 +14,7 @@ import { useDropActions } from './useDropActions.js';
|
|
|
14
14
|
import { useDropButtons } from './useDropButtons.js';
|
|
15
15
|
import { useFilePreview } from './useFilePreview.js';
|
|
16
16
|
import { getAvaliableFileTypes, getUploadIcon, bytes2mb, DEFAULT_ACCEPT, RenderFileInfoDefault } from './utils.js';
|
|
17
|
-
import { s as styles } from './upload-
|
|
17
|
+
import { s as styles } from './upload-CEbatoPE.js';
|
|
18
18
|
import '@hh.ru/magritte-ui-divider';
|
|
19
19
|
import '@hh.ru/magritte-ui-breakpoint';
|
|
20
20
|
import 'react';
|
package/Upload.js
CHANGED
|
@@ -20,7 +20,7 @@ import '@hh.ru/magritte-ui-breakpoint';
|
|
|
20
20
|
import '@hh.ru/magritte-ui-typography';
|
|
21
21
|
import './useDropActions.js';
|
|
22
22
|
import './useDropButtons.js';
|
|
23
|
-
import './upload-
|
|
23
|
+
import './upload-CEbatoPE.js';
|
|
24
24
|
|
|
25
25
|
const Upload = ({ multiple, noDragEventsBubbling = true, ...uploadProps }) => {
|
|
26
26
|
if (multiple) {
|
package/index.css
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-typography-label-2-regular-font-family-v21-4-
|
|
3
|
-
--magritte-typography-label-2-regular-font-weight-v21-4-
|
|
4
|
-
--magritte-typography-label-2-regular-line-height-v21-4-
|
|
5
|
-
--magritte-typography-label-2-regular-font-size-v21-4-
|
|
6
|
-
--magritte-typography-label-2-regular-letter-spacing-v21-4-
|
|
7
|
-
--magritte-typography-label-2-regular-text-indent-v21-4-
|
|
8
|
-
--magritte-typography-label-2-regular-text-transform-v21-4-
|
|
9
|
-
--magritte-typography-label-2-regular-text-decoration-v21-4-
|
|
10
|
-
}
|
|
11
|
-
.magritte-file-name-body___PTTMc_3-3-
|
|
2
|
+
--magritte-typography-label-2-regular-font-family-v21-4-1:"hh sans";
|
|
3
|
+
--magritte-typography-label-2-regular-font-weight-v21-4-1:400;
|
|
4
|
+
--magritte-typography-label-2-regular-line-height-v21-4-1:22px;
|
|
5
|
+
--magritte-typography-label-2-regular-font-size-v21-4-1:16px;
|
|
6
|
+
--magritte-typography-label-2-regular-letter-spacing-v21-4-1:0em;
|
|
7
|
+
--magritte-typography-label-2-regular-text-indent-v21-4-1:0px;
|
|
8
|
+
--magritte-typography-label-2-regular-text-transform-v21-4-1:none;
|
|
9
|
+
--magritte-typography-label-2-regular-text-decoration-v21-4-1:none;
|
|
10
|
+
}
|
|
11
|
+
.magritte-file-name-body___PTTMc_3-3-4{
|
|
12
12
|
display:flex;
|
|
13
13
|
width:100%;
|
|
14
14
|
overflow:hidden;
|
|
15
|
-
font-family:var(--magritte-typography-label-2-regular-font-family-v21-4-
|
|
16
|
-
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-4-
|
|
17
|
-
line-height:var(--magritte-typography-label-2-regular-line-height-v21-4-
|
|
18
|
-
font-size:var(--magritte-typography-label-2-regular-font-size-v21-4-
|
|
19
|
-
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v21-4-
|
|
20
|
-
text-indent:var(--magritte-typography-label-2-regular-text-indent-v21-4-
|
|
21
|
-
text-transform:var(--magritte-typography-label-2-regular-text-transform-v21-4-
|
|
22
|
-
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v21-4-
|
|
23
|
-
}
|
|
24
|
-
.magritte-file-name-body_medium___sfmmq_3-3-
|
|
15
|
+
font-family:var(--magritte-typography-label-2-regular-font-family-v21-4-1);
|
|
16
|
+
font-weight:var(--magritte-typography-label-2-regular-font-weight-v21-4-1);
|
|
17
|
+
line-height:var(--magritte-typography-label-2-regular-line-height-v21-4-1);
|
|
18
|
+
font-size:var(--magritte-typography-label-2-regular-font-size-v21-4-1);
|
|
19
|
+
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v21-4-1);
|
|
20
|
+
text-indent:var(--magritte-typography-label-2-regular-text-indent-v21-4-1);
|
|
21
|
+
text-transform:var(--magritte-typography-label-2-regular-text-transform-v21-4-1);
|
|
22
|
+
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v21-4-1);
|
|
23
|
+
}
|
|
24
|
+
.magritte-file-name-body_medium___sfmmq_3-3-4{
|
|
25
25
|
justify-content:center;
|
|
26
26
|
}
|
|
27
|
-
.magritte-file-name___ZSL2g_3-3-
|
|
27
|
+
.magritte-file-name___ZSL2g_3-3-4{
|
|
28
28
|
overflow:hidden;
|
|
29
29
|
text-overflow:ellipsis;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:root{
|
|
33
|
-
--magritte-typography-label-4-regular-font-family-v21-4-
|
|
34
|
-
--magritte-typography-label-4-regular-font-weight-v21-4-
|
|
35
|
-
--magritte-typography-label-4-regular-line-height-v21-4-
|
|
36
|
-
--magritte-typography-label-4-regular-font-size-v21-4-
|
|
37
|
-
--magritte-typography-label-4-regular-letter-spacing-v21-4-
|
|
38
|
-
--magritte-typography-label-4-regular-text-indent-v21-4-
|
|
39
|
-
--magritte-typography-label-4-regular-text-transform-v21-4-
|
|
40
|
-
--magritte-typography-label-4-regular-text-decoration-v21-4-
|
|
41
|
-
--magritte-static-space-100-v21-4-
|
|
42
|
-
--magritte-static-space-400-v21-4-
|
|
43
|
-
}
|
|
44
|
-
.magritte-file-info-body___HmfXd_3-3-
|
|
33
|
+
--magritte-typography-label-4-regular-font-family-v21-4-1:"hh sans";
|
|
34
|
+
--magritte-typography-label-4-regular-font-weight-v21-4-1:400;
|
|
35
|
+
--magritte-typography-label-4-regular-line-height-v21-4-1:18px;
|
|
36
|
+
--magritte-typography-label-4-regular-font-size-v21-4-1:12px;
|
|
37
|
+
--magritte-typography-label-4-regular-letter-spacing-v21-4-1:0.01em;
|
|
38
|
+
--magritte-typography-label-4-regular-text-indent-v21-4-1:0px;
|
|
39
|
+
--magritte-typography-label-4-regular-text-transform-v21-4-1:none;
|
|
40
|
+
--magritte-typography-label-4-regular-text-decoration-v21-4-1:none;
|
|
41
|
+
--magritte-static-space-100-v21-4-1:4px;
|
|
42
|
+
--magritte-static-space-400-v21-4-1:16px;
|
|
43
|
+
}
|
|
44
|
+
.magritte-file-info-body___HmfXd_3-3-4{
|
|
45
45
|
flex-grow:1;
|
|
46
46
|
}
|
|
47
|
-
.magritte-file-info-and-controls___61iyY_3-3-
|
|
47
|
+
.magritte-file-info-and-controls___61iyY_3-3-4{
|
|
48
48
|
display:flex;
|
|
49
|
-
gap:var(--magritte-static-space-400-v21-4-
|
|
49
|
+
gap:var(--magritte-static-space-400-v21-4-1);
|
|
50
50
|
}
|
|
51
|
-
.magritte-file-info-container___WFab8_3-3-
|
|
51
|
+
.magritte-file-info-container___WFab8_3-3-4{
|
|
52
52
|
flex-grow:1;
|
|
53
53
|
width:50px;
|
|
54
54
|
}
|
|
55
|
-
.magritte-file-info___HrqiB_3-3-
|
|
55
|
+
.magritte-file-info___HrqiB_3-3-4{
|
|
56
56
|
display:flex;
|
|
57
|
-
gap:var(--magritte-static-space-100-v21-4-
|
|
58
|
-
font-family:var(--magritte-typography-label-4-regular-font-family-v21-4-
|
|
59
|
-
font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-4-
|
|
60
|
-
line-height:var(--magritte-typography-label-4-regular-line-height-v21-4-
|
|
61
|
-
font-size:var(--magritte-typography-label-4-regular-font-size-v21-4-
|
|
62
|
-
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v21-4-
|
|
63
|
-
text-indent:var(--magritte-typography-label-4-regular-text-indent-v21-4-
|
|
64
|
-
text-transform:var(--magritte-typography-label-4-regular-text-transform-v21-4-
|
|
65
|
-
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v21-4-
|
|
66
|
-
}
|
|
67
|
-
.magritte-controls___WdH7A_3-3-
|
|
57
|
+
gap:var(--magritte-static-space-100-v21-4-1);
|
|
58
|
+
font-family:var(--magritte-typography-label-4-regular-font-family-v21-4-1);
|
|
59
|
+
font-weight:var(--magritte-typography-label-4-regular-font-weight-v21-4-1);
|
|
60
|
+
line-height:var(--magritte-typography-label-4-regular-line-height-v21-4-1);
|
|
61
|
+
font-size:var(--magritte-typography-label-4-regular-font-size-v21-4-1);
|
|
62
|
+
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v21-4-1);
|
|
63
|
+
text-indent:var(--magritte-typography-label-4-regular-text-indent-v21-4-1);
|
|
64
|
+
text-transform:var(--magritte-typography-label-4-regular-text-transform-v21-4-1);
|
|
65
|
+
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v21-4-1);
|
|
66
|
+
}
|
|
67
|
+
.magritte-controls___WdH7A_3-3-4{
|
|
68
68
|
display:flex;
|
|
69
69
|
align-items:center;
|
|
70
70
|
margin-left:auto;
|
|
71
|
-
margin-right:var(--magritte-static-space-400-v21-4-
|
|
71
|
+
margin-right:var(--magritte-static-space-400-v21-4-1);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
:root{
|
|
75
|
-
--magritte-static-space-400-v21-4-
|
|
75
|
+
--magritte-static-space-400-v21-4-1:16px;
|
|
76
76
|
}
|
|
77
|
-
.magritte-item___vVDG-_3-3-
|
|
77
|
+
.magritte-item___vVDG-_3-3-4{
|
|
78
78
|
display:flex;
|
|
79
79
|
width:100%;
|
|
80
|
-
gap:var(--magritte-static-space-400-v21-4-
|
|
80
|
+
gap:var(--magritte-static-space-400-v21-4-1);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
:root{
|
|
84
|
-
--magritte-color-background-primary-v21-4-
|
|
85
|
-
--magritte-color-stroke-neutral-v21-4-
|
|
86
|
-
--magritte-color-stroke-accent-v21-4-
|
|
87
|
-
--magritte-color-stroke-state-focused-accessible-v21-4-
|
|
88
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-
|
|
84
|
+
--magritte-color-background-primary-v21-4-1:#ffffff;
|
|
85
|
+
--magritte-color-stroke-neutral-v21-4-1:#DCE3EB;
|
|
86
|
+
--magritte-color-stroke-accent-v21-4-1:#0070ff;
|
|
87
|
+
--magritte-color-stroke-state-focused-accessible-v21-4-1:#0070ff7a;
|
|
88
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-1:#ff4d3a7a;
|
|
89
89
|
}
|
|
90
90
|
:root{
|
|
91
|
-
--magritte-static-space-300-v21-4-
|
|
92
|
-
--magritte-static-space-400-v21-4-
|
|
93
|
-
--magritte-static-space-500-v21-4-
|
|
94
|
-
--magritte-static-space-600-v21-4-
|
|
95
|
-
--magritte-static-border-radius-600-v21-4-
|
|
91
|
+
--magritte-static-space-300-v21-4-1:12px;
|
|
92
|
+
--magritte-static-space-400-v21-4-1:16px;
|
|
93
|
+
--magritte-static-space-500-v21-4-1:20px;
|
|
94
|
+
--magritte-static-space-600-v21-4-1:24px;
|
|
95
|
+
--magritte-static-border-radius-600-v21-4-1:24px;
|
|
96
96
|
}
|
|
97
97
|
.magritte-night-theme{
|
|
98
|
-
--magritte-color-background-primary-v21-4-
|
|
99
|
-
--magritte-color-stroke-neutral-v21-4-
|
|
100
|
-
--magritte-color-stroke-accent-v21-4-
|
|
101
|
-
--magritte-color-stroke-state-focused-accessible-v21-4-
|
|
102
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-
|
|
98
|
+
--magritte-color-background-primary-v21-4-1:#1B1B1B;
|
|
99
|
+
--magritte-color-stroke-neutral-v21-4-1:#303030;
|
|
100
|
+
--magritte-color-stroke-accent-v21-4-1:#2b7fff;
|
|
101
|
+
--magritte-color-stroke-state-focused-accessible-v21-4-1:#0070ff7a;
|
|
102
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-1:#ff4d3a7a;
|
|
103
103
|
}
|
|
104
|
-
.magritte-root___FV1tC_3-3-
|
|
104
|
+
.magritte-root___FV1tC_3-3-4{
|
|
105
105
|
position:relative;
|
|
106
106
|
display:flex;
|
|
107
107
|
overflow:hidden;
|
|
108
|
-
border-radius:var(--magritte-static-border-radius-600-v21-4-
|
|
109
|
-
background-color:var(--magritte-color-background-primary-v21-4-
|
|
108
|
+
border-radius:var(--magritte-static-border-radius-600-v21-4-1);
|
|
109
|
+
background-color:var(--magritte-color-background-primary-v21-4-1);
|
|
110
110
|
}
|
|
111
|
-
.magritte-root___FV1tC_3-3-
|
|
111
|
+
.magritte-root___FV1tC_3-3-4:hover{
|
|
112
112
|
cursor:pointer;
|
|
113
113
|
}
|
|
114
|
-
.magritte-root___FV1tC_3-3-
|
|
115
|
-
border-color:var(--magritte-color-stroke-accent-v21-4-
|
|
114
|
+
.magritte-root___FV1tC_3-3-4:hover .magritte-background___RfZ0U_3-3-4{
|
|
115
|
+
border-color:var(--magritte-color-stroke-accent-v21-4-1);
|
|
116
116
|
}
|
|
117
|
-
.magritte-root___FV1tC_3-3-
|
|
118
|
-
border-color:var(--magritte-color-stroke-accent-v21-4-
|
|
117
|
+
.magritte-root___FV1tC_3-3-4.magritte-drag-active___dihBL_3-3-4 .magritte-background___RfZ0U_3-3-4{
|
|
118
|
+
border-color:var(--magritte-color-stroke-accent-v21-4-1);
|
|
119
119
|
}
|
|
120
|
-
.magritte-root___FV1tC_3-3-
|
|
121
|
-
outline:var(--magritte-color-stroke-state-focused-accessible-v21-4-
|
|
120
|
+
.magritte-root___FV1tC_3-3-4.focus-visible{
|
|
121
|
+
outline:var(--magritte-color-stroke-state-focused-accessible-v21-4-1) solid 4px;
|
|
122
122
|
}
|
|
123
|
-
.magritte-root___FV1tC_3-3-
|
|
124
|
-
border-color:var(--magritte-color-stroke-accent-v21-4-
|
|
123
|
+
.magritte-root___FV1tC_3-3-4.focus-visible .magritte-background___RfZ0U_3-3-4{
|
|
124
|
+
border-color:var(--magritte-color-stroke-accent-v21-4-1);
|
|
125
125
|
}
|
|
126
|
-
.magritte-root___FV1tC_3-3-
|
|
127
|
-
.magritte-root___FV1tC_3-3-
|
|
126
|
+
.magritte-root___FV1tC_3-3-4.magritte-load___MghDA_3-3-4 .magritte-background___RfZ0U_3-3-4,
|
|
127
|
+
.magritte-root___FV1tC_3-3-4.magritte-loading___9E3p-_3-3-4 .magritte-background___RfZ0U_3-3-4{
|
|
128
128
|
border-style:solid;
|
|
129
129
|
border-width:7px;
|
|
130
130
|
}
|
|
131
|
-
.magritte-root___FV1tC_3-3-
|
|
132
|
-
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-
|
|
131
|
+
.magritte-root___FV1tC_3-3-4.magritte-invalid___Rt10-_3-3-4.focus-visible{
|
|
132
|
+
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v21-4-1) solid 4px;
|
|
133
133
|
}
|
|
134
|
-
.magritte-root___FV1tC_3-3-
|
|
135
|
-
border-color:var(--magritte-color-stroke-neutral-v21-4-
|
|
134
|
+
.magritte-root___FV1tC_3-3-4.magritte-invalid___Rt10-_3-3-4 .magritte-background___RfZ0U_3-3-4{
|
|
135
|
+
border-color:var(--magritte-color-stroke-neutral-v21-4-1);
|
|
136
136
|
}
|
|
137
|
-
.magritte-root_medium___67WJa_3-3-
|
|
137
|
+
.magritte-root_medium___67WJa_3-3-4{
|
|
138
138
|
justify-content:center;
|
|
139
|
-
padding:var(--magritte-static-space-600-v21-4-
|
|
139
|
+
padding:var(--magritte-static-space-600-v21-4-1);
|
|
140
140
|
}
|
|
141
|
-
.magritte-root_medium___67WJa_3-3-
|
|
141
|
+
.magritte-root_medium___67WJa_3-3-4 .magritte-body___O7ROl_3-3-4{
|
|
142
142
|
flex-direction:column;
|
|
143
143
|
align-items:center;
|
|
144
144
|
justify-content:center;
|
|
145
145
|
}
|
|
146
|
-
.magritte-root_small___dkUYq_3-3-
|
|
147
|
-
padding-top:var(--magritte-static-space-400-v21-4-
|
|
148
|
-
padding-bottom:var(--magritte-static-space-400-v21-4-
|
|
149
|
-
padding-left:var(--magritte-static-space-400-v21-4-
|
|
146
|
+
.magritte-root_small___dkUYq_3-3-4{
|
|
147
|
+
padding-top:var(--magritte-static-space-400-v21-4-1);
|
|
148
|
+
padding-bottom:var(--magritte-static-space-400-v21-4-1);
|
|
149
|
+
padding-left:var(--magritte-static-space-400-v21-4-1);
|
|
150
150
|
}
|
|
151
|
-
.magritte-root_small___dkUYq_3-3-
|
|
152
|
-
gap:var(--magritte-static-space-400-v21-4-
|
|
151
|
+
.magritte-root_small___dkUYq_3-3-4 .magritte-body___O7ROl_3-3-4{
|
|
152
|
+
gap:var(--magritte-static-space-400-v21-4-1);
|
|
153
153
|
}
|
|
154
|
-
.magritte-background___RfZ0U_3-3-
|
|
154
|
+
.magritte-background___RfZ0U_3-3-4{
|
|
155
155
|
position:absolute;
|
|
156
156
|
border-width:8px;
|
|
157
157
|
border-style:dashed;
|
|
158
|
-
border-color:var(--magritte-color-stroke-neutral-v21-4-
|
|
158
|
+
border-color:var(--magritte-color-stroke-neutral-v21-4-1);
|
|
159
159
|
top:-6px;
|
|
160
160
|
bottom:-6px;
|
|
161
161
|
left:-6px;
|
|
162
162
|
right:-6px;
|
|
163
|
-
border-radius:calc(var(--magritte-static-border-radius-600-v21-4-
|
|
163
|
+
border-radius:calc(var(--magritte-static-border-radius-600-v21-4-1) + 6px);
|
|
164
164
|
background-position:center;
|
|
165
165
|
background-size:100%;
|
|
166
166
|
}
|
|
167
|
-
.magritte-body___O7ROl_3-3-
|
|
167
|
+
.magritte-body___O7ROl_3-3-4{
|
|
168
168
|
display:flex;
|
|
169
169
|
width:100%;
|
|
170
170
|
}
|
|
171
|
-
.magritte-loader___XYpWg_3-3-
|
|
171
|
+
.magritte-loader___XYpWg_3-3-4{
|
|
172
172
|
position:relative;
|
|
173
173
|
display:flex;
|
|
174
174
|
}
|
|
175
|
-
.magritte-cancel___tQ-yX_3-3-
|
|
175
|
+
.magritte-cancel___tQ-yX_3-3-4{
|
|
176
176
|
position:absolute;
|
|
177
177
|
top:0;
|
|
178
178
|
left:0;
|
|
@@ -182,37 +182,37 @@
|
|
|
182
182
|
align-items:center;
|
|
183
183
|
justify-content:center;
|
|
184
184
|
}
|
|
185
|
-
.magritte-image-controls___vLf94_3-3-
|
|
185
|
+
.magritte-image-controls___vLf94_3-3-4{
|
|
186
186
|
display:flex;
|
|
187
|
-
gap:var(--magritte-static-space-300-v21-4-
|
|
187
|
+
gap:var(--magritte-static-space-300-v21-4-1);
|
|
188
188
|
align-items:flex-end;
|
|
189
189
|
justify-content:flex-end;
|
|
190
190
|
width:100%;
|
|
191
191
|
}
|
|
192
|
-
.magritte-small-controls___Qn9TP_3-3-
|
|
192
|
+
.magritte-small-controls___Qn9TP_3-3-4{
|
|
193
193
|
display:flex;
|
|
194
194
|
align-items:center;
|
|
195
195
|
margin-left:auto;
|
|
196
|
-
margin-right:var(--magritte-static-space-500-v21-4-
|
|
196
|
+
margin-right:var(--magritte-static-space-500-v21-4-1);
|
|
197
197
|
}
|
|
198
|
-
.magritte-file-list___L9uHt_3-3-
|
|
199
|
-
margin-top:var(--magritte-static-space-300-v21-4-
|
|
200
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v21-4-
|
|
201
|
-
border-radius:var(--magritte-static-border-radius-600-v21-4-
|
|
202
|
-
padding-top:var(--magritte-static-space-400-v21-4-
|
|
198
|
+
.magritte-file-list___L9uHt_3-3-4{
|
|
199
|
+
margin-top:var(--magritte-static-space-300-v21-4-1);
|
|
200
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v21-4-1);
|
|
201
|
+
border-radius:var(--magritte-static-border-radius-600-v21-4-1);
|
|
202
|
+
padding-top:var(--magritte-static-space-400-v21-4-1);
|
|
203
203
|
padding-right:0;
|
|
204
|
-
padding-bottom:var(--magritte-static-space-400-v21-4-
|
|
205
|
-
padding-left:var(--magritte-static-space-400-v21-4-
|
|
204
|
+
padding-bottom:var(--magritte-static-space-400-v21-4-1);
|
|
205
|
+
padding-left:var(--magritte-static-space-400-v21-4-1);
|
|
206
206
|
}
|
|
207
|
-
.magritte-file-icon___oetLK_3-3-
|
|
207
|
+
.magritte-file-icon___oetLK_3-3-4{
|
|
208
208
|
display:inline-flex;
|
|
209
209
|
}
|
|
210
|
-
.magritte-file-info___Y3vyi_3-3-
|
|
210
|
+
.magritte-file-info___Y3vyi_3-3-4{
|
|
211
211
|
display:inline-flex;
|
|
212
212
|
width:100%;
|
|
213
213
|
flex-direction:column;
|
|
214
214
|
align-items:center;
|
|
215
215
|
}
|
|
216
|
-
.magritte-hidden-file-info___92c69_3-3-
|
|
216
|
+
.magritte-hidden-file-info___92c69_3-3-4{
|
|
217
217
|
visibility:hidden;
|
|
218
218
|
}
|
package/index.js
CHANGED
|
@@ -21,6 +21,6 @@ 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-CEbatoPE.js';
|
|
25
25
|
import './SingleUpload.js';
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-upload",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"react": ">=18.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@hh.ru/magritte-ui-avatar": "5.1.
|
|
30
|
+
"@hh.ru/magritte-ui-avatar": "5.1.10",
|
|
31
31
|
"@hh.ru/magritte-ui-breakpoint": "5.0.0",
|
|
32
|
-
"@hh.ru/magritte-ui-button": "5.3.
|
|
33
|
-
"@hh.ru/magritte-ui-button-stack": "2.1.
|
|
34
|
-
"@hh.ru/magritte-ui-divider": "1.1.
|
|
35
|
-
"@hh.ru/magritte-ui-icon": "10.2.
|
|
36
|
-
"@hh.ru/magritte-ui-loader": "1.3.
|
|
32
|
+
"@hh.ru/magritte-ui-button": "5.3.2",
|
|
33
|
+
"@hh.ru/magritte-ui-button-stack": "2.1.52",
|
|
34
|
+
"@hh.ru/magritte-ui-divider": "1.1.47",
|
|
35
|
+
"@hh.ru/magritte-ui-icon": "10.2.2",
|
|
36
|
+
"@hh.ru/magritte-ui-loader": "1.3.29",
|
|
37
37
|
"@hh.ru/magritte-ui-mock-component": "1.1.0",
|
|
38
|
-
"@hh.ru/magritte-ui-spacing": "2.0.
|
|
39
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
40
|
-
"@hh.ru/magritte-ui-typography": "3.0.
|
|
38
|
+
"@hh.ru/magritte-ui-spacing": "2.0.46",
|
|
39
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.43",
|
|
40
|
+
"@hh.ru/magritte-ui-typography": "3.0.34",
|
|
41
41
|
"react-dropzone": "14.3.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "bb2cc4bead8878b27ed2de03e1cbdeffc706f517"
|
|
44
44
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"root":"magritte-root___FV1tC_3-3-4","background":"magritte-background___RfZ0U_3-3-4","drag-active":"magritte-drag-active___dihBL_3-3-4","dragActive":"magritte-drag-active___dihBL_3-3-4","load":"magritte-load___MghDA_3-3-4","loading":"magritte-loading___9E3p-_3-3-4","invalid":"magritte-invalid___Rt10-_3-3-4","root_medium":"magritte-root_medium___67WJa_3-3-4","rootMedium":"magritte-root_medium___67WJa_3-3-4","body":"magritte-body___O7ROl_3-3-4","root_small":"magritte-root_small___dkUYq_3-3-4","rootSmall":"magritte-root_small___dkUYq_3-3-4","loader":"magritte-loader___XYpWg_3-3-4","cancel":"magritte-cancel___tQ-yX_3-3-4","image-controls":"magritte-image-controls___vLf94_3-3-4","imageControls":"magritte-image-controls___vLf94_3-3-4","small-controls":"magritte-small-controls___Qn9TP_3-3-4","smallControls":"magritte-small-controls___Qn9TP_3-3-4","file-list":"magritte-file-list___L9uHt_3-3-4","fileList":"magritte-file-list___L9uHt_3-3-4","file-icon":"magritte-file-icon___oetLK_3-3-4","fileIcon":"magritte-file-icon___oetLK_3-3-4","file-info":"magritte-file-info___Y3vyi_3-3-4","fileInfo":"magritte-file-info___Y3vyi_3-3-4","hidden-file-info":"magritte-hidden-file-info___92c69_3-3-4","hiddenFileInfo":"magritte-hidden-file-info___92c69_3-3-4"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=upload-CEbatoPE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-CEbatoPE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/upload-B6NnXYYt.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"root":"magritte-root___FV1tC_3-3-3","background":"magritte-background___RfZ0U_3-3-3","drag-active":"magritte-drag-active___dihBL_3-3-3","dragActive":"magritte-drag-active___dihBL_3-3-3","load":"magritte-load___MghDA_3-3-3","loading":"magritte-loading___9E3p-_3-3-3","invalid":"magritte-invalid___Rt10-_3-3-3","root_medium":"magritte-root_medium___67WJa_3-3-3","rootMedium":"magritte-root_medium___67WJa_3-3-3","body":"magritte-body___O7ROl_3-3-3","root_small":"magritte-root_small___dkUYq_3-3-3","rootSmall":"magritte-root_small___dkUYq_3-3-3","loader":"magritte-loader___XYpWg_3-3-3","cancel":"magritte-cancel___tQ-yX_3-3-3","image-controls":"magritte-image-controls___vLf94_3-3-3","imageControls":"magritte-image-controls___vLf94_3-3-3","small-controls":"magritte-small-controls___Qn9TP_3-3-3","smallControls":"magritte-small-controls___Qn9TP_3-3-3","file-list":"magritte-file-list___L9uHt_3-3-3","fileList":"magritte-file-list___L9uHt_3-3-3","file-icon":"magritte-file-icon___oetLK_3-3-3","fileIcon":"magritte-file-icon___oetLK_3-3-3","file-info":"magritte-file-info___Y3vyi_3-3-3","fileInfo":"magritte-file-info___Y3vyi_3-3-3","hidden-file-info":"magritte-hidden-file-info___92c69_3-3-3","hiddenFileInfo":"magritte-hidden-file-info___92c69_3-3-3"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=upload-B6NnXYYt.js.map
|
package/upload-B6NnXYYt.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-B6NnXYYt.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|