@alfalab/core-components-file-upload-item 3.3.1 → 3.3.2
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/CHANGELOG.md +8 -0
- package/dist/Component.js +1 -1
- package/dist/esm/Component.js +1 -1
- package/dist/esm/index.css +15 -15
- package/dist/index.css +15 -15
- package/dist/modern/Component.js +1 -1
- package/dist/modern/index.css +15 -15
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.3.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-file-upload-item@3.3.1...@alfalab/core-components-file-upload-item@3.3.2) (2021-11-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-file-upload-item
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.3.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-file-upload-item@3.3.0...@alfalab/core-components-file-upload-item@3.3.1) (2021-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @alfalab/core-components-file-upload-item
|
package/dist/Component.js
CHANGED
|
@@ -18,7 +18,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
20
20
|
|
|
21
|
-
var styles = {"component":"file-upload-
|
|
21
|
+
var styles = {"component":"file-upload-item__component_1g56v","info":"file-upload-item__info_1g56v","icon":"file-upload-item__icon_1g56v","errorIcon":"file-upload-item__errorIcon_1g56v","successIcon":"file-upload-item__successIcon_1g56v","name":"file-upload-item__name_1g56v","meta":"file-upload-item__meta_1g56v","size":"file-upload-item__size_1g56v","delete":"file-upload-item__delete_1g56v","error":"file-upload-item__error_1g56v"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var FileUploadItem = function (_a) {
|
package/dist/esm/Component.js
CHANGED
|
@@ -9,7 +9,7 @@ import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
|
9
9
|
import '@alfalab/icons-glyph';
|
|
10
10
|
import { fileIcon, humanFileSize } from './utils.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"component":"file-upload-
|
|
12
|
+
var styles = {"component":"file-upload-item__component_1g56v","info":"file-upload-item__info_1g56v","icon":"file-upload-item__icon_1g56v","errorIcon":"file-upload-item__errorIcon_1g56v","successIcon":"file-upload-item__successIcon_1g56v","name":"file-upload-item__name_1g56v","meta":"file-upload-item__meta_1g56v","size":"file-upload-item__size_1g56v","delete":"file-upload-item__delete_1g56v","error":"file-upload-item__error_1g56v"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var FileUploadItem = function (_a) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bky84 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-xs: 8px;
|
|
21
21
|
--gap-s: 12px;
|
|
22
22
|
}
|
|
23
|
-
.file-upload-
|
|
23
|
+
.file-upload-item__component_1g56v {
|
|
24
24
|
font-size: 13px;
|
|
25
25
|
line-height: 16px;
|
|
26
26
|
font-weight: 400;
|
|
@@ -33,29 +33,29 @@
|
|
|
33
33
|
padding: 0 0 var(--gap-xs) 0;
|
|
34
34
|
margin-bottom: var(--gap-xs)
|
|
35
35
|
}
|
|
36
|
-
.file-upload-
|
|
36
|
+
.file-upload-item__component_1g56v svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|
|
39
|
-
.file-upload-
|
|
39
|
+
.file-upload-item__info_1g56v {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
flex-wrap: wrap;
|
|
43
43
|
flex: 1;
|
|
44
44
|
}
|
|
45
|
-
.file-upload-
|
|
45
|
+
.file-upload-item__icon_1g56v {
|
|
46
46
|
display: block;
|
|
47
47
|
flex-shrink: 0;
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.file-upload-
|
|
50
|
+
.file-upload-item__errorIcon_1g56v {
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
color: var(--color-light-graphic-negative);
|
|
53
53
|
}
|
|
54
|
-
.file-upload-
|
|
54
|
+
.file-upload-item__successIcon_1g56v {
|
|
55
55
|
flex-shrink: 0;
|
|
56
56
|
color: var(--color-light-graphic-positive);
|
|
57
57
|
}
|
|
58
|
-
.file-upload-
|
|
58
|
+
.file-upload-item__name_1g56v {
|
|
59
59
|
flex: 1;
|
|
60
60
|
margin-left: var(--gap-xs);
|
|
61
61
|
white-space: nowrap;
|
|
@@ -64,32 +64,32 @@
|
|
|
64
64
|
color: var(--color-light-text-primary);
|
|
65
65
|
min-width: 40%
|
|
66
66
|
}
|
|
67
|
-
.file-upload-
|
|
67
|
+
.file-upload-item__meta_1g56v {
|
|
68
68
|
display: flex;
|
|
69
69
|
align-items: center;
|
|
70
70
|
|
|
71
71
|
white-space: nowrap
|
|
72
72
|
}
|
|
73
|
-
.file-upload-
|
|
73
|
+
.file-upload-item__meta_1g56v > * {
|
|
74
74
|
margin-right: var(--gap-s)
|
|
75
75
|
}
|
|
76
|
-
.file-upload-
|
|
76
|
+
.file-upload-item__meta_1g56v > *:last-child {
|
|
77
77
|
margin-right: 0;
|
|
78
78
|
}
|
|
79
|
-
.file-upload-
|
|
79
|
+
.file-upload-item__size_1g56v {
|
|
80
80
|
width: 65px;
|
|
81
81
|
text-align: right;
|
|
82
82
|
}
|
|
83
|
-
.file-upload-
|
|
83
|
+
.file-upload-item__delete_1g56v {
|
|
84
84
|
height: 24px;
|
|
85
85
|
width: 24px;
|
|
86
86
|
margin-left: var(--gap-s);
|
|
87
87
|
}
|
|
88
|
-
.file-upload-
|
|
88
|
+
.file-upload-item__error_1g56v {
|
|
89
89
|
color: var(--color-light-text-accent)
|
|
90
90
|
}
|
|
91
91
|
@media (--small-only) {
|
|
92
|
-
.file-upload-
|
|
92
|
+
.file-upload-item__error_1g56v {
|
|
93
93
|
flex: 1 0 100%;
|
|
94
94
|
margin-top: var(--gap-3xs)
|
|
95
95
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bky84 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-xs: 8px;
|
|
21
21
|
--gap-s: 12px;
|
|
22
22
|
}
|
|
23
|
-
.file-upload-
|
|
23
|
+
.file-upload-item__component_1g56v {
|
|
24
24
|
font-size: 13px;
|
|
25
25
|
line-height: 16px;
|
|
26
26
|
font-weight: 400;
|
|
@@ -33,29 +33,29 @@
|
|
|
33
33
|
padding: 0 0 var(--gap-xs) 0;
|
|
34
34
|
margin-bottom: var(--gap-xs)
|
|
35
35
|
}
|
|
36
|
-
.file-upload-
|
|
36
|
+
.file-upload-item__component_1g56v svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|
|
39
|
-
.file-upload-
|
|
39
|
+
.file-upload-item__info_1g56v {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
flex-wrap: wrap;
|
|
43
43
|
flex: 1;
|
|
44
44
|
}
|
|
45
|
-
.file-upload-
|
|
45
|
+
.file-upload-item__icon_1g56v {
|
|
46
46
|
display: block;
|
|
47
47
|
flex-shrink: 0;
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.file-upload-
|
|
50
|
+
.file-upload-item__errorIcon_1g56v {
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
color: var(--color-light-graphic-negative);
|
|
53
53
|
}
|
|
54
|
-
.file-upload-
|
|
54
|
+
.file-upload-item__successIcon_1g56v {
|
|
55
55
|
flex-shrink: 0;
|
|
56
56
|
color: var(--color-light-graphic-positive);
|
|
57
57
|
}
|
|
58
|
-
.file-upload-
|
|
58
|
+
.file-upload-item__name_1g56v {
|
|
59
59
|
flex: 1;
|
|
60
60
|
margin-left: var(--gap-xs);
|
|
61
61
|
white-space: nowrap;
|
|
@@ -64,32 +64,32 @@
|
|
|
64
64
|
color: var(--color-light-text-primary);
|
|
65
65
|
min-width: 40%
|
|
66
66
|
}
|
|
67
|
-
.file-upload-
|
|
67
|
+
.file-upload-item__meta_1g56v {
|
|
68
68
|
display: flex;
|
|
69
69
|
align-items: center;
|
|
70
70
|
|
|
71
71
|
white-space: nowrap
|
|
72
72
|
}
|
|
73
|
-
.file-upload-
|
|
73
|
+
.file-upload-item__meta_1g56v > * {
|
|
74
74
|
margin-right: var(--gap-s)
|
|
75
75
|
}
|
|
76
|
-
.file-upload-
|
|
76
|
+
.file-upload-item__meta_1g56v > *:last-child {
|
|
77
77
|
margin-right: 0;
|
|
78
78
|
}
|
|
79
|
-
.file-upload-
|
|
79
|
+
.file-upload-item__size_1g56v {
|
|
80
80
|
width: 65px;
|
|
81
81
|
text-align: right;
|
|
82
82
|
}
|
|
83
|
-
.file-upload-
|
|
83
|
+
.file-upload-item__delete_1g56v {
|
|
84
84
|
height: 24px;
|
|
85
85
|
width: 24px;
|
|
86
86
|
margin-left: var(--gap-s);
|
|
87
87
|
}
|
|
88
|
-
.file-upload-
|
|
88
|
+
.file-upload-item__error_1g56v {
|
|
89
89
|
color: var(--color-light-text-accent)
|
|
90
90
|
}
|
|
91
91
|
@media (--small-only) {
|
|
92
|
-
.file-upload-
|
|
92
|
+
.file-upload-item__error_1g56v {
|
|
93
93
|
flex: 1 0 100%;
|
|
94
94
|
margin-top: var(--gap-3xs)
|
|
95
95
|
}
|
package/dist/modern/Component.js
CHANGED
|
@@ -9,7 +9,7 @@ import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
|
9
9
|
import '@alfalab/icons-glyph';
|
|
10
10
|
import { fileIcon, humanFileSize } from './utils.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"component":"file-upload-
|
|
12
|
+
var styles = {"component":"file-upload-item__component_1g56v","info":"file-upload-item__info_1g56v","icon":"file-upload-item__icon_1g56v","errorIcon":"file-upload-item__errorIcon_1g56v","successIcon":"file-upload-item__successIcon_1g56v","name":"file-upload-item__name_1g56v","meta":"file-upload-item__meta_1g56v","size":"file-upload-item__size_1g56v","delete":"file-upload-item__delete_1g56v","error":"file-upload-item__error_1g56v"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
const FileUploadItem = ({ className, children, id = '0', name = '', size, icon: Icon = fileIcon(name), uploadDate, downloadLink, download, uploadStatus, uploadPercent = 0, error = uploadStatus === 'ERROR' ? 'Не удалось загрузить файл' : undefined, showDelete, showRestore, onDelete, onDownload, onRestore, dataTestId, }) => {
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bky84 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-xs: 8px;
|
|
21
21
|
--gap-s: 12px;
|
|
22
22
|
}
|
|
23
|
-
.file-upload-
|
|
23
|
+
.file-upload-item__component_1g56v {
|
|
24
24
|
font-size: 13px;
|
|
25
25
|
line-height: 16px;
|
|
26
26
|
font-weight: 400;
|
|
@@ -33,29 +33,29 @@
|
|
|
33
33
|
padding: 0 0 var(--gap-xs) 0;
|
|
34
34
|
margin-bottom: var(--gap-xs)
|
|
35
35
|
}
|
|
36
|
-
.file-upload-
|
|
36
|
+
.file-upload-item__component_1g56v svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|
|
39
|
-
.file-upload-
|
|
39
|
+
.file-upload-item__info_1g56v {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
flex-wrap: wrap;
|
|
43
43
|
flex: 1;
|
|
44
44
|
}
|
|
45
|
-
.file-upload-
|
|
45
|
+
.file-upload-item__icon_1g56v {
|
|
46
46
|
display: block;
|
|
47
47
|
flex-shrink: 0;
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
50
|
-
.file-upload-
|
|
50
|
+
.file-upload-item__errorIcon_1g56v {
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
color: var(--color-light-graphic-negative);
|
|
53
53
|
}
|
|
54
|
-
.file-upload-
|
|
54
|
+
.file-upload-item__successIcon_1g56v {
|
|
55
55
|
flex-shrink: 0;
|
|
56
56
|
color: var(--color-light-graphic-positive);
|
|
57
57
|
}
|
|
58
|
-
.file-upload-
|
|
58
|
+
.file-upload-item__name_1g56v {
|
|
59
59
|
flex: 1;
|
|
60
60
|
margin-left: var(--gap-xs);
|
|
61
61
|
white-space: nowrap;
|
|
@@ -64,32 +64,32 @@
|
|
|
64
64
|
color: var(--color-light-text-primary);
|
|
65
65
|
min-width: 40%
|
|
66
66
|
}
|
|
67
|
-
.file-upload-
|
|
67
|
+
.file-upload-item__meta_1g56v {
|
|
68
68
|
display: flex;
|
|
69
69
|
align-items: center;
|
|
70
70
|
|
|
71
71
|
white-space: nowrap
|
|
72
72
|
}
|
|
73
|
-
.file-upload-
|
|
73
|
+
.file-upload-item__meta_1g56v > * {
|
|
74
74
|
margin-right: var(--gap-s)
|
|
75
75
|
}
|
|
76
|
-
.file-upload-
|
|
76
|
+
.file-upload-item__meta_1g56v > *:last-child {
|
|
77
77
|
margin-right: 0;
|
|
78
78
|
}
|
|
79
|
-
.file-upload-
|
|
79
|
+
.file-upload-item__size_1g56v {
|
|
80
80
|
width: 65px;
|
|
81
81
|
text-align: right;
|
|
82
82
|
}
|
|
83
|
-
.file-upload-
|
|
83
|
+
.file-upload-item__delete_1g56v {
|
|
84
84
|
height: 24px;
|
|
85
85
|
width: 24px;
|
|
86
86
|
margin-left: var(--gap-s);
|
|
87
87
|
}
|
|
88
|
-
.file-upload-
|
|
88
|
+
.file-upload-item__error_1g56v {
|
|
89
89
|
color: var(--color-light-text-accent)
|
|
90
90
|
}
|
|
91
91
|
@media (--small-only) {
|
|
92
|
-
.file-upload-
|
|
92
|
+
.file-upload-item__error_1g56v {
|
|
93
93
|
flex: 1 0 100%;
|
|
94
94
|
margin-top: var(--gap-3xs)
|
|
95
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-file-upload-item",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"react": "^16.9.0 || ^17.0.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@alfalab/core-components-icon-button": "^
|
|
19
|
+
"@alfalab/core-components-icon-button": "^4.0.0",
|
|
20
20
|
"@alfalab/core-components-link": "^3.2.0",
|
|
21
21
|
"@alfalab/core-components-spinner": "^2.0.1",
|
|
22
22
|
"@alfalab/icons-glyph": "^1.190.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "10c9fd1caacf98a5c15f84529889ddf41e9e1b54"
|
|
25
25
|
}
|