@salutejs/plasma-new-hope 0.150.0-canary.1437.10958276336.0 → 0.150.0-canary.1439.10959387755.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (601) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +18 -18
  2. package/cjs/components/Autocomplete/Autocomplete.styles.js +5 -5
  3. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  4. package/cjs/components/Autocomplete/{Autocomplete.styles_4wbmok.css → Autocomplete.styles_192fzgs.css} +1 -1
  5. package/cjs/components/Autocomplete/Autocomplete.tokens.js +3 -0
  6. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  7. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  8. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  9. package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_sx1sq7.css → TextField.styles_11nkcwo.css} +1 -1
  10. package/cjs/components/Cell/Cell.js +2 -3
  11. package/cjs/components/Cell/Cell.js.map +1 -1
  12. package/cjs/components/Combobox/ComboboxNew/Combobox.css +15 -15
  13. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +11 -11
  14. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/{Combobox.styles_iq2uzw.css → Combobox.styles_1s09ifw.css} +1 -1
  16. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  17. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  18. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -15
  19. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -15
  20. package/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  21. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  22. package/cjs/components/DatePicker/RangeDate/RangeDate.css +12 -12
  23. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -12
  24. package/cjs/components/DatePicker/SingleDate/SingleDate.css +14 -14
  25. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  26. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  27. package/{es/components/DatePicker/SingleDate/SingleDate.styles_qt45m5.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_1ekc7aj.css} +1 -1
  28. package/cjs/components/Pagination/Pagination.css +17 -17
  29. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  30. package/cjs/components/Range/Range.css +12 -12
  31. package/cjs/components/Select/Select.css +17 -17
  32. package/cjs/components/Select/Select.styles.js +3 -3
  33. package/cjs/components/Select/Select.styles.js.map +1 -1
  34. package/{es/components/Select/Select.styles_hzoeqc.css → cjs/components/Select/Select.styles_1nzals0.css} +1 -1
  35. package/cjs/components/Select/Select.tokens.js +5 -1
  36. package/cjs/components/Select/Select.tokens.js.map +1 -1
  37. package/cjs/components/Select/ui/Inner/Inner.css +17 -17
  38. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  39. package/cjs/components/Select/ui/Target/Target.css +12 -12
  40. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  41. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +29 -15
  42. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  43. package/{es/components/Select/ui/Target/ui/Textfield/Textfield.styles_rtzthp.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +2 -2
  44. package/cjs/components/Slider/Slider.css +12 -12
  45. package/cjs/components/Slider/components/Double/Double.css +12 -12
  46. package/cjs/components/TextArea/TextArea.styles.js +27 -27
  47. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  48. package/cjs/components/TextArea/{TextArea.styles_1fyj8ox.css → TextArea.styles_1kzzs11.css} +2 -2
  49. package/cjs/components/TextArea/TextArea.tokens.js +15 -0
  50. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  51. package/cjs/components/TextArea/variations/_view/base.js +1 -1
  52. package/cjs/components/TextArea/variations/_view/base.js.map +1 -1
  53. package/cjs/components/TextArea/variations/_view/base_8npjyq.css +1 -0
  54. package/cjs/components/TextField/TextField.styles.js +1 -1
  55. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  56. package/{es/components/TextField/TextField.styles_ht6ibd.css → cjs/components/TextField/TextField.styles_uponva.css} +1 -1
  57. package/cjs/components/TextField/TextField.tokens.js +3 -0
  58. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  59. package/cjs/index.css +54 -69
  60. package/cjs/index.js +0 -5
  61. package/cjs/index.js.map +1 -1
  62. package/emotion/cjs/components/Autocomplete/Autocomplete.styles.js +5 -5
  63. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +3 -0
  64. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  65. package/emotion/cjs/components/Cell/Cell.js +2 -3
  66. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +6 -6
  67. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  68. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  69. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  70. package/emotion/cjs/components/Select/Select.styles.js +6 -6
  71. package/emotion/cjs/components/Select/Select.tokens.js +5 -1
  72. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +27 -21
  73. package/emotion/cjs/components/TextArea/TextArea.styles.js +11 -11
  74. package/emotion/cjs/components/TextArea/TextArea.tokens.js +15 -0
  75. package/emotion/cjs/components/TextArea/variations/_view/base.js +1 -1
  76. package/emotion/cjs/components/TextField/TextField.styles.js +15 -15
  77. package/emotion/cjs/components/TextField/TextField.tokens.js +3 -0
  78. package/emotion/cjs/components/_Icon/index.js +1 -57
  79. package/emotion/cjs/index.js +0 -11
  80. package/emotion/es/components/Autocomplete/Autocomplete.styles.js +5 -5
  81. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +3 -0
  82. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  83. package/emotion/es/components/Cell/Cell.js +2 -3
  84. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +6 -6
  85. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  86. package/emotion/es/components/DatePicker/DatePicker.tokens.js +1 -0
  87. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  88. package/emotion/es/components/Select/Select.styles.js +6 -6
  89. package/emotion/es/components/Select/Select.tokens.js +5 -1
  90. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +27 -21
  91. package/emotion/es/components/TextArea/TextArea.styles.js +11 -11
  92. package/emotion/es/components/TextArea/TextArea.tokens.js +15 -0
  93. package/emotion/es/components/TextArea/variations/_view/base.js +1 -1
  94. package/emotion/es/components/TextField/TextField.styles.js +15 -15
  95. package/emotion/es/components/TextField/TextField.tokens.js +3 -0
  96. package/emotion/es/components/_Icon/index.js +1 -9
  97. package/emotion/es/index.js +1 -2
  98. package/es/components/Autocomplete/Autocomplete.css +18 -18
  99. package/es/components/Autocomplete/Autocomplete.styles.js +5 -5
  100. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  101. package/es/components/Autocomplete/{Autocomplete.styles_4wbmok.css → Autocomplete.styles_192fzgs.css} +1 -1
  102. package/es/components/Autocomplete/Autocomplete.tokens.js +3 -0
  103. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  104. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  105. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  106. package/es/components/Autocomplete/ui/TextField/{TextField.styles_sx1sq7.css → TextField.styles_11nkcwo.css} +1 -1
  107. package/es/components/Cell/Cell.js +2 -3
  108. package/es/components/Cell/Cell.js.map +1 -1
  109. package/es/components/Combobox/ComboboxNew/Combobox.css +15 -15
  110. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +11 -11
  111. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  112. package/es/components/Combobox/ComboboxNew/{Combobox.styles_iq2uzw.css → Combobox.styles_1s09ifw.css} +1 -1
  113. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  114. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  115. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -15
  116. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -15
  117. package/es/components/DatePicker/DatePicker.tokens.js +1 -0
  118. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  119. package/es/components/DatePicker/RangeDate/RangeDate.css +12 -12
  120. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -12
  121. package/es/components/DatePicker/SingleDate/SingleDate.css +14 -14
  122. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  123. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  124. package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_qt45m5.css → es/components/DatePicker/SingleDate/SingleDate.styles_1ekc7aj.css} +1 -1
  125. package/es/components/Pagination/Pagination.css +17 -17
  126. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  127. package/es/components/Range/Range.css +12 -12
  128. package/es/components/Select/Select.css +17 -17
  129. package/es/components/Select/Select.styles.js +3 -3
  130. package/es/components/Select/Select.styles.js.map +1 -1
  131. package/{cjs/components/Select/Select.styles_hzoeqc.css → es/components/Select/Select.styles_1nzals0.css} +1 -1
  132. package/es/components/Select/Select.tokens.js +5 -1
  133. package/es/components/Select/Select.tokens.js.map +1 -1
  134. package/es/components/Select/ui/Inner/Inner.css +17 -17
  135. package/es/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  136. package/es/components/Select/ui/Target/Target.css +12 -12
  137. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +12 -12
  138. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +29 -15
  139. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  140. package/{cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_rtzthp.css → es/components/Select/ui/Target/ui/Textfield/Textfield.styles_11yj58s.css} +2 -2
  141. package/es/components/Slider/Slider.css +12 -12
  142. package/es/components/Slider/components/Double/Double.css +12 -12
  143. package/es/components/TextArea/TextArea.styles.js +27 -27
  144. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  145. package/es/components/TextArea/{TextArea.styles_1fyj8ox.css → TextArea.styles_1kzzs11.css} +2 -2
  146. package/es/components/TextArea/TextArea.tokens.js +15 -0
  147. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  148. package/es/components/TextArea/variations/_view/base.js +1 -1
  149. package/es/components/TextArea/variations/_view/base.js.map +1 -1
  150. package/es/components/TextArea/variations/_view/base_8npjyq.css +1 -0
  151. package/es/components/TextField/TextField.styles.js +1 -1
  152. package/es/components/TextField/TextField.styles.js.map +1 -1
  153. package/{cjs/components/TextField/TextField.styles_ht6ibd.css → es/components/TextField/TextField.styles_uponva.css} +1 -1
  154. package/es/components/TextField/TextField.tokens.js +3 -0
  155. package/es/components/TextField/TextField.tokens.js.map +1 -1
  156. package/es/index.css +54 -69
  157. package/es/index.js +0 -2
  158. package/es/index.js.map +1 -1
  159. package/package.json +2 -2
  160. package/styled-components/cjs/components/Autocomplete/Autocomplete.styles.js +2 -2
  161. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +3 -0
  162. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  163. package/styled-components/cjs/components/Cell/Cell.js +2 -3
  164. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  165. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  166. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  167. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  168. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  169. package/styled-components/cjs/components/Select/Select.tokens.js +5 -1
  170. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +15 -9
  171. package/styled-components/cjs/components/TextArea/TextArea.styles.js +2 -2
  172. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +15 -0
  173. package/styled-components/cjs/components/TextArea/variations/_view/base.js +1 -1
  174. package/styled-components/cjs/components/TextField/TextField.styles.js +1 -1
  175. package/styled-components/cjs/components/TextField/TextField.tokens.js +3 -0
  176. package/styled-components/cjs/components/_Icon/index.js +1 -57
  177. package/styled-components/cjs/index.js +0 -11
  178. package/styled-components/es/components/Autocomplete/Autocomplete.styles.js +2 -2
  179. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +3 -0
  180. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  181. package/styled-components/es/components/Cell/Cell.js +2 -3
  182. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  183. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
  184. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +1 -0
  185. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  186. package/styled-components/es/components/Select/Select.styles.js +2 -2
  187. package/styled-components/es/components/Select/Select.tokens.js +5 -1
  188. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +15 -9
  189. package/styled-components/es/components/TextArea/TextArea.styles.js +2 -2
  190. package/styled-components/es/components/TextArea/TextArea.tokens.js +15 -0
  191. package/styled-components/es/components/TextArea/variations/_view/base.js +1 -1
  192. package/styled-components/es/components/TextField/TextField.styles.js +1 -1
  193. package/styled-components/es/components/TextField/TextField.tokens.js +3 -0
  194. package/styled-components/es/components/_Icon/index.js +1 -9
  195. package/styled-components/es/index.js +1 -2
  196. package/types/components/Autocomplete/Autocomplete.styles.d.ts.map +1 -1
  197. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +3 -0
  198. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  199. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  200. package/types/components/Cell/Cell.d.ts.map +1 -1
  201. package/types/components/Cell/Cell.types.d.ts +1 -1
  202. package/types/components/Cell/Cell.types.d.ts.map +1 -1
  203. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  204. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +2 -0
  205. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  206. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +2 -2
  207. package/types/components/DatePicker/DatePicker.tokens.d.ts +1 -0
  208. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  209. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  210. package/types/components/Select/Select.styles.d.ts.map +1 -1
  211. package/types/components/Select/Select.tokens.d.ts +5 -1
  212. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  213. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  214. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  215. package/types/components/TextArea/TextArea.tokens.d.ts +15 -0
  216. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  217. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  218. package/types/components/TextField/TextField.tokens.d.ts +3 -0
  219. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  220. package/types/components/_Icon/index.d.ts +0 -8
  221. package/types/components/_Icon/index.d.ts.map +1 -1
  222. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +2 -2
  223. package/types/examples/plasma_web/components/Cell/Cell.d.ts +2 -2
  224. package/types/index.d.ts +0 -1
  225. package/types/index.d.ts.map +1 -1
  226. package/cjs/components/Attach/Attach.css +0 -48
  227. package/cjs/components/Attach/Attach.js +0 -181
  228. package/cjs/components/Attach/Attach.js.map +0 -1
  229. package/cjs/components/Attach/Attach.styles.js +0 -23
  230. package/cjs/components/Attach/Attach.styles.js.map +0 -1
  231. package/cjs/components/Attach/Attach.styles_fl8wha.css +0 -3
  232. package/cjs/components/Attach/Attach.tokens.js +0 -130
  233. package/cjs/components/Attach/Attach.tokens.js.map +0 -1
  234. package/cjs/components/Attach/components/AttachButton/AttachButton.css +0 -34
  235. package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -50
  236. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +0 -1
  237. package/cjs/components/Attach/ui/Button/Button.styles.js +0 -23
  238. package/cjs/components/Attach/ui/Button/Button.styles.js.map +0 -1
  239. package/cjs/components/Attach/ui/Button/Button.styles_bj69th.css +0 -1
  240. package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -25
  241. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
  242. package/cjs/components/Attach/ui/Cell/Cell.styles_69w962.css +0 -1
  243. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -32
  244. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +0 -1
  245. package/cjs/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +0 -2
  246. package/cjs/components/Attach/utils/extractExtension.js +0 -10
  247. package/cjs/components/Attach/utils/extractExtension.js.map +0 -1
  248. package/cjs/components/Attach/utils/getFileicon.js +0 -51
  249. package/cjs/components/Attach/utils/getFileicon.js.map +0 -1
  250. package/cjs/components/Attach/utils/truncateFilename.js +0 -24
  251. package/cjs/components/Attach/utils/truncateFilename.js.map +0 -1
  252. package/cjs/components/Attach/variations/_size/base.js +0 -9
  253. package/cjs/components/Attach/variations/_size/base.js.map +0 -1
  254. package/cjs/components/Attach/variations/_size/base_eax0b8.css +0 -1
  255. package/cjs/components/Attach/variations/_view/base.js +0 -9
  256. package/cjs/components/Attach/variations/_view/base.js.map +0 -1
  257. package/cjs/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
  258. package/cjs/components/TextArea/variations/_view/base_jjtr9h.css +0 -1
  259. package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -33
  260. package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js.map +0 -1
  261. package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -37
  262. package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js.map +0 -1
  263. package/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -24
  264. package/cjs/components/_Icon/Icon.assets/BlankOutline.js.map +0 -1
  265. package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -29
  266. package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js.map +0 -1
  267. package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -33
  268. package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js.map +0 -1
  269. package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -33
  270. package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js.map +0 -1
  271. package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -24
  272. package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js.map +0 -1
  273. package/cjs/components/_Icon/Icon.assets/Plus.js +0 -24
  274. package/cjs/components/_Icon/Icon.assets/Plus.js.map +0 -1
  275. package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -23
  276. package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js.map +0 -1
  277. package/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -23
  278. package/cjs/components/_Icon/Icons/IconBlankDocOutline.js.map +0 -1
  279. package/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -23
  280. package/cjs/components/_Icon/Icons/IconBlankOutline.js.map +0 -1
  281. package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -23
  282. package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js.map +0 -1
  283. package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -23
  284. package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js.map +0 -1
  285. package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -23
  286. package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js.map +0 -1
  287. package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -23
  288. package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js.map +0 -1
  289. package/cjs/components/_Icon/Icons/IconPlus.js +0 -23
  290. package/cjs/components/_Icon/Icons/IconPlus.js.map +0 -1
  291. package/emotion/cjs/components/Attach/Attach.js +0 -186
  292. package/emotion/cjs/components/Attach/Attach.styles.js +0 -36
  293. package/emotion/cjs/components/Attach/Attach.template-doc.mdx +0 -63
  294. package/emotion/cjs/components/Attach/Attach.tokens.js +0 -128
  295. package/emotion/cjs/components/Attach/Attach.types.js +0 -5
  296. package/emotion/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -52
  297. package/emotion/cjs/components/Attach/components/AttachButton/index.js +0 -12
  298. package/emotion/cjs/components/Attach/index.js +0 -25
  299. package/emotion/cjs/components/Attach/ui/Button/Button.js +0 -12
  300. package/emotion/cjs/components/Attach/ui/Button/Button.styles.js +0 -17
  301. package/emotion/cjs/components/Attach/ui/Cell/Cell.js +0 -12
  302. package/emotion/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -17
  303. package/emotion/cjs/components/Attach/ui/IconButton/IconButton.js +0 -12
  304. package/emotion/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -21
  305. package/emotion/cjs/components/Attach/utils/extractExtension.js +0 -9
  306. package/emotion/cjs/components/Attach/utils/getFileicon.js +0 -44
  307. package/emotion/cjs/components/Attach/utils/index.js +0 -26
  308. package/emotion/cjs/components/Attach/utils/truncateFilename.js +0 -23
  309. package/emotion/cjs/components/Attach/variations/_size/base.js +0 -9
  310. package/emotion/cjs/components/Attach/variations/_view/base.js +0 -9
  311. package/emotion/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -32
  312. package/emotion/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -36
  313. package/emotion/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -23
  314. package/emotion/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -28
  315. package/emotion/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -32
  316. package/emotion/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -32
  317. package/emotion/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -23
  318. package/emotion/cjs/components/_Icon/Icon.assets/Plus.js +0 -23
  319. package/emotion/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -22
  320. package/emotion/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -22
  321. package/emotion/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -22
  322. package/emotion/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -22
  323. package/emotion/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -22
  324. package/emotion/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -22
  325. package/emotion/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -22
  326. package/emotion/cjs/components/_Icon/Icons/IconPlus.js +0 -22
  327. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -37
  328. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
  329. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -177
  330. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -37
  331. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
  332. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -168
  333. package/emotion/es/components/Attach/Attach.js +0 -177
  334. package/emotion/es/components/Attach/Attach.styles.js +0 -29
  335. package/emotion/es/components/Attach/Attach.template-doc.mdx +0 -63
  336. package/emotion/es/components/Attach/Attach.tokens.js +0 -122
  337. package/emotion/es/components/Attach/Attach.types.js +0 -1
  338. package/emotion/es/components/Attach/components/AttachButton/AttachButton.js +0 -43
  339. package/emotion/es/components/Attach/components/AttachButton/index.js +0 -1
  340. package/emotion/es/components/Attach/index.js +0 -2
  341. package/emotion/es/components/Attach/ui/Button/Button.js +0 -1
  342. package/emotion/es/components/Attach/ui/Button/Button.styles.js +0 -10
  343. package/emotion/es/components/Attach/ui/Cell/Cell.js +0 -1
  344. package/emotion/es/components/Attach/ui/Cell/Cell.styles.js +0 -10
  345. package/emotion/es/components/Attach/ui/IconButton/IconButton.js +0 -1
  346. package/emotion/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -14
  347. package/emotion/es/components/Attach/utils/extractExtension.js +0 -3
  348. package/emotion/es/components/Attach/utils/getFileicon.js +0 -37
  349. package/emotion/es/components/Attach/utils/index.js +0 -3
  350. package/emotion/es/components/Attach/utils/truncateFilename.js +0 -17
  351. package/emotion/es/components/Attach/variations/_size/base.js +0 -3
  352. package/emotion/es/components/Attach/variations/_view/base.js +0 -3
  353. package/emotion/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -25
  354. package/emotion/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -29
  355. package/emotion/es/components/_Icon/Icon.assets/BlankOutline.js +0 -16
  356. package/emotion/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -21
  357. package/emotion/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -25
  358. package/emotion/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -25
  359. package/emotion/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -16
  360. package/emotion/es/components/_Icon/Icon.assets/Plus.js +0 -16
  361. package/emotion/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -15
  362. package/emotion/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -15
  363. package/emotion/es/components/_Icon/Icons/IconBlankOutline.js +0 -15
  364. package/emotion/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -15
  365. package/emotion/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -15
  366. package/emotion/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -15
  367. package/emotion/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -15
  368. package/emotion/es/components/_Icon/Icons/IconPlus.js +0 -15
  369. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -31
  370. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
  371. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -177
  372. package/emotion/es/examples/plasma_web/components/Attach/Attach.config.js +0 -31
  373. package/emotion/es/examples/plasma_web/components/Attach/Attach.js +0 -5
  374. package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -168
  375. package/es/components/Attach/Attach.css +0 -48
  376. package/es/components/Attach/Attach.js +0 -176
  377. package/es/components/Attach/Attach.js.map +0 -1
  378. package/es/components/Attach/Attach.styles.js +0 -17
  379. package/es/components/Attach/Attach.styles.js.map +0 -1
  380. package/es/components/Attach/Attach.styles_fl8wha.css +0 -3
  381. package/es/components/Attach/Attach.tokens.js +0 -125
  382. package/es/components/Attach/Attach.tokens.js.map +0 -1
  383. package/es/components/Attach/components/AttachButton/AttachButton.css +0 -34
  384. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -46
  385. package/es/components/Attach/components/AttachButton/AttachButton.js.map +0 -1
  386. package/es/components/Attach/ui/Button/Button.styles.js +0 -19
  387. package/es/components/Attach/ui/Button/Button.styles.js.map +0 -1
  388. package/es/components/Attach/ui/Button/Button.styles_bj69th.css +0 -1
  389. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -21
  390. package/es/components/Attach/ui/Cell/Cell.styles.js.map +0 -1
  391. package/es/components/Attach/ui/Cell/Cell.styles_69w962.css +0 -1
  392. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -27
  393. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +0 -1
  394. package/es/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +0 -2
  395. package/es/components/Attach/utils/extractExtension.js +0 -6
  396. package/es/components/Attach/utils/extractExtension.js.map +0 -1
  397. package/es/components/Attach/utils/getFileicon.js +0 -47
  398. package/es/components/Attach/utils/getFileicon.js.map +0 -1
  399. package/es/components/Attach/utils/truncateFilename.js +0 -20
  400. package/es/components/Attach/utils/truncateFilename.js.map +0 -1
  401. package/es/components/Attach/variations/_size/base.js +0 -5
  402. package/es/components/Attach/variations/_size/base.js.map +0 -1
  403. package/es/components/Attach/variations/_size/base_eax0b8.css +0 -1
  404. package/es/components/Attach/variations/_view/base.js +0 -5
  405. package/es/components/Attach/variations/_view/base.js.map +0 -1
  406. package/es/components/Attach/variations/_view/base_1nvsg1b.css +0 -1
  407. package/es/components/TextArea/variations/_view/base_jjtr9h.css +0 -1
  408. package/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -29
  409. package/es/components/_Icon/Icon.assets/BlankCsvOutline.js.map +0 -1
  410. package/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -33
  411. package/es/components/_Icon/Icon.assets/BlankDocOutline.js.map +0 -1
  412. package/es/components/_Icon/Icon.assets/BlankOutline.js +0 -20
  413. package/es/components/_Icon/Icon.assets/BlankOutline.js.map +0 -1
  414. package/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -25
  415. package/es/components/_Icon/Icon.assets/BlankPdfOutline.js.map +0 -1
  416. package/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -29
  417. package/es/components/_Icon/Icon.assets/BlankTxtOutline.js.map +0 -1
  418. package/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -29
  419. package/es/components/_Icon/Icon.assets/BlankXlsOutline.js.map +0 -1
  420. package/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -20
  421. package/es/components/_Icon/Icon.assets/CloseCircleOutline.js.map +0 -1
  422. package/es/components/_Icon/Icon.assets/Plus.js +0 -20
  423. package/es/components/_Icon/Icon.assets/Plus.js.map +0 -1
  424. package/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -19
  425. package/es/components/_Icon/Icons/IconBlankCsvOutline.js.map +0 -1
  426. package/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -19
  427. package/es/components/_Icon/Icons/IconBlankDocOutline.js.map +0 -1
  428. package/es/components/_Icon/Icons/IconBlankOutline.js +0 -19
  429. package/es/components/_Icon/Icons/IconBlankOutline.js.map +0 -1
  430. package/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -19
  431. package/es/components/_Icon/Icons/IconBlankPdfOutline.js.map +0 -1
  432. package/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -19
  433. package/es/components/_Icon/Icons/IconBlankTxtOutline.js.map +0 -1
  434. package/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -19
  435. package/es/components/_Icon/Icons/IconBlankXlsOutline.js.map +0 -1
  436. package/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -19
  437. package/es/components/_Icon/Icons/IconCloseCircleOutline.js.map +0 -1
  438. package/es/components/_Icon/Icons/IconPlus.js +0 -19
  439. package/es/components/_Icon/Icons/IconPlus.js.map +0 -1
  440. package/styled-components/cjs/components/Attach/Attach.js +0 -186
  441. package/styled-components/cjs/components/Attach/Attach.styles.js +0 -18
  442. package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +0 -63
  443. package/styled-components/cjs/components/Attach/Attach.tokens.js +0 -128
  444. package/styled-components/cjs/components/Attach/Attach.types.js +0 -5
  445. package/styled-components/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -52
  446. package/styled-components/cjs/components/Attach/components/AttachButton/index.js +0 -12
  447. package/styled-components/cjs/components/Attach/index.js +0 -25
  448. package/styled-components/cjs/components/Attach/ui/Button/Button.js +0 -12
  449. package/styled-components/cjs/components/Attach/ui/Button/Button.styles.js +0 -16
  450. package/styled-components/cjs/components/Attach/ui/Cell/Cell.js +0 -12
  451. package/styled-components/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -16
  452. package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.js +0 -12
  453. package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -19
  454. package/styled-components/cjs/components/Attach/utils/extractExtension.js +0 -9
  455. package/styled-components/cjs/components/Attach/utils/getFileicon.js +0 -44
  456. package/styled-components/cjs/components/Attach/utils/index.js +0 -26
  457. package/styled-components/cjs/components/Attach/utils/truncateFilename.js +0 -23
  458. package/styled-components/cjs/components/Attach/variations/_size/base.js +0 -9
  459. package/styled-components/cjs/components/Attach/variations/_view/base.js +0 -9
  460. package/styled-components/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -32
  461. package/styled-components/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +0 -36
  462. package/styled-components/cjs/components/_Icon/Icon.assets/BlankOutline.js +0 -23
  463. package/styled-components/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -28
  464. package/styled-components/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -32
  465. package/styled-components/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -32
  466. package/styled-components/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -23
  467. package/styled-components/cjs/components/_Icon/Icon.assets/Plus.js +0 -23
  468. package/styled-components/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +0 -22
  469. package/styled-components/cjs/components/_Icon/Icons/IconBlankDocOutline.js +0 -22
  470. package/styled-components/cjs/components/_Icon/Icons/IconBlankOutline.js +0 -22
  471. package/styled-components/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +0 -22
  472. package/styled-components/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +0 -22
  473. package/styled-components/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +0 -22
  474. package/styled-components/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +0 -22
  475. package/styled-components/cjs/components/_Icon/Icons/IconPlus.js +0 -22
  476. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +0 -37
  477. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.js +0 -11
  478. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -177
  479. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.config.js +0 -37
  480. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.js +0 -11
  481. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -168
  482. package/styled-components/es/components/Attach/Attach.js +0 -177
  483. package/styled-components/es/components/Attach/Attach.styles.js +0 -10
  484. package/styled-components/es/components/Attach/Attach.template-doc.mdx +0 -63
  485. package/styled-components/es/components/Attach/Attach.tokens.js +0 -122
  486. package/styled-components/es/components/Attach/Attach.types.js +0 -1
  487. package/styled-components/es/components/Attach/components/AttachButton/AttachButton.js +0 -43
  488. package/styled-components/es/components/Attach/components/AttachButton/index.js +0 -1
  489. package/styled-components/es/components/Attach/index.js +0 -2
  490. package/styled-components/es/components/Attach/ui/Button/Button.js +0 -1
  491. package/styled-components/es/components/Attach/ui/Button/Button.styles.js +0 -9
  492. package/styled-components/es/components/Attach/ui/Cell/Cell.js +0 -1
  493. package/styled-components/es/components/Attach/ui/Cell/Cell.styles.js +0 -9
  494. package/styled-components/es/components/Attach/ui/IconButton/IconButton.js +0 -1
  495. package/styled-components/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -12
  496. package/styled-components/es/components/Attach/utils/extractExtension.js +0 -3
  497. package/styled-components/es/components/Attach/utils/getFileicon.js +0 -37
  498. package/styled-components/es/components/Attach/utils/index.js +0 -3
  499. package/styled-components/es/components/Attach/utils/truncateFilename.js +0 -17
  500. package/styled-components/es/components/Attach/variations/_size/base.js +0 -3
  501. package/styled-components/es/components/Attach/variations/_view/base.js +0 -3
  502. package/styled-components/es/components/_Icon/Icon.assets/BlankCsvOutline.js +0 -25
  503. package/styled-components/es/components/_Icon/Icon.assets/BlankDocOutline.js +0 -29
  504. package/styled-components/es/components/_Icon/Icon.assets/BlankOutline.js +0 -16
  505. package/styled-components/es/components/_Icon/Icon.assets/BlankPdfOutline.js +0 -21
  506. package/styled-components/es/components/_Icon/Icon.assets/BlankTxtOutline.js +0 -25
  507. package/styled-components/es/components/_Icon/Icon.assets/BlankXlsOutline.js +0 -25
  508. package/styled-components/es/components/_Icon/Icon.assets/CloseCircleOutline.js +0 -16
  509. package/styled-components/es/components/_Icon/Icon.assets/Plus.js +0 -16
  510. package/styled-components/es/components/_Icon/Icons/IconBlankCsvOutline.js +0 -15
  511. package/styled-components/es/components/_Icon/Icons/IconBlankDocOutline.js +0 -15
  512. package/styled-components/es/components/_Icon/Icons/IconBlankOutline.js +0 -15
  513. package/styled-components/es/components/_Icon/Icons/IconBlankPdfOutline.js +0 -15
  514. package/styled-components/es/components/_Icon/Icons/IconBlankTxtOutline.js +0 -15
  515. package/styled-components/es/components/_Icon/Icons/IconBlankXlsOutline.js +0 -15
  516. package/styled-components/es/components/_Icon/Icons/IconCloseCircleOutline.js +0 -15
  517. package/styled-components/es/components/_Icon/Icons/IconPlus.js +0 -15
  518. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.config.js +0 -31
  519. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.js +0 -5
  520. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +0 -177
  521. package/styled-components/es/examples/plasma_web/components/Attach/Attach.config.js +0 -31
  522. package/styled-components/es/examples/plasma_web/components/Attach/Attach.js +0 -5
  523. package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +0 -168
  524. package/types/components/Attach/Attach.d.ts +0 -23
  525. package/types/components/Attach/Attach.d.ts.map +0 -1
  526. package/types/components/Attach/Attach.styles.d.ts +0 -5
  527. package/types/components/Attach/Attach.styles.d.ts.map +0 -1
  528. package/types/components/Attach/Attach.tokens.d.ts +0 -119
  529. package/types/components/Attach/Attach.tokens.d.ts.map +0 -1
  530. package/types/components/Attach/Attach.types.d.ts +0 -43
  531. package/types/components/Attach/Attach.types.d.ts.map +0 -1
  532. package/types/components/Attach/components/AttachButton/AttachButton.d.ts +0 -4
  533. package/types/components/Attach/components/AttachButton/AttachButton.d.ts.map +0 -1
  534. package/types/components/Attach/components/AttachButton/index.d.ts +0 -2
  535. package/types/components/Attach/components/AttachButton/index.d.ts.map +0 -1
  536. package/types/components/Attach/index.d.ts +0 -4
  537. package/types/components/Attach/index.d.ts.map +0 -1
  538. package/types/components/Attach/ui/Button/Button.d.ts +0 -2
  539. package/types/components/Attach/ui/Button/Button.d.ts.map +0 -1
  540. package/types/components/Attach/ui/Button/Button.styles.d.ts +0 -45
  541. package/types/components/Attach/ui/Button/Button.styles.d.ts.map +0 -1
  542. package/types/components/Attach/ui/Cell/Cell.d.ts +0 -2
  543. package/types/components/Attach/ui/Cell/Cell.d.ts.map +0 -1
  544. package/types/components/Attach/ui/Cell/Cell.styles.d.ts +0 -33
  545. package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +0 -1
  546. package/types/components/Attach/ui/IconButton/IconButton.d.ts +0 -2
  547. package/types/components/Attach/ui/IconButton/IconButton.d.ts.map +0 -1
  548. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +0 -88
  549. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts.map +0 -1
  550. package/types/components/Attach/utils/extractExtension.d.ts +0 -2
  551. package/types/components/Attach/utils/extractExtension.d.ts.map +0 -1
  552. package/types/components/Attach/utils/getFileicon.d.ts +0 -3
  553. package/types/components/Attach/utils/getFileicon.d.ts.map +0 -1
  554. package/types/components/Attach/utils/index.d.ts +0 -4
  555. package/types/components/Attach/utils/index.d.ts.map +0 -1
  556. package/types/components/Attach/utils/truncateFilename.d.ts +0 -7
  557. package/types/components/Attach/utils/truncateFilename.d.ts.map +0 -1
  558. package/types/components/Attach/variations/_size/base.d.ts +0 -2
  559. package/types/components/Attach/variations/_size/base.d.ts.map +0 -1
  560. package/types/components/Attach/variations/_view/base.d.ts +0 -2
  561. package/types/components/Attach/variations/_view/base.d.ts.map +0 -1
  562. package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts +0 -4
  563. package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts.map +0 -1
  564. package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts +0 -4
  565. package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts.map +0 -1
  566. package/types/components/_Icon/Icon.assets/BlankOutline.d.ts +0 -4
  567. package/types/components/_Icon/Icon.assets/BlankOutline.d.ts.map +0 -1
  568. package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts +0 -4
  569. package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts.map +0 -1
  570. package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts +0 -4
  571. package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts.map +0 -1
  572. package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts +0 -4
  573. package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts.map +0 -1
  574. package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts +0 -4
  575. package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts.map +0 -1
  576. package/types/components/_Icon/Icon.assets/Plus.d.ts +0 -4
  577. package/types/components/_Icon/Icon.assets/Plus.d.ts.map +0 -1
  578. package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts +0 -4
  579. package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts.map +0 -1
  580. package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts +0 -4
  581. package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts.map +0 -1
  582. package/types/components/_Icon/Icons/IconBlankOutline.d.ts +0 -4
  583. package/types/components/_Icon/Icons/IconBlankOutline.d.ts.map +0 -1
  584. package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts +0 -4
  585. package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts.map +0 -1
  586. package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts +0 -4
  587. package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts.map +0 -1
  588. package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts +0 -4
  589. package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts.map +0 -1
  590. package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts +0 -4
  591. package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts.map +0 -1
  592. package/types/components/_Icon/Icons/IconPlus.d.ts +0 -4
  593. package/types/components/_Icon/Icons/IconPlus.d.ts.map +0 -1
  594. package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts +0 -30
  595. package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts.map +0 -1
  596. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +0 -224
  597. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts.map +0 -1
  598. package/types/examples/plasma_web/components/Attach/Attach.config.d.ts +0 -30
  599. package/types/examples/plasma_web/components/Attach/Attach.config.d.ts.map +0 -1
  600. package/types/examples/plasma_web/components/Attach/Attach.d.ts +0 -224
  601. package/types/examples/plasma_web/components/Attach/Attach.d.ts.map +0 -1
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Attach = void 0;
7
- var _Attach = /*#__PURE__*/require("../../../../components/Attach");
8
- var _engines = /*#__PURE__*/require("../../../../engines");
9
- var _Attach2 = /*#__PURE__*/require("./Attach.config");
10
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Attach.attachConfig, _Attach2.config);
11
- var Attach = exports.Attach = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -1,168 +0,0 @@
1
- import React from 'react';
2
- import type { ComponentProps } from 'react';
3
- import type { StoryObj, Meta } from '@storybook/react';
4
-
5
- import { mergeConfig } from '../../../../engines';
6
- import { WithTheme, argTypesFromConfig } from '../../../_helpers';
7
- import { attachConfig } from '../../../../components/Attach';
8
- import { IconMic } from '../../../../components/_Icon';
9
-
10
- import { Attach } from './Attach';
11
- import { config } from './Attach.config';
12
-
13
- const buttonViewOptions = [
14
- 'default',
15
- 'accent',
16
- 'secondary',
17
- 'clear',
18
- 'positive',
19
- 'warning',
20
- 'negative',
21
- 'dark',
22
- 'black',
23
- 'white',
24
- ];
25
- const iconButtonViewOptions = [
26
- 'default',
27
- 'accent',
28
- 'secondary',
29
- 'clear',
30
- 'success',
31
- 'warning',
32
- 'critical',
33
- 'dark',
34
- 'black',
35
- 'white',
36
- ];
37
- const flowOptions = ['horizontal', 'vertical', 'auto'];
38
- const fileFormatOptions = ['all', '.doc', '.xls', '.pdf', '.csv', '.txt'];
39
-
40
- type StoryAttachProps = ComponentProps<typeof Attach> & {
41
- enableContentLeft: boolean;
42
- enableContentRight: boolean;
43
- buttonText?: string;
44
- buttonValue?: string;
45
- fileFormat?: string;
46
- width?: string;
47
- };
48
-
49
- const meta: Meta<StoryAttachProps> = {
50
- title: 'plasma_web/Attach',
51
- decorators: [WithTheme],
52
- component: Attach,
53
- argTypes: {
54
- ...argTypesFromConfig(mergeConfig(attachConfig, config)),
55
- fileFormat: {
56
- options: fileFormatOptions,
57
- control: {
58
- type: 'select',
59
- },
60
- },
61
- flow: {
62
- options: flowOptions,
63
- control: {
64
- type: 'select',
65
- },
66
- },
67
- },
68
- };
69
-
70
- export default meta;
71
-
72
- const StoryButton = (props: StoryAttachProps) => {
73
- return <Attach {...props} />;
74
- };
75
-
76
- export const Button: StoryObj<StoryAttachProps> = {
77
- args: {
78
- fileFormat: 'all',
79
- flow: 'horizontal',
80
- hasAttachment: true,
81
- width: '400px',
82
- buttonText: 'Загрузить файл',
83
- buttonValue: '',
84
- square: false,
85
- enableContentLeft: false,
86
- enableContentRight: false,
87
- size: 'm',
88
- view: 'accent',
89
- },
90
- argTypes: {
91
- view: {
92
- options: buttonViewOptions,
93
- control: {
94
- type: 'select',
95
- },
96
- },
97
- },
98
- render: (args) => {
99
- const { buttonText, buttonValue, width, size, fileFormat, contentLeft, contentRight, ...rest } = args;
100
- const accepted = fileFormat && fileFormat !== 'all' ? [fileFormat] : undefined;
101
- const iconSize = size === 'xs' ? 'xs' : 's';
102
-
103
- return (
104
- <StoryButton
105
- style={{ width }}
106
- size={size}
107
- buttonType="button"
108
- contentLeft={contentLeft ? <IconMic size={iconSize} color="inherit" /> : undefined}
109
- contentRight={contentRight ? <IconMic size={iconSize} color="inherit" /> : undefined}
110
- acceptedFileFormats={accepted}
111
- text={buttonText}
112
- value={buttonValue}
113
- {...rest}
114
- />
115
- );
116
- },
117
- };
118
-
119
- const StoryIconButton = (props: StoryAttachProps) => {
120
- return <Attach {...props} />;
121
- };
122
-
123
- export const IconButton: StoryObj<StoryAttachProps> = {
124
- args: {
125
- fileFormat: 'all',
126
- flow: 'horizontal',
127
- hasAttachment: true,
128
- width: '400px',
129
- size: 'm',
130
- view: 'accent',
131
- },
132
- argTypes: {
133
- view: {
134
- options: iconButtonViewOptions,
135
- control: {
136
- type: 'select',
137
- },
138
- },
139
- },
140
- render: (args) => {
141
- const {
142
- buttonText,
143
- buttonValue,
144
- width,
145
- size,
146
- fileFormat,
147
- enableContentLeft,
148
- enableContentRight,
149
- ...rest
150
- } = args;
151
- const accepted = fileFormat && fileFormat !== 'all' ? [fileFormat] : undefined;
152
- const iconSize = size === 'xs' ? 'xs' : 's';
153
-
154
- return (
155
- <StoryIconButton
156
- style={{ width }}
157
- size={size}
158
- buttonType="iconButton"
159
- contentLeft={enableContentLeft ? <IconMic size={iconSize} color="inherit" /> : undefined}
160
- contentRight={enableContentRight ? <IconMic size={iconSize} color="inherit" /> : undefined}
161
- acceptedFileFormats={accepted}
162
- text={buttonText}
163
- value={buttonValue}
164
- {...rest}
165
- />
166
- );
167
- },
168
- };
@@ -1,177 +0,0 @@
1
- var _IconCloseCircleOutli;
2
- var _excluded = ["flow", "buttonType", "hasAttachment", "acceptedFileFormats", "size", "view", "className", "style", "isLoading", "disabled"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
- import React, { forwardRef, useEffect, useRef, useState } from 'react';
13
- import { useForkRef, useIsomorphicLayoutEffect } from '@salutejs/plasma-core';
14
- import { cx } from '../../utils';
15
- import { IconCloseCircleOutline } from '../_Icon';
16
- import { base as sizeCSS } from './variations/_size/base';
17
- import { base as viewCSS } from './variations/_view/base';
18
- import { base, StyledHiddenInput, StyledHiddenInputHelper } from './Attach.styles';
19
- import { StyledCell } from './ui/Cell/Cell';
20
- import { extractExtension, getFileicon, truncateFilename } from './utils';
21
- import { classes } from './Attach.tokens';
22
- import { AttachButton } from './components/AttachButton';
23
- import { StyledIconButtonCancel } from './ui/IconButton/IconButton.styles';
24
- export var attachRoot = function attachRoot(Root) {
25
- return /*#__PURE__*/forwardRef(function (props, outerRef) {
26
- var _props$flow = props.flow,
27
- flow = _props$flow === void 0 ? 'auto' : _props$flow,
28
- _props$buttonType = props.buttonType,
29
- buttonType = _props$buttonType === void 0 ? 'button' : _props$buttonType,
30
- _props$hasAttachment = props.hasAttachment,
31
- hasAttachment = _props$hasAttachment === void 0 ? true : _props$hasAttachment,
32
- acceptedFileFormats = props.acceptedFileFormats,
33
- size = props.size,
34
- view = props.view,
35
- className = props.className,
36
- style = props.style,
37
- isLoading = props.isLoading,
38
- disabled = props.disabled,
39
- rest = _objectWithoutProperties(props, _excluded);
40
- var innerRef = useRef(null);
41
- var ref = useForkRef(outerRef, innerRef);
42
- var inputRef = useRef(null);
43
- var inputHelperRef = useRef(null);
44
- var cellRef = useRef(null);
45
- var buttonRef = useRef(null);
46
- var emptyTextCellWidth = useRef(null);
47
- var _useState = useState(''),
48
- _useState2 = _slicedToArray(_useState, 2),
49
- filename = _useState2[0],
50
- setFilename = _useState2[1];
51
- var _useState3 = useState(''),
52
- _useState4 = _slicedToArray(_useState3, 2),
53
- truncatedFilename = _useState4[0],
54
- setTruncatedFilename = _useState4[1];
55
- var horizontalClass = flow === 'horizontal' ? classes.horizontal : undefined;
56
- var verticalClass = flow === 'vertical' ? classes.vertical : undefined;
57
- var autoClass = flow === 'auto' ? classes.auto : undefined;
58
- var cellHiddenClass = truncatedFilename.length === 0 ? classes.cellHidden : undefined;
59
- var accept = acceptedFileFormats === null || acceptedFileFormats === void 0 ? void 0 : acceptedFileFormats.join(',');
60
- var extension = extractExtension(filename);
61
- var cellContentLeft = getFileicon(extension, size);
62
- useEffect(function () {
63
- var _cellRef$current;
64
- emptyTextCellWidth.current = ((_cellRef$current = cellRef.current) === null || _cellRef$current === void 0 ? void 0 : _cellRef$current.offsetWidth) || 0;
65
- }, []);
66
- useIsomorphicLayoutEffect(function () {
67
- if (!cellRef.current || !cellRef.current.parentElement || !inputHelperRef.current || !inputHelperRef.current.textContent || !emptyTextCellWidth.current || !buttonRef.current) {
68
- return;
69
- }
70
- var textWidth = inputHelperRef.current.offsetWidth;
71
- var buttonWidth = buttonRef.current.offsetWidth;
72
- var _cellRef$current$pare = cellRef.current.parentElement.getBoundingClientRect(),
73
- parentWidth = _cellRef$current$pare.width,
74
- parentLeft = _cellRef$current$pare.left;
75
- var _cellRef$current$getB = cellRef.current.getBoundingClientRect(),
76
- cellLeft = _cellRef$current$getB.left;
77
- var leftDiff = cellLeft - parentLeft;
78
- var currentTextWidth = textWidth;
79
- var currFilename = filename;
80
- for (var i = filename.length - 1; i > 0; i -= 1) {
81
- if (currentTextWidth + emptyTextCellWidth.current + leftDiff <= parentWidth) {
82
- break;
83
- }
84
- var newFilename = truncateFilename({
85
- filename: inputHelperRef.current.textContent,
86
- startNameTruncationIndex: i
87
- });
88
- inputHelperRef.current.textContent = newFilename;
89
- currentTextWidth = inputHelperRef.current.offsetWidth;
90
- if (currentTextWidth + emptyTextCellWidth.current < buttonWidth) {
91
- break;
92
- }
93
- currFilename = newFilename;
94
- }
95
- inputHelperRef.current.textContent = filename;
96
- setTruncatedFilename(currFilename);
97
- });
98
- var handleClick = function handleClick() {
99
- if (!inputRef.current) {
100
- return;
101
- }
102
- inputRef.current.click();
103
- };
104
- var handleChange = function handleChange() {
105
- if (!inputRef.current || !inputRef.current.files) {
106
- return;
107
- }
108
- setFilename(inputRef.current.files[0].name);
109
- };
110
- var handleClear = function handleClear() {
111
- if (!inputRef.current) {
112
- return;
113
- }
114
- inputRef.current.value = '';
115
- setFilename('');
116
- setTruncatedFilename('');
117
- };
118
- return /*#__PURE__*/React.createElement(Root, {
119
- className: cx(horizontalClass, verticalClass, autoClass, className),
120
- style: style,
121
- size: size,
122
- view: view,
123
- ref: ref
124
- }, /*#__PURE__*/React.createElement(StyledHiddenInput, {
125
- ref: inputRef,
126
- accept: accept,
127
- type: "file",
128
- id: "attachHiddenInput",
129
- name: "attachHiddenInput",
130
- onChange: handleChange
131
- }), /*#__PURE__*/React.createElement(StyledHiddenInputHelper, {
132
- ref: inputHelperRef,
133
- id: "attachHiddenInputHelper"
134
- }, filename), /*#__PURE__*/React.createElement(AttachButton, _extends({
135
- buttonType: buttonType,
136
- view: view,
137
- size: size,
138
- onClick: handleClick,
139
- isLoading: isLoading,
140
- disabled: disabled,
141
- ref: buttonRef
142
- }, rest)), hasAttachment && /*#__PURE__*/React.createElement(StyledCell, {
143
- stretching: "fixed",
144
- className: cellHiddenClass,
145
- ref: cellRef,
146
- size: size,
147
- title: truncatedFilename,
148
- contentLeft: cellContentLeft,
149
- contentRight: /*#__PURE__*/React.createElement(StyledIconButtonCancel, {
150
- view: view,
151
- size: size,
152
- onClick: handleClear
153
- }, _IconCloseCircleOutli || (_IconCloseCircleOutli = /*#__PURE__*/React.createElement(IconCloseCircleOutline, {
154
- size: "xs",
155
- color: "inherit"
156
- })))
157
- }));
158
- });
159
- };
160
- export var attachConfig = {
161
- name: 'Attach',
162
- tag: 'div',
163
- layout: attachRoot,
164
- base: base,
165
- variations: {
166
- view: {
167
- css: viewCSS
168
- },
169
- size: {
170
- css: sizeCSS
171
- }
172
- },
173
- defaults: {
174
- view: 'default',
175
- size: 'm'
176
- }
177
- };
@@ -1,29 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- import { css } from '@emotion/react';
4
- import { tokens as attachTokens } from './Attach.tokens';
5
- export var base = process.env.NODE_ENV === "production" ? {
6
- name: "1yur341-plasma-new-hope__base",
7
- styles: "position:relative;display:flex;label:plasma-new-hope__base;"
8
- } : {
9
- name: "1yur341-plasma-new-hope__base",
10
- styles: "position:relative;display:flex;label:plasma-new-hope__base;",
11
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyBhcyBhdHRhY2hUb2tlbnMgfSBmcm9tICcuL0F0dGFjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogZmxleDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhpZGRlbklucHV0SGVscGVyID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xuXG4gICAgZm9udC1mYW1pbHk6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMaW5lSGVpZ2h0fSk7XG5gO1xuIl19 */",
12
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
13
- };
14
- export var StyledHiddenInput = /*#__PURE__*/_styled("input", {
15
- target: "e3npccl1",
16
- label: "plasma-new-hope__StyledHiddenInput"
17
- })(process.env.NODE_ENV === "production" ? {
18
- name: "eivff4",
19
- styles: "display:none"
20
- } : {
21
- name: "eivff4",
22
- styles: "display:none",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVTZDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyBhcyBhdHRhY2hUb2tlbnMgfSBmcm9tICcuL0F0dGFjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogZmxleDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhpZGRlbklucHV0SGVscGVyID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xuXG4gICAgZm9udC1mYW1pbHk6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMaW5lSGVpZ2h0fSk7XG5gO1xuIl19 */",
24
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
- });
26
- export var StyledHiddenInputHelper = /*#__PURE__*/_styled("div", {
27
- target: "e3npccl0",
28
- label: "plasma-new-hope__StyledHiddenInputHelper"
29
- })("position:absolute;visibility:hidden;font-family:var(", attachTokens.cellTitleFontFamily, ");font-size:var(", attachTokens.cellTitleFontSize, ");font-style:var(", attachTokens.cellTitleFontStyle, ");font-weight:var(", attachTokens.cellTitleFontWeight, ");letter-spacing:var(", attachTokens.cellTitleLetterSpacing, ");line-height:var(", attachTokens.cellTitleLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY2lEIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQXR0YWNoL0F0dGFjaC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyBhcyBhdHRhY2hUb2tlbnMgfSBmcm9tICcuL0F0dGFjaC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogZmxleDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRIaWRkZW5JbnB1dCA9IHN0eWxlZC5pbnB1dGBcbiAgICBkaXNwbGF5OiBub25lO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhpZGRlbklucHV0SGVscGVyID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xuXG4gICAgZm9udC1mYW1pbHk6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHthdHRhY2hUb2tlbnMuY2VsbFRpdGxlRm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVGb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke2F0dGFjaFRva2Vucy5jZWxsVGl0bGVMaW5lSGVpZ2h0fSk7XG5gO1xuIl19 */"));
@@ -1,63 +0,0 @@
1
- ---
2
- id: attach
3
- title: Attach
4
- ---
5
-
6
- import { PropsTable, Description } from '@site/src/components';
7
-
8
- # Attach
9
- <Description name="Attach" />
10
- <PropsTable name="Attach" />
11
-
12
- ## Примеры
13
-
14
- ### Вид кнопки
15
- С помощью свойства `buttonType` можно менять вид кнопки: обычный или с иконкой.
16
-
17
- ```tsx live
18
- import React from 'react';
19
- import { Attach } from '@salutejs/{{ package }}';
20
-
21
- export function App() {
22
- return (
23
- <div style=\{{ display: "flex", flexDirection: "column", gap: "50px"}}>
24
- <Attach view="accent" buttonType={'button'} />
25
- <Attach view="secondary" buttonType={'iconButton'} />
26
- </div>
27
- );
28
- }
29
- ```
30
-
31
- ### Расположение элементов
32
- C помощью свойства `flow` можно регулировать расположение элементов в зависимости от ширины контейнера.
33
-
34
- ```tsx live
35
- import React from 'react';
36
- import { Attach } from '@salutejs/{{ package }}';
37
-
38
- export function App() {
39
- return (
40
- <div style=\{{ display: "flex", flexDirection: "column", gap: "50px"}}>
41
- <Attach style=\{{ width: "400px" }} flow="auto" />
42
- <Attach style=\{{ width: "400px" }} flow="horizontal" />
43
- <Attach style=\{{ width: "400px" }} flow="vertical" />
44
- </div>
45
- );
46
- }
47
- ```
48
-
49
- ### Фильтр форматов файлов
50
- Свойство `acceptedFileFormats` устанавливает доступные форматы файлов.
51
-
52
- ```tsx live
53
- import React from 'react';
54
- import { Attach } from '@salutejs/{{ package }}';
55
-
56
- export function App() {
57
- return (
58
- <div>
59
- <Attach acceptedFileFormats={['.pdf', '.doc']} />
60
- </div>
61
- );
62
- }
63
- ```
@@ -1,122 +0,0 @@
1
- export var classes = {
2
- auto: 'auto',
3
- horizontal: 'horizontal',
4
- vertical: 'vertical',
5
- cellHidden: 'cell-hidden'
6
- };
7
- export var tokens = {
8
- horizontalGap: '--plasma-attach-horizontal-gap',
9
- verticalGap: '--plasma-attach-vertical-gap',
10
- // Токены для Button
11
- buttonColor: '--plasma-attach-button-color',
12
- buttonValueColor: '--plasma-attach-button-value-color',
13
- buttonBackgroundColor: '--plasma-attach-button-background-color',
14
- buttonColorHover: '--plasma-attach-button-color-hover',
15
- buttonBackgroundColorHover: '--plasma-attach-button-background-color-hover',
16
- buttonColorActive: '--plasma-attach-button-color-active',
17
- buttonBackgroundColorActive: '--plasma-attach-button-background-color-active',
18
- buttonLoadingBackgroundColor: '--plasma-attach-button-loading-background-color',
19
- buttonScaleHover: '--plasma-attach-button-scale-hover',
20
- buttonScaleActive: '---plasma-attach-button-scale-active',
21
- buttonHeight: '--plasma-attach-button-height',
22
- buttonWidth: '--plasma-attach-button-width',
23
- buttonPadding: '--plasma-attach-button-padding',
24
- buttonRadius: '--plasma-attach-button-radius',
25
- buttonRadiusCircle: '--plasma-attach-button-radius-circle',
26
- buttonFontFamily: '--plasma-attach-button-font-family',
27
- buttonFontSize: '--plasma-attach-button-font-size',
28
- buttonFontStyle: '--plasma-attach-button-font-style',
29
- buttonFontWeight: '--plasma-attach-button-font-weight',
30
- buttonLetterSpacing: '--plasma-attach-button-letter-spacing',
31
- buttonLineHeight: '--plasma-attach-button-line-height',
32
- buttonLeftContentMargin: '--plasma-attach-button-left-content-margin',
33
- buttonLeftContentAlignSelf: '--plasma-attach-button-left-content-align-self',
34
- buttonRightContentMargin: '--plasma-attach-button-right-content-margin',
35
- buttonRightContentAlignSelf: '--plasma-attach-button-right-content-align-self',
36
- buttonValueMargin: '--plasma-attach-button-value-margin',
37
- buttonDisabledOpacity: '--plasma-attach-button-disabled-opacity',
38
- buttonFocusColor: '--plasma-attach-button-focus-color',
39
- buttonSpinnerColor: '--plasma-attach-button-spinner-color',
40
- buttonSpinnerSize: '--plasma-attach-button-spinner-size',
41
- // Токены для Cell
42
- cellColor: '--plasma-attach-cell-color',
43
- cellBackgroundColor: '--plasma-attach-cell-background-color',
44
- cellPadding: '--plasma-attach-cell-padding',
45
- cellPaddingLeftContent: '--plasma-attach-cell-padding-left-content',
46
- cellPaddingContent: '--plasma-attach-cell-padding-content',
47
- cellPaddingRightContent: '--plasma-attach-cell-padding-right-content',
48
- cellTextboxGap: '--plasma-attach-cell-textbox-gap',
49
- cellGap: '--plasma-attach-cell-gap',
50
- cellWidth: '--plasma-attach-cell-width',
51
- cellLabelColor: '--plasma-attach-cell-label-color',
52
- cellLabelFontFamily: '--plasma-attach-cell-label-font-family',
53
- cellLabelFontSize: '--plasma-attach-cell-label-font-size',
54
- cellLabelFontStyle: '--plasma-attach-cell-label-font-style',
55
- cellLabelFontWeight: '--plasma-attach-cell-label-font-weight',
56
- cellLabelLetterSpacing: '--plasma-attach-cell-label-letter-spacing',
57
- cellLabelLineHeight: '--plasma-attach-cell-label-line-height',
58
- cellTitleColor: '--plasma-attach-cell-title-color',
59
- cellTitleFontFamily: '--plasma-attach-cell-title-font-family',
60
- cellTitleFontSize: '--plasma-attach-cell-title-font-size',
61
- cellTitleFontStyle: '--plasma-attach-cell-title-font-style',
62
- cellTitleFontWeight: '--plasma-attach-cell-title-font-weight',
63
- cellTitleLetterSpacing: '--plasma-attach-cell-title-letter-spacing',
64
- cellTitleLineHeight: '--plasma-attach-cell-title-line-height',
65
- cellSubtitleColor: '--plasma-attach-cell-subtitle-color',
66
- cellSubtitleFontFamily: '--plasma-attach-cell-subtitle-font-family',
67
- cellSubtitleFontSize: '--plasma-attach-cell-subtitle-font-size',
68
- cellSubtitleFontStyle: '--plasma-attach-cell-subtitle-font-style',
69
- cellSubtitleFontWeight: '--plasma-attach-cell-subtitle-font-weight',
70
- cellSubtitleLetterSpacing: '--plasma-attach-cell-subtitle-letter-spacing',
71
- cellSubtitleLineHeight: '--plasma-attach-cell-subtitle-line-height',
72
- // Токены для IconButton
73
- iconButtonColor: '--plasma-attach-icon-button-color',
74
- iconButtonBackgroundColor: '--plasma-attach-icon-button-background-color',
75
- iconButtonLoadingBackgroundColor: '--plasma-attach-icon-button-loading-background-color',
76
- iconButtonColorHover: '--plasma-attach-icon-button-color-hover',
77
- iconButtonBackgroundColorHover: '--plasma-attach-icon-button-background-color-hover',
78
- iconButtonColorActive: '--plasma-attach-icon-button-color-active',
79
- iconButtonBackgroundColorActive: '--plasma-attach-icon-button-background-color-active',
80
- iconButtonScaleHover: '--plasma-attach-icon-button-scale-hover',
81
- iconButtonScaleActive: '---plasma-attach-icon-button-scale-active',
82
- iconButtonHeight: '--plasma-attach-icon-button-height',
83
- iconButtonWidth: '--plasma-attach-icon-button-width',
84
- iconButtonPadding: '--plasma-attach-icon-button-padding',
85
- iconButtonRadius: '--plasma-attach-icon-button-radius',
86
- iconButtonRadiusCircle: '--plasma-attach-icon-button-radius-circle',
87
- iconButtonFontFamily: '--plasma-attach-icon-button-font-family',
88
- iconButtonFontSize: '--plasma-attach-icon-button-font-size',
89
- iconButtonFontStyle: '--plasma-attach-icon-button-font-style',
90
- iconButtonFontWeight: '--plasma-attach-icon-button-font-weight',
91
- iconButtonLetterSpacing: '--plasma-attach-icon-button-letter-spacing',
92
- iconButtonLineHeight: '--plasma-attach-icon-button-line-height',
93
- iconButtonDisabledOpacity: '--plasma-attach-icon-button-disabled-opacity',
94
- iconButtonFocusColor: '--plasma-attach-icon-button-focus-color',
95
- iconButtonSpinnerColor: '--plasma-attach-icon-button-spinner-color',
96
- iconButtonSpinnerSize: '--plasma-attach-icon-button-spinner-size',
97
- // Токены для IconButtonCancel
98
- iconButtonCancelColor: '--plasma-attach-icon-button-cancel-color',
99
- iconButtonCancelBackgroundColor: '--plasma-attach-icon-button-cancel-background-color',
100
- iconButtonCancelLoadingBackgroundColor: '--plasma-attach-icon-button-cancel-loading-background-color',
101
- iconButtonCancelColorHover: '--plasma-attach-icon-button-cancel-color-hover',
102
- iconButtonCancelBackgroundColorHover: '--plasma-attach-icon-button-cancel-background-color-hover',
103
- iconButtonCancelColorActive: '--plasma-attach-icon-button-cancel-color-active',
104
- iconButtonCancelBackgroundColorActive: '--plasma-attach-icon-button-cancel-background-color-active',
105
- iconButtonCancelScaleHover: '--plasma-attach-icon-button-cancel-scale-hover',
106
- iconButtonCancelScaleActive: '---plasma-attach-icon-button-cancel-scale-active',
107
- iconButtonCancelHeight: '--plasma-attach-icon-button-cancel-height',
108
- iconButtonCancelWidth: '--plasma-attach-icon-button-cancel-width',
109
- iconButtonCancelPadding: '--plasma-attach-icon-button-cancel-padding',
110
- iconButtonCancelRadius: '--plasma-attach-icon-button-cancel-radius',
111
- iconButtonCancelRadiusCircle: '--plasma-attach-icon-button-cancel-radius-circle',
112
- iconButtonCancelFontFamily: '--plasma-attach-icon-button-cancel-font-family',
113
- iconButtonCancelFontSize: '--plasma-attach-icon-button-cancel-font-size',
114
- iconButtonCancelFontStyle: '--plasma-attach-icon-button-cancel-font-style',
115
- iconButtonCancelFontWeight: '--plasma-attach-icon-button-cancel-font-weight',
116
- iconButtonCancelLetterSpacing: '--plasma-attach-icon-button-cancel-letter-spacing',
117
- iconButtonCancelLineHeight: '--plasma-attach-icon-button-cancel-line-height',
118
- iconButtonCancelDisabledOpacity: '--plasma-attach-icon-button-cancel-disabled-opacity',
119
- iconButtonCancelFocusColor: '--plasma-attach-icon-button-cancel-focus-color',
120
- iconButtonCancelSpinnerColor: '--plasma-attach-icon-button-cancel-spinner-color',
121
- iconButtonCancelSpinnerSize: '--plasma-attach-icon-button-cancel-spinner-size'
122
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,43 +0,0 @@
1
- var _excluded = ["size", "icon"],
2
- _excluded2 = ["text"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
- import React, { forwardRef } from 'react';
7
- import { StyledIconButton } from '../../ui/IconButton/IconButton';
8
- import { StyledButton } from '../../ui/Button/Button';
9
- import { IconPlus } from '../../../_Icon';
10
- var getDefaultIcon = function getDefaultIcon(size) {
11
- var iconSize;
12
- switch (size) {
13
- case 'xs':
14
- iconSize = 'xs';
15
- break;
16
- case 's':
17
- iconSize = 's';
18
- break;
19
- default:
20
- iconSize = 'm';
21
- }
22
- return /*#__PURE__*/React.createElement(IconPlus, {
23
- size: iconSize,
24
- color: "inherit"
25
- });
26
- };
27
- export var AttachButton = /*#__PURE__*/forwardRef(function (props, ref) {
28
- if (props.buttonType === 'iconButton') {
29
- var size = props.size,
30
- icon = props.icon,
31
- _rest = _objectWithoutProperties(props, _excluded);
32
- return /*#__PURE__*/React.createElement(StyledIconButton, _extends({
33
- ref: ref
34
- }, _rest), icon || getDefaultIcon(size));
35
- }
36
- var _props$text = props.text,
37
- text = _props$text === void 0 ? 'Загрузить файл' : _props$text,
38
- rest = _objectWithoutProperties(props, _excluded2);
39
- return /*#__PURE__*/React.createElement(StyledButton, _extends({
40
- ref: ref,
41
- text: text
42
- }, rest));
43
- });
@@ -1 +0,0 @@
1
- export { AttachButton } from './AttachButton';
@@ -1,2 +0,0 @@
1
- export { attachRoot, attachConfig } from './Attach';
2
- export { tokens as attachTokens } from './Attach.tokens';
@@ -1 +0,0 @@
1
- export { StyledButton } from './Button.styles';