@hh.ru/magritte-ui-upload 4.0.26 → 4.0.28
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 +33 -33
- package/index.js +1 -1
- package/package.json +12 -12
- package/upload-4Nc3iStE.js +5 -0
- package/upload-4Nc3iStE.js.map +1 -0
- package/upload-BvUFiWmm.js +0 -5
- package/upload-BvUFiWmm.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-28","fileNameBody":"magritte-file-name-body___PTTMc_4-0-28","file-name-body_medium":"magritte-file-name-body_medium___sfmmq_4-0-28","fileNameBodyMedium":"magritte-file-name-body_medium___sfmmq_4-0-28","file-name":"magritte-file-name___ZSL2g_4-0-28","fileName":"magritte-file-name___ZSL2g_4-0-28"};
|
|
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-28","fileInfoBody":"magritte-file-info-body___HmfXd_4-0-28","file-info-and-controls":"magritte-file-info-and-controls___61iyY_4-0-28","fileInfoAndControls":"magritte-file-info-and-controls___61iyY_4-0-28","file-info-container":"magritte-file-info-container___WFab8_4-0-28","fileInfoContainer":"magritte-file-info-container___WFab8_4-0-28","file-info":"magritte-file-info___HrqiB_4-0-28","fileInfo":"magritte-file-info___HrqiB_4-0-28","controls":"magritte-controls___WdH7A_4-0-28"};
|
|
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-28"};
|
|
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-4Nc3iStE.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-4Nc3iStE.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-4Nc3iStE.js';
|
|
24
24
|
|
|
25
25
|
const Upload = ({ multiple, noDragEventsBubbling = true, ...uploadProps }) => {
|
|
26
26
|
if (multiple) {
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.magritte-file-name-body___PTTMc_4-0-
|
|
1
|
+
.magritte-file-name-body___PTTMc_4-0-28{
|
|
2
2
|
display:flex;
|
|
3
3
|
width:100%;
|
|
4
4
|
overflow:hidden;
|
|
@@ -11,26 +11,26 @@
|
|
|
11
11
|
text-transform:none;
|
|
12
12
|
text-decoration:none;
|
|
13
13
|
}
|
|
14
|
-
.magritte-file-name-body_medium___sfmmq_4-0-
|
|
14
|
+
.magritte-file-name-body_medium___sfmmq_4-0-28{
|
|
15
15
|
justify-content:center;
|
|
16
16
|
}
|
|
17
|
-
.magritte-file-name___ZSL2g_4-0-
|
|
17
|
+
.magritte-file-name___ZSL2g_4-0-28{
|
|
18
18
|
overflow:hidden;
|
|
19
19
|
text-overflow:ellipsis;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.magritte-file-info-body___HmfXd_4-0-
|
|
22
|
+
.magritte-file-info-body___HmfXd_4-0-28{
|
|
23
23
|
flex-grow:1;
|
|
24
24
|
}
|
|
25
|
-
.magritte-file-info-and-controls___61iyY_4-0-
|
|
25
|
+
.magritte-file-info-and-controls___61iyY_4-0-28{
|
|
26
26
|
display:flex;
|
|
27
27
|
gap:16px;
|
|
28
28
|
}
|
|
29
|
-
.magritte-file-info-container___WFab8_4-0-
|
|
29
|
+
.magritte-file-info-container___WFab8_4-0-28{
|
|
30
30
|
flex-grow:1;
|
|
31
31
|
width:50px;
|
|
32
32
|
}
|
|
33
|
-
.magritte-file-info___HrqiB_4-0-
|
|
33
|
+
.magritte-file-info___HrqiB_4-0-28{
|
|
34
34
|
display:flex;
|
|
35
35
|
gap:4px;
|
|
36
36
|
font-family:"hh sans";
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
text-transform:none;
|
|
43
43
|
text-decoration:none;
|
|
44
44
|
}
|
|
45
|
-
.magritte-controls___WdH7A_4-0-
|
|
45
|
+
.magritte-controls___WdH7A_4-0-28{
|
|
46
46
|
display:flex;
|
|
47
47
|
align-items:center;
|
|
48
48
|
margin-left:auto;
|
|
49
49
|
margin-right:16px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.magritte-item___vVDG-_4-0-
|
|
52
|
+
.magritte-item___vVDG-_4-0-28{
|
|
53
53
|
display:flex;
|
|
54
54
|
width:100%;
|
|
55
55
|
gap:16px;
|
|
@@ -72,57 +72,57 @@
|
|
|
72
72
|
.magritte-zp-day-theme{
|
|
73
73
|
--magritte-color-stroke-accent-v24-0-2:#7195AF;
|
|
74
74
|
}
|
|
75
|
-
.magritte-root___FV1tC_4-0-
|
|
75
|
+
.magritte-root___FV1tC_4-0-28{
|
|
76
76
|
position:relative;
|
|
77
77
|
display:flex;
|
|
78
78
|
overflow:hidden;
|
|
79
79
|
border-radius:24px;
|
|
80
80
|
background-color:var(--magritte-color-background-primary-v24-0-2);
|
|
81
81
|
}
|
|
82
|
-
.magritte-root___FV1tC_4-0-
|
|
82
|
+
.magritte-root___FV1tC_4-0-28:hover{
|
|
83
83
|
cursor:pointer;
|
|
84
84
|
}
|
|
85
|
-
.magritte-root___FV1tC_4-0-
|
|
85
|
+
.magritte-root___FV1tC_4-0-28:hover .magritte-background___RfZ0U_4-0-28{
|
|
86
86
|
border-color:var(--magritte-color-stroke-accent-v24-0-2);
|
|
87
87
|
}
|
|
88
|
-
.magritte-root___FV1tC_4-0-
|
|
88
|
+
.magritte-root___FV1tC_4-0-28.magritte-drag-active___dihBL_4-0-28 .magritte-background___RfZ0U_4-0-28{
|
|
89
89
|
border-color:var(--magritte-color-stroke-accent-v24-0-2);
|
|
90
90
|
}
|
|
91
|
-
.magritte-root___FV1tC_4-0-
|
|
91
|
+
.magritte-root___FV1tC_4-0-28.focus-visible{
|
|
92
92
|
outline:var(--magritte-color-stroke-state-focused-accessible-v24-0-2) solid 4px;
|
|
93
93
|
}
|
|
94
|
-
.magritte-root___FV1tC_4-0-
|
|
94
|
+
.magritte-root___FV1tC_4-0-28.focus-visible .magritte-background___RfZ0U_4-0-28{
|
|
95
95
|
border-color:var(--magritte-color-stroke-accent-v24-0-2);
|
|
96
96
|
}
|
|
97
|
-
.magritte-root___FV1tC_4-0-
|
|
98
|
-
.magritte-root___FV1tC_4-0-
|
|
97
|
+
.magritte-root___FV1tC_4-0-28.magritte-load___MghDA_4-0-28 .magritte-background___RfZ0U_4-0-28,
|
|
98
|
+
.magritte-root___FV1tC_4-0-28.magritte-loading___9E3p-_4-0-28 .magritte-background___RfZ0U_4-0-28{
|
|
99
99
|
border-style:solid;
|
|
100
100
|
border-width:7px;
|
|
101
101
|
}
|
|
102
|
-
.magritte-root___FV1tC_4-0-
|
|
102
|
+
.magritte-root___FV1tC_4-0-28.magritte-invalid___Rt10-_4-0-28.focus-visible{
|
|
103
103
|
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v24-0-2) solid 4px;
|
|
104
104
|
}
|
|
105
|
-
.magritte-root___FV1tC_4-0-
|
|
105
|
+
.magritte-root___FV1tC_4-0-28.magritte-invalid___Rt10-_4-0-28 .magritte-background___RfZ0U_4-0-28{
|
|
106
106
|
border-color:var(--magritte-color-stroke-neutral-v24-0-2);
|
|
107
107
|
}
|
|
108
|
-
.magritte-root_medium___67WJa_4-0-
|
|
108
|
+
.magritte-root_medium___67WJa_4-0-28{
|
|
109
109
|
justify-content:center;
|
|
110
110
|
padding:24px;
|
|
111
111
|
}
|
|
112
|
-
.magritte-root_medium___67WJa_4-0-
|
|
112
|
+
.magritte-root_medium___67WJa_4-0-28 .magritte-body___O7ROl_4-0-28{
|
|
113
113
|
flex-direction:column;
|
|
114
114
|
align-items:center;
|
|
115
115
|
justify-content:center;
|
|
116
116
|
}
|
|
117
|
-
.magritte-root_small___dkUYq_4-0-
|
|
117
|
+
.magritte-root_small___dkUYq_4-0-28{
|
|
118
118
|
padding-top:16px;
|
|
119
119
|
padding-bottom:16px;
|
|
120
120
|
padding-left:16px;
|
|
121
121
|
}
|
|
122
|
-
.magritte-root_small___dkUYq_4-0-
|
|
122
|
+
.magritte-root_small___dkUYq_4-0-28 .magritte-body___O7ROl_4-0-28{
|
|
123
123
|
gap:16px;
|
|
124
124
|
}
|
|
125
|
-
.magritte-background___RfZ0U_4-0-
|
|
125
|
+
.magritte-background___RfZ0U_4-0-28{
|
|
126
126
|
position:absolute;
|
|
127
127
|
border-width:8px;
|
|
128
128
|
border-style:dashed;
|
|
@@ -135,15 +135,15 @@
|
|
|
135
135
|
background-position:center;
|
|
136
136
|
background-size:100%;
|
|
137
137
|
}
|
|
138
|
-
.magritte-body___O7ROl_4-0-
|
|
138
|
+
.magritte-body___O7ROl_4-0-28{
|
|
139
139
|
display:flex;
|
|
140
140
|
width:100%;
|
|
141
141
|
}
|
|
142
|
-
.magritte-loader___XYpWg_4-0-
|
|
142
|
+
.magritte-loader___XYpWg_4-0-28{
|
|
143
143
|
position:relative;
|
|
144
144
|
display:flex;
|
|
145
145
|
}
|
|
146
|
-
.magritte-cancel___tQ-yX_4-0-
|
|
146
|
+
.magritte-cancel___tQ-yX_4-0-28{
|
|
147
147
|
position:absolute;
|
|
148
148
|
top:0;
|
|
149
149
|
left:0;
|
|
@@ -153,20 +153,20 @@
|
|
|
153
153
|
align-items:center;
|
|
154
154
|
justify-content:center;
|
|
155
155
|
}
|
|
156
|
-
.magritte-image-controls___vLf94_4-0-
|
|
156
|
+
.magritte-image-controls___vLf94_4-0-28{
|
|
157
157
|
display:flex;
|
|
158
158
|
gap:12px;
|
|
159
159
|
align-items:flex-end;
|
|
160
160
|
justify-content:flex-end;
|
|
161
161
|
width:100%;
|
|
162
162
|
}
|
|
163
|
-
.magritte-small-controls___Qn9TP_4-0-
|
|
163
|
+
.magritte-small-controls___Qn9TP_4-0-28{
|
|
164
164
|
display:flex;
|
|
165
165
|
align-items:center;
|
|
166
166
|
margin-left:auto;
|
|
167
167
|
margin-right:20px;
|
|
168
168
|
}
|
|
169
|
-
.magritte-file-list___L9uHt_4-0-
|
|
169
|
+
.magritte-file-list___L9uHt_4-0-28{
|
|
170
170
|
margin-top:12px;
|
|
171
171
|
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-0-2);
|
|
172
172
|
border-radius:24px;
|
|
@@ -175,15 +175,15 @@
|
|
|
175
175
|
padding-bottom:16px;
|
|
176
176
|
padding-left:16px;
|
|
177
177
|
}
|
|
178
|
-
.magritte-file-icon___oetLK_4-0-
|
|
178
|
+
.magritte-file-icon___oetLK_4-0-28{
|
|
179
179
|
display:inline-flex;
|
|
180
180
|
}
|
|
181
|
-
.magritte-file-info___Y3vyi_4-0-
|
|
181
|
+
.magritte-file-info___Y3vyi_4-0-28{
|
|
182
182
|
display:inline-flex;
|
|
183
183
|
width:100%;
|
|
184
184
|
flex-direction:column;
|
|
185
185
|
align-items:center;
|
|
186
186
|
}
|
|
187
|
-
.magritte-hidden-file-info___92c69_4-0-
|
|
187
|
+
.magritte-hidden-file-info___92c69_4-0-28{
|
|
188
188
|
visibility:hidden;
|
|
189
189
|
}
|
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-4Nc3iStE.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.28",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@hh.ru/magritte-design-tokens": "24.0.2",
|
|
30
|
-
"@hh.ru/magritte-ui-avatar": "8.0.
|
|
31
|
-
"@hh.ru/magritte-ui-breakpoint": "6.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": "13.
|
|
36
|
-
"@hh.ru/magritte-ui-loader": "2.0.
|
|
37
|
-
"@hh.ru/magritte-ui-mock-component": "1.1.
|
|
38
|
-
"@hh.ru/magritte-ui-spacing": "2.1.
|
|
39
|
-
"@hh.ru/magritte-ui-typography": "4.3.
|
|
30
|
+
"@hh.ru/magritte-ui-avatar": "8.0.5",
|
|
31
|
+
"@hh.ru/magritte-ui-breakpoint": "6.0.2",
|
|
32
|
+
"@hh.ru/magritte-ui-button": "6.0.23",
|
|
33
|
+
"@hh.ru/magritte-ui-button-stack": "2.1.93",
|
|
34
|
+
"@hh.ru/magritte-ui-divider": "3.0.11",
|
|
35
|
+
"@hh.ru/magritte-ui-icon": "13.5.0",
|
|
36
|
+
"@hh.ru/magritte-ui-loader": "2.0.21",
|
|
37
|
+
"@hh.ru/magritte-ui-mock-component": "1.1.6",
|
|
38
|
+
"@hh.ru/magritte-ui-spacing": "2.1.2",
|
|
39
|
+
"@hh.ru/magritte-ui-typography": "4.3.2",
|
|
40
40
|
"react-dropzone": "14.3.5"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "812fec4021409ff4073989b4823e113a24812f41"
|
|
43
43
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"root":"magritte-root___FV1tC_4-0-28","background":"magritte-background___RfZ0U_4-0-28","drag-active":"magritte-drag-active___dihBL_4-0-28","dragActive":"magritte-drag-active___dihBL_4-0-28","load":"magritte-load___MghDA_4-0-28","loading":"magritte-loading___9E3p-_4-0-28","invalid":"magritte-invalid___Rt10-_4-0-28","root_medium":"magritte-root_medium___67WJa_4-0-28","rootMedium":"magritte-root_medium___67WJa_4-0-28","body":"magritte-body___O7ROl_4-0-28","root_small":"magritte-root_small___dkUYq_4-0-28","rootSmall":"magritte-root_small___dkUYq_4-0-28","loader":"magritte-loader___XYpWg_4-0-28","cancel":"magritte-cancel___tQ-yX_4-0-28","image-controls":"magritte-image-controls___vLf94_4-0-28","imageControls":"magritte-image-controls___vLf94_4-0-28","small-controls":"magritte-small-controls___Qn9TP_4-0-28","smallControls":"magritte-small-controls___Qn9TP_4-0-28","file-list":"magritte-file-list___L9uHt_4-0-28","fileList":"magritte-file-list___L9uHt_4-0-28","file-icon":"magritte-file-icon___oetLK_4-0-28","fileIcon":"magritte-file-icon___oetLK_4-0-28","file-info":"magritte-file-info___Y3vyi_4-0-28","fileInfo":"magritte-file-info___Y3vyi_4-0-28","hidden-file-info":"magritte-hidden-file-info___92c69_4-0-28","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-0-28"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=upload-4Nc3iStE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-4Nc3iStE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/upload-BvUFiWmm.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"root":"magritte-root___FV1tC_4-0-26","background":"magritte-background___RfZ0U_4-0-26","drag-active":"magritte-drag-active___dihBL_4-0-26","dragActive":"magritte-drag-active___dihBL_4-0-26","load":"magritte-load___MghDA_4-0-26","loading":"magritte-loading___9E3p-_4-0-26","invalid":"magritte-invalid___Rt10-_4-0-26","root_medium":"magritte-root_medium___67WJa_4-0-26","rootMedium":"magritte-root_medium___67WJa_4-0-26","body":"magritte-body___O7ROl_4-0-26","root_small":"magritte-root_small___dkUYq_4-0-26","rootSmall":"magritte-root_small___dkUYq_4-0-26","loader":"magritte-loader___XYpWg_4-0-26","cancel":"magritte-cancel___tQ-yX_4-0-26","image-controls":"magritte-image-controls___vLf94_4-0-26","imageControls":"magritte-image-controls___vLf94_4-0-26","small-controls":"magritte-small-controls___Qn9TP_4-0-26","smallControls":"magritte-small-controls___Qn9TP_4-0-26","file-list":"magritte-file-list___L9uHt_4-0-26","fileList":"magritte-file-list___L9uHt_4-0-26","file-icon":"magritte-file-icon___oetLK_4-0-26","fileIcon":"magritte-file-icon___oetLK_4-0-26","file-info":"magritte-file-info___Y3vyi_4-0-26","fileInfo":"magritte-file-info___Y3vyi_4-0-26","hidden-file-info":"magritte-hidden-file-info___92c69_4-0-26","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-0-26"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=upload-BvUFiWmm.js.map
|
package/upload-BvUFiWmm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-BvUFiWmm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|