@alfalab/core-components-file-upload-item 7.0.1 → 7.0.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.
Files changed (117) hide show
  1. package/components/actions-control/actions-control.css +12 -12
  2. package/components/actions-control/actions-control.module.css.js +1 -1
  3. package/components/actions-control/actions-control.module.css.js.map +1 -1
  4. package/components/actions-control/components/delete-button/delete-button.js.map +1 -1
  5. package/components/actions-control/components/download-button/download-button.js.map +1 -1
  6. package/components/content/components/content-error/content-error.css +1 -1
  7. package/components/content/components/content-error/content-error.module.css.js +1 -1
  8. package/components/content/components/content-subtitle/content-subtitle.css +4 -4
  9. package/components/content/components/content-subtitle/content-subtitle.module.css.js +1 -1
  10. package/components/content/components/content-subtitle/content-subtitle.module.css.js.map +1 -1
  11. package/components/content/content.css +10 -10
  12. package/components/content/content.module.css.js +1 -1
  13. package/components/content/content.module.css.js.map +1 -1
  14. package/components/status-control/extension-icon/index.css +5 -5
  15. package/components/status-control/extension-icon/index.module.css.js +1 -1
  16. package/components/status-control/extension-icon/index.module.css.js.map +1 -1
  17. package/components/status-control/index.css +9 -9
  18. package/components/status-control/index.module.css.js +1 -1
  19. package/components/status-control/index.module.css.js.map +1 -1
  20. package/components/status-control/progress-bar/index.d.ts +1 -1
  21. package/components/status-control/progress-bar/index.js.map +1 -1
  22. package/context/file-upload-item-context.d.ts +1 -1
  23. package/context/file-upload-item-context.js.map +1 -1
  24. package/cssm/components/actions-control/actions-control.module.css +4 -4
  25. package/cssm/components/actions-control/components/delete-button/delete-button.js.map +1 -1
  26. package/cssm/components/actions-control/components/download-button/download-button.js.map +1 -1
  27. package/cssm/components/content/components/content-subtitle/content-subtitle.module.css +1 -1
  28. package/cssm/components/content/content.module.css +3 -3
  29. package/cssm/components/status-control/index.module.css +2 -2
  30. package/cssm/components/status-control/progress-bar/index.d.ts +1 -1
  31. package/cssm/components/status-control/progress-bar/index.js.map +1 -1
  32. package/cssm/context/file-upload-item-context.d.ts +1 -1
  33. package/cssm/context/file-upload-item-context.js.map +1 -1
  34. package/cssm/types/file-upload-item-props.d.ts +2 -2
  35. package/esm/components/actions-control/actions-control.css +12 -12
  36. package/esm/components/actions-control/actions-control.module.css.js +1 -1
  37. package/esm/components/actions-control/actions-control.module.css.js.map +1 -1
  38. package/esm/components/actions-control/components/delete-button/delete-button.js.map +1 -1
  39. package/esm/components/actions-control/components/download-button/download-button.js.map +1 -1
  40. package/esm/components/content/components/content-error/content-error.css +1 -1
  41. package/esm/components/content/components/content-error/content-error.module.css.js +1 -1
  42. package/esm/components/content/components/content-subtitle/content-subtitle.css +4 -4
  43. package/esm/components/content/components/content-subtitle/content-subtitle.module.css.js +1 -1
  44. package/esm/components/content/components/content-subtitle/content-subtitle.module.css.js.map +1 -1
  45. package/esm/components/content/content.css +10 -10
  46. package/esm/components/content/content.module.css.js +1 -1
  47. package/esm/components/content/content.module.css.js.map +1 -1
  48. package/esm/components/status-control/extension-icon/index.css +5 -5
  49. package/esm/components/status-control/extension-icon/index.module.css.js +1 -1
  50. package/esm/components/status-control/extension-icon/index.module.css.js.map +1 -1
  51. package/esm/components/status-control/index.css +9 -9
  52. package/esm/components/status-control/index.module.css.js +1 -1
  53. package/esm/components/status-control/index.module.css.js.map +1 -1
  54. package/esm/components/status-control/progress-bar/index.d.ts +1 -1
  55. package/esm/components/status-control/progress-bar/index.js.map +1 -1
  56. package/esm/context/file-upload-item-context.d.ts +1 -1
  57. package/esm/context/file-upload-item-context.js.map +1 -1
  58. package/esm/index.css +2 -2
  59. package/esm/index.module.css.js +1 -1
  60. package/esm/index.module.css.js.map +1 -1
  61. package/esm/types/file-upload-item-props.d.ts +2 -2
  62. package/index.css +2 -2
  63. package/index.module.css.js +1 -1
  64. package/index.module.css.js.map +1 -1
  65. package/modern/components/actions-control/actions-control.css +12 -12
  66. package/modern/components/actions-control/actions-control.module.css.js +1 -1
  67. package/modern/components/actions-control/actions-control.module.css.js.map +1 -1
  68. package/modern/components/actions-control/components/delete-button/delete-button.js.map +1 -1
  69. package/modern/components/actions-control/components/download-button/download-button.js.map +1 -1
  70. package/modern/components/content/components/content-error/content-error.css +1 -1
  71. package/modern/components/content/components/content-error/content-error.module.css.js +1 -1
  72. package/modern/components/content/components/content-subtitle/content-subtitle.css +4 -4
  73. package/modern/components/content/components/content-subtitle/content-subtitle.module.css.js +1 -1
  74. package/modern/components/content/components/content-subtitle/content-subtitle.module.css.js.map +1 -1
  75. package/modern/components/content/content.css +10 -10
  76. package/modern/components/content/content.module.css.js +1 -1
  77. package/modern/components/content/content.module.css.js.map +1 -1
  78. package/modern/components/status-control/extension-icon/index.css +5 -5
  79. package/modern/components/status-control/extension-icon/index.module.css.js +1 -1
  80. package/modern/components/status-control/extension-icon/index.module.css.js.map +1 -1
  81. package/modern/components/status-control/index.css +9 -9
  82. package/modern/components/status-control/index.module.css.js +1 -1
  83. package/modern/components/status-control/index.module.css.js.map +1 -1
  84. package/modern/components/status-control/progress-bar/index.d.ts +1 -1
  85. package/modern/components/status-control/progress-bar/index.js.map +1 -1
  86. package/modern/context/file-upload-item-context.d.ts +1 -1
  87. package/modern/context/file-upload-item-context.js.map +1 -1
  88. package/modern/index.css +2 -2
  89. package/modern/index.module.css.js +1 -1
  90. package/modern/index.module.css.js.map +1 -1
  91. package/modern/types/file-upload-item-props.d.ts +2 -2
  92. package/moderncssm/components/actions-control/actions-control.module.css +6 -4
  93. package/moderncssm/components/actions-control/components/delete-button/delete-button.js.map +1 -1
  94. package/moderncssm/components/actions-control/components/download-button/download-button.js.map +1 -1
  95. package/moderncssm/components/content/components/content-subtitle/content-subtitle.module.css +3 -1
  96. package/moderncssm/components/content/content.module.css +5 -9
  97. package/moderncssm/components/status-control/extension-icon/index.module.css +5 -0
  98. package/moderncssm/components/status-control/index.module.css +4 -7
  99. package/moderncssm/components/status-control/progress-bar/index.d.ts +1 -1
  100. package/moderncssm/components/status-control/progress-bar/index.js.map +1 -1
  101. package/moderncssm/context/file-upload-item-context.d.ts +1 -1
  102. package/moderncssm/context/file-upload-item-context.js.map +1 -1
  103. package/moderncssm/index.module.css +2 -0
  104. package/moderncssm/types/file-upload-item-props.d.ts +2 -2
  105. package/package.json +3 -3
  106. package/src/components/actions-control/actions-control.module.css +1 -1
  107. package/src/components/actions-control/components/delete-button/delete-button.tsx +1 -1
  108. package/src/components/actions-control/components/download-button/download-button.tsx +1 -1
  109. package/src/components/content/components/content-subtitle/content-subtitle.module.css +1 -1
  110. package/src/components/content/content.module.css +1 -1
  111. package/src/components/status-control/extension-icon/index.module.css +1 -1
  112. package/src/components/status-control/index.module.css +1 -1
  113. package/src/components/status-control/progress-bar/index.tsx +1 -1
  114. package/src/context/{file-upload-item-context.tsx → file-upload-item-context.ts} +6 -1
  115. package/src/index.module.css +1 -1
  116. package/src/types/file-upload-item-props.ts +7 -2
  117. package/types/file-upload-item-props.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/status-control/progress-bar/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\ntype Props = {\n className: string;\n strokeDasharray: number;\n strokeDashoffset: number;\n};\n\nexport const ProgressBar: FC<Props> = (props) => {\n const { className, strokeDasharray, strokeDashoffset } = props;\n\n return (\n <svg\n className={className}\n width='56'\n height='56'\n viewBox='0 0 56 56'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n >\n <path\n d='M28 1C32.7738 1 36.7752 1.34174 40.0029 1.80371C47.4798 2.87385 53.1262 8.52019 54.1963 15.9971C54.6583 19.2248 55 23.2262 55 28C55 32.7738 54.6583 36.7752 54.1963 40.0029C53.1262 47.4798 47.4798 53.1262 40.0029 54.1963C36.7752 54.6583 32.7738 55 28 55C23.2262 55 19.2248 54.6583 15.9971 54.1963C8.5202 53.1262 2.87385 47.4798 1.80371 40.0029C1.34175 36.7752 1 32.7738 1 28C1 23.2262 1.34174 19.2248 1.80371 15.9971C2.87385 8.5202 8.5202 2.87385 15.9971 1.80371C19.2248 1.34174 23.2262 1 28 1Z'\n stroke='#babbc2'\n strokeWidth='2'\n strokeDasharray={strokeDasharray}\n strokeDashoffset={strokeDashoffset}\n />\n </svg>\n );\n};\n"],"names":[],"mappings":";;AAQa,MAAA,WAAW,GAAc,CAAC,KAAK,KAAI;IAC5C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,KAAK;IAE9D,QACI,KACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAAA;QAElC,KACI,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,+eAA+e,EACjf,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EACf,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAAA,CACpC,CACA;AAEd;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/status-control/progress-bar/index.tsx"],"sourcesContent":["import React, { type FC } from 'react';\n\ntype Props = {\n className: string;\n strokeDasharray: number;\n strokeDashoffset: number;\n};\n\nexport const ProgressBar: FC<Props> = (props) => {\n const { className, strokeDasharray, strokeDashoffset } = props;\n\n return (\n <svg\n className={className}\n width='56'\n height='56'\n viewBox='0 0 56 56'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n >\n <path\n d='M28 1C32.7738 1 36.7752 1.34174 40.0029 1.80371C47.4798 2.87385 53.1262 8.52019 54.1963 15.9971C54.6583 19.2248 55 23.2262 55 28C55 32.7738 54.6583 36.7752 54.1963 40.0029C53.1262 47.4798 47.4798 53.1262 40.0029 54.1963C36.7752 54.6583 32.7738 55 28 55C23.2262 55 19.2248 54.6583 15.9971 54.1963C8.5202 53.1262 2.87385 47.4798 1.80371 40.0029C1.34175 36.7752 1 32.7738 1 28C1 23.2262 1.34174 19.2248 1.80371 15.9971C2.87385 8.5202 8.5202 2.87385 15.9971 1.80371C19.2248 1.34174 23.2262 1 28 1Z'\n stroke='#babbc2'\n strokeWidth='2'\n strokeDasharray={strokeDasharray}\n strokeDashoffset={strokeDashoffset}\n />\n </svg>\n );\n};\n"],"names":[],"mappings":";;AAQa,MAAA,WAAW,GAAc,CAAC,KAAK,KAAI;IAC5C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,KAAK;IAE9D,QACI,KACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAAA;QAElC,KACI,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,+eAA+e,EACjf,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EACf,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAAA,CACpC,CACA;AAEd;;;;"}
@@ -1,4 +1,4 @@
1
- import { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import { type ElementType, type HTMLAttributeAnchorTarget, type MouseEvent } from 'react';
2
2
  import { type FileUploadItemStatus } from '../types/status';
3
3
  declare type TFileUploadItemContext = {
4
4
  showRestore?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"file-upload-item-context.js","sources":["../../src/context/file-upload-item-context.tsx"],"sourcesContent":["import { createContext, ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';\n\nimport { type FileUploadItemStatus } from '../types/status';\n\ntype TFileUploadItemContext = {\n showRestore?: boolean;\n uploadStatus?: FileUploadItemStatus;\n error?: string | string[];\n title?: string;\n subtitle?: string;\n uploadDate?: string;\n size?: string | number;\n id?: string;\n onDownload?: (id: string) => void;\n onDelete?: (id: string, event?: MouseEvent<HTMLElement>) => void;\n onRestore?: (id: string) => void;\n downloadLink?: string;\n download?: string | true;\n disableButtons?: boolean;\n isClickable?: boolean;\n target?: HTMLAttributeAnchorTarget;\n showDelete?: boolean;\n customIcon?: ElementType<{ className?: string }>;\n iconStyle?: 'gray' | 'colored';\n progressBar?: number;\n customContent?: ElementType;\n truncate?: boolean;\n imageUrl?: string;\n actionsPresent?: boolean;\n setActionsPresent?: (present: boolean) => void;\n};\n\nexport const FileUploadItemContext = createContext<TFileUploadItemContext>({\n showRestore: false,\n uploadStatus: 'INITIAL',\n error: undefined,\n title: '',\n subtitle: '',\n uploadDate: '',\n size: 0,\n id: '0',\n onDownload: undefined,\n onDelete: undefined,\n onRestore: undefined,\n downloadLink: '',\n download: '',\n disableButtons: false,\n isClickable: true,\n target: undefined,\n showDelete: false,\n iconStyle: 'gray',\n customIcon: undefined,\n progressBar: 0,\n customContent: undefined,\n truncate: false,\n imageUrl: undefined,\n actionsPresent: false,\n setActionsPresent: undefined,\n});\n"],"names":[],"mappings":";;AAgCO,MAAM,qBAAqB,GAAG,aAAa,CAAyB;AACvE,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,YAAY,EAAE,SAAS;AACvB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,aAAa,EAAE,SAAS;AACxB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,SAAS;AAC/B,CAAA;;;;"}
1
+ {"version":3,"file":"file-upload-item-context.js","sources":["../../src/context/file-upload-item-context.ts"],"sourcesContent":["import {\n createContext,\n type ElementType,\n type HTMLAttributeAnchorTarget,\n type MouseEvent,\n} from 'react';\n\nimport { type FileUploadItemStatus } from '../types/status';\n\ntype TFileUploadItemContext = {\n showRestore?: boolean;\n uploadStatus?: FileUploadItemStatus;\n error?: string | string[];\n title?: string;\n subtitle?: string;\n uploadDate?: string;\n size?: string | number;\n id?: string;\n onDownload?: (id: string) => void;\n onDelete?: (id: string, event?: MouseEvent<HTMLElement>) => void;\n onRestore?: (id: string) => void;\n downloadLink?: string;\n download?: string | true;\n disableButtons?: boolean;\n isClickable?: boolean;\n target?: HTMLAttributeAnchorTarget;\n showDelete?: boolean;\n customIcon?: ElementType<{ className?: string }>;\n iconStyle?: 'gray' | 'colored';\n progressBar?: number;\n customContent?: ElementType;\n truncate?: boolean;\n imageUrl?: string;\n actionsPresent?: boolean;\n setActionsPresent?: (present: boolean) => void;\n};\n\nexport const FileUploadItemContext = createContext<TFileUploadItemContext>({\n showRestore: false,\n uploadStatus: 'INITIAL',\n error: undefined,\n title: '',\n subtitle: '',\n uploadDate: '',\n size: 0,\n id: '0',\n onDownload: undefined,\n onDelete: undefined,\n onRestore: undefined,\n downloadLink: '',\n download: '',\n disableButtons: false,\n isClickable: true,\n target: undefined,\n showDelete: false,\n iconStyle: 'gray',\n customIcon: undefined,\n progressBar: 0,\n customContent: undefined,\n truncate: false,\n imageUrl: undefined,\n actionsPresent: false,\n setActionsPresent: undefined,\n});\n"],"names":[],"mappings":";;AAqCO,MAAM,qBAAqB,GAAG,aAAa,CAAyB;AACvE,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,YAAY,EAAE,SAAS;AACvB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,aAAa,EAAE,SAAS;AACxB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,SAAS;AAC/B,CAAA;;;;"}
package/modern/index.css CHANGED
@@ -3,13 +3,13 @@
3
3
  --gap-s: 12px;
4
4
  --gap-2: var(--gap-3xs);
5
5
  --gap-12: var(--gap-s);
6
- } .file-upload-item__component_1abzh {
6
+ } .file-upload-item__component_t29wh {
7
7
  box-sizing: border-box;
8
8
  display: flex;
9
9
  align-items: flex-start;
10
10
  width: 100%;
11
11
  min-height: 48px;
12
- } .file-upload-item__restore_1abzh {
12
+ } .file-upload-item__restore_t29wh {
13
13
  margin-left: var(--gap-12);
14
14
  margin-top: var(--gap-2);
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"file-upload-item__component_1abzh","restore":"file-upload-item__restore_1abzh"};
3
+ const styles = {"component":"file-upload-item__component_t29wh","restore":"file-upload-item__restore_t29wh"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n width: 100%;\n min-height: 48px;\n}\n\n.restore {\n margin-left: var(--gap-12);\n margin-top: var(--gap-2);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,mCAAmC,CAAC,SAAS,CAAC,iCAAiC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n width: 100%;\n min-height: 48px;\n}\n\n.restore {\n margin-left: var(--gap-12);\n margin-top: var(--gap-2);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,mCAAmC,CAAC,SAAS,CAAC,iCAAiC,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import React, { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import { type ElementType, type HTMLAttributeAnchorTarget, type MouseEvent, type ReactNode } from 'react';
2
2
  import { type FileUploadItemStatus } from './status';
3
3
  export declare type FileUploadItemProps = {
4
4
  /**
@@ -53,7 +53,7 @@ export declare type FileUploadItemProps = {
53
53
  /**
54
54
  * Дочерние элементы
55
55
  */
56
- children?: React.ReactNode;
56
+ children?: ReactNode;
57
57
  /**
58
58
  * Обработчик загрузки файла
59
59
  */
@@ -1,6 +1,8 @@
1
+
2
+
1
3
  .container {
2
4
  display: flex;
3
- max-width: 144px
5
+ max-width: 144px;
4
6
  }
5
7
 
6
8
  .container .icon {
@@ -9,7 +11,7 @@
9
11
  }
10
12
 
11
13
  .deleteIconColor {
12
- fill: var(--color-light-text-tertiary)
14
+ fill: var(--color-light-text-tertiary);
13
15
  }
14
16
 
15
17
  .deleteIconColor:hover {
@@ -17,7 +19,7 @@
17
19
  }
18
20
 
19
21
  .downloadIconColor {
20
- fill: var(--color-light-text-tertiary)
22
+ fill: var(--color-light-text-tertiary);
21
23
  }
22
24
 
23
25
  .downloadIconColor:hover {
@@ -25,7 +27,7 @@
25
27
  }
26
28
 
27
29
  .restoreIconColor {
28
- fill: var(--color-light-text-tertiary)
30
+ fill: var(--color-light-text-tertiary);
29
31
  }
30
32
 
31
33
  .restoreIconColor:hover {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-button.js","sources":["../../../../../src/components/actions-control/components/delete-button/delete-button.tsx"],"sourcesContent":["import React, { MouseEvent, useContext } from 'react';\n\nimport { IconButton } from '@alfalab/core-components-icon-button';\nimport CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';\n\nimport { FileUploadItemContext } from '../../../../context/file-upload-item-context';\n\nimport styles from '../../actions-control.module.css';\n\nexport const DeleteButton = () => {\n const { id = '0', disableButtons, onDelete } = useContext(FileUploadItemContext);\n\n const handleDelete = (e: MouseEvent<HTMLElement>) => {\n if (onDelete) {\n onDelete(id, e);\n }\n };\n\n return (\n <IconButton\n className={styles.icon}\n size='xxs'\n aria-label='удалить'\n icon={<CrossMIcon className={styles.deleteIconColor} />}\n disabled={disableButtons}\n onClick={handleDelete}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AASO,MAAM,YAAY,GAAG,MAAK;AAC7B,IAAA,MAAM,EAAE,EAAE,GAAG,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC;AAEhF,IAAA,MAAM,YAAY,GAAG,CAAC,CAA0B,KAAI;AAChD,QAAA,IAAI,QAAQ,EAAE;AACV,YAAA,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;AAClB;AACL,KAAC;AAED,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,UAAU,EACP,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,IAAI,EAAC,KAAK,EACC,YAAA,EAAA,4CAAS,EACpB,IAAI,EAAE,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,eAAe,EAAI,CAAA,EACvD,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EAAA,CACvB;AAEV;;;;"}
1
+ {"version":3,"file":"delete-button.js","sources":["../../../../../src/components/actions-control/components/delete-button/delete-button.tsx"],"sourcesContent":["import React, { type MouseEvent, useContext } from 'react';\n\nimport { IconButton } from '@alfalab/core-components-icon-button';\nimport CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';\n\nimport { FileUploadItemContext } from '../../../../context/file-upload-item-context';\n\nimport styles from '../../actions-control.module.css';\n\nexport const DeleteButton = () => {\n const { id = '0', disableButtons, onDelete } = useContext(FileUploadItemContext);\n\n const handleDelete = (e: MouseEvent<HTMLElement>) => {\n if (onDelete) {\n onDelete(id, e);\n }\n };\n\n return (\n <IconButton\n className={styles.icon}\n size='xxs'\n aria-label='удалить'\n icon={<CrossMIcon className={styles.deleteIconColor} />}\n disabled={disableButtons}\n onClick={handleDelete}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AASO,MAAM,YAAY,GAAG,MAAK;AAC7B,IAAA,MAAM,EAAE,EAAE,GAAG,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC;AAEhF,IAAA,MAAM,YAAY,GAAG,CAAC,CAA0B,KAAI;AAChD,QAAA,IAAI,QAAQ,EAAE;AACV,YAAA,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;AAClB;AACL,KAAC;AAED,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,UAAU,EACP,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,IAAI,EAAC,KAAK,EACC,YAAA,EAAA,4CAAS,EACpB,IAAI,EAAE,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,SAAS,EAAE,MAAM,CAAC,eAAe,EAAI,CAAA,EACvD,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EAAA,CACvB;AAEV;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"download-button.js","sources":["../../../../../src/components/actions-control/components/download-button/download-button.tsx"],"sourcesContent":["import React, { MouseEvent, useContext } from 'react';\n\nimport { IconButton } from '@alfalab/core-components-icon-button';\nimport ArrowDownLineDownCompactMIcon from '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';\n\nimport { FileUploadItemContext } from '../../../../context/file-upload-item-context';\n\nimport styles from '../../actions-control.module.css';\n\nexport const DownloadButton = () => {\n const {\n id = '0',\n downloadLink,\n download,\n disableButtons,\n target,\n onDownload,\n } = useContext(FileUploadItemContext);\n\n const handleDownload = (e: MouseEvent<HTMLElement>) => {\n if (onDownload) {\n e.preventDefault();\n onDownload(id);\n }\n };\n\n return (\n <IconButton\n className={styles.icon}\n size='xxs'\n aria-label='скачать'\n icon={<ArrowDownLineDownCompactMIcon className={styles.downloadIconColor} />}\n disabled={disableButtons}\n href={downloadLink}\n download={download}\n target={target}\n onClick={handleDownload}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AASO,MAAM,cAAc,GAAG,MAAK;IAC/B,MAAM,EACF,EAAE,GAAG,GAAG,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,MAAM,EACN,UAAU,GACb,GAAG,UAAU,CAAC,qBAAqB,CAAC;AAErC,IAAA,MAAM,cAAc,GAAG,CAAC,CAA0B,KAAI;AAClD,QAAA,IAAI,UAAU,EAAE;YACZ,CAAC,CAAC,cAAc,EAAE;YAClB,UAAU,CAAC,EAAE,CAAC;AACjB;AACL,KAAC;IAED,QACI,oBAAC,UAAU,EAAA,EACP,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,IAAI,EAAC,KAAK,EAAA,YAAA,EACC,4CAAS,EACpB,IAAI,EAAE,KAAC,CAAA,aAAA,CAAA,6BAA6B,EAAC,EAAA,SAAS,EAAE,MAAM,CAAC,iBAAiB,EAAA,CAAI,EAC5E,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,EACzB,CAAA;AAEV;;;;"}
1
+ {"version":3,"file":"download-button.js","sources":["../../../../../src/components/actions-control/components/download-button/download-button.tsx"],"sourcesContent":["import React, { type MouseEvent, useContext } from 'react';\n\nimport { IconButton } from '@alfalab/core-components-icon-button';\nimport ArrowDownLineDownCompactMIcon from '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';\n\nimport { FileUploadItemContext } from '../../../../context/file-upload-item-context';\n\nimport styles from '../../actions-control.module.css';\n\nexport const DownloadButton = () => {\n const {\n id = '0',\n downloadLink,\n download,\n disableButtons,\n target,\n onDownload,\n } = useContext(FileUploadItemContext);\n\n const handleDownload = (e: MouseEvent<HTMLElement>) => {\n if (onDownload) {\n e.preventDefault();\n onDownload(id);\n }\n };\n\n return (\n <IconButton\n className={styles.icon}\n size='xxs'\n aria-label='скачать'\n icon={<ArrowDownLineDownCompactMIcon className={styles.downloadIconColor} />}\n disabled={disableButtons}\n href={downloadLink}\n download={download}\n target={target}\n onClick={handleDownload}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AASO,MAAM,cAAc,GAAG,MAAK;IAC/B,MAAM,EACF,EAAE,GAAG,GAAG,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,MAAM,EACN,UAAU,GACb,GAAG,UAAU,CAAC,qBAAqB,CAAC;AAErC,IAAA,MAAM,cAAc,GAAG,CAAC,CAA0B,KAAI;AAClD,QAAA,IAAI,UAAU,EAAE;YACZ,CAAC,CAAC,cAAc,EAAE;YAClB,UAAU,CAAC,EAAE,CAAC;AACjB;AACL,KAAC;IAED,QACI,oBAAC,UAAU,EAAA,EACP,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,IAAI,EAAC,KAAK,EAAA,YAAA,EACC,4CAAS,EACpB,IAAI,EAAE,KAAC,CAAA,aAAA,CAAA,6BAA6B,EAAC,EAAA,SAAS,EAAE,MAAM,CAAC,iBAAiB,EAAA,CAAI,EAC5E,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,EACzB,CAAA;AAEV;;;;"}
@@ -1,5 +1,7 @@
1
+
2
+
1
3
  .subtitle {
2
- display: block
4
+ display: block;
3
5
  }
4
6
 
5
7
  .subtitle.truncate {
@@ -1,37 +1,33 @@
1
+
2
+
1
3
  .container {
2
4
  padding: var(--gap-2) 0 0 var(--gap-16);
3
5
  flex-grow: 1;
4
- min-width: 0
6
+ min-width: 0;
5
7
  }
6
-
7
8
  .container.clickable {
8
9
  cursor: pointer;
9
10
  }
10
-
11
11
  .container.single {
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  justify-content: center;
15
15
  padding-top: 0;
16
- min-height: 48px
16
+ min-height: 48px;
17
17
  }
18
-
19
18
  .container.single .title {
20
19
  margin-bottom: 0;
21
20
  }
22
-
23
21
  .container .title {
24
22
  margin-bottom: var(--gap-4);
25
23
  display: block;
26
- overflow-wrap: break-word
24
+ overflow-wrap: break-word;
27
25
  }
28
-
29
26
  .container .title.truncate {
30
27
  white-space: nowrap;
31
28
  overflow: hidden;
32
29
  text-overflow: ellipsis;
33
30
  }
34
-
35
31
  .container .title.restore {
36
32
  color: var(--color-light-text-tertiary);
37
33
  }
@@ -4,18 +4,23 @@
4
4
  --color-light-decorative-orange: #fa9313;
5
5
  --color-light-decorative-red: #fe5e48;
6
6
  }
7
+
7
8
  .iconPDFColored {
8
9
  fill: var(--color-light-decorative-red);
9
10
  }
11
+
10
12
  .iconDOCColored {
11
13
  fill: var(--color-light-decorative-blue);
12
14
  }
15
+
13
16
  .iconExcelColored {
14
17
  fill: var(--color-light-decorative-green);
15
18
  }
19
+
16
20
  .icon1CColored {
17
21
  fill: var(--color-light-decorative-orange);
18
22
  }
23
+
19
24
  .iconDocumentColored {
20
25
  fill: var(--color-light-neutral-translucent-1300);
21
26
  }
@@ -1,29 +1,26 @@
1
+
2
+
1
3
  .container {
2
- position: relative
4
+ position: relative;
3
5
  }
4
-
5
6
  .container.clickable {
6
7
  cursor: pointer;
7
8
  }
8
-
9
9
  .container .progress {
10
10
  position: absolute;
11
11
  top: var(--gap-4-neg);
12
12
  left: var(--gap-4-neg);
13
13
  z-index: 1;
14
- will-change: opacity
14
+ will-change: opacity;
15
15
  }
16
-
17
16
  .container .progress.success,
18
17
  .container .progress.error {
19
18
  transition: opacity 400ms ease-in;
20
19
  opacity: 0;
21
20
  }
22
-
23
21
  .container .progress.success path {
24
22
  stroke: var(--color-light-status-positive);
25
23
  }
26
-
27
24
  .container .progress.error path {
28
25
  stroke: var(--color-light-status-negative);
29
26
  }
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  declare type Props = {
3
3
  className: string;
4
4
  strokeDasharray: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/status-control/progress-bar/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\ntype Props = {\n className: string;\n strokeDasharray: number;\n strokeDashoffset: number;\n};\n\nexport const ProgressBar: FC<Props> = (props) => {\n const { className, strokeDasharray, strokeDashoffset } = props;\n\n return (\n <svg\n className={className}\n width='56'\n height='56'\n viewBox='0 0 56 56'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n >\n <path\n d='M28 1C32.7738 1 36.7752 1.34174 40.0029 1.80371C47.4798 2.87385 53.1262 8.52019 54.1963 15.9971C54.6583 19.2248 55 23.2262 55 28C55 32.7738 54.6583 36.7752 54.1963 40.0029C53.1262 47.4798 47.4798 53.1262 40.0029 54.1963C36.7752 54.6583 32.7738 55 28 55C23.2262 55 19.2248 54.6583 15.9971 54.1963C8.5202 53.1262 2.87385 47.4798 1.80371 40.0029C1.34175 36.7752 1 32.7738 1 28C1 23.2262 1.34174 19.2248 1.80371 15.9971C2.87385 8.5202 8.5202 2.87385 15.9971 1.80371C19.2248 1.34174 23.2262 1 28 1Z'\n stroke='#babbc2'\n strokeWidth='2'\n strokeDasharray={strokeDasharray}\n strokeDashoffset={strokeDashoffset}\n />\n </svg>\n );\n};\n"],"names":[],"mappings":";;AAQa,MAAA,WAAW,GAAc,CAAC,KAAK,KAAI;IAC5C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,KAAK;IAE9D,QACI,KACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAAA;QAElC,KACI,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,+eAA+e,EACjf,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EACf,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAAA,CACpC,CACA;AAEd;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/status-control/progress-bar/index.tsx"],"sourcesContent":["import React, { type FC } from 'react';\n\ntype Props = {\n className: string;\n strokeDasharray: number;\n strokeDashoffset: number;\n};\n\nexport const ProgressBar: FC<Props> = (props) => {\n const { className, strokeDasharray, strokeDashoffset } = props;\n\n return (\n <svg\n className={className}\n width='56'\n height='56'\n viewBox='0 0 56 56'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n >\n <path\n d='M28 1C32.7738 1 36.7752 1.34174 40.0029 1.80371C47.4798 2.87385 53.1262 8.52019 54.1963 15.9971C54.6583 19.2248 55 23.2262 55 28C55 32.7738 54.6583 36.7752 54.1963 40.0029C53.1262 47.4798 47.4798 53.1262 40.0029 54.1963C36.7752 54.6583 32.7738 55 28 55C23.2262 55 19.2248 54.6583 15.9971 54.1963C8.5202 53.1262 2.87385 47.4798 1.80371 40.0029C1.34175 36.7752 1 32.7738 1 28C1 23.2262 1.34174 19.2248 1.80371 15.9971C2.87385 8.5202 8.5202 2.87385 15.9971 1.80371C19.2248 1.34174 23.2262 1 28 1Z'\n stroke='#babbc2'\n strokeWidth='2'\n strokeDasharray={strokeDasharray}\n strokeDashoffset={strokeDashoffset}\n />\n </svg>\n );\n};\n"],"names":[],"mappings":";;AAQa,MAAA,WAAW,GAAc,CAAC,KAAK,KAAI;IAC5C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,KAAK;IAE9D,QACI,KACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAAA;QAElC,KACI,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,CAAC,EAAC,+eAA+e,EACjf,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EACf,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAAA,CACpC,CACA;AAEd;;;;"}
@@ -1,4 +1,4 @@
1
- import { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import { type ElementType, type HTMLAttributeAnchorTarget, type MouseEvent } from 'react';
2
2
  import { type FileUploadItemStatus } from '../types/status';
3
3
  declare type TFileUploadItemContext = {
4
4
  showRestore?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"file-upload-item-context.js","sources":["../../src/context/file-upload-item-context.tsx"],"sourcesContent":["import { createContext, ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';\n\nimport { type FileUploadItemStatus } from '../types/status';\n\ntype TFileUploadItemContext = {\n showRestore?: boolean;\n uploadStatus?: FileUploadItemStatus;\n error?: string | string[];\n title?: string;\n subtitle?: string;\n uploadDate?: string;\n size?: string | number;\n id?: string;\n onDownload?: (id: string) => void;\n onDelete?: (id: string, event?: MouseEvent<HTMLElement>) => void;\n onRestore?: (id: string) => void;\n downloadLink?: string;\n download?: string | true;\n disableButtons?: boolean;\n isClickable?: boolean;\n target?: HTMLAttributeAnchorTarget;\n showDelete?: boolean;\n customIcon?: ElementType<{ className?: string }>;\n iconStyle?: 'gray' | 'colored';\n progressBar?: number;\n customContent?: ElementType;\n truncate?: boolean;\n imageUrl?: string;\n actionsPresent?: boolean;\n setActionsPresent?: (present: boolean) => void;\n};\n\nexport const FileUploadItemContext = createContext<TFileUploadItemContext>({\n showRestore: false,\n uploadStatus: 'INITIAL',\n error: undefined,\n title: '',\n subtitle: '',\n uploadDate: '',\n size: 0,\n id: '0',\n onDownload: undefined,\n onDelete: undefined,\n onRestore: undefined,\n downloadLink: '',\n download: '',\n disableButtons: false,\n isClickable: true,\n target: undefined,\n showDelete: false,\n iconStyle: 'gray',\n customIcon: undefined,\n progressBar: 0,\n customContent: undefined,\n truncate: false,\n imageUrl: undefined,\n actionsPresent: false,\n setActionsPresent: undefined,\n});\n"],"names":[],"mappings":";;AAgCO,MAAM,qBAAqB,GAAG,aAAa,CAAyB;AACvE,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,YAAY,EAAE,SAAS;AACvB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,aAAa,EAAE,SAAS;AACxB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,SAAS;AAC/B,CAAA;;;;"}
1
+ {"version":3,"file":"file-upload-item-context.js","sources":["../../src/context/file-upload-item-context.ts"],"sourcesContent":["import {\n createContext,\n type ElementType,\n type HTMLAttributeAnchorTarget,\n type MouseEvent,\n} from 'react';\n\nimport { type FileUploadItemStatus } from '../types/status';\n\ntype TFileUploadItemContext = {\n showRestore?: boolean;\n uploadStatus?: FileUploadItemStatus;\n error?: string | string[];\n title?: string;\n subtitle?: string;\n uploadDate?: string;\n size?: string | number;\n id?: string;\n onDownload?: (id: string) => void;\n onDelete?: (id: string, event?: MouseEvent<HTMLElement>) => void;\n onRestore?: (id: string) => void;\n downloadLink?: string;\n download?: string | true;\n disableButtons?: boolean;\n isClickable?: boolean;\n target?: HTMLAttributeAnchorTarget;\n showDelete?: boolean;\n customIcon?: ElementType<{ className?: string }>;\n iconStyle?: 'gray' | 'colored';\n progressBar?: number;\n customContent?: ElementType;\n truncate?: boolean;\n imageUrl?: string;\n actionsPresent?: boolean;\n setActionsPresent?: (present: boolean) => void;\n};\n\nexport const FileUploadItemContext = createContext<TFileUploadItemContext>({\n showRestore: false,\n uploadStatus: 'INITIAL',\n error: undefined,\n title: '',\n subtitle: '',\n uploadDate: '',\n size: 0,\n id: '0',\n onDownload: undefined,\n onDelete: undefined,\n onRestore: undefined,\n downloadLink: '',\n download: '',\n disableButtons: false,\n isClickable: true,\n target: undefined,\n showDelete: false,\n iconStyle: 'gray',\n customIcon: undefined,\n progressBar: 0,\n customContent: undefined,\n truncate: false,\n imageUrl: undefined,\n actionsPresent: false,\n setActionsPresent: undefined,\n});\n"],"names":[],"mappings":";;AAqCO,MAAM,qBAAqB,GAAG,aAAa,CAAyB;AACvE,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,YAAY,EAAE,SAAS;AACvB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,EAAE,EAAE,GAAG;AACP,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,QAAQ,EAAE,EAAE;AACZ,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,MAAM,EAAE,SAAS;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,aAAa,EAAE,SAAS;AACxB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,SAAS;AAC/B,CAAA;;;;"}
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  .component {
2
4
  box-sizing: border-box;
3
5
  display: flex;
@@ -1,4 +1,4 @@
1
- import React, { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import { type ElementType, type HTMLAttributeAnchorTarget, type MouseEvent, type ReactNode } from 'react';
2
2
  import { type FileUploadItemStatus } from './status';
3
3
  export declare type FileUploadItemProps = {
4
4
  /**
@@ -53,7 +53,7 @@ export declare type FileUploadItemProps = {
53
53
  /**
54
54
  * Дочерние элементы
55
55
  */
56
- children?: React.ReactNode;
56
+ children?: ReactNode;
57
57
  /**
58
58
  * Обработчик загрузки файла
59
59
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-file-upload-item",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -12,8 +12,8 @@
12
12
  "dependencies": {
13
13
  "@alfalab/core-components-icon-button": "^7.0.1",
14
14
  "@alfalab/core-components-icon-view": "^4.0.0",
15
- "@alfalab/core-components-typography": "^5.0.1",
16
15
  "@alfalab/core-components-shared": "^1.1.0",
16
+ "@alfalab/core-components-typography": "^5.0.2",
17
17
  "@alfalab/icons-glyph": "^2.247.0",
18
18
  "classnames": "^2.5.1",
19
19
  "tslib": "^2.4.0"
@@ -26,6 +26,6 @@
26
26
  "access": "public",
27
27
  "directory": "dist"
28
28
  },
29
- "themesVersion": "14.1.0",
29
+ "themesVersion": "14.1.2",
30
30
  "varsVersion": "10.1.0"
31
31
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .container {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import React, { MouseEvent, useContext } from 'react';
1
+ import React, { type MouseEvent, useContext } from 'react';
2
2
 
3
3
  import { IconButton } from '@alfalab/core-components-icon-button';
4
4
  import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
@@ -1,4 +1,4 @@
1
- import React, { MouseEvent, useContext } from 'react';
1
+ import React, { type MouseEvent, useContext } from 'react';
2
2
 
3
3
  import { IconButton } from '@alfalab/core-components-icon-button';
4
4
  import ArrowDownLineDownCompactMIcon from '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .subtitle {
4
4
  display: block;
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .container {
4
4
  padding: var(--gap-2) 0 0 var(--gap-16);
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
  @import '@alfalab/core-components-vars/src/colors-decorative.css';
3
3
 
4
4
  .iconPDFColored {
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .container {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import React, { type FC } from 'react';
2
2
 
3
3
  type Props = {
4
4
  className: string;
@@ -1,4 +1,9 @@
1
- import { createContext, ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import {
2
+ createContext,
3
+ type ElementType,
4
+ type HTMLAttributeAnchorTarget,
5
+ type MouseEvent,
6
+ } from 'react';
2
7
 
3
8
  import { type FileUploadItemStatus } from '../types/status';
4
9
 
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .component {
4
4
  box-sizing: border-box;
@@ -1,4 +1,9 @@
1
- import React, { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import {
2
+ type ElementType,
3
+ type HTMLAttributeAnchorTarget,
4
+ type MouseEvent,
5
+ type ReactNode,
6
+ } from 'react';
2
7
 
3
8
  import { type FileUploadItemStatus } from './status';
4
9
 
@@ -67,7 +72,7 @@ export type FileUploadItemProps = {
67
72
  /**
68
73
  * Дочерние элементы
69
74
  */
70
- children?: React.ReactNode;
75
+ children?: ReactNode;
71
76
 
72
77
  /**
73
78
  * Обработчик загрузки файла
@@ -1,4 +1,4 @@
1
- import React, { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
1
+ import { type ElementType, type HTMLAttributeAnchorTarget, type MouseEvent, type ReactNode } from 'react';
2
2
  import { type FileUploadItemStatus } from './status';
3
3
  export declare type FileUploadItemProps = {
4
4
  /**
@@ -53,7 +53,7 @@ export declare type FileUploadItemProps = {
53
53
  /**
54
54
  * Дочерние элементы
55
55
  */
56
- children?: React.ReactNode;
56
+ children?: ReactNode;
57
57
  /**
58
58
  * Обработчик загрузки файла
59
59
  */