@alfalab/core-components-file-upload-item 6.0.3 → 6.0.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.
Files changed (67) hide show
  1. package/Component.js +1 -1
  2. package/actions-control.module-4c64f0ce.js +6 -0
  3. package/components/actions-control/actions-control.css +6 -6
  4. package/components/actions-control/actions.js +1 -1
  5. package/components/actions-control/components/delete-button/delete-button.js +1 -1
  6. package/components/actions-control/components/download-button/download-button.js +1 -1
  7. package/components/actions-control/components/restore-button/restore-button.js +1 -1
  8. package/components/content/components/content-error/content-error.css +2 -2
  9. package/components/content/components/content-error/content-error.js +4 -4
  10. package/components/content/components/content-subtitle/content-subtitle.css +4 -4
  11. package/components/content/components/content-subtitle/content-subtitle.js +6 -6
  12. package/components/content/content.css +8 -8
  13. package/components/content/content.js +2 -2
  14. package/components/status-control/components/status-control-icon/status-control-icon.css +6 -6
  15. package/components/status-control/components/status-control-icon/status-control-icon.js +1 -1
  16. package/components/status-control/status-control.css +10 -10
  17. package/components/status-control/status-control.js +1 -1
  18. package/cssm/components/content/components/content-error/content-error.js +3 -3
  19. package/cssm/components/content/components/content-subtitle/content-subtitle.js +5 -5
  20. package/cssm/components/content/content.js +1 -1
  21. package/esm/Component.js +1 -1
  22. package/esm/actions-control.module-e32db318.js +4 -0
  23. package/esm/components/actions-control/actions-control.css +6 -6
  24. package/esm/components/actions-control/actions.js +1 -1
  25. package/esm/components/actions-control/components/delete-button/delete-button.js +1 -1
  26. package/esm/components/actions-control/components/download-button/download-button.js +1 -1
  27. package/esm/components/actions-control/components/restore-button/restore-button.js +1 -1
  28. package/esm/components/content/components/content-error/content-error.css +2 -2
  29. package/esm/components/content/components/content-error/content-error.js +5 -5
  30. package/esm/components/content/components/content-subtitle/content-subtitle.css +4 -4
  31. package/esm/components/content/components/content-subtitle/content-subtitle.js +7 -7
  32. package/esm/components/content/content.css +8 -8
  33. package/esm/components/content/content.js +3 -3
  34. package/esm/components/status-control/components/status-control-icon/status-control-icon.css +6 -6
  35. package/esm/components/status-control/components/status-control-icon/status-control-icon.js +1 -1
  36. package/esm/components/status-control/status-control.css +10 -10
  37. package/esm/components/status-control/status-control.js +1 -1
  38. package/esm/index.css +3 -3
  39. package/index.css +3 -3
  40. package/modern/Component.js +1 -1
  41. package/modern/actions-control.module-8c021ec2.js +4 -0
  42. package/modern/components/actions-control/actions-control.css +6 -6
  43. package/modern/components/actions-control/actions.js +1 -1
  44. package/modern/components/actions-control/components/delete-button/delete-button.js +1 -1
  45. package/modern/components/actions-control/components/download-button/download-button.js +1 -1
  46. package/modern/components/actions-control/components/restore-button/restore-button.js +1 -1
  47. package/modern/components/content/components/content-error/content-error.css +2 -2
  48. package/modern/components/content/components/content-error/content-error.js +5 -5
  49. package/modern/components/content/components/content-subtitle/content-subtitle.css +4 -4
  50. package/modern/components/content/components/content-subtitle/content-subtitle.js +7 -7
  51. package/modern/components/content/content.css +8 -8
  52. package/modern/components/content/content.js +3 -3
  53. package/modern/components/status-control/components/status-control-icon/status-control-icon.css +6 -6
  54. package/modern/components/status-control/components/status-control-icon/status-control-icon.js +1 -1
  55. package/modern/components/status-control/status-control.css +10 -10
  56. package/modern/components/status-control/status-control.js +1 -1
  57. package/modern/index.css +3 -3
  58. package/moderncssm/components/content/components/content-error/content-error.js +4 -4
  59. package/moderncssm/components/content/components/content-subtitle/content-subtitle.js +6 -6
  60. package/moderncssm/components/content/content.js +2 -2
  61. package/package.json +6 -6
  62. package/src/components/content/components/content-error/content-error.tsx +7 -7
  63. package/src/components/content/components/content-subtitle/content-subtitle.tsx +11 -11
  64. package/src/components/content/content.tsx +3 -3
  65. package/actions-control.module-5a271f1d.js +0 -6
  66. package/esm/actions-control.module-e45efbe7.js +0 -4
  67. package/modern/actions-control.module-3ff0963b.js +0 -4
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1y0p0 */
1
+ /* hash: i9rpg */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -22,13 +22,13 @@
22
22
  --gap-12: var(--gap-s);
23
23
  } :root {
24
24
  } :root {
25
- } /* сбрасывает синюю подсветку при нажатии */ .file-upload-item__component_172uc {
25
+ } /* сбрасывает синюю подсветку при нажатии */ .file-upload-item__component_1tvpm {
26
26
  box-sizing: border-box;
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  width: 100%;
30
30
  min-height: 48px;
31
- } .file-upload-item__restore_172uc {
31
+ } .file-upload-item__restore_1tvpm {
32
32
  margin-left: var(--gap-12);
33
33
  margin-top: var(--gap-2);
34
34
  }
@@ -1,17 +1,17 @@
1
1
  import React, { useContext } from 'react';
2
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
2
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
3
3
  import { FileUploadItemContext } from '../../../../context/file-upload-item-context.js';
4
4
  import styles from './content-error.module.css';
5
5
 
6
6
  const ContentError = () => {
7
7
  const { error } = useContext(FileUploadItemContext);
8
8
  if (typeof error === 'string' && error.length > 0) {
9
- return (React.createElement(Typography.Text, { className: styles.errorItem, view: 'primary-small', color: 'negative' }, error));
9
+ return (React.createElement(Text, { className: styles.errorItem, view: 'primary-small', color: 'negative' }, error));
10
10
  }
11
11
  if (Array.isArray(error) && error.length > 0) {
12
- return (React.createElement("div", null, error.map((item) => (React.createElement(Typography.Text, { key: item, className: styles.errorItem, view: 'primary-small', color: 'negative' }, item)))));
12
+ return (React.createElement("div", null, error.map((item) => (React.createElement(Text, { key: item, className: styles.errorItem, view: 'primary-small', color: 'negative' }, item)))));
13
13
  }
14
- return (React.createElement(Typography.Text, { className: styles.errorItem, view: 'primary-small', color: 'negative' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B"));
14
+ return (React.createElement(Text, { className: styles.errorItem, view: 'primary-small', color: 'negative' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B"));
15
15
  };
16
16
 
17
17
  export { ContentError };
@@ -1,6 +1,6 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
3
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
4
4
  import { MAX_PROGRESS_BAR_VALUE } from '../../../../const/progress-bar.js';
5
5
  import { FileUploadItemContext } from '../../../../context/file-upload-item-context.js';
6
6
  import { isErrorStatus, isUploadingStatus, humanFileSize, isSuccessStatus, isUploadedStatus } from '../../../../utils.js';
@@ -22,7 +22,7 @@ const ContentSubtitle = () => {
22
22
  const validProgressBar = validateProgressBarValue(progressBar);
23
23
  // uploading status
24
24
  if (isUploadingStatus(uploadStatus)) {
25
- return (React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary' },
25
+ return (React.createElement(Text, { view: 'primary-small', color: 'secondary' },
26
26
  "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",
27
27
  '\u00A0',
28
28
  Math.floor(validProgressBar),
@@ -35,14 +35,14 @@ const ContentSubtitle = () => {
35
35
  // success status
36
36
  if (showMeta) {
37
37
  return (React.createElement("div", null,
38
- size && (React.createElement(Typography.Text, { className: styles.size, view: 'primary-small', color: 'secondary' }, humanFileSize(size))),
39
- uploadDate && (React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary' }, uploadDate))));
38
+ size && (React.createElement(Text, { className: styles.size, view: 'primary-small', color: 'secondary' }, humanFileSize(size))),
39
+ uploadDate && (React.createElement(Text, { view: 'primary-small', color: 'secondary' }, uploadDate))));
40
40
  }
41
41
  // restore status
42
42
  if (showRestore) {
43
- return (React.createElement(Typography.Text, { view: 'primary-small', color: 'tertiary' }, "\u0424\u0430\u0439\u043B \u0443\u0434\u0430\u043B\u0435\u043D"));
43
+ return (React.createElement(Text, { view: 'primary-small', color: 'tertiary' }, "\u0424\u0430\u0439\u043B \u0443\u0434\u0430\u043B\u0435\u043D"));
44
44
  }
45
- return (React.createElement(Typography.Text, { className: cn(styles.subtitle, {
45
+ return (React.createElement(Text, { className: cn(styles.subtitle, {
46
46
  [styles.truncate]: truncate,
47
47
  }), view: 'primary-small', color: 'secondary' }, subtitle));
48
48
  };
@@ -1,6 +1,6 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
3
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
4
4
  import { FileUploadItemContext } from '../../context/file-upload-item-context.js';
5
5
  import { ContentSubtitle } from './components/content-subtitle/content-subtitle.js';
6
6
  import styles from './content.module.css';
@@ -13,7 +13,7 @@ const Content = () => {
13
13
  return (React.createElement("div", { className: cn(styles.container, {
14
14
  [styles.single]: !subtitle,
15
15
  }) },
16
- title && (React.createElement(Typography.Text, { className: cn(styles.title, {
16
+ title && (React.createElement(Text, { className: cn(styles.title, {
17
17
  [styles.truncate]: truncate,
18
18
  [styles.restore]: showRestore,
19
19
  }), view: 'component', color: 'primary' }, title)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-file-upload-item",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,12 +14,12 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-icon-button": "^6.11.3",
18
- "@alfalab/core-components-link": "^5.3.1",
19
- "@alfalab/core-components-spinner": "^4.0.0",
17
+ "@alfalab/core-components-icon-button": "^6.11.4",
18
+ "@alfalab/core-components-link": "^5.3.2",
19
+ "@alfalab/core-components-spinner": "^4.0.1",
20
20
  "@alfalab/icons-glyph": "^2.189.0",
21
- "@alfalab/core-components-typography": "^4.11.0",
22
- "classnames": "^2.3.1",
21
+ "@alfalab/core-components-typography": "^4.11.1",
22
+ "classnames": "^2.5.1",
23
23
  "tslib": "^2.4.0"
24
24
  },
25
25
  "themesVersion": "13.6.0",
@@ -1,6 +1,6 @@
1
1
  import React, { useContext } from 'react';
2
2
 
3
- import { Typography } from '@alfalab/core-components-typography';
3
+ import { Text } from '@alfalab/core-components-typography';
4
4
 
5
5
  import { FileUploadItemContext } from '../../../../context/file-upload-item-context';
6
6
 
@@ -11,9 +11,9 @@ export const ContentError = () => {
11
11
 
12
12
  if (typeof error === 'string' && error.length > 0) {
13
13
  return (
14
- <Typography.Text className={styles.errorItem} view='primary-small' color='negative'>
14
+ <Text className={styles.errorItem} view='primary-small' color='negative'>
15
15
  {error}
16
- </Typography.Text>
16
+ </Text>
17
17
  );
18
18
  }
19
19
 
@@ -21,22 +21,22 @@ export const ContentError = () => {
21
21
  return (
22
22
  <div>
23
23
  {error.map((item) => (
24
- <Typography.Text
24
+ <Text
25
25
  key={item}
26
26
  className={styles.errorItem}
27
27
  view='primary-small'
28
28
  color='negative'
29
29
  >
30
30
  {item}
31
- </Typography.Text>
31
+ </Text>
32
32
  ))}
33
33
  </div>
34
34
  );
35
35
  }
36
36
 
37
37
  return (
38
- <Typography.Text className={styles.errorItem} view='primary-small' color='negative'>
38
+ <Text className={styles.errorItem} view='primary-small' color='negative'>
39
39
  Не удалось загрузить файл
40
- </Typography.Text>
40
+ </Text>
41
41
  );
42
42
  };
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- import { Typography } from '@alfalab/core-components-typography';
4
+ import { Text } from '@alfalab/core-components-typography';
5
5
 
6
6
  import { MAX_PROGRESS_BAR_VALUE } from '../../../../const/progress-bar';
7
7
  import { FileUploadItemContext } from '../../../../context/file-upload-item-context';
@@ -39,10 +39,10 @@ export const ContentSubtitle = () => {
39
39
  // uploading status
40
40
  if (isUploadingStatus(uploadStatus)) {
41
41
  return (
42
- <Typography.Text view='primary-small' color='secondary'>
42
+ <Text view='primary-small' color='secondary'>
43
43
  Загрузка{'\u00A0'}
44
44
  {Math.floor(validProgressBar)}%
45
- </Typography.Text>
45
+ </Text>
46
46
  );
47
47
  }
48
48
 
@@ -56,14 +56,14 @@ export const ContentSubtitle = () => {
56
56
  return (
57
57
  <div>
58
58
  {size && (
59
- <Typography.Text className={styles.size} view='primary-small' color='secondary'>
59
+ <Text className={styles.size} view='primary-small' color='secondary'>
60
60
  {humanFileSize(size)}
61
- </Typography.Text>
61
+ </Text>
62
62
  )}
63
63
  {uploadDate && (
64
- <Typography.Text view='primary-small' color='secondary'>
64
+ <Text view='primary-small' color='secondary'>
65
65
  {uploadDate}
66
- </Typography.Text>
66
+ </Text>
67
67
  )}
68
68
  </div>
69
69
  );
@@ -72,14 +72,14 @@ export const ContentSubtitle = () => {
72
72
  // restore status
73
73
  if (showRestore) {
74
74
  return (
75
- <Typography.Text view='primary-small' color='tertiary'>
75
+ <Text view='primary-small' color='tertiary'>
76
76
  Файл удален
77
- </Typography.Text>
77
+ </Text>
78
78
  );
79
79
  }
80
80
 
81
81
  return (
82
- <Typography.Text
82
+ <Text
83
83
  className={cn(styles.subtitle, {
84
84
  [styles.truncate]: truncate,
85
85
  })}
@@ -87,6 +87,6 @@ export const ContentSubtitle = () => {
87
87
  color='secondary'
88
88
  >
89
89
  {subtitle}
90
- </Typography.Text>
90
+ </Text>
91
91
  );
92
92
  };
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- import { Typography } from '@alfalab/core-components-typography';
4
+ import { Text } from '@alfalab/core-components-typography';
5
5
 
6
6
  import { FileUploadItemContext } from '../../context/file-upload-item-context';
7
7
 
@@ -29,7 +29,7 @@ export const Content = () => {
29
29
  })}
30
30
  >
31
31
  {title && (
32
- <Typography.Text
32
+ <Text
33
33
  className={cn(styles.title, {
34
34
  [styles.truncate]: truncate,
35
35
  [styles.restore]: showRestore,
@@ -38,7 +38,7 @@ export const Content = () => {
38
38
  color='primary'
39
39
  >
40
40
  {title}
41
- </Typography.Text>
41
+ </Text>
42
42
  )}
43
43
  <ContentSubtitle />
44
44
  </div>
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {"container":"file-upload-item__container_rpv6d","icon":"file-upload-item__icon_rpv6d","deleteIconColor":"file-upload-item__deleteIconColor_rpv6d","downloadIconColor":"file-upload-item__downloadIconColor_rpv6d","restoreIconColor":"file-upload-item__restoreIconColor_rpv6d"};
4
- require('./components/actions-control/actions-control.css')
5
-
6
- exports.styles = styles;
@@ -1,4 +0,0 @@
1
- var styles = {"container":"file-upload-item__container_rpv6d","icon":"file-upload-item__icon_rpv6d","deleteIconColor":"file-upload-item__deleteIconColor_rpv6d","downloadIconColor":"file-upload-item__downloadIconColor_rpv6d","restoreIconColor":"file-upload-item__restoreIconColor_rpv6d"};
2
- require('./components/actions-control/actions-control.css')
3
-
4
- export { styles as s };
@@ -1,4 +0,0 @@
1
- const styles = {"container":"file-upload-item__container_rpv6d","icon":"file-upload-item__icon_rpv6d","deleteIconColor":"file-upload-item__deleteIconColor_rpv6d","downloadIconColor":"file-upload-item__downloadIconColor_rpv6d","restoreIconColor":"file-upload-item__restoreIconColor_rpv6d"};
2
- require('./components/actions-control/actions-control.css')
3
-
4
- export { styles as s };