@hh.ru/magritte-ui-upload 4.2.3 → 4.2.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/MultiUpload.js +1 -1
- package/SingleUpload.js +1 -1
- package/Upload.js +1 -1
- package/index.css +61 -61
- package/index.js +1 -1
- package/package.json +11 -11
- package/upload-CkqNSMKo.js +10 -0
- package/{upload-wAJorwNJ.js.map → upload-CkqNSMKo.js.map} +1 -1
- package/upload-wAJorwNJ.js +0 -10
package/FileName.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
5
5
|
|
|
6
|
-
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_4-2-
|
|
6
|
+
var styles = {"file-name-body":"magritte-file-name-body___PTTMc_4-2-4","fileNameBody":"magritte-file-name-body___PTTMc_4-2-4","file-name-body_medium":"magritte-file-name-body_medium___sfmmq_4-2-4","fileNameBodyMedium":"magritte-file-name-body_medium___sfmmq_4-2-4"};
|
|
7
7
|
|
|
8
8
|
const parse = (file) => {
|
|
9
9
|
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 = {"avatar-and-info":"magritte-avatar-and-info___vt6aT_4-2-
|
|
13
|
+
var styles = {"avatar-and-info":"magritte-avatar-and-info___vt6aT_4-2-4","avatarAndInfo":"magritte-avatar-and-info___vt6aT_4-2-4","file-info-body":"magritte-file-info-body___HmfXd_4-2-4","fileInfoBody":"magritte-file-info-body___HmfXd_4-2-4","file-info-and-controls":"magritte-file-info-and-controls___61iyY_4-2-4","fileInfoAndControls":"magritte-file-info-and-controls___61iyY_4-2-4","file-info-container":"magritte-file-info-container___WFab8_4-2-4","fileInfoContainer":"magritte-file-info-container___WFab8_4-2-4","file-info":"magritte-file-info___HrqiB_4-2-4","fileInfo":"magritte-file-info___HrqiB_4-2-4","controls":"magritte-controls___WdH7A_4-2-4","divider":"magritte-divider___3-bj9_4-2-4"};
|
|
14
14
|
|
|
15
15
|
const FileView = ({ uploadType, loadedFile, preview, renderFileInfo, onFileDelete, disableCancel, 'aria-label': ariaLabel, isLast = false, }) => {
|
|
16
16
|
const isLoading = Boolean(loadedFile?.loading);
|
package/MultiUpload.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useDropzone } from 'react-dropzone';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { u as useDisabled, D as DisabledContext, s as styles } from './upload-
|
|
5
|
+
import { u as useDisabled, D as DisabledContext, s as styles } from './upload-CkqNSMKo.js';
|
|
6
6
|
import { VSpacing } from '@hh.ru/magritte-ui-spacing';
|
|
7
7
|
import { TextDynamic } from '@hh.ru/magritte-ui-typography';
|
|
8
8
|
import { FileViewWithPreview } from './FileViewWithPreview.js';
|
package/SingleUpload.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useDropzone } from 'react-dropzone';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { u as useDisabled, D as DisabledContext, s as styles } from './upload-
|
|
5
|
+
import { u as useDisabled, D as DisabledContext, s as styles } from './upload-CkqNSMKo.js';
|
|
6
6
|
import { Avatar } from '@hh.ru/magritte-ui-avatar';
|
|
7
7
|
import { CrossOutlinedSize24, ExclamationTriangleOutlinedSize32 } from '@hh.ru/magritte-ui-icon/icon';
|
|
8
8
|
import { Loader } from '@hh.ru/magritte-ui-loader';
|
package/Upload.js
CHANGED
|
@@ -4,7 +4,7 @@ import { MultiUpload } from './MultiUpload.js';
|
|
|
4
4
|
import { SingleUpload } from './SingleUpload.js';
|
|
5
5
|
import 'react-dropzone';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import './upload-
|
|
7
|
+
import './upload-CkqNSMKo.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import '@hh.ru/magritte-ui-spacing';
|
|
10
10
|
import '@hh.ru/magritte-ui-typography';
|
package/index.css
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
.magritte-file-name-body___PTTMc_4-2-
|
|
1
|
+
.magritte-file-name-body___PTTMc_4-2-4{
|
|
2
2
|
display:flex;
|
|
3
3
|
width:100%;
|
|
4
4
|
overflow:hidden;
|
|
5
5
|
}
|
|
6
|
-
.magritte-file-name-body_medium___sfmmq_4-2-
|
|
6
|
+
.magritte-file-name-body_medium___sfmmq_4-2-4{
|
|
7
7
|
justify-content:center;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.magritte-avatar-and-info___vt6aT_4-2-
|
|
10
|
+
.magritte-avatar-and-info___vt6aT_4-2-4{
|
|
11
11
|
display:flex;
|
|
12
12
|
gap:16px;
|
|
13
13
|
width:100%;
|
|
14
14
|
}
|
|
15
|
-
.magritte-file-info-body___HmfXd_4-2-
|
|
15
|
+
.magritte-file-info-body___HmfXd_4-2-4{
|
|
16
16
|
display:flex;
|
|
17
17
|
flex-grow:1;
|
|
18
18
|
flex-direction:column;
|
|
19
19
|
}
|
|
20
|
-
.magritte-file-info-and-controls___61iyY_4-2-
|
|
20
|
+
.magritte-file-info-and-controls___61iyY_4-2-4{
|
|
21
21
|
display:flex;
|
|
22
22
|
gap:16px;
|
|
23
23
|
flex-grow:1;
|
|
24
24
|
}
|
|
25
|
-
.magritte-file-info-container___WFab8_4-2-
|
|
25
|
+
.magritte-file-info-container___WFab8_4-2-4{
|
|
26
26
|
flex-grow:1;
|
|
27
27
|
display:flex;
|
|
28
28
|
flex-direction:column;
|
|
29
29
|
justify-content:center;
|
|
30
30
|
width:50px;
|
|
31
31
|
}
|
|
32
|
-
.magritte-file-info___HrqiB_4-2-
|
|
32
|
+
.magritte-file-info___HrqiB_4-2-4{
|
|
33
33
|
display:flex;
|
|
34
34
|
gap:4px;
|
|
35
35
|
align-items:center;
|
|
36
36
|
}
|
|
37
|
-
.magritte-controls___WdH7A_4-2-
|
|
37
|
+
.magritte-controls___WdH7A_4-2-4{
|
|
38
38
|
display:flex;
|
|
39
39
|
align-items:center;
|
|
40
40
|
margin-left:auto;
|
|
41
41
|
margin-right:16px;
|
|
42
42
|
}
|
|
43
|
-
.magritte-divider___3-bj9_4-2-
|
|
43
|
+
.magritte-divider___3-bj9_4-2-4{
|
|
44
44
|
margin-left:64px;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
:root{
|
|
48
|
-
--magritte-color-background-primary-v24-
|
|
49
|
-
--magritte-color-background-state-primary-disabled-v24-
|
|
50
|
-
--magritte-color-stroke-neutral-v24-
|
|
51
|
-
--magritte-color-stroke-accent-v24-
|
|
52
|
-
--magritte-color-stroke-state-focused-accessible-v24-
|
|
53
|
-
--magritte-color-stroke-state-neutral-disabled-v24-
|
|
54
|
-
--magritte-color-component-input-stroke-state-negative-focused-accessible-v24-
|
|
48
|
+
--magritte-color-background-primary-v24-4-0:#ffffff;
|
|
49
|
+
--magritte-color-background-state-primary-disabled-v24-4-0:#ffffff7a;
|
|
50
|
+
--magritte-color-stroke-neutral-v24-4-0:#DCE3EB;
|
|
51
|
+
--magritte-color-stroke-accent-v24-4-0:#0070ff;
|
|
52
|
+
--magritte-color-stroke-state-focused-accessible-v24-4-0:#0070ff7a;
|
|
53
|
+
--magritte-color-stroke-state-neutral-disabled-v24-4-0:#dce3eb7a;
|
|
54
|
+
--magritte-color-component-input-stroke-state-negative-focused-accessible-v24-4-0:#ff4d3a7a;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.magritte-night-theme{
|
|
58
|
-
--magritte-color-background-primary-v24-
|
|
59
|
-
--magritte-color-background-state-primary-disabled-v24-
|
|
60
|
-
--magritte-color-stroke-neutral-v24-
|
|
61
|
-
--magritte-color-stroke-accent-v24-
|
|
62
|
-
--magritte-color-stroke-state-neutral-disabled-v24-
|
|
58
|
+
--magritte-color-background-primary-v24-4-0:#1B1B1B;
|
|
59
|
+
--magritte-color-background-state-primary-disabled-v24-4-0:#1b1b1b7a;
|
|
60
|
+
--magritte-color-stroke-neutral-v24-4-0:#303030;
|
|
61
|
+
--magritte-color-stroke-accent-v24-4-0:#2b7fff;
|
|
62
|
+
--magritte-color-stroke-state-neutral-disabled-v24-4-0:#3030307a;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.magritte-zp-day-theme{
|
|
66
|
-
--magritte-color-stroke-accent-v24-
|
|
66
|
+
--magritte-color-stroke-accent-v24-4-0:#7195AF;
|
|
67
67
|
}
|
|
68
|
-
.magritte-root___FV1tC_4-2-
|
|
68
|
+
.magritte-root___FV1tC_4-2-4{
|
|
69
69
|
position:relative;
|
|
70
70
|
display:flex;
|
|
71
71
|
overflow:hidden;
|
|
72
72
|
border-radius:24px;
|
|
73
|
-
background-color:var(--magritte-color-background-primary-v24-
|
|
73
|
+
background-color:var(--magritte-color-background-primary-v24-4-0);
|
|
74
74
|
cursor:pointer;
|
|
75
75
|
--border-background-dimension:5px;
|
|
76
76
|
}
|
|
77
|
-
.magritte-root___FV1tC_4-2-
|
|
78
|
-
border-color:var(--magritte-color-stroke-accent-v24-
|
|
77
|
+
.magritte-root___FV1tC_4-2-4:hover .magritte-background___RfZ0U_4-2-4{
|
|
78
|
+
border-color:var(--magritte-color-stroke-accent-v24-4-0);
|
|
79
79
|
}
|
|
80
|
-
.magritte-root___FV1tC_4-2-
|
|
81
|
-
border-color:var(--magritte-color-stroke-accent-v24-
|
|
80
|
+
.magritte-root___FV1tC_4-2-4.magritte-drag-active___dihBL_4-2-4 .magritte-background___RfZ0U_4-2-4{
|
|
81
|
+
border-color:var(--magritte-color-stroke-accent-v24-4-0);
|
|
82
82
|
}
|
|
83
|
-
.magritte-root___FV1tC_4-2-
|
|
84
|
-
outline:var(--magritte-color-stroke-state-focused-accessible-v24-
|
|
83
|
+
.magritte-root___FV1tC_4-2-4.focus-visible{
|
|
84
|
+
outline:var(--magritte-color-stroke-state-focused-accessible-v24-4-0) solid 4px;
|
|
85
85
|
}
|
|
86
|
-
.magritte-root___FV1tC_4-2-
|
|
87
|
-
border-color:var(--magritte-color-stroke-accent-v24-
|
|
86
|
+
.magritte-root___FV1tC_4-2-4.focus-visible .magritte-background___RfZ0U_4-2-4{
|
|
87
|
+
border-color:var(--magritte-color-stroke-accent-v24-4-0);
|
|
88
88
|
}
|
|
89
|
-
.magritte-root___FV1tC_4-2-
|
|
90
|
-
.magritte-root___FV1tC_4-2-
|
|
89
|
+
.magritte-root___FV1tC_4-2-4.magritte-load___MghDA_4-2-4 .magritte-background___RfZ0U_4-2-4,
|
|
90
|
+
.magritte-root___FV1tC_4-2-4.magritte-loading___9E3p-_4-2-4 .magritte-background___RfZ0U_4-2-4{
|
|
91
91
|
border-style:solid;
|
|
92
92
|
border-width:calc(1px + var(--border-background-dimension));
|
|
93
93
|
}
|
|
94
|
-
.magritte-root___FV1tC_4-2-
|
|
95
|
-
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v24-
|
|
94
|
+
.magritte-root___FV1tC_4-2-4.magritte-invalid___Rt10-_4-2-4.focus-visible{
|
|
95
|
+
outline:var(--magritte-color-component-input-stroke-state-negative-focused-accessible-v24-4-0) solid 4px;
|
|
96
96
|
}
|
|
97
|
-
.magritte-root___FV1tC_4-2-
|
|
98
|
-
border-color:var(--magritte-color-stroke-neutral-v24-
|
|
97
|
+
.magritte-root___FV1tC_4-2-4.magritte-invalid___Rt10-_4-2-4 .magritte-background___RfZ0U_4-2-4{
|
|
98
|
+
border-color:var(--magritte-color-stroke-neutral-v24-4-0);
|
|
99
99
|
}
|
|
100
|
-
.magritte-root___FV1tC_4-2-
|
|
100
|
+
.magritte-root___FV1tC_4-2-4.magritte-disabled___bhw2K_4-2-4{
|
|
101
101
|
cursor:default;
|
|
102
|
-
background-color:var(--magritte-color-background-state-primary-disabled-v24-
|
|
102
|
+
background-color:var(--magritte-color-background-state-primary-disabled-v24-4-0);
|
|
103
103
|
}
|
|
104
|
-
.magritte-root___FV1tC_4-2-
|
|
105
|
-
border-color:var(--magritte-color-stroke-state-neutral-disabled-v24-
|
|
104
|
+
.magritte-root___FV1tC_4-2-4.magritte-disabled___bhw2K_4-2-4 .magritte-background___RfZ0U_4-2-4{
|
|
105
|
+
border-color:var(--magritte-color-stroke-state-neutral-disabled-v24-4-0);
|
|
106
106
|
border-width:calc(2px + var(--border-background-dimension));
|
|
107
107
|
}
|
|
108
108
|
@supports (-moz-appearance: none){
|
|
109
|
-
.magritte-root___FV1tC_4-2-
|
|
109
|
+
.magritte-root___FV1tC_4-2-4{
|
|
110
110
|
--border-background-dimension:2px;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
@supports (background: -webkit-named-image(i)) and (-webkit-appearance: none){
|
|
114
|
-
.magritte-root___FV1tC_4-2-
|
|
114
|
+
.magritte-root___FV1tC_4-2-4{
|
|
115
115
|
--border-background-dimension:2px;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
.magritte-root_medium___67WJa_4-2-
|
|
118
|
+
.magritte-root_medium___67WJa_4-2-4{
|
|
119
119
|
justify-content:center;
|
|
120
120
|
padding:24px;
|
|
121
121
|
}
|
|
122
|
-
.magritte-root_medium___67WJa_4-2-
|
|
122
|
+
.magritte-root_medium___67WJa_4-2-4 .magritte-body___O7ROl_4-2-4{
|
|
123
123
|
flex-direction:column;
|
|
124
124
|
align-items:center;
|
|
125
125
|
justify-content:center;
|
|
126
126
|
}
|
|
127
|
-
.magritte-root_small___dkUYq_4-2-
|
|
127
|
+
.magritte-root_small___dkUYq_4-2-4{
|
|
128
128
|
padding-top:16px;
|
|
129
129
|
padding-bottom:16px;
|
|
130
130
|
padding-left:16px;
|
|
131
131
|
}
|
|
132
|
-
.magritte-root_small___dkUYq_4-2-
|
|
132
|
+
.magritte-root_small___dkUYq_4-2-4 .magritte-body___O7ROl_4-2-4{
|
|
133
133
|
gap:16px;
|
|
134
134
|
}
|
|
135
|
-
.magritte-background___RfZ0U_4-2-
|
|
135
|
+
.magritte-background___RfZ0U_4-2-4{
|
|
136
136
|
position:absolute;
|
|
137
137
|
border-width:calc(2px + var(--border-background-dimension));
|
|
138
138
|
border-style:dashed;
|
|
139
|
-
border-color:var(--magritte-color-stroke-neutral-v24-
|
|
139
|
+
border-color:var(--magritte-color-stroke-neutral-v24-4-0);
|
|
140
140
|
top:calc(-1 * var(--border-background-dimension));
|
|
141
141
|
bottom:calc(-1 * var(--border-background-dimension));
|
|
142
142
|
left:calc(-1 * var(--border-background-dimension));
|
|
@@ -145,15 +145,15 @@
|
|
|
145
145
|
background-position:center;
|
|
146
146
|
background-size:100%;
|
|
147
147
|
}
|
|
148
|
-
.magritte-body___O7ROl_4-2-
|
|
148
|
+
.magritte-body___O7ROl_4-2-4{
|
|
149
149
|
display:flex;
|
|
150
150
|
width:100%;
|
|
151
151
|
}
|
|
152
|
-
.magritte-loader___XYpWg_4-2-
|
|
152
|
+
.magritte-loader___XYpWg_4-2-4{
|
|
153
153
|
position:relative;
|
|
154
154
|
display:flex;
|
|
155
155
|
}
|
|
156
|
-
.magritte-cancel___tQ-yX_4-2-
|
|
156
|
+
.magritte-cancel___tQ-yX_4-2-4{
|
|
157
157
|
position:absolute;
|
|
158
158
|
top:0;
|
|
159
159
|
left:0;
|
|
@@ -163,41 +163,41 @@
|
|
|
163
163
|
align-items:center;
|
|
164
164
|
justify-content:center;
|
|
165
165
|
}
|
|
166
|
-
.magritte-image-controls___vLf94_4-2-
|
|
166
|
+
.magritte-image-controls___vLf94_4-2-4{
|
|
167
167
|
display:flex;
|
|
168
168
|
gap:12px;
|
|
169
169
|
align-items:flex-end;
|
|
170
170
|
justify-content:flex-end;
|
|
171
171
|
width:100%;
|
|
172
172
|
}
|
|
173
|
-
.magritte-small-controls___Qn9TP_4-2-
|
|
173
|
+
.magritte-small-controls___Qn9TP_4-2-4{
|
|
174
174
|
display:flex;
|
|
175
175
|
align-items:center;
|
|
176
176
|
margin-left:auto;
|
|
177
177
|
margin-right:20px;
|
|
178
178
|
}
|
|
179
|
-
.magritte-file-list___L9uHt_4-2-
|
|
179
|
+
.magritte-file-list___L9uHt_4-2-4{
|
|
180
180
|
margin-top:12px;
|
|
181
|
-
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-
|
|
181
|
+
box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-4-0);
|
|
182
182
|
border-radius:24px;
|
|
183
183
|
padding-top:16px;
|
|
184
184
|
padding-right:0;
|
|
185
185
|
padding-bottom:16px;
|
|
186
186
|
padding-left:16px;
|
|
187
187
|
}
|
|
188
|
-
.magritte-file-icon___oetLK_4-2-
|
|
188
|
+
.magritte-file-icon___oetLK_4-2-4{
|
|
189
189
|
display:inline-flex;
|
|
190
190
|
}
|
|
191
|
-
.magritte-file-info___Y3vyi_4-2-
|
|
191
|
+
.magritte-file-info___Y3vyi_4-2-4{
|
|
192
192
|
display:inline-flex;
|
|
193
193
|
width:100%;
|
|
194
194
|
flex-direction:column;
|
|
195
195
|
align-items:center;
|
|
196
196
|
}
|
|
197
|
-
.magritte-hidden-file-info___92c69_4-2-
|
|
197
|
+
.magritte-hidden-file-info___92c69_4-2-4{
|
|
198
198
|
visibility:hidden;
|
|
199
199
|
}
|
|
200
|
-
.magritte-single-small-placeholer___m8Vnt_4-2-
|
|
200
|
+
.magritte-single-small-placeholer___m8Vnt_4-2-4{
|
|
201
201
|
display:flex;
|
|
202
202
|
flex-direction:column;
|
|
203
203
|
justify-content:center;
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'react/jsx-runtime';
|
|
|
4
4
|
import './MultiUpload.js';
|
|
5
5
|
import 'react-dropzone';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import './upload-
|
|
7
|
+
import './upload-CkqNSMKo.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import '@hh.ru/magritte-ui-spacing';
|
|
10
10
|
import '@hh.ru/magritte-ui-typography';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-upload",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
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": "24.
|
|
30
|
-
"@hh.ru/magritte-ui-avatar": "8.0.
|
|
29
|
+
"@hh.ru/magritte-design-tokens": "24.4.0",
|
|
30
|
+
"@hh.ru/magritte-ui-avatar": "8.0.15",
|
|
31
31
|
"@hh.ru/magritte-ui-breakpoint": "6.0.6",
|
|
32
|
-
"@hh.ru/magritte-ui-button": "7.1.
|
|
33
|
-
"@hh.ru/magritte-ui-button-stack": "2.2.
|
|
34
|
-
"@hh.ru/magritte-ui-divider": "3.0.
|
|
35
|
-
"@hh.ru/magritte-ui-icon": "13.10.
|
|
36
|
-
"@hh.ru/magritte-ui-loader": "2.1.
|
|
32
|
+
"@hh.ru/magritte-ui-button": "7.1.3",
|
|
33
|
+
"@hh.ru/magritte-ui-button-stack": "2.2.3",
|
|
34
|
+
"@hh.ru/magritte-ui-divider": "3.0.16",
|
|
35
|
+
"@hh.ru/magritte-ui-icon": "13.10.1",
|
|
36
|
+
"@hh.ru/magritte-ui-loader": "2.1.3",
|
|
37
37
|
"@hh.ru/magritte-ui-mock-component": "1.1.6",
|
|
38
|
-
"@hh.ru/magritte-ui-spacing": "2.1.
|
|
39
|
-
"@hh.ru/magritte-ui-typography": "4.5.
|
|
38
|
+
"@hh.ru/magritte-ui-spacing": "2.1.10",
|
|
39
|
+
"@hh.ru/magritte-ui-typography": "4.5.1",
|
|
40
40
|
"react-dropzone": "14.3.5"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "dbdbcad65f9d7dc14f074ed3e1e83a48d1ef832c"
|
|
43
43
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
|
|
4
|
+
const DisabledContext = createContext(false);
|
|
5
|
+
const useDisabled = () => useContext(DisabledContext);
|
|
6
|
+
|
|
7
|
+
var styles = {"root":"magritte-root___FV1tC_4-2-4","background":"magritte-background___RfZ0U_4-2-4","drag-active":"magritte-drag-active___dihBL_4-2-4","dragActive":"magritte-drag-active___dihBL_4-2-4","load":"magritte-load___MghDA_4-2-4","loading":"magritte-loading___9E3p-_4-2-4","invalid":"magritte-invalid___Rt10-_4-2-4","disabled":"magritte-disabled___bhw2K_4-2-4","root_medium":"magritte-root_medium___67WJa_4-2-4","rootMedium":"magritte-root_medium___67WJa_4-2-4","body":"magritte-body___O7ROl_4-2-4","root_small":"magritte-root_small___dkUYq_4-2-4","rootSmall":"magritte-root_small___dkUYq_4-2-4","loader":"magritte-loader___XYpWg_4-2-4","cancel":"magritte-cancel___tQ-yX_4-2-4","image-controls":"magritte-image-controls___vLf94_4-2-4","imageControls":"magritte-image-controls___vLf94_4-2-4","small-controls":"magritte-small-controls___Qn9TP_4-2-4","smallControls":"magritte-small-controls___Qn9TP_4-2-4","file-list":"magritte-file-list___L9uHt_4-2-4","fileList":"magritte-file-list___L9uHt_4-2-4","file-icon":"magritte-file-icon___oetLK_4-2-4","fileIcon":"magritte-file-icon___oetLK_4-2-4","file-info":"magritte-file-info___Y3vyi_4-2-4","fileInfo":"magritte-file-info___Y3vyi_4-2-4","hidden-file-info":"magritte-hidden-file-info___92c69_4-2-4","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-2-4","single-small-placeholer":"magritte-single-small-placeholer___m8Vnt_4-2-4","singleSmallPlaceholer":"magritte-single-small-placeholer___m8Vnt_4-2-4"};
|
|
8
|
+
|
|
9
|
+
export { DisabledContext as D, styles as s, useDisabled as u };
|
|
10
|
+
//# sourceMappingURL=upload-CkqNSMKo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-
|
|
1
|
+
{"version":3,"file":"upload-CkqNSMKo.js","sources":["../../../common/use-disabled/lib/index.js"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nconst DisabledContext = createContext(false);\nconst useDisabled = () => useContext(DisabledContext);\n\nexport { DisabledContext, useDisabled };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;AAEK,MAAC,eAAe,GAAG,aAAa,CAAC,KAAK,EAAE;AACxC,MAAC,WAAW,GAAG,MAAM,UAAU,CAAC,eAAe;;;;;;"}
|
package/upload-wAJorwNJ.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
import { createContext, useContext } from 'react';
|
|
3
|
-
|
|
4
|
-
const DisabledContext = createContext(false);
|
|
5
|
-
const useDisabled = () => useContext(DisabledContext);
|
|
6
|
-
|
|
7
|
-
var styles = {"root":"magritte-root___FV1tC_4-2-3","background":"magritte-background___RfZ0U_4-2-3","drag-active":"magritte-drag-active___dihBL_4-2-3","dragActive":"magritte-drag-active___dihBL_4-2-3","load":"magritte-load___MghDA_4-2-3","loading":"magritte-loading___9E3p-_4-2-3","invalid":"magritte-invalid___Rt10-_4-2-3","disabled":"magritte-disabled___bhw2K_4-2-3","root_medium":"magritte-root_medium___67WJa_4-2-3","rootMedium":"magritte-root_medium___67WJa_4-2-3","body":"magritte-body___O7ROl_4-2-3","root_small":"magritte-root_small___dkUYq_4-2-3","rootSmall":"magritte-root_small___dkUYq_4-2-3","loader":"magritte-loader___XYpWg_4-2-3","cancel":"magritte-cancel___tQ-yX_4-2-3","image-controls":"magritte-image-controls___vLf94_4-2-3","imageControls":"magritte-image-controls___vLf94_4-2-3","small-controls":"magritte-small-controls___Qn9TP_4-2-3","smallControls":"magritte-small-controls___Qn9TP_4-2-3","file-list":"magritte-file-list___L9uHt_4-2-3","fileList":"magritte-file-list___L9uHt_4-2-3","file-icon":"magritte-file-icon___oetLK_4-2-3","fileIcon":"magritte-file-icon___oetLK_4-2-3","file-info":"magritte-file-info___Y3vyi_4-2-3","fileInfo":"magritte-file-info___Y3vyi_4-2-3","hidden-file-info":"magritte-hidden-file-info___92c69_4-2-3","hiddenFileInfo":"magritte-hidden-file-info___92c69_4-2-3","single-small-placeholer":"magritte-single-small-placeholer___m8Vnt_4-2-3","singleSmallPlaceholer":"magritte-single-small-placeholer___m8Vnt_4-2-3"};
|
|
8
|
-
|
|
9
|
-
export { DisabledContext as D, styles as s, useDisabled as u };
|
|
10
|
-
//# sourceMappingURL=upload-wAJorwNJ.js.map
|