@hh.ru/magritte-ui-upload 4.0.10 → 4.0.11
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 +119 -119
- package/index.js +1 -1
- package/package.json +11 -11
- package/upload-DU2IDVNv.js +5 -0
- package/upload-DU2IDVNv.js.map +1 -0
- package/upload-BmE6QTVa.js +0 -5
- package/upload-BmE6QTVa.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_4-0-
|
|
5
|
+
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_4-0-11","fileNameBody":"magritte-file-name-body___PTTMc_4-0-11","file-name-body_medium":"magritte-file-name-body_medium___sfmmq_4-0-11","fileNameBodyMedium":"magritte-file-name-body_medium___sfmmq_4-0-11","file-name":"magritte-file-name___ZSL2g_4-0-11","fileName":"magritte-file-name___ZSL2g_4-0-11"};
|
|
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_4-0-
|
|
12
|
+
var styles = {"file-info-body":"magritte-file-info-body___HmfXd_4-0-11","fileInfoBody":"magritte-file-info-body___HmfXd_4-0-11","file-info-and-controls":"magritte-file-info-and-controls___61iyY_4-0-11","fileInfoAndControls":"magritte-file-info-and-controls___61iyY_4-0-11","file-info-container":"magritte-file-info-container___WFab8_4-0-11","fileInfoContainer":"magritte-file-info-container___WFab8_4-0-11","file-info":"magritte-file-info___HrqiB_4-0-11","fileInfo":"magritte-file-info___HrqiB_4-0-11","controls":"magritte-controls___WdH7A_4-0-11"};
|
|
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-_4-0-
|
|
15
|
+
var styles = {"item":"magritte-item___vVDG-_4-0-11"};
|
|
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-DU2IDVNv.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-DU2IDVNv.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-DU2IDVNv.js';
|
|
24
24
|
|
|
25
25
|
const Upload = ({ multiple, noDragEventsBubbling = true, ...uploadProps }) => {
|
|
26
26
|
if (multiple) {
|
package/index.css
CHANGED
|
@@ -1,189 +1,189 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-typography-label-2-regular-font-family-v23-
|
|
3
|
-
--magritte-typography-label-2-regular-font-weight-v23-
|
|
4
|
-
--magritte-typography-label-2-regular-line-height-v23-
|
|
5
|
-
--magritte-typography-label-2-regular-font-size-v23-
|
|
6
|
-
--magritte-typography-label-2-regular-letter-spacing-v23-
|
|
7
|
-
--magritte-typography-label-2-regular-text-indent-v23-
|
|
8
|
-
--magritte-typography-label-2-regular-text-transform-v23-
|
|
9
|
-
--magritte-typography-label-2-regular-text-decoration-v23-
|
|
10
|
-
}
|
|
11
|
-
.magritte-file-name-body___PTTMc_4-0-
|
|
2
|
+
--magritte-typography-label-2-regular-font-family-v23-2-0:"hh sans";
|
|
3
|
+
--magritte-typography-label-2-regular-font-weight-v23-2-0:400;
|
|
4
|
+
--magritte-typography-label-2-regular-line-height-v23-2-0:22px;
|
|
5
|
+
--magritte-typography-label-2-regular-font-size-v23-2-0:16px;
|
|
6
|
+
--magritte-typography-label-2-regular-letter-spacing-v23-2-0:0em;
|
|
7
|
+
--magritte-typography-label-2-regular-text-indent-v23-2-0:0px;
|
|
8
|
+
--magritte-typography-label-2-regular-text-transform-v23-2-0:none;
|
|
9
|
+
--magritte-typography-label-2-regular-text-decoration-v23-2-0:none;
|
|
10
|
+
}
|
|
11
|
+
.magritte-file-name-body___PTTMc_4-0-11{
|
|
12
12
|
display:flex;
|
|
13
13
|
width:100%;
|
|
14
14
|
overflow:hidden;
|
|
15
|
-
font-family:var(--magritte-typography-label-2-regular-font-family-v23-
|
|
16
|
-
font-weight:var(--magritte-typography-label-2-regular-font-weight-v23-
|
|
17
|
-
line-height:var(--magritte-typography-label-2-regular-line-height-v23-
|
|
18
|
-
font-size:var(--magritte-typography-label-2-regular-font-size-v23-
|
|
19
|
-
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v23-
|
|
20
|
-
text-indent:var(--magritte-typography-label-2-regular-text-indent-v23-
|
|
21
|
-
text-transform:var(--magritte-typography-label-2-regular-text-transform-v23-
|
|
22
|
-
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v23-
|
|
23
|
-
}
|
|
24
|
-
.magritte-file-name-body_medium___sfmmq_4-0-
|
|
15
|
+
font-family:var(--magritte-typography-label-2-regular-font-family-v23-2-0);
|
|
16
|
+
font-weight:var(--magritte-typography-label-2-regular-font-weight-v23-2-0);
|
|
17
|
+
line-height:var(--magritte-typography-label-2-regular-line-height-v23-2-0);
|
|
18
|
+
font-size:var(--magritte-typography-label-2-regular-font-size-v23-2-0);
|
|
19
|
+
letter-spacing:var(--magritte-typography-label-2-regular-letter-spacing-v23-2-0);
|
|
20
|
+
text-indent:var(--magritte-typography-label-2-regular-text-indent-v23-2-0);
|
|
21
|
+
text-transform:var(--magritte-typography-label-2-regular-text-transform-v23-2-0);
|
|
22
|
+
text-decoration:var(--magritte-typography-label-2-regular-text-decoration-v23-2-0);
|
|
23
|
+
}
|
|
24
|
+
.magritte-file-name-body_medium___sfmmq_4-0-11{
|
|
25
25
|
justify-content:center;
|
|
26
26
|
}
|
|
27
|
-
.magritte-file-name___ZSL2g_4-0-
|
|
27
|
+
.magritte-file-name___ZSL2g_4-0-11{
|
|
28
28
|
overflow:hidden;
|
|
29
29
|
text-overflow:ellipsis;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:root{
|
|
33
|
-
--magritte-typography-label-4-regular-font-family-v23-
|
|
34
|
-
--magritte-typography-label-4-regular-font-weight-v23-
|
|
35
|
-
--magritte-typography-label-4-regular-line-height-v23-
|
|
36
|
-
--magritte-typography-label-4-regular-font-size-v23-
|
|
37
|
-
--magritte-typography-label-4-regular-letter-spacing-v23-
|
|
38
|
-
--magritte-typography-label-4-regular-text-indent-v23-
|
|
39
|
-
--magritte-typography-label-4-regular-text-transform-v23-
|
|
40
|
-
--magritte-typography-label-4-regular-text-decoration-v23-
|
|
41
|
-
--magritte-static-space-100-v23-
|
|
42
|
-
--magritte-static-space-400-v23-
|
|
43
|
-
}
|
|
44
|
-
.magritte-file-info-body___HmfXd_4-0-
|
|
33
|
+
--magritte-typography-label-4-regular-font-family-v23-2-0:"hh sans";
|
|
34
|
+
--magritte-typography-label-4-regular-font-weight-v23-2-0:400;
|
|
35
|
+
--magritte-typography-label-4-regular-line-height-v23-2-0:18px;
|
|
36
|
+
--magritte-typography-label-4-regular-font-size-v23-2-0:12px;
|
|
37
|
+
--magritte-typography-label-4-regular-letter-spacing-v23-2-0:0.01em;
|
|
38
|
+
--magritte-typography-label-4-regular-text-indent-v23-2-0:0px;
|
|
39
|
+
--magritte-typography-label-4-regular-text-transform-v23-2-0:none;
|
|
40
|
+
--magritte-typography-label-4-regular-text-decoration-v23-2-0:none;
|
|
41
|
+
--magritte-static-space-100-v23-2-0:4px;
|
|
42
|
+
--magritte-static-space-400-v23-2-0:16px;
|
|
43
|
+
}
|
|
44
|
+
.magritte-file-info-body___HmfXd_4-0-11{
|
|
45
45
|
flex-grow:1;
|
|
46
46
|
}
|
|
47
|
-
.magritte-file-info-and-controls___61iyY_4-0-
|
|
47
|
+
.magritte-file-info-and-controls___61iyY_4-0-11{
|
|
48
48
|
display:flex;
|
|
49
|
-
gap:var(--magritte-static-space-400-v23-
|
|
49
|
+
gap:var(--magritte-static-space-400-v23-2-0);
|
|
50
50
|
}
|
|
51
|
-
.magritte-file-info-container___WFab8_4-0-
|
|
51
|
+
.magritte-file-info-container___WFab8_4-0-11{
|
|
52
52
|
flex-grow:1;
|
|
53
53
|
width:50px;
|
|
54
54
|
}
|
|
55
|
-
.magritte-file-info___HrqiB_4-0-
|
|
55
|
+
.magritte-file-info___HrqiB_4-0-11{
|
|
56
56
|
display:flex;
|
|
57
|
-
gap:var(--magritte-static-space-100-v23-
|
|
58
|
-
font-family:var(--magritte-typography-label-4-regular-font-family-v23-
|
|
59
|
-
font-weight:var(--magritte-typography-label-4-regular-font-weight-v23-
|
|
60
|
-
line-height:var(--magritte-typography-label-4-regular-line-height-v23-
|
|
61
|
-
font-size:var(--magritte-typography-label-4-regular-font-size-v23-
|
|
62
|
-
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v23-
|
|
63
|
-
text-indent:var(--magritte-typography-label-4-regular-text-indent-v23-
|
|
64
|
-
text-transform:var(--magritte-typography-label-4-regular-text-transform-v23-
|
|
65
|
-
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v23-
|
|
66
|
-
}
|
|
67
|
-
.magritte-controls___WdH7A_4-0-
|
|
57
|
+
gap:var(--magritte-static-space-100-v23-2-0);
|
|
58
|
+
font-family:var(--magritte-typography-label-4-regular-font-family-v23-2-0);
|
|
59
|
+
font-weight:var(--magritte-typography-label-4-regular-font-weight-v23-2-0);
|
|
60
|
+
line-height:var(--magritte-typography-label-4-regular-line-height-v23-2-0);
|
|
61
|
+
font-size:var(--magritte-typography-label-4-regular-font-size-v23-2-0);
|
|
62
|
+
letter-spacing:var(--magritte-typography-label-4-regular-letter-spacing-v23-2-0);
|
|
63
|
+
text-indent:var(--magritte-typography-label-4-regular-text-indent-v23-2-0);
|
|
64
|
+
text-transform:var(--magritte-typography-label-4-regular-text-transform-v23-2-0);
|
|
65
|
+
text-decoration:var(--magritte-typography-label-4-regular-text-decoration-v23-2-0);
|
|
66
|
+
}
|
|
67
|
+
.magritte-controls___WdH7A_4-0-11{
|
|
68
68
|
display:flex;
|
|
69
69
|
align-items:center;
|
|
70
70
|
margin-left:auto;
|
|
71
|
-
margin-right:var(--magritte-static-space-400-v23-
|
|
71
|
+
margin-right:var(--magritte-static-space-400-v23-2-0);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
:root{
|
|
75
|
-
--magritte-static-space-400-v23-
|
|
75
|
+
--magritte-static-space-400-v23-2-0:16px;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.magritte-item___vVDG-_4-0-
|
|
78
|
+
.magritte-item___vVDG-_4-0-11{
|
|
79
79
|
display:flex;
|
|
80
80
|
width:100%;
|
|
81
|
-
gap:var(--magritte-static-space-400-v23-
|
|
81
|
+
gap:var(--magritte-static-space-400-v23-2-0);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
:root{
|
|
85
|
-
--magritte-color-background-primary-v23-
|
|
86
|
-
--magritte-color-stroke-neutral-v23-
|
|
87
|
-
--magritte-color-stroke-accent-v23-
|
|
88
|
-
--magritte-color-stroke-state-focused-accessible-v23-
|
|
89
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-
|
|
85
|
+
--magritte-color-background-primary-v23-2-0:#ffffff;
|
|
86
|
+
--magritte-color-stroke-neutral-v23-2-0:#DCE3EB;
|
|
87
|
+
--magritte-color-stroke-accent-v23-2-0:#0070ff;
|
|
88
|
+
--magritte-color-stroke-state-focused-accessible-v23-2-0:#0070ff7a;
|
|
89
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-2-0:#ff4d3a7a;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
:root{
|
|
93
|
-
--magritte-static-space-300-v23-
|
|
94
|
-
--magritte-static-space-400-v23-
|
|
95
|
-
--magritte-static-space-500-v23-
|
|
96
|
-
--magritte-static-space-600-v23-
|
|
97
|
-
--magritte-static-border-radius-600-v23-
|
|
93
|
+
--magritte-static-space-300-v23-2-0:12px;
|
|
94
|
+
--magritte-static-space-400-v23-2-0:16px;
|
|
95
|
+
--magritte-static-space-500-v23-2-0:20px;
|
|
96
|
+
--magritte-static-space-600-v23-2-0:24px;
|
|
97
|
+
--magritte-static-border-radius-600-v23-2-0:24px;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.magritte-night-theme{
|
|
101
|
-
--magritte-color-background-primary-v23-
|
|
102
|
-
--magritte-color-stroke-neutral-v23-
|
|
103
|
-
--magritte-color-stroke-accent-v23-
|
|
104
|
-
--magritte-color-stroke-state-focused-accessible-v23-
|
|
105
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-
|
|
101
|
+
--magritte-color-background-primary-v23-2-0:#1B1B1B;
|
|
102
|
+
--magritte-color-stroke-neutral-v23-2-0:#303030;
|
|
103
|
+
--magritte-color-stroke-accent-v23-2-0:#2b7fff;
|
|
104
|
+
--magritte-color-stroke-state-focused-accessible-v23-2-0:#0070ff7a;
|
|
105
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-2-0:#ff4d3a7a;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.magritte-zp-day-theme{
|
|
109
|
-
--magritte-color-background-primary-v23-
|
|
110
|
-
--magritte-color-stroke-neutral-v23-
|
|
111
|
-
--magritte-color-stroke-accent-v23-
|
|
112
|
-
--magritte-color-stroke-state-focused-accessible-v23-
|
|
113
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-
|
|
109
|
+
--magritte-color-background-primary-v23-2-0:#ffffff;
|
|
110
|
+
--magritte-color-stroke-neutral-v23-2-0:#DCE3EB;
|
|
111
|
+
--magritte-color-stroke-accent-v23-2-0:#7195AF;
|
|
112
|
+
--magritte-color-stroke-state-focused-accessible-v23-2-0:#0070ff7a;
|
|
113
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-2-0:#ff4d3a7a;
|
|
114
114
|
}
|
|
115
|
-
.magritte-root___FV1tC_4-0-
|
|
115
|
+
.magritte-root___FV1tC_4-0-11{
|
|
116
116
|
position:relative;
|
|
117
117
|
display:flex;
|
|
118
118
|
overflow:hidden;
|
|
119
|
-
border-radius:var(--magritte-static-border-radius-600-v23-
|
|
120
|
-
background-color:var(--magritte-color-background-primary-v23-
|
|
119
|
+
border-radius:var(--magritte-static-border-radius-600-v23-2-0);
|
|
120
|
+
background-color:var(--magritte-color-background-primary-v23-2-0);
|
|
121
121
|
}
|
|
122
|
-
.magritte-root___FV1tC_4-0-
|
|
122
|
+
.magritte-root___FV1tC_4-0-11:hover{
|
|
123
123
|
cursor:pointer;
|
|
124
124
|
}
|
|
125
|
-
.magritte-root___FV1tC_4-0-
|
|
126
|
-
border-color:var(--magritte-color-stroke-accent-v23-
|
|
125
|
+
.magritte-root___FV1tC_4-0-11:hover .magritte-background___RfZ0U_4-0-11{
|
|
126
|
+
border-color:var(--magritte-color-stroke-accent-v23-2-0);
|
|
127
127
|
}
|
|
128
|
-
.magritte-root___FV1tC_4-0-
|
|
129
|
-
border-color:var(--magritte-color-stroke-accent-v23-
|
|
128
|
+
.magritte-root___FV1tC_4-0-11.magritte-drag-active___dihBL_4-0-11 .magritte-background___RfZ0U_4-0-11{
|
|
129
|
+
border-color:var(--magritte-color-stroke-accent-v23-2-0);
|
|
130
130
|
}
|
|
131
|
-
.magritte-root___FV1tC_4-0-
|
|
132
|
-
outline:var(--magritte-color-stroke-state-focused-accessible-v23-
|
|
131
|
+
.magritte-root___FV1tC_4-0-11.focus-visible{
|
|
132
|
+
outline:var(--magritte-color-stroke-state-focused-accessible-v23-2-0) solid 4px;
|
|
133
133
|
}
|
|
134
|
-
.magritte-root___FV1tC_4-0-
|
|
135
|
-
border-color:var(--magritte-color-stroke-accent-v23-
|
|
134
|
+
.magritte-root___FV1tC_4-0-11.focus-visible .magritte-background___RfZ0U_4-0-11{
|
|
135
|
+
border-color:var(--magritte-color-stroke-accent-v23-2-0);
|
|
136
136
|
}
|
|
137
|
-
.magritte-root___FV1tC_4-0-
|
|
138
|
-
.magritte-root___FV1tC_4-0-
|
|
137
|
+
.magritte-root___FV1tC_4-0-11.magritte-load___MghDA_4-0-11 .magritte-background___RfZ0U_4-0-11,
|
|
138
|
+
.magritte-root___FV1tC_4-0-11.magritte-loading___9E3p-_4-0-11 .magritte-background___RfZ0U_4-0-11{
|
|
139
139
|
border-style:solid;
|
|
140
140
|
border-width:7px;
|
|
141
141
|
}
|
|
142
|
-
.magritte-root___FV1tC_4-0-
|
|
143
|
-
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-
|
|
142
|
+
.magritte-root___FV1tC_4-0-11.magritte-invalid___Rt10-_4-0-11.focus-visible{
|
|
143
|
+
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v23-2-0) solid 4px;
|
|
144
144
|
}
|
|
145
|
-
.magritte-root___FV1tC_4-0-
|
|
146
|
-
border-color:var(--magritte-color-stroke-neutral-v23-
|
|
145
|
+
.magritte-root___FV1tC_4-0-11.magritte-invalid___Rt10-_4-0-11 .magritte-background___RfZ0U_4-0-11{
|
|
146
|
+
border-color:var(--magritte-color-stroke-neutral-v23-2-0);
|
|
147
147
|
}
|
|
148
|
-
.magritte-root_medium___67WJa_4-0-
|
|
148
|
+
.magritte-root_medium___67WJa_4-0-11{
|
|
149
149
|
justify-content:center;
|
|
150
|
-
padding:var(--magritte-static-space-600-v23-
|
|
150
|
+
padding:var(--magritte-static-space-600-v23-2-0);
|
|
151
151
|
}
|
|
152
|
-
.magritte-root_medium___67WJa_4-0-
|
|
152
|
+
.magritte-root_medium___67WJa_4-0-11 .magritte-body___O7ROl_4-0-11{
|
|
153
153
|
flex-direction:column;
|
|
154
154
|
align-items:center;
|
|
155
155
|
justify-content:center;
|
|
156
156
|
}
|
|
157
|
-
.magritte-root_small___dkUYq_4-0-
|
|
158
|
-
padding-top:var(--magritte-static-space-400-v23-
|
|
159
|
-
padding-bottom:var(--magritte-static-space-400-v23-
|
|
160
|
-
padding-left:var(--magritte-static-space-400-v23-
|
|
157
|
+
.magritte-root_small___dkUYq_4-0-11{
|
|
158
|
+
padding-top:var(--magritte-static-space-400-v23-2-0);
|
|
159
|
+
padding-bottom:var(--magritte-static-space-400-v23-2-0);
|
|
160
|
+
padding-left:var(--magritte-static-space-400-v23-2-0);
|
|
161
161
|
}
|
|
162
|
-
.magritte-root_small___dkUYq_4-0-
|
|
163
|
-
gap:var(--magritte-static-space-400-v23-
|
|
162
|
+
.magritte-root_small___dkUYq_4-0-11 .magritte-body___O7ROl_4-0-11{
|
|
163
|
+
gap:var(--magritte-static-space-400-v23-2-0);
|
|
164
164
|
}
|
|
165
|
-
.magritte-background___RfZ0U_4-0-
|
|
165
|
+
.magritte-background___RfZ0U_4-0-11{
|
|
166
166
|
position:absolute;
|
|
167
167
|
border-width:8px;
|
|
168
168
|
border-style:dashed;
|
|
169
|
-
border-color:var(--magritte-color-stroke-neutral-v23-
|
|
169
|
+
border-color:var(--magritte-color-stroke-neutral-v23-2-0);
|
|
170
170
|
top:-6px;
|
|
171
171
|
bottom:-6px;
|
|
172
172
|
left:-6px;
|
|
173
173
|
right:-6px;
|
|
174
|
-
border-radius:calc(var(--magritte-static-border-radius-600-v23-
|
|
174
|
+
border-radius:calc(var(--magritte-static-border-radius-600-v23-2-0) + 6px);
|
|
175
175
|
background-position:center;
|
|
176
176
|
background-size:100%;
|
|
177
177
|
}
|
|
178
|
-
.magritte-body___O7ROl_4-0-
|
|
178
|
+
.magritte-body___O7ROl_4-0-11{
|
|
179
179
|
display:flex;
|
|
180
180
|
width:100%;
|
|
181
181
|
}
|
|
182
|
-
.magritte-loader___XYpWg_4-0-
|
|
182
|
+
.magritte-loader___XYpWg_4-0-11{
|
|
183
183
|
position:relative;
|
|
184
184
|
display:flex;
|
|
185
185
|
}
|
|
186
|
-
.magritte-cancel___tQ-yX_4-0-
|
|
186
|
+
.magritte-cancel___tQ-yX_4-0-11{
|
|
187
187
|
position:absolute;
|
|
188
188
|
top:0;
|
|
189
189
|
left:0;
|
|
@@ -193,37 +193,37 @@
|
|
|
193
193
|
align-items:center;
|
|
194
194
|
justify-content:center;
|
|
195
195
|
}
|
|
196
|
-
.magritte-image-controls___vLf94_4-0-
|
|
196
|
+
.magritte-image-controls___vLf94_4-0-11{
|
|
197
197
|
display:flex;
|
|
198
|
-
gap:var(--magritte-static-space-300-v23-
|
|
198
|
+
gap:var(--magritte-static-space-300-v23-2-0);
|
|
199
199
|
align-items:flex-end;
|
|
200
200
|
justify-content:flex-end;
|
|
201
201
|
width:100%;
|
|
202
202
|
}
|
|
203
|
-
.magritte-small-controls___Qn9TP_4-0-
|
|
203
|
+
.magritte-small-controls___Qn9TP_4-0-11{
|
|
204
204
|
display:flex;
|
|
205
205
|
align-items:center;
|
|
206
206
|
margin-left:auto;
|
|
207
|
-
margin-right:var(--magritte-static-space-500-v23-
|
|
207
|
+
margin-right:var(--magritte-static-space-500-v23-2-0);
|
|
208
208
|
}
|
|
209
|
-
.magritte-file-list___L9uHt_4-0-
|
|
210
|
-
margin-top:var(--magritte-static-space-300-v23-
|
|
211
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v23-
|
|
212
|
-
border-radius:var(--magritte-static-border-radius-600-v23-
|
|
213
|
-
padding-top:var(--magritte-static-space-400-v23-
|
|
209
|
+
.magritte-file-list___L9uHt_4-0-11{
|
|
210
|
+
margin-top:var(--magritte-static-space-300-v23-2-0);
|
|
211
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v23-2-0);
|
|
212
|
+
border-radius:var(--magritte-static-border-radius-600-v23-2-0);
|
|
213
|
+
padding-top:var(--magritte-static-space-400-v23-2-0);
|
|
214
214
|
padding-right:0;
|
|
215
|
-
padding-bottom:var(--magritte-static-space-400-v23-
|
|
216
|
-
padding-left:var(--magritte-static-space-400-v23-
|
|
215
|
+
padding-bottom:var(--magritte-static-space-400-v23-2-0);
|
|
216
|
+
padding-left:var(--magritte-static-space-400-v23-2-0);
|
|
217
217
|
}
|
|
218
|
-
.magritte-file-icon___oetLK_4-0-
|
|
218
|
+
.magritte-file-icon___oetLK_4-0-11{
|
|
219
219
|
display:inline-flex;
|
|
220
220
|
}
|
|
221
|
-
.magritte-file-info___Y3vyi_4-0-
|
|
221
|
+
.magritte-file-info___Y3vyi_4-0-11{
|
|
222
222
|
display:inline-flex;
|
|
223
223
|
width:100%;
|
|
224
224
|
flex-direction:column;
|
|
225
225
|
align-items:center;
|
|
226
226
|
}
|
|
227
|
-
.magritte-hidden-file-info___92c69_4-0-
|
|
227
|
+
.magritte-hidden-file-info___92c69_4-0-11{
|
|
228
228
|
visibility:hidden;
|
|
229
229
|
}
|
package/index.js
CHANGED
|
@@ -20,6 +20,6 @@ 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-DU2IDVNv.js';
|
|
24
24
|
import './SingleUpload.js';
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-upload",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"react": ">=18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@hh.ru/magritte-design-tokens": "23.
|
|
30
|
-
"@hh.ru/magritte-ui-avatar": "7.0.
|
|
29
|
+
"@hh.ru/magritte-design-tokens": "23.2.0",
|
|
30
|
+
"@hh.ru/magritte-ui-avatar": "7.0.5",
|
|
31
31
|
"@hh.ru/magritte-ui-breakpoint": "6.0.0",
|
|
32
|
-
"@hh.ru/magritte-ui-button": "6.0.
|
|
33
|
-
"@hh.ru/magritte-ui-button-stack": "2.1.
|
|
34
|
-
"@hh.ru/magritte-ui-divider": "3.0.
|
|
35
|
-
"@hh.ru/magritte-ui-icon": "12.3.
|
|
36
|
-
"@hh.ru/magritte-ui-loader": "2.0.
|
|
32
|
+
"@hh.ru/magritte-ui-button": "6.0.7",
|
|
33
|
+
"@hh.ru/magritte-ui-button-stack": "2.1.77",
|
|
34
|
+
"@hh.ru/magritte-ui-divider": "3.0.4",
|
|
35
|
+
"@hh.ru/magritte-ui-icon": "12.3.1",
|
|
36
|
+
"@hh.ru/magritte-ui-loader": "2.0.6",
|
|
37
37
|
"@hh.ru/magritte-ui-mock-component": "1.1.4",
|
|
38
|
-
"@hh.ru/magritte-ui-spacing": "2.0.
|
|
39
|
-
"@hh.ru/magritte-ui-typography": "4.2.
|
|
38
|
+
"@hh.ru/magritte-ui-spacing": "2.0.61",
|
|
39
|
+
"@hh.ru/magritte-ui-typography": "4.2.1",
|
|
40
40
|
"react-dropzone": "14.3.5"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "fb6e7a383f8c329c0b5bc46df4d4bb11e44d9d24"
|
|
43
43
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"root":"magritte-root___FV1tC_4-0-11","background":"magritte-background___RfZ0U_4-0-11","drag-active":"magritte-drag-active___dihBL_4-0-11","dragActive":"magritte-drag-active___dihBL_4-0-11","load":"magritte-load___MghDA_4-0-11","loading":"magritte-loading___9E3p-_4-0-11","invalid":"magritte-invalid___Rt10-_4-0-11","root_medium":"magritte-root_medium___67WJa_4-0-11","rootMedium":"magritte-root_medium___67WJa_4-0-11","body":"magritte-body___O7ROl_4-0-11","root_small":"magritte-root_small___dkUYq_4-0-11","rootSmall":"magritte-root_small___dkUYq_4-0-11","loader":"magritte-loader___XYpWg_4-0-11","cancel":"magritte-cancel___tQ-yX_4-0-11","image-controls":"magritte-image-controls___vLf94_4-0-11","imageControls":"magritte-image-controls___vLf94_4-0-11","small-controls":"magritte-small-controls___Qn9TP_4-0-11","smallControls":"magritte-small-controls___Qn9TP_4-0-11","file-list":"magritte-file-list___L9uHt_4-0-11","fileList":"magritte-file-list___L9uHt_4-0-11","file-icon":"magritte-file-icon___oetLK_4-0-11","fileIcon":"magritte-file-icon___oetLK_4-0-11","file-info":"magritte-file-info___Y3vyi_4-0-11","fileInfo":"magritte-file-info___Y3vyi_4-0-11","hidden-file-info":"magritte-hidden-file-info___92c69_4-0-11","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-0-11"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=upload-DU2IDVNv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-DU2IDVNv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/upload-BmE6QTVa.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"root":"magritte-root___FV1tC_4-0-10","background":"magritte-background___RfZ0U_4-0-10","drag-active":"magritte-drag-active___dihBL_4-0-10","dragActive":"magritte-drag-active___dihBL_4-0-10","load":"magritte-load___MghDA_4-0-10","loading":"magritte-loading___9E3p-_4-0-10","invalid":"magritte-invalid___Rt10-_4-0-10","root_medium":"magritte-root_medium___67WJa_4-0-10","rootMedium":"magritte-root_medium___67WJa_4-0-10","body":"magritte-body___O7ROl_4-0-10","root_small":"magritte-root_small___dkUYq_4-0-10","rootSmall":"magritte-root_small___dkUYq_4-0-10","loader":"magritte-loader___XYpWg_4-0-10","cancel":"magritte-cancel___tQ-yX_4-0-10","image-controls":"magritte-image-controls___vLf94_4-0-10","imageControls":"magritte-image-controls___vLf94_4-0-10","small-controls":"magritte-small-controls___Qn9TP_4-0-10","smallControls":"magritte-small-controls___Qn9TP_4-0-10","file-list":"magritte-file-list___L9uHt_4-0-10","fileList":"magritte-file-list___L9uHt_4-0-10","file-icon":"magritte-file-icon___oetLK_4-0-10","fileIcon":"magritte-file-icon___oetLK_4-0-10","file-info":"magritte-file-info___Y3vyi_4-0-10","fileInfo":"magritte-file-info___Y3vyi_4-0-10","hidden-file-info":"magritte-hidden-file-info___92c69_4-0-10","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-0-10"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=upload-BmE6QTVa.js.map
|
package/upload-BmE6QTVa.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-BmE6QTVa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|