@alfalab/core-components-file-upload-item 5.1.13 → 5.1.14

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/Component.js CHANGED
@@ -22,7 +22,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
22
22
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
23
23
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
24
24
 
25
- var styles = {"component":"file-upload-item__component_8rywk","infoSection":"file-upload-item__infoSection_8rywk","info":"file-upload-item__info_8rywk","icon":"file-upload-item__icon_8rywk","errorIcon":"file-upload-item__errorIcon_8rywk","successIcon":"file-upload-item__successIcon_8rywk","name":"file-upload-item__name_8rywk","meta":"file-upload-item__meta_8rywk","size":"file-upload-item__size_8rywk","delete":"file-upload-item__delete_8rywk","download":"file-upload-item__download_8rywk","errorWrapper":"file-upload-item__errorWrapper_8rywk","restore":"file-upload-item__restore_8rywk","spinnerWrapper":"file-upload-item__spinnerWrapper_8rywk","spinner":"file-upload-item__spinner_8rywk","uploadPercent":"file-upload-item__uploadPercent_8rywk"};
25
+ var styles = {"component":"file-upload-item__component_1x3l0","infoSection":"file-upload-item__infoSection_1x3l0","info":"file-upload-item__info_1x3l0","icon":"file-upload-item__icon_1x3l0","errorIcon":"file-upload-item__errorIcon_1x3l0","successIcon":"file-upload-item__successIcon_1x3l0","name":"file-upload-item__name_1x3l0","meta":"file-upload-item__meta_1x3l0","size":"file-upload-item__size_1x3l0","delete":"file-upload-item__delete_1x3l0","download":"file-upload-item__download_1x3l0","errorWrapper":"file-upload-item__errorWrapper_1x3l0","restore":"file-upload-item__restore_1x3l0","spinnerWrapper":"file-upload-item__spinnerWrapper_1x3l0","spinner":"file-upload-item__spinner_1x3l0","uploadPercent":"file-upload-item__uploadPercent_1x3l0"};
26
26
  require('./index.css')
27
27
 
28
28
  var FileUploadItem = function (_a) {
package/esm/Component.js CHANGED
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/DocumentPdfMIcon';
15
15
  import '@alfalab/icons-glyph/DocumentTxtMIcon';
16
16
  import '@alfalab/icons-glyph/DocumentUnknownMIcon';
17
17
 
18
- var styles = {"component":"file-upload-item__component_8rywk","infoSection":"file-upload-item__infoSection_8rywk","info":"file-upload-item__info_8rywk","icon":"file-upload-item__icon_8rywk","errorIcon":"file-upload-item__errorIcon_8rywk","successIcon":"file-upload-item__successIcon_8rywk","name":"file-upload-item__name_8rywk","meta":"file-upload-item__meta_8rywk","size":"file-upload-item__size_8rywk","delete":"file-upload-item__delete_8rywk","download":"file-upload-item__download_8rywk","errorWrapper":"file-upload-item__errorWrapper_8rywk","restore":"file-upload-item__restore_8rywk","spinnerWrapper":"file-upload-item__spinnerWrapper_8rywk","spinner":"file-upload-item__spinner_8rywk","uploadPercent":"file-upload-item__uploadPercent_8rywk"};
18
+ var styles = {"component":"file-upload-item__component_1x3l0","infoSection":"file-upload-item__infoSection_1x3l0","info":"file-upload-item__info_1x3l0","icon":"file-upload-item__icon_1x3l0","errorIcon":"file-upload-item__errorIcon_1x3l0","successIcon":"file-upload-item__successIcon_1x3l0","name":"file-upload-item__name_1x3l0","meta":"file-upload-item__meta_1x3l0","size":"file-upload-item__size_1x3l0","delete":"file-upload-item__delete_1x3l0","download":"file-upload-item__download_1x3l0","errorWrapper":"file-upload-item__errorWrapper_1x3l0","restore":"file-upload-item__restore_1x3l0","spinnerWrapper":"file-upload-item__spinnerWrapper_1x3l0","spinner":"file-upload-item__spinner_1x3l0","uploadPercent":"file-upload-item__uploadPercent_1x3l0"};
19
19
  require('./index.css')
20
20
 
21
21
  var FileUploadItem = function (_a) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5qxpo */
1
+ /* hash: i082x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dbdee1;
@@ -25,7 +25,7 @@
25
25
  --gap-xl: 24px;
26
26
  } :root {
27
27
  } :root {
28
- } .file-upload-item__component_8rywk {
28
+ } .file-upload-item__component_1x3l0 {
29
29
  font-size: 13px;
30
30
  line-height: 16px;
31
31
  font-weight: 400;
@@ -36,78 +36,78 @@
36
36
  color: var(--color-light-text-secondary);
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
38
38
  box-sizing: border-box
39
- } .file-upload-item__component_8rywk svg {
39
+ } .file-upload-item__component_1x3l0 svg {
40
40
  display: block;
41
- } .file-upload-item__infoSection_8rywk {
41
+ } .file-upload-item__infoSection_1x3l0 {
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  flex: 1;
45
45
  margin-top: var(--gap-2xs);
46
46
  margin-left: var(--gap-s);
47
47
  min-width: 40%;
48
- } .file-upload-item__info_8rywk {
48
+ } .file-upload-item__info_1x3l0 {
49
49
  display: flex;
50
50
  flex-wrap: wrap;
51
51
  flex: 1;
52
52
  overflow: hidden;
53
- } .file-upload-item__icon_8rywk {
53
+ } .file-upload-item__icon_1x3l0 {
54
54
  display: block;
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-text-primary);
57
- } .file-upload-item__errorIcon_8rywk {
57
+ } .file-upload-item__errorIcon_1x3l0 {
58
58
  flex-shrink: 0;
59
59
  color: var(--color-light-graphic-negative);
60
- } .file-upload-item__successIcon_8rywk {
60
+ } .file-upload-item__successIcon_1x3l0 {
61
61
  flex-shrink: 0;
62
62
  color: var(--color-light-graphic-positive);
63
- } .file-upload-item__name_8rywk {
63
+ } .file-upload-item__name_1x3l0 {
64
64
  white-space: nowrap;
65
65
  overflow: hidden;
66
66
  text-overflow: ellipsis;
67
67
  color: var(--color-light-text-primary)
68
- } .file-upload-item__name_8rywk a {
68
+ } .file-upload-item__name_1x3l0 a {
69
69
  display: block;
70
70
  margin-bottom: 1px;
71
- } .file-upload-item__meta_8rywk {
71
+ } .file-upload-item__meta_1x3l0 {
72
72
  display: flex;
73
73
  white-space: nowrap;
74
74
  margin-right: var(--gap-2xs);
75
75
  margin-left: var(--gap-xl);
76
76
  padding: var(--gap-2xs) 0
77
- } .file-upload-item__meta_8rywk > * {
77
+ } .file-upload-item__meta_1x3l0 > * {
78
78
  margin-right: var(--gap-s)
79
- } .file-upload-item__meta_8rywk > *:last-child {
79
+ } .file-upload-item__meta_1x3l0 > *:last-child {
80
80
  margin-right: 0;
81
- } .file-upload-item__size_8rywk {
81
+ } .file-upload-item__size_1x3l0 {
82
82
  text-align: right;
83
- } .file-upload-item__delete_8rywk,
84
- .file-upload-item__download_8rywk {
83
+ } .file-upload-item__delete_1x3l0,
84
+ .file-upload-item__download_1x3l0 {
85
85
  height: 24px;
86
86
  width: 24px;
87
87
  margin-left: var(--gap-xs);
88
- } .file-upload-item__errorWrapper_8rywk {
88
+ } .file-upload-item__errorWrapper_1x3l0 {
89
89
  margin-top: var(--gap-s);
90
90
  color: var(--color-light-text-accent)
91
- } @media (--small-only) { .file-upload-item__errorWrapper_8rywk {
91
+ } @media (--small-only) { .file-upload-item__errorWrapper_1x3l0 {
92
92
  flex: 1 0 100%;
93
93
  margin-top: var(--gap-3xs)
94
94
  }
95
- } .file-upload-item__restore_8rywk {
95
+ } .file-upload-item__restore_1x3l0 {
96
96
  font-size: 14px;
97
97
  line-height: 20px;
98
98
  font-weight: 400;
99
99
 
100
100
  margin-left: var(--gap-s);
101
- } .file-upload-item__spinnerWrapper_8rywk {
101
+ } .file-upload-item__spinnerWrapper_1x3l0 {
102
102
  display: flex;
103
103
  justify-content: center;
104
104
  align-items: center;
105
105
  width: 24px;
106
106
  height: 24px;
107
- } .file-upload-item__spinner_8rywk {
107
+ } .file-upload-item__spinner_1x3l0 {
108
108
  width: 20px;
109
109
  height: 20px;
110
- } .file-upload-item__uploadPercent_8rywk {
110
+ } .file-upload-item__uploadPercent_1x3l0 {
111
111
  margin-top: var(--gap-2xs);
112
112
  margin-left: var(--gap-xl);
113
113
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5qxpo */
1
+ /* hash: i082x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dbdee1;
@@ -25,7 +25,7 @@
25
25
  --gap-xl: 24px;
26
26
  } :root {
27
27
  } :root {
28
- } .file-upload-item__component_8rywk {
28
+ } .file-upload-item__component_1x3l0 {
29
29
  font-size: 13px;
30
30
  line-height: 16px;
31
31
  font-weight: 400;
@@ -36,78 +36,78 @@
36
36
  color: var(--color-light-text-secondary);
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
38
38
  box-sizing: border-box
39
- } .file-upload-item__component_8rywk svg {
39
+ } .file-upload-item__component_1x3l0 svg {
40
40
  display: block;
41
- } .file-upload-item__infoSection_8rywk {
41
+ } .file-upload-item__infoSection_1x3l0 {
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  flex: 1;
45
45
  margin-top: var(--gap-2xs);
46
46
  margin-left: var(--gap-s);
47
47
  min-width: 40%;
48
- } .file-upload-item__info_8rywk {
48
+ } .file-upload-item__info_1x3l0 {
49
49
  display: flex;
50
50
  flex-wrap: wrap;
51
51
  flex: 1;
52
52
  overflow: hidden;
53
- } .file-upload-item__icon_8rywk {
53
+ } .file-upload-item__icon_1x3l0 {
54
54
  display: block;
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-text-primary);
57
- } .file-upload-item__errorIcon_8rywk {
57
+ } .file-upload-item__errorIcon_1x3l0 {
58
58
  flex-shrink: 0;
59
59
  color: var(--color-light-graphic-negative);
60
- } .file-upload-item__successIcon_8rywk {
60
+ } .file-upload-item__successIcon_1x3l0 {
61
61
  flex-shrink: 0;
62
62
  color: var(--color-light-graphic-positive);
63
- } .file-upload-item__name_8rywk {
63
+ } .file-upload-item__name_1x3l0 {
64
64
  white-space: nowrap;
65
65
  overflow: hidden;
66
66
  text-overflow: ellipsis;
67
67
  color: var(--color-light-text-primary)
68
- } .file-upload-item__name_8rywk a {
68
+ } .file-upload-item__name_1x3l0 a {
69
69
  display: block;
70
70
  margin-bottom: 1px;
71
- } .file-upload-item__meta_8rywk {
71
+ } .file-upload-item__meta_1x3l0 {
72
72
  display: flex;
73
73
  white-space: nowrap;
74
74
  margin-right: var(--gap-2xs);
75
75
  margin-left: var(--gap-xl);
76
76
  padding: var(--gap-2xs) 0
77
- } .file-upload-item__meta_8rywk > * {
77
+ } .file-upload-item__meta_1x3l0 > * {
78
78
  margin-right: var(--gap-s)
79
- } .file-upload-item__meta_8rywk > *:last-child {
79
+ } .file-upload-item__meta_1x3l0 > *:last-child {
80
80
  margin-right: 0;
81
- } .file-upload-item__size_8rywk {
81
+ } .file-upload-item__size_1x3l0 {
82
82
  text-align: right;
83
- } .file-upload-item__delete_8rywk,
84
- .file-upload-item__download_8rywk {
83
+ } .file-upload-item__delete_1x3l0,
84
+ .file-upload-item__download_1x3l0 {
85
85
  height: 24px;
86
86
  width: 24px;
87
87
  margin-left: var(--gap-xs);
88
- } .file-upload-item__errorWrapper_8rywk {
88
+ } .file-upload-item__errorWrapper_1x3l0 {
89
89
  margin-top: var(--gap-s);
90
90
  color: var(--color-light-text-accent)
91
- } @media (--small-only) { .file-upload-item__errorWrapper_8rywk {
91
+ } @media (--small-only) { .file-upload-item__errorWrapper_1x3l0 {
92
92
  flex: 1 0 100%;
93
93
  margin-top: var(--gap-3xs)
94
94
  }
95
- } .file-upload-item__restore_8rywk {
95
+ } .file-upload-item__restore_1x3l0 {
96
96
  font-size: 14px;
97
97
  line-height: 20px;
98
98
  font-weight: 400;
99
99
 
100
100
  margin-left: var(--gap-s);
101
- } .file-upload-item__spinnerWrapper_8rywk {
101
+ } .file-upload-item__spinnerWrapper_1x3l0 {
102
102
  display: flex;
103
103
  justify-content: center;
104
104
  align-items: center;
105
105
  width: 24px;
106
106
  height: 24px;
107
- } .file-upload-item__spinner_8rywk {
107
+ } .file-upload-item__spinner_1x3l0 {
108
108
  width: 20px;
109
109
  height: 20px;
110
- } .file-upload-item__uploadPercent_8rywk {
110
+ } .file-upload-item__uploadPercent_1x3l0 {
111
111
  margin-top: var(--gap-2xs);
112
112
  margin-left: var(--gap-xl);
113
113
  }
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/DocumentPdfMIcon';
15
15
  import '@alfalab/icons-glyph/DocumentTxtMIcon';
16
16
  import '@alfalab/icons-glyph/DocumentUnknownMIcon';
17
17
 
18
- const styles = {"component":"file-upload-item__component_8rywk","infoSection":"file-upload-item__infoSection_8rywk","info":"file-upload-item__info_8rywk","icon":"file-upload-item__icon_8rywk","errorIcon":"file-upload-item__errorIcon_8rywk","successIcon":"file-upload-item__successIcon_8rywk","name":"file-upload-item__name_8rywk","meta":"file-upload-item__meta_8rywk","size":"file-upload-item__size_8rywk","delete":"file-upload-item__delete_8rywk","download":"file-upload-item__download_8rywk","errorWrapper":"file-upload-item__errorWrapper_8rywk","restore":"file-upload-item__restore_8rywk","spinnerWrapper":"file-upload-item__spinnerWrapper_8rywk","spinner":"file-upload-item__spinner_8rywk","uploadPercent":"file-upload-item__uploadPercent_8rywk"};
18
+ const styles = {"component":"file-upload-item__component_1x3l0","infoSection":"file-upload-item__infoSection_1x3l0","info":"file-upload-item__info_1x3l0","icon":"file-upload-item__icon_1x3l0","errorIcon":"file-upload-item__errorIcon_1x3l0","successIcon":"file-upload-item__successIcon_1x3l0","name":"file-upload-item__name_1x3l0","meta":"file-upload-item__meta_1x3l0","size":"file-upload-item__size_1x3l0","delete":"file-upload-item__delete_1x3l0","download":"file-upload-item__download_1x3l0","errorWrapper":"file-upload-item__errorWrapper_1x3l0","restore":"file-upload-item__restore_1x3l0","spinnerWrapper":"file-upload-item__spinnerWrapper_1x3l0","spinner":"file-upload-item__spinner_1x3l0","uploadPercent":"file-upload-item__uploadPercent_1x3l0"};
19
19
  require('./index.css')
20
20
 
21
21
  const FileUploadItem = ({ className, children, id = '0', name = '', size, icon: Icon = fileIcon(name), uploadDate, downloadLink, download, uploadStatus, uploadPercent = 0, error, showDelete, showRestore, onDelete, onDownload, onRestore, disableButtons, dataTestId, }) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5qxpo */
1
+ /* hash: i082x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-primary: #dbdee1;
@@ -25,7 +25,7 @@
25
25
  --gap-xl: 24px;
26
26
  } :root {
27
27
  } :root {
28
- } .file-upload-item__component_8rywk {
28
+ } .file-upload-item__component_1x3l0 {
29
29
  font-size: 13px;
30
30
  line-height: 16px;
31
31
  font-weight: 400;
@@ -36,78 +36,78 @@
36
36
  color: var(--color-light-text-secondary);
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-border-primary) inset;
38
38
  box-sizing: border-box
39
- } .file-upload-item__component_8rywk svg {
39
+ } .file-upload-item__component_1x3l0 svg {
40
40
  display: block;
41
- } .file-upload-item__infoSection_8rywk {
41
+ } .file-upload-item__infoSection_1x3l0 {
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  flex: 1;
45
45
  margin-top: var(--gap-2xs);
46
46
  margin-left: var(--gap-s);
47
47
  min-width: 40%;
48
- } .file-upload-item__info_8rywk {
48
+ } .file-upload-item__info_1x3l0 {
49
49
  display: flex;
50
50
  flex-wrap: wrap;
51
51
  flex: 1;
52
52
  overflow: hidden;
53
- } .file-upload-item__icon_8rywk {
53
+ } .file-upload-item__icon_1x3l0 {
54
54
  display: block;
55
55
  flex-shrink: 0;
56
56
  color: var(--color-light-text-primary);
57
- } .file-upload-item__errorIcon_8rywk {
57
+ } .file-upload-item__errorIcon_1x3l0 {
58
58
  flex-shrink: 0;
59
59
  color: var(--color-light-graphic-negative);
60
- } .file-upload-item__successIcon_8rywk {
60
+ } .file-upload-item__successIcon_1x3l0 {
61
61
  flex-shrink: 0;
62
62
  color: var(--color-light-graphic-positive);
63
- } .file-upload-item__name_8rywk {
63
+ } .file-upload-item__name_1x3l0 {
64
64
  white-space: nowrap;
65
65
  overflow: hidden;
66
66
  text-overflow: ellipsis;
67
67
  color: var(--color-light-text-primary)
68
- } .file-upload-item__name_8rywk a {
68
+ } .file-upload-item__name_1x3l0 a {
69
69
  display: block;
70
70
  margin-bottom: 1px;
71
- } .file-upload-item__meta_8rywk {
71
+ } .file-upload-item__meta_1x3l0 {
72
72
  display: flex;
73
73
  white-space: nowrap;
74
74
  margin-right: var(--gap-2xs);
75
75
  margin-left: var(--gap-xl);
76
76
  padding: var(--gap-2xs) 0
77
- } .file-upload-item__meta_8rywk > * {
77
+ } .file-upload-item__meta_1x3l0 > * {
78
78
  margin-right: var(--gap-s)
79
- } .file-upload-item__meta_8rywk > *:last-child {
79
+ } .file-upload-item__meta_1x3l0 > *:last-child {
80
80
  margin-right: 0;
81
- } .file-upload-item__size_8rywk {
81
+ } .file-upload-item__size_1x3l0 {
82
82
  text-align: right;
83
- } .file-upload-item__delete_8rywk,
84
- .file-upload-item__download_8rywk {
83
+ } .file-upload-item__delete_1x3l0,
84
+ .file-upload-item__download_1x3l0 {
85
85
  height: 24px;
86
86
  width: 24px;
87
87
  margin-left: var(--gap-xs);
88
- } .file-upload-item__errorWrapper_8rywk {
88
+ } .file-upload-item__errorWrapper_1x3l0 {
89
89
  margin-top: var(--gap-s);
90
90
  color: var(--color-light-text-accent)
91
- } @media (--small-only) { .file-upload-item__errorWrapper_8rywk {
91
+ } @media (--small-only) { .file-upload-item__errorWrapper_1x3l0 {
92
92
  flex: 1 0 100%;
93
93
  margin-top: var(--gap-3xs)
94
94
  }
95
- } .file-upload-item__restore_8rywk {
95
+ } .file-upload-item__restore_1x3l0 {
96
96
  font-size: 14px;
97
97
  line-height: 20px;
98
98
  font-weight: 400;
99
99
 
100
100
  margin-left: var(--gap-s);
101
- } .file-upload-item__spinnerWrapper_8rywk {
101
+ } .file-upload-item__spinnerWrapper_1x3l0 {
102
102
  display: flex;
103
103
  justify-content: center;
104
104
  align-items: center;
105
105
  width: 24px;
106
106
  height: 24px;
107
- } .file-upload-item__spinner_8rywk {
107
+ } .file-upload-item__spinner_1x3l0 {
108
108
  width: 20px;
109
109
  height: 20px;
110
- } .file-upload-item__uploadPercent_8rywk {
110
+ } .file-upload-item__uploadPercent_1x3l0 {
111
111
  margin-top: var(--gap-2xs);
112
112
  margin-left: var(--gap-xl);
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-file-upload-item",
3
- "version": "5.1.13",
3
+ "version": "5.1.14",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-icon-button": "^6.0.5",
17
+ "@alfalab/core-components-icon-button": "^6.0.6",
18
18
  "@alfalab/core-components-link": "^5.0.2",
19
19
  "@alfalab/core-components-spinner": "^3.0.3",
20
20
  "@alfalab/icons-glyph": "^2.89.0"