@alfalab/core-components-file-upload-item 3.3.2 → 3.3.3

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 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.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-file-upload-item@3.3.2...@alfalab/core-components-file-upload-item@3.3.3) (2021-12-08)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-file-upload-item
9
+
10
+
11
+
12
+
13
+
6
14
  ## [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
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-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"};
21
+ var styles = {"component":"file-upload-item__component_76rbl","info":"file-upload-item__info_76rbl","icon":"file-upload-item__icon_76rbl","errorIcon":"file-upload-item__errorIcon_76rbl","successIcon":"file-upload-item__successIcon_76rbl","name":"file-upload-item__name_76rbl","meta":"file-upload-item__meta_76rbl","size":"file-upload-item__size_76rbl","delete":"file-upload-item__delete_76rbl","error":"file-upload-item__error_76rbl"};
22
22
  require('./index.css')
23
23
 
24
24
  var FileUploadItem = function (_a) {
@@ -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-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"};
12
+ var styles = {"component":"file-upload-item__component_76rbl","info":"file-upload-item__info_76rbl","icon":"file-upload-item__icon_76rbl","errorIcon":"file-upload-item__errorIcon_76rbl","successIcon":"file-upload-item__successIcon_76rbl","name":"file-upload-item__name_76rbl","meta":"file-upload-item__meta_76rbl","size":"file-upload-item__size_76rbl","delete":"file-upload-item__delete_76rbl","error":"file-upload-item__error_76rbl"};
13
13
  require('./index.css')
14
14
 
15
15
  var FileUploadItem = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: bky84 */
1
+ /* hash: 1e54w */
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-item__component_1g56v {
23
+ .file-upload-item__component_76rbl {
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-item__component_1g56v svg {
36
+ .file-upload-item__component_76rbl svg {
37
37
  display: block;
38
38
  }
39
- .file-upload-item__info_1g56v {
39
+ .file-upload-item__info_76rbl {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  flex-wrap: wrap;
43
43
  flex: 1;
44
44
  }
45
- .file-upload-item__icon_1g56v {
45
+ .file-upload-item__icon_76rbl {
46
46
  display: block;
47
47
  flex-shrink: 0;
48
48
  color: var(--color-light-text-primary);
49
49
  }
50
- .file-upload-item__errorIcon_1g56v {
50
+ .file-upload-item__errorIcon_76rbl {
51
51
  flex-shrink: 0;
52
52
  color: var(--color-light-graphic-negative);
53
53
  }
54
- .file-upload-item__successIcon_1g56v {
54
+ .file-upload-item__successIcon_76rbl {
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-graphic-positive);
57
57
  }
58
- .file-upload-item__name_1g56v {
58
+ .file-upload-item__name_76rbl {
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-item__meta_1g56v {
67
+ .file-upload-item__meta_76rbl {
68
68
  display: flex;
69
69
  align-items: center;
70
70
 
71
71
  white-space: nowrap
72
72
  }
73
- .file-upload-item__meta_1g56v > * {
73
+ .file-upload-item__meta_76rbl > * {
74
74
  margin-right: var(--gap-s)
75
75
  }
76
- .file-upload-item__meta_1g56v > *:last-child {
76
+ .file-upload-item__meta_76rbl > *:last-child {
77
77
  margin-right: 0;
78
78
  }
79
- .file-upload-item__size_1g56v {
79
+ .file-upload-item__size_76rbl {
80
80
  width: 65px;
81
81
  text-align: right;
82
82
  }
83
- .file-upload-item__delete_1g56v {
83
+ .file-upload-item__delete_76rbl {
84
84
  height: 24px;
85
85
  width: 24px;
86
86
  margin-left: var(--gap-s);
87
87
  }
88
- .file-upload-item__error_1g56v {
88
+ .file-upload-item__error_76rbl {
89
89
  color: var(--color-light-text-accent)
90
90
  }
91
91
  @media (--small-only) {
92
- .file-upload-item__error_1g56v {
92
+ .file-upload-item__error_76rbl {
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: bky84 */
1
+ /* hash: 1e54w */
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-item__component_1g56v {
23
+ .file-upload-item__component_76rbl {
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-item__component_1g56v svg {
36
+ .file-upload-item__component_76rbl svg {
37
37
  display: block;
38
38
  }
39
- .file-upload-item__info_1g56v {
39
+ .file-upload-item__info_76rbl {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  flex-wrap: wrap;
43
43
  flex: 1;
44
44
  }
45
- .file-upload-item__icon_1g56v {
45
+ .file-upload-item__icon_76rbl {
46
46
  display: block;
47
47
  flex-shrink: 0;
48
48
  color: var(--color-light-text-primary);
49
49
  }
50
- .file-upload-item__errorIcon_1g56v {
50
+ .file-upload-item__errorIcon_76rbl {
51
51
  flex-shrink: 0;
52
52
  color: var(--color-light-graphic-negative);
53
53
  }
54
- .file-upload-item__successIcon_1g56v {
54
+ .file-upload-item__successIcon_76rbl {
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-graphic-positive);
57
57
  }
58
- .file-upload-item__name_1g56v {
58
+ .file-upload-item__name_76rbl {
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-item__meta_1g56v {
67
+ .file-upload-item__meta_76rbl {
68
68
  display: flex;
69
69
  align-items: center;
70
70
 
71
71
  white-space: nowrap
72
72
  }
73
- .file-upload-item__meta_1g56v > * {
73
+ .file-upload-item__meta_76rbl > * {
74
74
  margin-right: var(--gap-s)
75
75
  }
76
- .file-upload-item__meta_1g56v > *:last-child {
76
+ .file-upload-item__meta_76rbl > *:last-child {
77
77
  margin-right: 0;
78
78
  }
79
- .file-upload-item__size_1g56v {
79
+ .file-upload-item__size_76rbl {
80
80
  width: 65px;
81
81
  text-align: right;
82
82
  }
83
- .file-upload-item__delete_1g56v {
83
+ .file-upload-item__delete_76rbl {
84
84
  height: 24px;
85
85
  width: 24px;
86
86
  margin-left: var(--gap-s);
87
87
  }
88
- .file-upload-item__error_1g56v {
88
+ .file-upload-item__error_76rbl {
89
89
  color: var(--color-light-text-accent)
90
90
  }
91
91
  @media (--small-only) {
92
- .file-upload-item__error_1g56v {
92
+ .file-upload-item__error_76rbl {
93
93
  flex: 1 0 100%;
94
94
  margin-top: var(--gap-3xs)
95
95
  }
@@ -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-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"};
12
+ var styles = {"component":"file-upload-item__component_76rbl","info":"file-upload-item__info_76rbl","icon":"file-upload-item__icon_76rbl","errorIcon":"file-upload-item__errorIcon_76rbl","successIcon":"file-upload-item__successIcon_76rbl","name":"file-upload-item__name_76rbl","meta":"file-upload-item__meta_76rbl","size":"file-upload-item__size_76rbl","delete":"file-upload-item__delete_76rbl","error":"file-upload-item__error_76rbl"};
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, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: bky84 */
1
+ /* hash: 1e54w */
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-item__component_1g56v {
23
+ .file-upload-item__component_76rbl {
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-item__component_1g56v svg {
36
+ .file-upload-item__component_76rbl svg {
37
37
  display: block;
38
38
  }
39
- .file-upload-item__info_1g56v {
39
+ .file-upload-item__info_76rbl {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  flex-wrap: wrap;
43
43
  flex: 1;
44
44
  }
45
- .file-upload-item__icon_1g56v {
45
+ .file-upload-item__icon_76rbl {
46
46
  display: block;
47
47
  flex-shrink: 0;
48
48
  color: var(--color-light-text-primary);
49
49
  }
50
- .file-upload-item__errorIcon_1g56v {
50
+ .file-upload-item__errorIcon_76rbl {
51
51
  flex-shrink: 0;
52
52
  color: var(--color-light-graphic-negative);
53
53
  }
54
- .file-upload-item__successIcon_1g56v {
54
+ .file-upload-item__successIcon_76rbl {
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-graphic-positive);
57
57
  }
58
- .file-upload-item__name_1g56v {
58
+ .file-upload-item__name_76rbl {
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-item__meta_1g56v {
67
+ .file-upload-item__meta_76rbl {
68
68
  display: flex;
69
69
  align-items: center;
70
70
 
71
71
  white-space: nowrap
72
72
  }
73
- .file-upload-item__meta_1g56v > * {
73
+ .file-upload-item__meta_76rbl > * {
74
74
  margin-right: var(--gap-s)
75
75
  }
76
- .file-upload-item__meta_1g56v > *:last-child {
76
+ .file-upload-item__meta_76rbl > *:last-child {
77
77
  margin-right: 0;
78
78
  }
79
- .file-upload-item__size_1g56v {
79
+ .file-upload-item__size_76rbl {
80
80
  width: 65px;
81
81
  text-align: right;
82
82
  }
83
- .file-upload-item__delete_1g56v {
83
+ .file-upload-item__delete_76rbl {
84
84
  height: 24px;
85
85
  width: 24px;
86
86
  margin-left: var(--gap-s);
87
87
  }
88
- .file-upload-item__error_1g56v {
88
+ .file-upload-item__error_76rbl {
89
89
  color: var(--color-light-text-accent)
90
90
  }
91
91
  @media (--small-only) {
92
- .file-upload-item__error_1g56v {
92
+ .file-upload-item__error_76rbl {
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.2",
3
+ "version": "3.3.3",
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": "^4.0.0",
20
- "@alfalab/core-components-link": "^3.2.0",
19
+ "@alfalab/core-components-icon-button": "^4.0.1",
20
+ "@alfalab/core-components-link": "^3.2.1",
21
21
  "@alfalab/core-components-spinner": "^2.0.1",
22
22
  "@alfalab/icons-glyph": "^1.190.0"
23
23
  },
24
- "gitHead": "10c9fd1caacf98a5c15f84529889ddf41e9e1b54"
24
+ "gitHead": "19a2d088b6c18a127940199cfd6e6fc4e8639ec5"
25
25
  }