@alfalab/core-components 47.20.0-beta.2 → 47.20.0-beta.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.
Files changed (747) hide show
  1. package/accordion/@alfalab/icons-glyph/package.json +14 -0
  2. package/attach/@alfalab/icons-glyph/package.json +14 -0
  3. package/bank-card/@alfalab/icons-glyph/package.json +14 -0
  4. package/calendar/@alfalab/icons-glyph/package.json +14 -0
  5. package/calendar/components/calendar-mobile/Component.js +39 -42
  6. package/calendar/cssm/components/calendar-mobile/Component.js +39 -42
  7. package/calendar/cssm/utils.d.ts +1 -3
  8. package/calendar/cssm/utils.js +0 -8
  9. package/calendar/esm/Component.responsive.js +3 -3
  10. package/calendar/esm/components/calendar-mobile/Component.js +37 -46
  11. package/calendar/esm/components/calendar-mobile/index.js +3 -3
  12. package/calendar/esm/components/days-table/Component.js +0 -1
  13. package/calendar/esm/components/days-table/index.js +0 -1
  14. package/calendar/esm/components/month-year-header/Component.js +0 -1
  15. package/calendar/esm/components/month-year-header/index.js +0 -1
  16. package/calendar/esm/components/period-slider/Component.js +0 -1
  17. package/calendar/esm/components/period-slider/index.js +0 -1
  18. package/calendar/esm/components/period-slider/utils.js +0 -1
  19. package/calendar/esm/desktop/index.js +1 -1
  20. package/calendar/esm/index.js +3 -3
  21. package/calendar/esm/mobile/index.js +3 -3
  22. package/calendar/esm/shared/index.js +0 -1
  23. package/calendar/esm/useCalendar.js +0 -1
  24. package/calendar/esm/useRange.js +0 -1
  25. package/calendar/esm/utils.d.ts +1 -3
  26. package/calendar/esm/utils.js +1 -6
  27. package/calendar/modern/Component.responsive.js +3 -3
  28. package/calendar/modern/components/calendar-mobile/Component.js +37 -46
  29. package/calendar/modern/components/calendar-mobile/index.js +3 -3
  30. package/calendar/modern/components/days-table/Component.js +0 -1
  31. package/calendar/modern/components/days-table/index.js +0 -1
  32. package/calendar/modern/components/month-year-header/Component.js +0 -1
  33. package/calendar/modern/components/month-year-header/index.js +0 -1
  34. package/calendar/modern/components/period-slider/Component.js +0 -1
  35. package/calendar/modern/components/period-slider/index.js +0 -1
  36. package/calendar/modern/components/period-slider/utils.js +0 -1
  37. package/calendar/modern/desktop/index.js +1 -1
  38. package/calendar/modern/index.js +3 -3
  39. package/calendar/modern/mobile/index.js +3 -3
  40. package/calendar/modern/shared/index.js +0 -1
  41. package/calendar/modern/useCalendar.js +0 -1
  42. package/calendar/modern/useRange.js +0 -1
  43. package/calendar/modern/utils.d.ts +1 -3
  44. package/calendar/modern/utils.js +1 -4
  45. package/calendar/moderncssm/Component.responsive.js +3 -3
  46. package/calendar/moderncssm/components/calendar-mobile/Component.js +37 -46
  47. package/calendar/moderncssm/components/calendar-mobile/index.js +3 -3
  48. package/calendar/moderncssm/components/days-table/Component.js +0 -1
  49. package/calendar/moderncssm/components/days-table/index.js +0 -1
  50. package/calendar/moderncssm/components/month-year-header/Component.js +0 -1
  51. package/calendar/moderncssm/components/month-year-header/index.js +0 -1
  52. package/calendar/moderncssm/components/period-slider/Component.js +0 -1
  53. package/calendar/moderncssm/components/period-slider/index.js +0 -1
  54. package/calendar/moderncssm/components/period-slider/utils.js +0 -1
  55. package/calendar/moderncssm/desktop/index.js +1 -1
  56. package/calendar/moderncssm/index.js +3 -3
  57. package/calendar/moderncssm/mobile/index.js +3 -3
  58. package/calendar/moderncssm/shared/index.js +0 -1
  59. package/calendar/moderncssm/useCalendar.js +0 -1
  60. package/calendar/moderncssm/useRange.js +0 -1
  61. package/calendar/moderncssm/utils.d.ts +1 -3
  62. package/calendar/moderncssm/utils.js +1 -4
  63. package/calendar/utils.d.ts +1 -3
  64. package/calendar/utils.js +0 -8
  65. package/calendar-input/@alfalab/icons-glyph/package.json +14 -0
  66. package/calendar-input/components/calendar-input/Component.d.ts +1 -1
  67. package/checkbox/@alfalab/icons-glyph/package.json +14 -0
  68. package/collapse/@alfalab/icons-glyph/package.json +14 -0
  69. package/confirmation/components/screens/initial/component.js +1 -1
  70. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  71. package/confirmation/esm/component.responsive.js +1 -1
  72. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  73. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  74. package/confirmation/esm/components/index.js +1 -1
  75. package/confirmation/esm/components/screens/index.js +1 -1
  76. package/confirmation/esm/components/screens/initial/component.js +1 -1
  77. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  78. package/confirmation/esm/components/screens/initial/index.js +1 -1
  79. package/confirmation/esm/desktop/component.desktop.js +1 -1
  80. package/confirmation/esm/desktop/index.js +1 -1
  81. package/confirmation/esm/index.js +1 -1
  82. package/confirmation/esm/mobile/component.mobile.js +1 -1
  83. package/confirmation/esm/mobile/index.js +1 -1
  84. package/confirmation/esm/shared/index.js +1 -1
  85. package/confirmation/modern/component.responsive.js +1 -1
  86. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  87. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  88. package/confirmation/modern/components/index.js +1 -1
  89. package/confirmation/modern/components/screens/index.js +1 -1
  90. package/confirmation/modern/components/screens/initial/component.js +1 -1
  91. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  92. package/confirmation/modern/components/screens/initial/index.js +1 -1
  93. package/confirmation/modern/desktop/component.desktop.js +1 -1
  94. package/confirmation/modern/desktop/index.js +1 -1
  95. package/confirmation/modern/index.js +1 -1
  96. package/confirmation/modern/mobile/component.mobile.js +1 -1
  97. package/confirmation/modern/mobile/index.js +1 -1
  98. package/confirmation/modern/shared/index.js +1 -1
  99. package/confirmation-v1/@alfalab/icons-glyph/package.json +14 -0
  100. package/date-range-input/@alfalab/icons-glyph/package.json +14 -0
  101. package/date-time-input/@alfalab/icons-glyph/package.json +14 -0
  102. package/dropzone/@alfalab/icons-glyph/package.json +14 -0
  103. package/file-upload-item/Component.d.ts +7 -92
  104. package/file-upload-item/Component.js +41 -65
  105. package/file-upload-item/components/content/components/content-error/content-error.css +4 -0
  106. package/file-upload-item/components/content/components/content-error/content-error.d.ts +4 -0
  107. package/file-upload-item/components/content/components/content-error/content-error.js +25 -0
  108. package/file-upload-item/components/content/components/content-error/index.d.ts +1 -0
  109. package/file-upload-item/components/content/components/content-error/index.js +7 -0
  110. package/file-upload-item/components/content/components/content-subtitle/content-subtitle.css +31 -0
  111. package/file-upload-item/components/content/components/content-subtitle/content-subtitle.d.ts +4 -0
  112. package/file-upload-item/components/content/components/content-subtitle/content-subtitle.js +49 -0
  113. package/file-upload-item/components/content/components/content-subtitle/hooks/useContentSubtitle.d.ts +8 -0
  114. package/file-upload-item/components/content/components/content-subtitle/hooks/useContentSubtitle.js +36 -0
  115. package/file-upload-item/components/content/content.css +50 -0
  116. package/file-upload-item/components/content/content.d.ts +4 -0
  117. package/file-upload-item/components/content/content.js +33 -0
  118. package/file-upload-item/components/content/index.d.ts +1 -0
  119. package/file-upload-item/components/content/index.js +7 -0
  120. package/file-upload-item/components/content/utils/isError.d.ts +2 -0
  121. package/file-upload-item/components/content/utils/isError.js +13 -0
  122. package/file-upload-item/components/left-addon/components/left-addon-icon/index.d.ts +1 -0
  123. package/file-upload-item/components/left-addon/components/left-addon-icon/index.js +7 -0
  124. package/file-upload-item/components/left-addon/components/left-addon-icon/left-addon-icon.d.ts +4 -0
  125. package/file-upload-item/components/left-addon/components/left-addon-icon/left-addon-icon.js +64 -0
  126. package/file-upload-item/components/left-addon/components/progress-bar/index.d.ts +1 -0
  127. package/file-upload-item/components/left-addon/components/progress-bar/index.js +7 -0
  128. package/file-upload-item/components/left-addon/components/progress-bar/progress-bar.d.ts +6 -0
  129. package/file-upload-item/components/left-addon/components/progress-bar/progress-bar.js +20 -0
  130. package/file-upload-item/components/left-addon/index.d.ts +1 -0
  131. package/file-upload-item/components/left-addon/index.js +7 -0
  132. package/file-upload-item/components/left-addon/left-addon.css +46 -0
  133. package/file-upload-item/components/left-addon/left-addon.d.ts +4 -0
  134. package/file-upload-item/components/left-addon/left-addon.js +46 -0
  135. package/file-upload-item/components/right-addon/hooks/useRightAddon.d.ts +14 -0
  136. package/file-upload-item/components/right-addon/hooks/useRightAddon.js +37 -0
  137. package/file-upload-item/components/right-addon/index.d.ts +1 -0
  138. package/file-upload-item/components/right-addon/index.js +7 -0
  139. package/file-upload-item/components/right-addon/right-addon.css +9 -0
  140. package/file-upload-item/components/right-addon/right-addon.d.ts +4 -0
  141. package/file-upload-item/components/right-addon/right-addon.js +29 -0
  142. package/file-upload-item/const/file-type-map.d.ts +15 -0
  143. package/file-upload-item/const/file-type-map.js +18 -0
  144. package/file-upload-item/const/progress-bar.d.ts +2 -0
  145. package/file-upload-item/const/progress-bar.js +5 -0
  146. package/file-upload-item/const/upload-status-map.d.ts +9 -0
  147. package/file-upload-item/const/upload-status-map.js +12 -0
  148. package/file-upload-item/context/file-upload-item-context.d.ts +31 -0
  149. package/file-upload-item/context/file-upload-item-context.js +30 -0
  150. package/file-upload-item/cssm/Component.d.ts +7 -92
  151. package/file-upload-item/cssm/Component.js +40 -64
  152. package/file-upload-item/cssm/components/content/components/content-error/content-error.d.ts +4 -0
  153. package/file-upload-item/cssm/components/content/components/content-error/content-error.js +24 -0
  154. package/file-upload-item/cssm/components/content/components/content-error/content-error.module.css +3 -0
  155. package/file-upload-item/cssm/components/content/components/content-error/index.d.ts +1 -0
  156. package/file-upload-item/cssm/components/content/components/content-error/index.js +7 -0
  157. package/file-upload-item/cssm/components/content/components/content-subtitle/content-subtitle.d.ts +4 -0
  158. package/file-upload-item/cssm/components/content/components/content-subtitle/content-subtitle.js +48 -0
  159. package/file-upload-item/cssm/components/content/components/content-subtitle/content-subtitle.module.css +30 -0
  160. package/file-upload-item/cssm/components/content/components/content-subtitle/hooks/useContentSubtitle.d.ts +8 -0
  161. package/file-upload-item/cssm/components/content/components/content-subtitle/hooks/useContentSubtitle.js +36 -0
  162. package/file-upload-item/cssm/components/content/content.d.ts +4 -0
  163. package/file-upload-item/cssm/components/content/content.js +32 -0
  164. package/file-upload-item/cssm/components/content/content.module.css +49 -0
  165. package/file-upload-item/cssm/components/content/index.d.ts +1 -0
  166. package/file-upload-item/cssm/components/content/index.js +7 -0
  167. package/file-upload-item/cssm/components/content/utils/isError.d.ts +2 -0
  168. package/file-upload-item/cssm/components/content/utils/isError.js +13 -0
  169. package/file-upload-item/cssm/components/left-addon/components/left-addon-icon/index.d.ts +1 -0
  170. package/file-upload-item/cssm/components/left-addon/components/left-addon-icon/index.js +7 -0
  171. package/file-upload-item/cssm/components/left-addon/components/left-addon-icon/left-addon-icon.d.ts +4 -0
  172. package/file-upload-item/cssm/components/left-addon/components/left-addon-icon/left-addon-icon.js +64 -0
  173. package/file-upload-item/cssm/components/left-addon/components/progress-bar/index.d.ts +1 -0
  174. package/file-upload-item/cssm/components/left-addon/components/progress-bar/index.js +7 -0
  175. package/file-upload-item/cssm/components/left-addon/components/progress-bar/progress-bar.d.ts +6 -0
  176. package/file-upload-item/cssm/components/left-addon/components/progress-bar/progress-bar.js +20 -0
  177. package/file-upload-item/cssm/components/left-addon/index.d.ts +1 -0
  178. package/file-upload-item/cssm/components/left-addon/index.js +7 -0
  179. package/file-upload-item/cssm/components/left-addon/left-addon.d.ts +4 -0
  180. package/file-upload-item/cssm/components/left-addon/left-addon.js +45 -0
  181. package/file-upload-item/cssm/components/left-addon/left-addon.module.css +45 -0
  182. package/file-upload-item/cssm/components/right-addon/hooks/useRightAddon.d.ts +14 -0
  183. package/file-upload-item/cssm/components/right-addon/hooks/useRightAddon.js +37 -0
  184. package/file-upload-item/cssm/components/right-addon/index.d.ts +1 -0
  185. package/file-upload-item/cssm/components/right-addon/index.js +7 -0
  186. package/file-upload-item/cssm/components/right-addon/right-addon.d.ts +4 -0
  187. package/file-upload-item/cssm/components/right-addon/right-addon.js +28 -0
  188. package/file-upload-item/cssm/components/right-addon/right-addon.module.css +8 -0
  189. package/file-upload-item/cssm/const/file-type-map.d.ts +15 -0
  190. package/file-upload-item/cssm/const/file-type-map.js +18 -0
  191. package/file-upload-item/cssm/const/progress-bar.d.ts +2 -0
  192. package/file-upload-item/cssm/const/progress-bar.js +5 -0
  193. package/file-upload-item/cssm/const/upload-status-map.d.ts +9 -0
  194. package/file-upload-item/cssm/const/upload-status-map.js +12 -0
  195. package/file-upload-item/cssm/context/file-upload-item-context.d.ts +31 -0
  196. package/file-upload-item/cssm/context/file-upload-item-context.js +30 -0
  197. package/file-upload-item/cssm/index.js +1 -0
  198. package/file-upload-item/cssm/index.module.css +5 -96
  199. package/file-upload-item/cssm/types/file-upload-item-props.d.ts +114 -0
  200. package/file-upload-item/cssm/types/file-upload-item-props.js +1 -0
  201. package/file-upload-item/cssm/types/index.d.ts +3 -0
  202. package/file-upload-item/cssm/types/index.js +1 -0
  203. package/file-upload-item/cssm/utils.d.ts +7 -3
  204. package/file-upload-item/cssm/utils.js +11 -27
  205. package/file-upload-item/esm/Component.d.ts +7 -92
  206. package/file-upload-item/esm/Component.js +64 -68
  207. package/file-upload-item/esm/components/content/components/content-error/content-error.css +4 -0
  208. package/file-upload-item/esm/components/content/components/content-error/content-error.d.ts +4 -0
  209. package/file-upload-item/esm/components/content/components/content-error/content-error.js +19 -0
  210. package/file-upload-item/esm/components/content/components/content-error/index.d.ts +1 -0
  211. package/file-upload-item/esm/components/content/components/content-error/index.js +4 -0
  212. package/file-upload-item/esm/components/content/components/content-subtitle/content-subtitle.css +31 -0
  213. package/file-upload-item/esm/components/content/components/content-subtitle/content-subtitle.d.ts +4 -0
  214. package/file-upload-item/esm/components/content/components/content-subtitle/content-subtitle.js +45 -0
  215. package/file-upload-item/esm/components/content/components/content-subtitle/hooks/useContentSubtitle.d.ts +8 -0
  216. package/file-upload-item/esm/components/content/components/content-subtitle/hooks/useContentSubtitle.js +35 -0
  217. package/file-upload-item/esm/components/content/content.css +50 -0
  218. package/file-upload-item/esm/components/content/content.d.ts +4 -0
  219. package/file-upload-item/esm/components/content/content.js +32 -0
  220. package/file-upload-item/esm/components/content/index.d.ts +1 -0
  221. package/file-upload-item/esm/components/content/index.js +12 -0
  222. package/file-upload-item/esm/components/content/utils/isError.d.ts +2 -0
  223. package/file-upload-item/esm/components/content/utils/isError.js +11 -0
  224. package/file-upload-item/esm/components/left-addon/components/left-addon-icon/index.d.ts +1 -0
  225. package/file-upload-item/esm/components/left-addon/components/left-addon-icon/index.js +15 -0
  226. package/file-upload-item/esm/components/left-addon/components/left-addon-icon/left-addon-icon.d.ts +4 -0
  227. package/file-upload-item/esm/components/left-addon/components/left-addon-icon/left-addon-icon.js +58 -0
  228. package/file-upload-item/esm/components/left-addon/components/progress-bar/index.d.ts +1 -0
  229. package/file-upload-item/esm/components/left-addon/components/progress-bar/index.js +2 -0
  230. package/file-upload-item/esm/components/left-addon/components/progress-bar/progress-bar.d.ts +6 -0
  231. package/file-upload-item/esm/components/left-addon/components/progress-bar/progress-bar.js +14 -0
  232. package/file-upload-item/esm/components/left-addon/index.d.ts +1 -0
  233. package/file-upload-item/esm/components/left-addon/index.js +19 -0
  234. package/file-upload-item/esm/components/left-addon/left-addon.css +46 -0
  235. package/file-upload-item/esm/components/left-addon/left-addon.d.ts +4 -0
  236. package/file-upload-item/esm/components/left-addon/left-addon.js +49 -0
  237. package/file-upload-item/esm/components/right-addon/hooks/useRightAddon.d.ts +14 -0
  238. package/file-upload-item/esm/components/right-addon/hooks/useRightAddon.js +35 -0
  239. package/file-upload-item/esm/components/right-addon/index.d.ts +1 -0
  240. package/file-upload-item/esm/components/right-addon/index.js +8 -0
  241. package/file-upload-item/esm/components/right-addon/right-addon.css +9 -0
  242. package/file-upload-item/esm/components/right-addon/right-addon.d.ts +4 -0
  243. package/file-upload-item/esm/components/right-addon/right-addon.js +21 -0
  244. package/file-upload-item/esm/const/file-type-map.d.ts +15 -0
  245. package/file-upload-item/esm/const/file-type-map.js +16 -0
  246. package/file-upload-item/esm/const/progress-bar.d.ts +2 -0
  247. package/file-upload-item/esm/const/progress-bar.js +3 -0
  248. package/file-upload-item/esm/const/upload-status-map.d.ts +9 -0
  249. package/file-upload-item/esm/const/upload-status-map.js +10 -0
  250. package/file-upload-item/esm/context/file-upload-item-context.d.ts +31 -0
  251. package/file-upload-item/esm/context/file-upload-item-context.js +28 -0
  252. package/file-upload-item/esm/index.css +5 -96
  253. package/file-upload-item/esm/index.js +27 -11
  254. package/file-upload-item/esm/types/file-upload-item-props.d.ts +114 -0
  255. package/file-upload-item/esm/types/file-upload-item-props.js +1 -0
  256. package/file-upload-item/esm/types/index.d.ts +3 -0
  257. package/file-upload-item/esm/types/index.js +1 -0
  258. package/file-upload-item/esm/utils.d.ts +7 -3
  259. package/file-upload-item/esm/utils.js +7 -27
  260. package/file-upload-item/index.css +5 -96
  261. package/file-upload-item/index.js +1 -0
  262. package/file-upload-item/modern/Component.d.ts +7 -92
  263. package/file-upload-item/modern/Component.js +62 -68
  264. package/file-upload-item/modern/components/content/components/content-error/content-error.css +4 -0
  265. package/file-upload-item/modern/components/content/components/content-error/content-error.d.ts +4 -0
  266. package/file-upload-item/modern/components/content/components/content-error/content-error.js +19 -0
  267. package/file-upload-item/modern/components/content/components/content-error/index.d.ts +1 -0
  268. package/file-upload-item/modern/components/content/components/content-error/index.js +4 -0
  269. package/file-upload-item/modern/components/content/components/content-subtitle/content-subtitle.css +31 -0
  270. package/file-upload-item/modern/components/content/components/content-subtitle/content-subtitle.d.ts +4 -0
  271. package/file-upload-item/modern/components/content/components/content-subtitle/content-subtitle.js +44 -0
  272. package/file-upload-item/modern/components/content/components/content-subtitle/hooks/useContentSubtitle.d.ts +8 -0
  273. package/file-upload-item/modern/components/content/components/content-subtitle/hooks/useContentSubtitle.js +35 -0
  274. package/file-upload-item/modern/components/content/content.css +50 -0
  275. package/file-upload-item/modern/components/content/content.d.ts +4 -0
  276. package/file-upload-item/modern/components/content/content.js +31 -0
  277. package/file-upload-item/modern/components/content/index.d.ts +1 -0
  278. package/file-upload-item/modern/components/content/index.js +12 -0
  279. package/file-upload-item/modern/components/content/utils/isError.d.ts +2 -0
  280. package/file-upload-item/modern/components/content/utils/isError.js +11 -0
  281. package/file-upload-item/modern/components/left-addon/components/left-addon-icon/index.d.ts +1 -0
  282. package/file-upload-item/modern/components/left-addon/components/left-addon-icon/index.js +14 -0
  283. package/file-upload-item/modern/components/left-addon/components/left-addon-icon/left-addon-icon.d.ts +4 -0
  284. package/file-upload-item/modern/components/left-addon/components/left-addon-icon/left-addon-icon.js +57 -0
  285. package/file-upload-item/modern/components/left-addon/components/progress-bar/index.d.ts +1 -0
  286. package/file-upload-item/modern/components/left-addon/components/progress-bar/index.js +2 -0
  287. package/file-upload-item/modern/components/left-addon/components/progress-bar/progress-bar.d.ts +6 -0
  288. package/file-upload-item/modern/components/left-addon/components/progress-bar/progress-bar.js +11 -0
  289. package/file-upload-item/modern/components/left-addon/index.d.ts +1 -0
  290. package/file-upload-item/modern/components/left-addon/index.js +18 -0
  291. package/file-upload-item/modern/components/left-addon/left-addon.css +46 -0
  292. package/file-upload-item/modern/components/left-addon/left-addon.d.ts +4 -0
  293. package/file-upload-item/modern/components/left-addon/left-addon.js +47 -0
  294. package/file-upload-item/modern/components/right-addon/hooks/useRightAddon.d.ts +14 -0
  295. package/file-upload-item/modern/components/right-addon/hooks/useRightAddon.js +35 -0
  296. package/file-upload-item/modern/components/right-addon/index.d.ts +1 -0
  297. package/file-upload-item/modern/components/right-addon/index.js +8 -0
  298. package/file-upload-item/modern/components/right-addon/right-addon.css +9 -0
  299. package/file-upload-item/modern/components/right-addon/right-addon.d.ts +4 -0
  300. package/file-upload-item/modern/components/right-addon/right-addon.js +21 -0
  301. package/file-upload-item/modern/const/file-type-map.d.ts +15 -0
  302. package/file-upload-item/modern/const/file-type-map.js +16 -0
  303. package/file-upload-item/modern/const/progress-bar.d.ts +2 -0
  304. package/file-upload-item/modern/const/progress-bar.js +3 -0
  305. package/file-upload-item/modern/const/upload-status-map.d.ts +9 -0
  306. package/file-upload-item/modern/const/upload-status-map.js +10 -0
  307. package/file-upload-item/modern/context/file-upload-item-context.d.ts +31 -0
  308. package/file-upload-item/modern/context/file-upload-item-context.js +28 -0
  309. package/file-upload-item/modern/index.css +5 -96
  310. package/file-upload-item/modern/index.js +26 -11
  311. package/file-upload-item/modern/types/file-upload-item-props.d.ts +114 -0
  312. package/file-upload-item/modern/types/file-upload-item-props.js +1 -0
  313. package/file-upload-item/modern/types/index.d.ts +3 -0
  314. package/file-upload-item/modern/types/index.js +1 -0
  315. package/file-upload-item/modern/utils.d.ts +7 -3
  316. package/file-upload-item/modern/utils.js +7 -27
  317. package/file-upload-item/moderncssm/Component.d.ts +7 -92
  318. package/file-upload-item/moderncssm/Component.js +66 -67
  319. package/file-upload-item/moderncssm/components/content/components/content-error/content-error.d.ts +4 -0
  320. package/file-upload-item/moderncssm/components/content/components/content-error/content-error.js +17 -0
  321. package/file-upload-item/moderncssm/components/content/components/content-error/content-error.module.css +3 -0
  322. package/file-upload-item/moderncssm/components/content/components/content-error/index.d.ts +1 -0
  323. package/file-upload-item/moderncssm/components/content/components/content-error/index.js +5 -0
  324. package/file-upload-item/moderncssm/components/content/components/content-subtitle/content-subtitle.d.ts +4 -0
  325. package/file-upload-item/moderncssm/components/content/components/content-subtitle/content-subtitle.js +43 -0
  326. package/file-upload-item/moderncssm/components/content/components/content-subtitle/content-subtitle.module.css +15 -0
  327. package/file-upload-item/moderncssm/components/content/components/content-subtitle/hooks/useContentSubtitle.d.ts +8 -0
  328. package/file-upload-item/moderncssm/components/content/components/content-subtitle/hooks/useContentSubtitle.js +35 -0
  329. package/file-upload-item/moderncssm/components/content/content.d.ts +4 -0
  330. package/file-upload-item/moderncssm/components/content/content.js +31 -0
  331. package/file-upload-item/moderncssm/components/content/content.module.css +37 -0
  332. package/file-upload-item/moderncssm/components/content/index.d.ts +1 -0
  333. package/file-upload-item/moderncssm/components/content/index.js +15 -0
  334. package/file-upload-item/moderncssm/components/content/utils/isError.d.ts +2 -0
  335. package/file-upload-item/moderncssm/components/content/utils/isError.js +11 -0
  336. package/file-upload-item/moderncssm/components/left-addon/components/left-addon-icon/index.d.ts +1 -0
  337. package/file-upload-item/moderncssm/components/left-addon/components/left-addon-icon/index.js +14 -0
  338. package/file-upload-item/moderncssm/components/left-addon/components/left-addon-icon/left-addon-icon.d.ts +4 -0
  339. package/file-upload-item/moderncssm/components/left-addon/components/left-addon-icon/left-addon-icon.js +57 -0
  340. package/file-upload-item/moderncssm/components/left-addon/components/progress-bar/index.d.ts +1 -0
  341. package/file-upload-item/moderncssm/components/left-addon/components/progress-bar/index.js +2 -0
  342. package/file-upload-item/moderncssm/components/left-addon/components/progress-bar/progress-bar.d.ts +6 -0
  343. package/file-upload-item/moderncssm/components/left-addon/components/progress-bar/progress-bar.js +11 -0
  344. package/file-upload-item/moderncssm/components/left-addon/index.d.ts +1 -0
  345. package/file-upload-item/moderncssm/components/left-addon/index.js +19 -0
  346. package/file-upload-item/moderncssm/components/left-addon/left-addon.d.ts +4 -0
  347. package/file-upload-item/moderncssm/components/left-addon/left-addon.js +45 -0
  348. package/file-upload-item/moderncssm/components/left-addon/left-addon.module.css +32 -0
  349. package/file-upload-item/moderncssm/components/right-addon/hooks/useRightAddon.d.ts +14 -0
  350. package/file-upload-item/moderncssm/components/right-addon/hooks/useRightAddon.js +35 -0
  351. package/file-upload-item/moderncssm/components/right-addon/index.d.ts +1 -0
  352. package/file-upload-item/moderncssm/components/right-addon/index.js +9 -0
  353. package/file-upload-item/moderncssm/components/right-addon/right-addon.d.ts +4 -0
  354. package/file-upload-item/moderncssm/components/right-addon/right-addon.js +19 -0
  355. package/file-upload-item/moderncssm/components/right-addon/right-addon.module.css +8 -0
  356. package/file-upload-item/moderncssm/const/file-type-map.d.ts +15 -0
  357. package/file-upload-item/moderncssm/const/file-type-map.js +16 -0
  358. package/file-upload-item/moderncssm/const/progress-bar.d.ts +2 -0
  359. package/file-upload-item/moderncssm/const/progress-bar.js +3 -0
  360. package/file-upload-item/moderncssm/const/upload-status-map.d.ts +9 -0
  361. package/file-upload-item/moderncssm/const/upload-status-map.js +10 -0
  362. package/file-upload-item/moderncssm/context/file-upload-item-context.d.ts +31 -0
  363. package/file-upload-item/moderncssm/context/file-upload-item-context.js +28 -0
  364. package/file-upload-item/moderncssm/index.js +31 -11
  365. package/file-upload-item/moderncssm/index.module.css +2 -117
  366. package/file-upload-item/moderncssm/types/file-upload-item-props.d.ts +114 -0
  367. package/file-upload-item/moderncssm/types/file-upload-item-props.js +1 -0
  368. package/file-upload-item/moderncssm/types/index.d.ts +3 -0
  369. package/file-upload-item/moderncssm/types/index.js +1 -0
  370. package/file-upload-item/moderncssm/utils.d.ts +7 -3
  371. package/file-upload-item/moderncssm/utils.js +7 -27
  372. package/file-upload-item/types/file-upload-item-props.d.ts +114 -0
  373. package/file-upload-item/types/file-upload-item-props.js +1 -0
  374. package/file-upload-item/types/index.d.ts +3 -0
  375. package/file-upload-item/types/index.js +1 -0
  376. package/file-upload-item/utils.d.ts +7 -3
  377. package/file-upload-item/utils.js +11 -27
  378. package/file-upload-item-v1/@alfalab/icons-glyph/package.json +14 -0
  379. package/file-upload-item-v1/Component.d.ts +95 -0
  380. package/file-upload-item-v1/Component.js +81 -0
  381. package/file-upload-item-v1/cssm/Component.d.ts +95 -0
  382. package/file-upload-item-v1/cssm/Component.js +80 -0
  383. package/file-upload-item-v1/cssm/index.d.ts +1 -0
  384. package/file-upload-item-v1/cssm/index.js +7 -0
  385. package/file-upload-item-v1/cssm/index.module.css +124 -0
  386. package/file-upload-item-v1/cssm/utils.d.ts +5 -0
  387. package/file-upload-item-v1/cssm/utils.js +45 -0
  388. package/file-upload-item-v1/esm/Component.d.ts +95 -0
  389. package/file-upload-item-v1/esm/Component.js +79 -0
  390. package/file-upload-item-v1/esm/index.css +125 -0
  391. package/file-upload-item-v1/esm/index.d.ts +1 -0
  392. package/file-upload-item-v1/esm/index.js +17 -0
  393. package/file-upload-item-v1/esm/utils.d.ts +5 -0
  394. package/file-upload-item-v1/esm/utils.js +41 -0
  395. package/file-upload-item-v1/index.css +125 -0
  396. package/file-upload-item-v1/index.d.ts +1 -0
  397. package/file-upload-item-v1/index.js +7 -0
  398. package/file-upload-item-v1/modern/Component.d.ts +95 -0
  399. package/file-upload-item-v1/modern/Component.js +77 -0
  400. package/file-upload-item-v1/modern/index.css +125 -0
  401. package/file-upload-item-v1/modern/index.d.ts +1 -0
  402. package/file-upload-item-v1/modern/index.js +17 -0
  403. package/file-upload-item-v1/modern/utils.d.ts +5 -0
  404. package/file-upload-item-v1/modern/utils.js +41 -0
  405. package/file-upload-item-v1/moderncssm/Component.d.ts +95 -0
  406. package/file-upload-item-v1/moderncssm/Component.js +75 -0
  407. package/file-upload-item-v1/moderncssm/index.d.ts +1 -0
  408. package/file-upload-item-v1/moderncssm/index.js +18 -0
  409. package/file-upload-item-v1/moderncssm/index.module.css +129 -0
  410. package/file-upload-item-v1/moderncssm/utils.d.ts +5 -0
  411. package/file-upload-item-v1/moderncssm/utils.js +41 -0
  412. package/file-upload-item-v1/package.json +3 -0
  413. package/file-upload-item-v1/utils.d.ts +5 -0
  414. package/file-upload-item-v1/utils.js +45 -0
  415. package/filter-tag/@alfalab/icons-glyph/package.json +14 -0
  416. package/gallery/@alfalab/icons-glyph/package.json +14 -0
  417. package/gallery/components/image-viewer/component.js +1 -1
  418. package/gallery/components/image-viewer/slide.js +1 -1
  419. package/gallery/esm/Component.js +1 -1
  420. package/gallery/esm/components/image-viewer/component.js +1 -1
  421. package/gallery/esm/components/image-viewer/index.js +1 -1
  422. package/gallery/esm/components/image-viewer/slide.js +1 -1
  423. package/gallery/esm/components/index.js +1 -1
  424. package/gallery/esm/index.js +1 -1
  425. package/gallery/modern/Component.js +1 -1
  426. package/gallery/modern/components/image-viewer/component.js +1 -1
  427. package/gallery/modern/components/image-viewer/index.js +1 -1
  428. package/gallery/modern/components/image-viewer/slide.js +1 -1
  429. package/gallery/modern/components/index.js +1 -1
  430. package/gallery/modern/index.js +1 -1
  431. package/input/@alfalab/icons-glyph/package.json +14 -0
  432. package/international-phone-input/@alfalab/icons-glyph/package.json +14 -0
  433. package/intl-phone-input/@alfalab/icons-glyph/package.json +14 -0
  434. package/modal/components/controls/Component.js +1 -1
  435. package/modal/components/footer/Component.js +1 -1
  436. package/modal/esm/Component.responsive.js +1 -1
  437. package/modal/esm/components/controls/Component.js +1 -1
  438. package/modal/esm/components/controls/index.js +1 -1
  439. package/modal/esm/components/footer/Component.js +1 -1
  440. package/modal/esm/desktop/Component.desktop.js +1 -1
  441. package/modal/esm/desktop/index.js +1 -1
  442. package/modal/esm/index.js +1 -1
  443. package/modal/esm/mobile/Component.mobile.js +1 -1
  444. package/modal/esm/mobile/index.js +1 -1
  445. package/modal/modern/Component.responsive.js +1 -1
  446. package/modal/modern/components/controls/Component.js +1 -1
  447. package/modal/modern/components/controls/index.js +1 -1
  448. package/modal/modern/components/footer/Component.js +1 -1
  449. package/modal/modern/desktop/Component.desktop.js +1 -1
  450. package/modal/modern/desktop/index.js +1 -1
  451. package/modal/modern/index.js +1 -1
  452. package/modal/modern/mobile/Component.mobile.js +1 -1
  453. package/modal/modern/mobile/index.js +1 -1
  454. package/navigation-bar/@alfalab/icons-glyph/package.json +14 -0
  455. package/navigation-bar-private/@alfalab/icons-glyph/package.json +14 -0
  456. package/number-input/@alfalab/icons-glyph/package.json +14 -0
  457. package/package.json +2 -2
  458. package/pagination/@alfalab/icons-glyph/package.json +14 -0
  459. package/pass-code/@alfalab/icons-glyph/package.json +14 -0
  460. package/pass-code-v1/@alfalab/icons-glyph/package.json +14 -0
  461. package/password-input/@alfalab/icons-glyph/package.json +14 -0
  462. package/picker-button/@alfalab/icons-glyph/package.json +14 -0
  463. package/plate/@alfalab/icons-glyph/package.json +14 -0
  464. package/product-cover/@alfalab/icons-glyph/package.json +14 -0
  465. package/pure-cell/component-8c83a9ca.d.ts +5 -5
  466. package/pure-cell/component.js +1 -1
  467. package/pure-cell/components/addon/component.js +1 -1
  468. package/pure-cell/components/addon/index.d.ts +1 -1
  469. package/pure-cell/components/addon/index.js +1 -1
  470. package/pure-cell/components/amount/component.js +1 -1
  471. package/pure-cell/components/amount/index.d.ts +1 -1
  472. package/pure-cell/components/amount/index.js +1 -1
  473. package/pure-cell/components/amount-title/component.js +1 -1
  474. package/pure-cell/components/amount-title/index.d.ts +1 -1
  475. package/pure-cell/components/amount-title/index.js +1 -1
  476. package/pure-cell/components/category/component.js +1 -1
  477. package/pure-cell/components/category/index.d.ts +1 -1
  478. package/pure-cell/components/category/index.js +1 -1
  479. package/pure-cell/components/content/component.js +1 -1
  480. package/pure-cell/components/content/index.d.ts +1 -1
  481. package/pure-cell/components/content/index.js +1 -1
  482. package/pure-cell/components/footer/component.js +1 -1
  483. package/pure-cell/components/footer/index.d.ts +1 -1
  484. package/pure-cell/components/footer/index.js +1 -1
  485. package/pure-cell/components/footer-button/component.js +1 -1
  486. package/pure-cell/components/footer-button/index.d.ts +1 -1
  487. package/pure-cell/components/footer-button/index.js +1 -1
  488. package/pure-cell/components/footer-text/component.js +1 -1
  489. package/pure-cell/components/footer-text/index.d.ts +1 -1
  490. package/pure-cell/components/footer-text/index.js +1 -1
  491. package/pure-cell/components/graphics/component.js +1 -1
  492. package/pure-cell/components/graphics/index.d.ts +1 -1
  493. package/pure-cell/components/graphics/index.js +1 -1
  494. package/pure-cell/components/main/component.js +1 -1
  495. package/pure-cell/components/main/index.d.ts +1 -1
  496. package/pure-cell/components/main/index.js +1 -1
  497. package/pure-cell/components/text/component.js +1 -1
  498. package/pure-cell/components/text/index.d.ts +1 -1
  499. package/pure-cell/components/text/index.js +1 -1
  500. package/pure-cell/esm/component.js +1 -1
  501. package/pure-cell/esm/components/addon/component.js +1 -1
  502. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  503. package/pure-cell/esm/components/addon/index.js +1 -1
  504. package/pure-cell/esm/components/amount/component.js +1 -1
  505. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  506. package/pure-cell/esm/components/amount/index.js +1 -1
  507. package/pure-cell/esm/components/amount-title/component.js +1 -1
  508. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  509. package/pure-cell/esm/components/amount-title/index.js +1 -1
  510. package/pure-cell/esm/components/category/component.js +1 -1
  511. package/pure-cell/esm/components/category/index.d.ts +1 -1
  512. package/pure-cell/esm/components/category/index.js +1 -1
  513. package/pure-cell/esm/components/content/component.js +1 -1
  514. package/pure-cell/esm/components/content/index.d.ts +1 -1
  515. package/pure-cell/esm/components/content/index.js +1 -1
  516. package/pure-cell/esm/components/footer/component.js +1 -1
  517. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  518. package/pure-cell/esm/components/footer/index.js +1 -1
  519. package/pure-cell/esm/components/footer-button/component.js +1 -1
  520. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  521. package/pure-cell/esm/components/footer-button/index.js +1 -1
  522. package/pure-cell/esm/components/footer-text/component.js +1 -1
  523. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  524. package/pure-cell/esm/components/footer-text/index.js +1 -1
  525. package/pure-cell/esm/components/graphics/component.js +1 -1
  526. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  527. package/pure-cell/esm/components/graphics/index.js +1 -1
  528. package/pure-cell/esm/components/main/component.js +1 -1
  529. package/pure-cell/esm/components/main/index.d.ts +1 -1
  530. package/pure-cell/esm/components/main/index.js +1 -1
  531. package/pure-cell/esm/components/text/component.js +1 -1
  532. package/pure-cell/esm/components/text/index.d.ts +1 -1
  533. package/pure-cell/esm/components/text/index.js +1 -1
  534. package/pure-cell/esm/index.js +1 -1
  535. package/pure-cell/index.js +1 -1
  536. package/pure-cell/modern/component.js +1 -1
  537. package/pure-cell/modern/components/addon/component.js +1 -1
  538. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  539. package/pure-cell/modern/components/addon/index.js +1 -1
  540. package/pure-cell/modern/components/amount/component.js +1 -1
  541. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  542. package/pure-cell/modern/components/amount/index.js +1 -1
  543. package/pure-cell/modern/components/amount-title/component.js +1 -1
  544. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  545. package/pure-cell/modern/components/amount-title/index.js +1 -1
  546. package/pure-cell/modern/components/category/component.js +1 -1
  547. package/pure-cell/modern/components/category/index.d.ts +1 -1
  548. package/pure-cell/modern/components/category/index.js +1 -1
  549. package/pure-cell/modern/components/content/component.js +1 -1
  550. package/pure-cell/modern/components/content/index.d.ts +1 -1
  551. package/pure-cell/modern/components/content/index.js +1 -1
  552. package/pure-cell/modern/components/footer/component.js +1 -1
  553. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  554. package/pure-cell/modern/components/footer/index.js +1 -1
  555. package/pure-cell/modern/components/footer-button/component.js +1 -1
  556. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  557. package/pure-cell/modern/components/footer-button/index.js +1 -1
  558. package/pure-cell/modern/components/footer-text/component.js +1 -1
  559. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  560. package/pure-cell/modern/components/footer-text/index.js +1 -1
  561. package/pure-cell/modern/components/graphics/component.js +1 -1
  562. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  563. package/pure-cell/modern/components/graphics/index.js +1 -1
  564. package/pure-cell/modern/components/main/component.js +1 -1
  565. package/pure-cell/modern/components/main/index.d.ts +1 -1
  566. package/pure-cell/modern/components/main/index.js +1 -1
  567. package/pure-cell/modern/components/text/component.js +1 -1
  568. package/pure-cell/modern/components/text/index.d.ts +1 -1
  569. package/pure-cell/modern/components/text/index.js +1 -1
  570. package/pure-cell/modern/index.js +1 -1
  571. package/select/@alfalab/icons-glyph/package.json +14 -0
  572. package/select/components/base-select/Component.js +2 -2
  573. package/select/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  574. package/select/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  575. package/select/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  576. package/select/esm/Component.responsive.js +3 -3
  577. package/select/esm/components/base-select/Component.js +2 -2
  578. package/select/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  579. package/select/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  580. package/select/esm/components/base-select/components/list-mobile/list-mobile.js +1 -1
  581. package/select/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  582. package/select/esm/components/base-select/index.js +2 -2
  583. package/select/esm/components/index.js +2 -2
  584. package/select/esm/desktop/Component.desktop.js +2 -2
  585. package/select/esm/desktop/index.js +2 -2
  586. package/select/esm/index.js +3 -3
  587. package/select/esm/mobile/Component.mobile.js +3 -3
  588. package/select/esm/mobile/Component.modal.mobile.js +3 -3
  589. package/select/esm/mobile/index.js +3 -3
  590. package/select/esm/presets/index.js +1 -1
  591. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  592. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  593. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  594. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  595. package/select/esm/shared/index.js +3 -3
  596. package/select/mobile/Component.mobile.js +1 -1
  597. package/select/modern/Component.responsive.js +3 -3
  598. package/select/modern/components/base-select/Component.js +2 -2
  599. package/select/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  600. package/select/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  601. package/select/modern/components/base-select/components/list-mobile/list-mobile.js +1 -1
  602. package/select/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  603. package/select/modern/components/base-select/index.js +2 -2
  604. package/select/modern/components/index.js +2 -2
  605. package/select/modern/desktop/Component.desktop.js +2 -2
  606. package/select/modern/desktop/index.js +2 -2
  607. package/select/modern/index.js +3 -3
  608. package/select/modern/mobile/Component.mobile.js +3 -3
  609. package/select/modern/mobile/Component.modal.mobile.js +3 -3
  610. package/select/modern/mobile/index.js +3 -3
  611. package/select/modern/presets/index.js +1 -1
  612. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  613. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  614. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  615. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  616. package/select/modern/shared/index.js +3 -3
  617. package/select/presets/index.js +1 -1
  618. package/select/presets/useSelectWithApply/hook.js +1 -1
  619. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  620. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  621. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  622. package/select/shared/index.js +1 -1
  623. package/select-with-tags/@alfalab/icons-glyph/package.json +14 -0
  624. package/side-panel/components/controls/Component.js +1 -1
  625. package/side-panel/components/footer/Component.js +1 -1
  626. package/side-panel/esm/Component.responsive.js +1 -1
  627. package/side-panel/esm/components/controls/Component.js +1 -1
  628. package/side-panel/esm/components/controls/index.js +1 -1
  629. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  630. package/side-panel/esm/components/footer/Component.js +1 -1
  631. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  632. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  633. package/side-panel/esm/desktop/index.js +1 -1
  634. package/side-panel/esm/index.js +1 -1
  635. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  636. package/side-panel/esm/mobile/index.js +1 -1
  637. package/side-panel/modern/Component.responsive.js +1 -1
  638. package/side-panel/modern/components/controls/Component.js +1 -1
  639. package/side-panel/modern/components/controls/index.js +1 -1
  640. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  641. package/side-panel/modern/components/footer/Component.js +1 -1
  642. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  643. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  644. package/side-panel/modern/desktop/index.js +1 -1
  645. package/side-panel/modern/index.js +1 -1
  646. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  647. package/side-panel/modern/mobile/index.js +1 -1
  648. package/sortable-list/@alfalab/icons-glyph/package.json +14 -0
  649. package/status-badge/@alfalab/icons-glyph/package.json +14 -0
  650. package/steps/@alfalab/icons-glyph/package.json +14 -0
  651. package/tabs/@alfalab/icons-glyph/package.json +14 -0
  652. package/tag/moderncssm/components/base-tag/Component.d.ts +1 -1
  653. package/themes/compiled/mobile-dark-bluetint.css +18 -18
  654. package/time-input/utils/format.js +6 -10
  655. package/toast/Component.responsive.d.ts +1 -1
  656. package/toast/components/base-toast/component.d.ts +1 -1
  657. package/toast-plate/@alfalab/icons-glyph/package.json +14 -0
  658. package/typography/esm/component.js +2 -2
  659. package/typography/esm/index.js +2 -2
  660. package/typography/esm/text/component.js +1 -1
  661. package/typography/esm/text/index.js +1 -1
  662. package/typography/esm/title/component.js +1 -1
  663. package/typography/esm/title/index.js +2 -2
  664. package/typography/esm/title-mobile/component.js +2 -2
  665. package/typography/esm/title-mobile/index.js +2 -2
  666. package/typography/esm/title-responsive/component.js +2 -2
  667. package/typography/esm/title-responsive/index.js +2 -2
  668. package/typography/modern/component.js +2 -2
  669. package/typography/modern/index.js +2 -2
  670. package/typography/modern/text/component.js +1 -1
  671. package/typography/modern/text/index.js +1 -1
  672. package/typography/modern/title/component.js +1 -1
  673. package/typography/modern/title/index.js +2 -2
  674. package/typography/modern/title-mobile/component.js +2 -2
  675. package/typography/modern/title-mobile/index.js +2 -2
  676. package/typography/modern/title-responsive/component.js +2 -2
  677. package/typography/modern/title-responsive/index.js +2 -2
  678. package/typography/text/component.js +1 -1
  679. package/typography/title/component.js +1 -1
  680. package/typography/title/index.js +1 -1
  681. package/typography/title-mobile/component.js +1 -1
  682. package/universal-date-input/@alfalab/icons-glyph/package.json +14 -0
  683. package/universal-date-input/cssm/index-5712fce2.d.ts +1 -1
  684. package/universal-date-input/cssm/index-f034f741.d.ts +1 -1
  685. package/universal-date-input/cssm/utils-5712fce2.d.ts +1 -3
  686. package/universal-date-input/esm/index-5712fce2.d.ts +1 -1
  687. package/universal-date-input/esm/index-f034f741.d.ts +1 -1
  688. package/universal-date-input/esm/utils-5712fce2.d.ts +1 -3
  689. package/universal-date-input/index-5712fce2.d.ts +1 -1
  690. package/universal-date-input/index-f034f741.d.ts +1 -1
  691. package/universal-date-input/modern/index-5712fce2.d.ts +1 -1
  692. package/universal-date-input/modern/index-f034f741.d.ts +1 -1
  693. package/universal-date-input/modern/utils-5712fce2.d.ts +1 -3
  694. package/universal-date-input/moderncssm/index-5712fce2.d.ts +1 -1
  695. package/universal-date-input/moderncssm/index-f034f741.d.ts +1 -1
  696. package/universal-date-input/moderncssm/utils-5712fce2.d.ts +1 -3
  697. package/universal-date-input/utils-5712fce2.d.ts +1 -3
  698. /package/confirmation/{countdown-section-dd1b61a3.d.ts → countdown-section-bcbe6c2c.d.ts} +0 -0
  699. /package/confirmation/{countdown-section-dd1b61a3.js → countdown-section-bcbe6c2c.js} +0 -0
  700. /package/confirmation/esm/{countdown-section-86d3deb3.d.ts → countdown-section-d29b1c80.d.ts} +0 -0
  701. /package/confirmation/esm/{countdown-section-86d3deb3.js → countdown-section-d29b1c80.js} +0 -0
  702. /package/confirmation/modern/{countdown-section-aa58409e.d.ts → countdown-section-cc3b35c1.d.ts} +0 -0
  703. /package/confirmation/modern/{countdown-section-aa58409e.js → countdown-section-cc3b35c1.js} +0 -0
  704. /package/gallery/esm/{slide-78d2f40e.d.ts → slide-c7cc0c1c.d.ts} +0 -0
  705. /package/gallery/esm/{slide-78d2f40e.js → slide-c7cc0c1c.js} +0 -0
  706. /package/gallery/modern/{slide-5b74e8eb.d.ts → slide-999fba64.d.ts} +0 -0
  707. /package/gallery/modern/{slide-5b74e8eb.js → slide-999fba64.js} +0 -0
  708. /package/gallery/{slide-29147dd4.d.ts → slide-1f1d2acf.d.ts} +0 -0
  709. /package/gallery/{slide-29147dd4.js → slide-1f1d2acf.js} +0 -0
  710. /package/modal/esm/{layout.module-4afe4637.js → layout.module-8c3f4015.js} +0 -0
  711. /package/modal/{layout.module-c0183a7f.js → layout.module-6f0f649e.js} +0 -0
  712. /package/modal/modern/{layout.module-84df9244.js → layout.module-c0179503.js} +0 -0
  713. /package/pure-cell/{component-9bcef290.d.ts → component-2061fb6d.d.ts} +0 -0
  714. /package/pure-cell/{component-9bcef290.js → component-2061fb6d.js} +0 -0
  715. /package/pure-cell/esm/{component-3373819d.d.ts → component-e838a48b.d.ts} +0 -0
  716. /package/pure-cell/esm/{component-3373819d.js → component-e838a48b.js} +0 -0
  717. /package/pure-cell/modern/{component-7e0894f9.d.ts → component-a22727a6.d.ts} +0 -0
  718. /package/pure-cell/modern/{component-7e0894f9.js → component-a22727a6.js} +0 -0
  719. /package/select/esm/{hook-8a20b049.d.ts → hook-7650fcff.d.ts} +0 -0
  720. /package/select/esm/{hook-8a20b049.js → hook-7650fcff.js} +0 -0
  721. /package/select/esm/{list-popover-desktop-bd28da6e.d.ts → list-popover-desktop-72ae27cf.d.ts} +0 -0
  722. /package/select/esm/{list-popover-desktop-bd28da6e.js → list-popover-desktop-72ae27cf.js} +0 -0
  723. /package/select/esm/{mobile.module-23c73523.js → mobile.module-8f586354.js} +0 -0
  724. /package/select/{hook-bc6b4a23.d.ts → hook-2b7aa5ff.d.ts} +0 -0
  725. /package/select/{hook-bc6b4a23.js → hook-2b7aa5ff.js} +0 -0
  726. /package/select/{list-popover-desktop-d31a2646.d.ts → list-popover-desktop-769ffea3.d.ts} +0 -0
  727. /package/select/{list-popover-desktop-d31a2646.js → list-popover-desktop-769ffea3.js} +0 -0
  728. /package/select/{mobile.module-73e7c61e.js → mobile.module-d30b56ac.js} +0 -0
  729. /package/select/modern/{hook-70091f28.d.ts → hook-99e3535e.d.ts} +0 -0
  730. /package/select/modern/{hook-70091f28.js → hook-99e3535e.js} +0 -0
  731. /package/select/modern/{list-popover-desktop-c4814f73.d.ts → list-popover-desktop-319208cf.d.ts} +0 -0
  732. /package/select/modern/{list-popover-desktop-c4814f73.js → list-popover-desktop-319208cf.js} +0 -0
  733. /package/select/modern/{mobile.module-45dddf0a.js → mobile.module-b32d7337.js} +0 -0
  734. /package/side-panel/esm/{layout.module-6d3f577b.js → layout.module-155f70bb.js} +0 -0
  735. /package/side-panel/{layout.module-3b821f77.js → layout.module-954e4edd.js} +0 -0
  736. /package/side-panel/modern/{layout.module-2b67196f.js → layout.module-967ac179.js} +0 -0
  737. /package/typography/{colors.module-118ea2b6.js → colors.module-020c0805.js} +0 -0
  738. /package/typography/{common.module-06b35917.js → common.module-27eacf15.js} +0 -0
  739. /package/typography/esm/{colors.module-db0972cf.js → colors.module-ecac5cf6.js} +0 -0
  740. /package/typography/esm/{common.module-5ac0e779.js → common.module-247badde.js} +0 -0
  741. /package/typography/modern/{colors.module-b319ea97.js → colors.module-07a8f050.js} +0 -0
  742. /package/typography/modern/{common.module-2c0f95fc.js → common.module-ef8742a0.js} +0 -0
  743. /package/universal-date-input/{Component-ebe70d06.d.ts → Component-68850940.d.ts} +0 -0
  744. /package/universal-date-input/cssm/{Component-ebe70d06.d.ts → Component-68850940.d.ts} +0 -0
  745. /package/universal-date-input/esm/{Component-ebe70d06.d.ts → Component-68850940.d.ts} +0 -0
  746. /package/universal-date-input/modern/{Component-ebe70d06.d.ts → Component-68850940.d.ts} +0 -0
  747. /package/universal-date-input/moderncssm/{Component-ebe70d06.d.ts → Component-68850940.d.ts} +0 -0
@@ -0,0 +1,31 @@
1
+ import React, { useContext } from 'react';
2
+ import cn from 'classnames';
3
+ import { Typography } from '../../../../typography/moderncssm';
4
+ import { FileUploadItemContext } from '../../context/file-upload-item-context.js';
5
+ import { ContentSubtitle } from './components/content-subtitle/content-subtitle.js';
6
+ import styles from './content.module.css';
7
+ import '../../utils.js';
8
+ import '../../const/upload-status-map.js';
9
+ import './components/content-error/content-error.js';
10
+ import './components/content-error/content-error.module.css';
11
+ import './components/content-subtitle/hooks/useContentSubtitle.js';
12
+ import '../../const/progress-bar.js';
13
+ import './utils/isError.js';
14
+ import './components/content-subtitle/content-subtitle.module.css';
15
+
16
+ const Content = () => {
17
+ const { title, customContent: CustomContent, truncate, subtitle, showRestore, } = useContext(FileUploadItemContext);
18
+ if (CustomContent) {
19
+ return React.createElement(CustomContent, null);
20
+ }
21
+ return (React.createElement("div", { className: cn(styles.container, {
22
+ [styles.single]: !subtitle,
23
+ }) },
24
+ title && (React.createElement(Typography.Text, { className: cn(styles.title, {
25
+ [styles.truncate]: truncate,
26
+ [styles.restore]: showRestore,
27
+ }), view: 'component', color: 'primary' }, title)),
28
+ React.createElement(ContentSubtitle, null)));
29
+ };
30
+
31
+ export { Content };
@@ -0,0 +1,37 @@
1
+ /* */
2
+
3
+ .container {
4
+ padding: var(--gap-2) 0 0 var(--gap-16);
5
+ width: 100%;
6
+ cursor: pointer
7
+ }
8
+
9
+ .container.single {
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: center;
13
+ padding-top: 0;
14
+ min-height: 48px
15
+ }
16
+
17
+ .container.single .title {
18
+ margin-bottom: 0;
19
+ }
20
+
21
+ .container .title {
22
+ margin-bottom: var(--gap-4);
23
+ }
24
+
25
+ .container .title {
26
+ display: block
27
+ }
28
+
29
+ .container .title.truncate {
30
+ white-space: nowrap;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ }
34
+
35
+ .container .title.restore {
36
+ color: var(--color-light-text-tertiary);
37
+ }
@@ -0,0 +1 @@
1
+ export { Content } from "./content";
@@ -0,0 +1,15 @@
1
+ export { Content } from './content.js';
2
+ import 'react';
3
+ import 'classnames';
4
+ import '../../../../typography/moderncssm';
5
+ import '../../context/file-upload-item-context.js';
6
+ import './components/content-subtitle/content-subtitle.js';
7
+ import '../../utils.js';
8
+ import '../../const/upload-status-map.js';
9
+ import './components/content-error/content-error.js';
10
+ import './components/content-error/content-error.module.css';
11
+ import './components/content-subtitle/hooks/useContentSubtitle.js';
12
+ import '../../const/progress-bar.js';
13
+ import './utils/isError.js';
14
+ import './components/content-subtitle/content-subtitle.module.css';
15
+ import './content.module.css';
@@ -0,0 +1,2 @@
1
+ declare const isError: (error?: string | string[]) => boolean;
2
+ export { isError };
@@ -0,0 +1,11 @@
1
+ const isError = (error) => {
2
+ if (typeof error === 'string' && error.length > 0) {
3
+ return true;
4
+ }
5
+ if (Array.isArray(error) && error.length > 0) {
6
+ return true;
7
+ }
8
+ return false;
9
+ };
10
+
11
+ export { isError };
@@ -0,0 +1 @@
1
+ export { LeftAddonIcon } from "./left-addon-icon";
@@ -0,0 +1,14 @@
1
+ export { LeftAddonIcon } from './left-addon-icon.js';
2
+ import 'react';
3
+ import '@alfalab/icons-glyph/Document1CMIcon';
4
+ import '@alfalab/icons-glyph/DocumentDocMIcon';
5
+ import '@alfalab/icons-glyph/DocumentExcelMIcon';
6
+ import '@alfalab/icons-glyph/DocumentImageMIcon';
7
+ import '@alfalab/icons-glyph/DocumentMIcon';
8
+ import '@alfalab/icons-glyph/DocumentOffMIcon';
9
+ import '@alfalab/icons-glyph/DocumentPdfMIcon';
10
+ import '@alfalab/icons-glyph/PaperclipMIcon';
11
+ import '../../../../const/file-type-map.js';
12
+ import '../../../../context/file-upload-item-context.js';
13
+ import '../../../../utils.js';
14
+ import '../../../../const/upload-status-map.js';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const LeftAddonIcon: () => React.JSX.Element | null;
4
+ export { LeftAddonIcon };
@@ -0,0 +1,57 @@
1
+ import React, { useContext } from 'react';
2
+ import { Document1CMIcon } from '@alfalab/icons-glyph/Document1CMIcon';
3
+ import { DocumentDocMIcon } from '@alfalab/icons-glyph/DocumentDocMIcon';
4
+ import { DocumentExcelMIcon } from '@alfalab/icons-glyph/DocumentExcelMIcon';
5
+ import { DocumentImageMIcon } from '@alfalab/icons-glyph/DocumentImageMIcon';
6
+ import { DocumentMIcon } from '@alfalab/icons-glyph/DocumentMIcon';
7
+ import DocumentOffMIcon from '@alfalab/icons-glyph/DocumentOffMIcon';
8
+ import { DocumentPdfMIcon } from '@alfalab/icons-glyph/DocumentPdfMIcon';
9
+ import { PaperclipMIcon } from '@alfalab/icons-glyph/PaperclipMIcon';
10
+ import { FileTypeMap } from '../../../../const/file-type-map.js';
11
+ import { FileUploadItemContext } from '../../../../context/file-upload-item-context.js';
12
+ import { isInitialStatus, getExtension } from '../../../../utils.js';
13
+ import '../../../../const/upload-status-map.js';
14
+
15
+ /* eslint-disable complexity */
16
+ const LeftAddonIcon = () => {
17
+ const { title = '', uploadStatus, iconStyle, customIcon: CustomIcon, imageUrl, showRestore, } = useContext(FileUploadItemContext);
18
+ if (imageUrl) {
19
+ return null;
20
+ }
21
+ if (CustomIcon) {
22
+ return React.createElement(CustomIcon, null);
23
+ }
24
+ if (isInitialStatus(uploadStatus)) {
25
+ return React.createElement(PaperclipMIcon, null);
26
+ }
27
+ if (showRestore) {
28
+ return React.createElement(DocumentOffMIcon, null);
29
+ }
30
+ const isColoredIcon = iconStyle === 'colored';
31
+ const fileType = getExtension(title);
32
+ switch (fileType) {
33
+ case FileTypeMap.pdf:
34
+ return (React.createElement(DocumentPdfMIcon, { ...(isColoredIcon && { color: 'var(--color-light-decorative-red)' }) }));
35
+ case FileTypeMap.doc:
36
+ case FileTypeMap.docx:
37
+ return (React.createElement(DocumentDocMIcon, { ...(isColoredIcon && { color: 'var(--color-light-decorative-blue)' }) }));
38
+ case FileTypeMap.xls:
39
+ case FileTypeMap.xlsx:
40
+ return (React.createElement(DocumentExcelMIcon, { ...(isColoredIcon && { color: 'var(--color-light-decorative-green)' }) }));
41
+ case FileTypeMap['1c']:
42
+ return (React.createElement(Document1CMIcon, { ...(isColoredIcon && { color: 'var(--color-light-decorative-orange)' }) }));
43
+ case FileTypeMap.png:
44
+ case FileTypeMap.jpg:
45
+ case FileTypeMap.jpeg:
46
+ case FileTypeMap.svg:
47
+ case FileTypeMap.tif:
48
+ case FileTypeMap.tiff:
49
+ return React.createElement(DocumentImageMIcon, null);
50
+ default:
51
+ return (React.createElement(DocumentMIcon, { ...(isColoredIcon && {
52
+ color: 'var(--color-light-neutral-translucent-1300)',
53
+ }) }));
54
+ }
55
+ };
56
+
57
+ export { LeftAddonIcon };
@@ -0,0 +1 @@
1
+ export { ProgressBar } from "./progress-bar";
@@ -0,0 +1,2 @@
1
+ export { ProgressBar } from './progress-bar.js';
2
+ import 'react';
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ type ProgressBarProps = {
3
+ color: string;
4
+ };
5
+ declare const ProgressBar: FC<ProgressBarProps>;
6
+ export { ProgressBar };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ const ProgressBar = ({ color = '#BABBC2' }) => (React.createElement("svg", { width: '56', height: '56', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
4
+ React.createElement("mask", { id: 'b', style: { maskType: 'alpha' }, maskUnits: 'userSpaceOnUse', x: '0', y: '0', width: '56', height: '56' },
5
+ React.createElement("mask", { id: 'a', fill: '#fff' },
6
+ React.createElement("path", { d: 'M15.855.814C19.13.345 23.178 0 28 0c4.822 0 8.87.345 12.145.814 7.916 1.133 13.908 7.125 15.041 15.041C55.655 19.13 56 23.178 56 28c0 4.822-.345 8.87-.814 12.145-1.133 7.916-7.125 13.908-15.041 15.041C36.87 55.655 32.822 56 28 56c-4.822 0-8.87-.345-12.145-.814C7.94 54.053 1.947 48.061.814 40.145.345 36.87 0 32.822 0 28c0-4.822.345-8.87.814-12.145C1.947 7.94 7.939 1.947 15.855.814Z' })),
7
+ React.createElement("path", { d: 'm15.855.814.284 1.98-.284-1.98Zm24.29 0-.284 1.98.284-1.98Zm15.041 15.041-1.98.284 1.98-.284Zm0 24.29-1.98-.284 1.98.284ZM40.145 55.186l-.284-1.98.284 1.98Zm-24.29 0 .284-1.98-.284 1.98ZM.814 40.145l1.98-.284-1.98.284Zm0-24.29-1.98-.283 1.98.283ZM28-2c-4.918 0-9.061.352-12.428.834l.567 3.96C19.319 2.338 23.274 2 28 2v-4Zm12.428.834C37.061-1.648 32.918-2 28-2v4c4.726 0 8.68.338 11.861.794l.567-3.96Zm16.738 16.738C55.907 6.776 49.224.092 40.428-1.166l-.567 3.96C46.9 3.8 52.2 9.102 53.206 16.139l3.96-.567ZM58 28c0-4.918-.352-9.061-.834-12.428l-3.96.567C53.662 19.319 54 23.274 54 28h4Zm-.834 12.428C57.648 37.061 58 32.918 58 28h-4c0 4.726-.338 8.68-.794 11.861l3.96.567ZM40.428 57.166c8.796-1.259 15.48-7.942 16.738-16.738l-3.96-.567C52.2 46.9 46.898 52.2 39.861 53.206l.567 3.96ZM28 58c4.918 0 9.061-.352 12.428-.834l-.567-3.96C36.681 53.662 32.726 54 28 54v4Zm-12.428-.834c3.367.482 7.51.834 12.428.834v-4c-4.726 0-8.68-.338-11.861-.794l-.567 3.96ZM-1.166 40.428c1.259 8.796 7.942 15.48 16.738 16.738l.567-3.96C9.102 52.2 3.8 46.898 2.794 39.861l-3.96.567ZM-2 28c0 4.918.352 9.061.834 12.428l3.96-.567C2.338 36.681 2 32.726 2 28h-4Zm.834-12.428C-1.648 18.939-2 23.082-2 28h4c0-4.726.338-8.68.794-11.861l-3.96-.567ZM15.572-1.166C6.776.093.092 6.776-1.166 15.572l3.96.567C3.8 9.102 9.102 3.8 16.139 2.794l-.567-3.96Z', fill: '#000', mask: 'url(#a)' })),
8
+ React.createElement("g", { mask: 'url(#b)' },
9
+ React.createElement("circle", { cx: '28', cy: '28', r: '32', fill: color }))));
10
+
11
+ export { ProgressBar };
@@ -0,0 +1 @@
1
+ export { LeftAddon } from "./left-addon";
@@ -0,0 +1,19 @@
1
+ export { LeftAddon } from './left-addon.js';
2
+ import 'react';
3
+ import 'classnames';
4
+ import '@alfalab/core-components/icon-view/super-ellipse';
5
+ import '../../context/file-upload-item-context.js';
6
+ import '../../utils.js';
7
+ import '../../const/upload-status-map.js';
8
+ import './components/left-addon-icon/left-addon-icon.js';
9
+ import '@alfalab/icons-glyph/Document1CMIcon';
10
+ import '@alfalab/icons-glyph/DocumentDocMIcon';
11
+ import '@alfalab/icons-glyph/DocumentExcelMIcon';
12
+ import '@alfalab/icons-glyph/DocumentImageMIcon';
13
+ import '@alfalab/icons-glyph/DocumentMIcon';
14
+ import '@alfalab/icons-glyph/DocumentOffMIcon';
15
+ import '@alfalab/icons-glyph/DocumentPdfMIcon';
16
+ import '@alfalab/icons-glyph/PaperclipMIcon';
17
+ import '../../const/file-type-map.js';
18
+ import './components/progress-bar/progress-bar.js';
19
+ import './left-addon.module.css';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const LeftAddon: () => React.JSX.Element;
4
+ export { LeftAddon };
@@ -0,0 +1,45 @@
1
+ import React, { useContext, useRef } from 'react';
2
+ import cn from 'classnames';
3
+ import { SuperEllipse } from '@alfalab/core-components/icon-view/super-ellipse';
4
+ import { FileUploadItemContext } from '../../context/file-upload-item-context.js';
5
+ import { isUploadingStatus, isSuccessStatus, isErrorStatus } from '../../utils.js';
6
+ import { LeftAddonIcon } from './components/left-addon-icon/left-addon-icon.js';
7
+ import { ProgressBar } from './components/progress-bar/progress-bar.js';
8
+ import styles from './left-addon.module.css';
9
+ import '../../const/upload-status-map.js';
10
+ import '@alfalab/icons-glyph/Document1CMIcon';
11
+ import '@alfalab/icons-glyph/DocumentDocMIcon';
12
+ import '@alfalab/icons-glyph/DocumentExcelMIcon';
13
+ import '@alfalab/icons-glyph/DocumentImageMIcon';
14
+ import '@alfalab/icons-glyph/DocumentMIcon';
15
+ import '@alfalab/icons-glyph/DocumentOffMIcon';
16
+ import '@alfalab/icons-glyph/DocumentPdfMIcon';
17
+ import '@alfalab/icons-glyph/PaperclipMIcon';
18
+ import '../../const/file-type-map.js';
19
+
20
+ const LeftAddon = () => {
21
+ const { uploadStatus = 'INITIAL', progressBar, imageUrl } = useContext(FileUploadItemContext);
22
+ const progressRef = useRef(null);
23
+ if (progressRef.current) {
24
+ progressRef.current.style.maskImage = `conic-gradient(red ${progressBar}deg, transparent 0)`;
25
+ }
26
+ const colors = {
27
+ INITIAL: 'transparent',
28
+ UPLOADED: 'transparent',
29
+ DELETED: 'transparent',
30
+ UPLOADING: '#BABBC2',
31
+ SUCCESS: '#0CC44D',
32
+ ERROR: '#FF4837',
33
+ };
34
+ return (React.createElement("div", { className: styles.container },
35
+ React.createElement(SuperEllipse, { size: 48, backgroundColor: 'var(--color-light-neutral-translucent-100)', ...(imageUrl && { imageUrl }) },
36
+ React.createElement(LeftAddonIcon, null)),
37
+ React.createElement("div", { ref: progressRef, className: cn(styles.progress, {
38
+ [styles.uploading]: isUploadingStatus(uploadStatus),
39
+ [styles.success]: isSuccessStatus(uploadStatus),
40
+ [styles.error]: isErrorStatus(uploadStatus),
41
+ }) },
42
+ React.createElement(ProgressBar, { color: colors[uploadStatus] }))));
43
+ };
44
+
45
+ export { LeftAddon };
@@ -0,0 +1,32 @@
1
+ /* */
2
+
3
+ .container {
4
+ position: relative;
5
+ cursor: pointer
6
+ }
7
+
8
+ .container .progress {
9
+ position: absolute;
10
+ top: var(--gap-4-neg);
11
+ left: var(--gap-4-neg);
12
+ z-index: 1;
13
+
14
+ width: 56px;
15
+ height: 56px;
16
+
17
+ -webkit-mask-image: conic-gradient(black 0, transparent 0);
18
+
19
+ mask-image: conic-gradient(black 0, transparent 0)
20
+ }
21
+
22
+ .container .progress.uploading {
23
+ opacity: 1;
24
+ }
25
+
26
+ .container .progress.success,
27
+ .container .progress.error {
28
+ transition: opacity 400ms ease-in;
29
+ opacity: 0;
30
+ -webkit-mask-image: conic-gradient(black 360deg, transparent 0);
31
+ mask-image: conic-gradient(black 360deg, transparent 0);
32
+ }
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { MouseEvent } from 'react';
3
+ declare const useRightAddon: () => {
4
+ downloadLink: string | undefined;
5
+ showRestore: boolean | undefined;
6
+ disableButtons: boolean | undefined;
7
+ download: string | true | undefined;
8
+ target: import("react").HTMLAttributeAnchorTarget | undefined;
9
+ showDelete: boolean | undefined;
10
+ handleDownload: (e: MouseEvent<HTMLElement>) => void;
11
+ handleDelete: (event: MouseEvent<HTMLElement>) => void;
12
+ handleRestore: () => void;
13
+ };
14
+ export { useRightAddon };
@@ -0,0 +1,35 @@
1
+ import { useContext } from 'react';
2
+ import { FileUploadItemContext } from '../../../context/file-upload-item-context.js';
3
+
4
+ const useRightAddon = () => {
5
+ const { showRestore, id = '0', downloadLink, download, disableButtons, target, showDelete, onDownload, onDelete, onRestore, } = useContext(FileUploadItemContext);
6
+ const handleDownload = (e) => {
7
+ if (onDownload) {
8
+ e.preventDefault();
9
+ onDownload(id);
10
+ }
11
+ };
12
+ const handleDelete = (event) => {
13
+ if (onDelete) {
14
+ onDelete(id, event);
15
+ }
16
+ };
17
+ const handleRestore = () => {
18
+ if (onRestore) {
19
+ onRestore(id);
20
+ }
21
+ };
22
+ return {
23
+ downloadLink,
24
+ showRestore,
25
+ disableButtons,
26
+ download,
27
+ target,
28
+ showDelete,
29
+ handleDownload,
30
+ handleDelete,
31
+ handleRestore,
32
+ };
33
+ };
34
+
35
+ export { useRightAddon };
@@ -0,0 +1 @@
1
+ export { RightAddon } from "./right-addon";
@@ -0,0 +1,9 @@
1
+ export { RightAddon } from './right-addon.js';
2
+ import 'react';
3
+ import '../../../../icon-button/moderncssm';
4
+ import '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';
5
+ import '@alfalab/icons-glyph/ArrowsCwCompactMIcon';
6
+ import '@alfalab/icons-glyph/CrossMIcon';
7
+ import './hooks/useRightAddon.js';
8
+ import '../../context/file-upload-item-context.js';
9
+ import './right-addon.module.css';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ declare const RightAddon: () => React.JSX.Element;
4
+ export { RightAddon };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { IconButton } from '../../../../icon-button/moderncssm';
3
+ import ArrowDownLineDownCompactMIcon from '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';
4
+ import ArrowsCwCompactMIcon from '@alfalab/icons-glyph/ArrowsCwCompactMIcon';
5
+ import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
6
+ import { useRightAddon } from './hooks/useRightAddon.js';
7
+ import styles from './right-addon.module.css';
8
+ import '../../context/file-upload-item-context.js';
9
+
10
+ const RightAddon = () => {
11
+ const { downloadLink, showRestore, disableButtons, download, target, showDelete, handleDownload, handleDelete, handleRestore, } = useRightAddon();
12
+ const showDownload = Boolean(downloadLink) && !showRestore;
13
+ return (React.createElement("div", { className: styles.container },
14
+ showRestore && (React.createElement(IconButton, { className: styles.icon, size: 'xxs', "aria-label": '\u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C', icon: React.createElement(ArrowsCwCompactMIcon, { color: 'var(--color-light-text-tertiary)' }), disabled: disableButtons, onClick: handleRestore })),
15
+ showDownload && (React.createElement(IconButton, { className: styles.icon, size: 'xxs', "aria-label": '\u0441\u043A\u0430\u0447\u0430\u0442\u044C', icon: React.createElement(ArrowDownLineDownCompactMIcon, { color: 'var(--color-light-text-tertiary)' }), disabled: disableButtons, href: downloadLink, download: download, target: target, onClick: handleDownload })),
16
+ showDelete && !showRestore && (React.createElement(IconButton, { className: styles.icon, size: 'xxs', "aria-label": '\u0443\u0434\u0430\u043B\u0438\u0442\u044C', icon: React.createElement(CrossMIcon, { color: 'var(--color-light-text-tertiary)' }), disabled: disableButtons, onClick: handleDelete }))));
17
+ };
18
+
19
+ export { RightAddon };
@@ -0,0 +1,8 @@
1
+ .container {
2
+ display: flex;
3
+ max-width: 144px
4
+ }
5
+ .container .icon {
6
+ width: 48px;
7
+ height: 48px;
8
+ }
@@ -0,0 +1,15 @@
1
+ declare const FileTypeMap: {
2
+ readonly pdf: "pdf";
3
+ readonly doc: "doc";
4
+ readonly docx: "docx";
5
+ readonly xls: "xls";
6
+ readonly xlsx: "xlsx";
7
+ readonly '1c': "1c";
8
+ readonly png: "png";
9
+ readonly jpg: "jpg";
10
+ readonly jpeg: "jpeg";
11
+ readonly svg: "svg";
12
+ readonly tif: "tif";
13
+ readonly tiff: "tiff";
14
+ };
15
+ export { FileTypeMap };
@@ -0,0 +1,16 @@
1
+ const FileTypeMap = {
2
+ pdf: 'pdf',
3
+ doc: 'doc',
4
+ docx: 'docx',
5
+ xls: 'xls',
6
+ xlsx: 'xlsx',
7
+ '1c': '1c',
8
+ png: 'png',
9
+ jpg: 'jpg',
10
+ jpeg: 'jpeg',
11
+ svg: 'svg',
12
+ tif: 'tif',
13
+ tiff: 'tiff',
14
+ };
15
+
16
+ export { FileTypeMap };
@@ -0,0 +1,2 @@
1
+ declare const progressBarDistance = 360;
2
+ export { progressBarDistance };
@@ -0,0 +1,3 @@
1
+ const progressBarDistance = 360;
2
+
3
+ export { progressBarDistance };
@@ -0,0 +1,9 @@
1
+ declare const UploadStatusMap: {
2
+ readonly INITIAL: "INITIAL";
3
+ readonly UPLOADING: "UPLOADING";
4
+ readonly UPLOADED: "UPLOADED";
5
+ readonly SUCCESS: "SUCCESS";
6
+ readonly ERROR: "ERROR";
7
+ readonly DELETED: "DELETED";
8
+ };
9
+ export { UploadStatusMap };
@@ -0,0 +1,10 @@
1
+ const UploadStatusMap = {
2
+ INITIAL: 'INITIAL',
3
+ UPLOADING: 'UPLOADING',
4
+ UPLOADED: 'UPLOADED',
5
+ SUCCESS: 'SUCCESS',
6
+ ERROR: 'ERROR',
7
+ DELETED: 'DELETED', // состояние удаленного элемента
8
+ };
9
+
10
+ export { UploadStatusMap };
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { ElementType, HTMLAttributeAnchorTarget, MouseEvent } from 'react';
3
+ import { FileStatuses } from "../types/index";
4
+ type TFileUploadItemContext = {
5
+ showRestore?: boolean;
6
+ uploadStatus?: FileStatuses;
7
+ error?: string | string[];
8
+ title?: string;
9
+ subtitle?: string;
10
+ uploadDate?: string;
11
+ size?: string | number;
12
+ id?: string;
13
+ onDownload?: (id: string) => void;
14
+ onDelete?: (id: string, event?: MouseEvent<HTMLElement>) => void;
15
+ onRestore?: (id: string) => void;
16
+ downloadLink?: string;
17
+ download?: string | true;
18
+ disableButtons?: boolean;
19
+ target?: HTMLAttributeAnchorTarget;
20
+ showDelete?: boolean;
21
+ customIcon?: ElementType<{
22
+ className?: string;
23
+ }>;
24
+ iconStyle?: 'gray' | 'colored';
25
+ progressBar?: number;
26
+ customContent?: ElementType;
27
+ truncate?: boolean;
28
+ imageUrl?: string;
29
+ };
30
+ declare const FileUploadItemContext: import("react").Context<TFileUploadItemContext>;
31
+ export { FileUploadItemContext };
@@ -0,0 +1,28 @@
1
+ import { createContext } from 'react';
2
+
3
+ const FileUploadItemContext = createContext({
4
+ showRestore: false,
5
+ uploadStatus: 'INITIAL',
6
+ error: undefined,
7
+ title: '',
8
+ subtitle: '',
9
+ uploadDate: '',
10
+ size: 0,
11
+ id: '0',
12
+ onDownload: undefined,
13
+ onDelete: undefined,
14
+ onRestore: undefined,
15
+ downloadLink: '',
16
+ download: '',
17
+ disableButtons: false,
18
+ target: undefined,
19
+ showDelete: false,
20
+ iconStyle: 'gray',
21
+ customIcon: undefined,
22
+ progressBar: 0,
23
+ customContent: undefined,
24
+ truncate: false,
25
+ imageUrl: undefined,
26
+ });
27
+
28
+ export { FileUploadItemContext };
@@ -1,18 +1,38 @@
1
- export { FileUploadItem } from './Component.js';
1
+ export { FileUploadItem, FileUploadItemComponent } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '../../icon-button/moderncssm';
5
- import '../../link/moderncssm';
6
- import '../../spinner/moderncssm';
7
- import '@alfalab/icons-glyph/AlertCircleMIcon';
8
- import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
9
- import '@alfalab/icons-glyph/ClockMIcon';
10
- import '@alfalab/icons-glyph/CrossSIcon';
11
- import '@alfalab/icons-glyph/PointerDownSIcon';
4
+ import './components/content/content.js';
5
+ import '../../typography/moderncssm';
6
+ import './context/file-upload-item-context.js';
7
+ import './components/content/components/content-subtitle/content-subtitle.js';
12
8
  import './utils.js';
9
+ import './const/upload-status-map.js';
10
+ import './components/content/components/content-error/content-error.js';
11
+ import './components/content/components/content-error/content-error.module.css';
12
+ import './components/content/components/content-subtitle/hooks/useContentSubtitle.js';
13
+ import './const/progress-bar.js';
14
+ import './components/content/utils/isError.js';
15
+ import './components/content/components/content-subtitle/content-subtitle.module.css';
16
+ import './components/content/content.module.css';
17
+ import './components/left-addon/left-addon.js';
18
+ import '@alfalab/core-components/icon-view/super-ellipse';
19
+ import './components/left-addon/components/left-addon-icon/left-addon-icon.js';
20
+ import '@alfalab/icons-glyph/Document1CMIcon';
13
21
  import '@alfalab/icons-glyph/DocumentDocMIcon';
22
+ import '@alfalab/icons-glyph/DocumentExcelMIcon';
14
23
  import '@alfalab/icons-glyph/DocumentImageMIcon';
24
+ import '@alfalab/icons-glyph/DocumentMIcon';
25
+ import '@alfalab/icons-glyph/DocumentOffMIcon';
15
26
  import '@alfalab/icons-glyph/DocumentPdfMIcon';
16
- import '@alfalab/icons-glyph/DocumentTxtMIcon';
17
- import '@alfalab/icons-glyph/DocumentUnknownMIcon';
27
+ import '@alfalab/icons-glyph/PaperclipMIcon';
28
+ import './const/file-type-map.js';
29
+ import './components/left-addon/components/progress-bar/progress-bar.js';
30
+ import './components/left-addon/left-addon.module.css';
31
+ import './components/right-addon/right-addon.js';
32
+ import '../../icon-button/moderncssm';
33
+ import '@alfalab/icons-glyph/ArrowDownLineDownCompactMIcon';
34
+ import '@alfalab/icons-glyph/ArrowsCwCompactMIcon';
35
+ import '@alfalab/icons-glyph/CrossMIcon';
36
+ import './components/right-addon/hooks/useRightAddon.js';
37
+ import './components/right-addon/right-addon.module.css';
18
38
  import './index.module.css';