@salutejs/plasma-new-hope 0.151.0-canary.1449.11009654671.0 → 0.151.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. package/cjs/components/Attach/Attach.css +48 -0
  2. package/cjs/components/Attach/Attach.js +181 -0
  3. package/cjs/components/Attach/Attach.js.map +1 -0
  4. package/cjs/components/Attach/Attach.styles.js +23 -0
  5. package/cjs/components/Attach/Attach.styles.js.map +1 -0
  6. package/cjs/components/Attach/Attach.styles_fl8wha.css +3 -0
  7. package/cjs/components/Attach/Attach.tokens.js +130 -0
  8. package/cjs/components/Attach/Attach.tokens.js.map +1 -0
  9. package/cjs/components/Attach/components/AttachButton/AttachButton.css +34 -0
  10. package/cjs/components/Attach/components/AttachButton/AttachButton.js +50 -0
  11. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -0
  12. package/cjs/components/Attach/ui/Button/Button.styles.js +23 -0
  13. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -0
  14. package/cjs/components/Attach/ui/Button/Button.styles_bj69th.css +1 -0
  15. package/cjs/components/Attach/ui/Cell/Cell.styles.js +25 -0
  16. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -0
  17. package/cjs/components/Attach/ui/Cell/Cell.styles_69w962.css +1 -0
  18. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +32 -0
  19. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -0
  20. package/cjs/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +2 -0
  21. package/cjs/components/Attach/utils/extractExtension.js +10 -0
  22. package/cjs/components/Attach/utils/extractExtension.js.map +1 -0
  23. package/cjs/components/Attach/utils/getFileicon.js +51 -0
  24. package/cjs/components/Attach/utils/getFileicon.js.map +1 -0
  25. package/cjs/components/Attach/utils/truncateFilename.js +24 -0
  26. package/cjs/components/Attach/utils/truncateFilename.js.map +1 -0
  27. package/cjs/components/{TextField/variations/_clear → Attach/variations/_size}/base.js +2 -2
  28. package/cjs/components/Attach/variations/_size/base.js.map +1 -0
  29. package/cjs/components/Attach/variations/_size/base_eax0b8.css +1 -0
  30. package/cjs/components/Attach/variations/_view/base.js +9 -0
  31. package/cjs/components/Attach/variations/_view/base.js.map +1 -0
  32. package/cjs/components/Attach/variations/_view/base_1nvsg1b.css +1 -0
  33. package/cjs/components/Autocomplete/Autocomplete.css +15 -17
  34. package/cjs/components/Cell/Cell.js +3 -2
  35. package/cjs/components/Cell/Cell.js.map +1 -1
  36. package/cjs/components/Combobox/ComboboxNew/Combobox.css +15 -17
  37. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -17
  38. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -17
  39. package/cjs/components/DatePicker/RangeDate/RangeDate.css +15 -17
  40. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +15 -17
  41. package/cjs/components/DatePicker/SingleDate/SingleDate.css +15 -17
  42. package/cjs/components/Range/Range.css +15 -17
  43. package/cjs/components/Slider/Slider.css +15 -17
  44. package/cjs/components/Slider/components/Double/Double.css +15 -17
  45. package/cjs/components/TextField/TextField.js +9 -24
  46. package/cjs/components/TextField/TextField.js.map +1 -1
  47. package/cjs/components/TextField/TextField.styles.js +7 -15
  48. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  49. package/cjs/components/TextField/{TextField.styles_1d2ryq.css → TextField.styles_uponva.css} +2 -2
  50. package/cjs/components/TextField/TextField.tokens.js +0 -9
  51. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  52. package/cjs/components/TextField/variations/_disabled/base.js +1 -1
  53. package/cjs/components/TextField/variations/_disabled/base.js.map +1 -1
  54. package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +1 -0
  55. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  56. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  57. package/cjs/components/TextField/variations/_label-placement/base_6k17xp.css +1 -0
  58. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  59. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  60. package/cjs/components/TextField/variations/_read-only/base_8onybn.css +1 -0
  61. package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +33 -0
  62. package/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js.map +1 -0
  63. package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +37 -0
  64. package/cjs/components/_Icon/Icon.assets/BlankDocOutline.js.map +1 -0
  65. package/cjs/components/_Icon/Icon.assets/BlankOutline.js +24 -0
  66. package/cjs/components/_Icon/Icon.assets/BlankOutline.js.map +1 -0
  67. package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +29 -0
  68. package/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js.map +1 -0
  69. package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +33 -0
  70. package/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js.map +1 -0
  71. package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +33 -0
  72. package/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js.map +1 -0
  73. package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +24 -0
  74. package/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js.map +1 -0
  75. package/cjs/components/_Icon/Icon.assets/Plus.js +24 -0
  76. package/cjs/components/_Icon/Icon.assets/Plus.js.map +1 -0
  77. package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +23 -0
  78. package/cjs/components/_Icon/Icons/IconBlankCsvOutline.js.map +1 -0
  79. package/cjs/components/_Icon/Icons/IconBlankDocOutline.js +23 -0
  80. package/cjs/components/_Icon/Icons/IconBlankDocOutline.js.map +1 -0
  81. package/cjs/components/_Icon/Icons/IconBlankOutline.js +23 -0
  82. package/cjs/components/_Icon/Icons/IconBlankOutline.js.map +1 -0
  83. package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +23 -0
  84. package/cjs/components/_Icon/Icons/IconBlankPdfOutline.js.map +1 -0
  85. package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +23 -0
  86. package/cjs/components/_Icon/Icons/IconBlankTxtOutline.js.map +1 -0
  87. package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +23 -0
  88. package/cjs/components/_Icon/Icons/IconBlankXlsOutline.js.map +1 -0
  89. package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +23 -0
  90. package/cjs/components/_Icon/Icons/IconCloseCircleOutline.js.map +1 -0
  91. package/cjs/components/_Icon/Icons/IconPlus.js +23 -0
  92. package/cjs/components/_Icon/Icons/IconPlus.js.map +1 -0
  93. package/cjs/index.css +30 -17
  94. package/cjs/index.js +5 -0
  95. package/cjs/index.js.map +1 -1
  96. package/emotion/cjs/components/Attach/Attach.js +186 -0
  97. package/emotion/cjs/components/Attach/Attach.styles.js +36 -0
  98. package/emotion/cjs/components/Attach/Attach.template-doc.mdx +63 -0
  99. package/emotion/cjs/components/Attach/Attach.tokens.js +128 -0
  100. package/emotion/cjs/components/Attach/Attach.types.js +5 -0
  101. package/emotion/cjs/components/Attach/components/AttachButton/AttachButton.js +52 -0
  102. package/emotion/cjs/components/Attach/components/AttachButton/index.js +12 -0
  103. package/emotion/cjs/components/Attach/index.js +25 -0
  104. package/emotion/cjs/components/Attach/ui/Button/Button.js +12 -0
  105. package/emotion/cjs/components/Attach/ui/Button/Button.styles.js +17 -0
  106. package/emotion/cjs/components/Attach/ui/Cell/Cell.js +12 -0
  107. package/emotion/cjs/components/Attach/ui/Cell/Cell.styles.js +17 -0
  108. package/emotion/cjs/components/Attach/ui/IconButton/IconButton.js +12 -0
  109. package/emotion/cjs/components/Attach/ui/IconButton/IconButton.styles.js +21 -0
  110. package/emotion/cjs/components/Attach/utils/extractExtension.js +9 -0
  111. package/emotion/cjs/components/Attach/utils/getFileicon.js +44 -0
  112. package/emotion/cjs/components/Attach/utils/index.js +26 -0
  113. package/emotion/cjs/components/Attach/utils/truncateFilename.js +23 -0
  114. package/emotion/cjs/components/Attach/variations/_size/base.js +9 -0
  115. package/emotion/cjs/components/Attach/variations/_view/base.js +9 -0
  116. package/emotion/cjs/components/Cell/Cell.js +3 -2
  117. package/emotion/cjs/components/TextField/TextField.js +10 -25
  118. package/emotion/cjs/components/TextField/TextField.styles.js +16 -20
  119. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +17 -50
  120. package/emotion/cjs/components/TextField/TextField.tokens.js +0 -9
  121. package/emotion/cjs/components/TextField/variations/_disabled/base.js +1 -1
  122. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  123. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  124. package/emotion/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +32 -0
  125. package/emotion/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +36 -0
  126. package/emotion/cjs/components/_Icon/Icon.assets/BlankOutline.js +23 -0
  127. package/emotion/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +28 -0
  128. package/emotion/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +32 -0
  129. package/emotion/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +32 -0
  130. package/emotion/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +23 -0
  131. package/emotion/cjs/components/_Icon/Icon.assets/Plus.js +23 -0
  132. package/emotion/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +22 -0
  133. package/emotion/cjs/components/_Icon/Icons/IconBlankDocOutline.js +22 -0
  134. package/emotion/cjs/components/_Icon/Icons/IconBlankOutline.js +22 -0
  135. package/emotion/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +22 -0
  136. package/emotion/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +22 -0
  137. package/emotion/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +22 -0
  138. package/emotion/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +22 -0
  139. package/emotion/cjs/components/_Icon/Icons/IconPlus.js +22 -0
  140. package/emotion/cjs/components/_Icon/index.js +57 -1
  141. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +37 -0
  142. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.js +11 -0
  143. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +177 -0
  144. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +12 -15
  145. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -8
  146. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.config.js +37 -0
  147. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.js +11 -0
  148. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +168 -0
  149. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +12 -15
  150. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -8
  151. package/emotion/cjs/index.js +11 -0
  152. package/emotion/es/components/Attach/Attach.js +177 -0
  153. package/emotion/es/components/Attach/Attach.styles.js +29 -0
  154. package/emotion/es/components/Attach/Attach.template-doc.mdx +63 -0
  155. package/emotion/es/components/Attach/Attach.tokens.js +122 -0
  156. package/emotion/es/components/Attach/Attach.types.js +1 -0
  157. package/emotion/es/components/Attach/components/AttachButton/AttachButton.js +43 -0
  158. package/emotion/es/components/Attach/components/AttachButton/index.js +1 -0
  159. package/emotion/es/components/Attach/index.js +2 -0
  160. package/emotion/es/components/Attach/ui/Button/Button.js +1 -0
  161. package/emotion/es/components/Attach/ui/Button/Button.styles.js +10 -0
  162. package/emotion/es/components/Attach/ui/Cell/Cell.js +1 -0
  163. package/emotion/es/components/Attach/ui/Cell/Cell.styles.js +10 -0
  164. package/emotion/es/components/Attach/ui/IconButton/IconButton.js +1 -0
  165. package/emotion/es/components/Attach/ui/IconButton/IconButton.styles.js +14 -0
  166. package/emotion/es/components/Attach/utils/extractExtension.js +3 -0
  167. package/emotion/es/components/Attach/utils/getFileicon.js +37 -0
  168. package/emotion/es/components/Attach/utils/index.js +3 -0
  169. package/emotion/es/components/Attach/utils/truncateFilename.js +17 -0
  170. package/emotion/es/components/Attach/variations/_size/base.js +3 -0
  171. package/emotion/es/components/Attach/variations/_view/base.js +3 -0
  172. package/emotion/es/components/Cell/Cell.js +3 -2
  173. package/emotion/es/components/TextField/TextField.js +4 -19
  174. package/emotion/es/components/TextField/TextField.styles.js +16 -20
  175. package/emotion/es/components/TextField/TextField.template-doc.mdx +17 -50
  176. package/emotion/es/components/TextField/TextField.tokens.js +0 -9
  177. package/emotion/es/components/TextField/variations/_disabled/base.js +1 -1
  178. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  179. package/emotion/es/components/TextField/variations/_read-only/base.js +2 -2
  180. package/emotion/es/components/_Icon/Icon.assets/BlankCsvOutline.js +25 -0
  181. package/emotion/es/components/_Icon/Icon.assets/BlankDocOutline.js +29 -0
  182. package/emotion/es/components/_Icon/Icon.assets/BlankOutline.js +16 -0
  183. package/emotion/es/components/_Icon/Icon.assets/BlankPdfOutline.js +21 -0
  184. package/emotion/es/components/_Icon/Icon.assets/BlankTxtOutline.js +25 -0
  185. package/emotion/es/components/_Icon/Icon.assets/BlankXlsOutline.js +25 -0
  186. package/emotion/es/components/_Icon/Icon.assets/CloseCircleOutline.js +16 -0
  187. package/emotion/es/components/_Icon/Icon.assets/Plus.js +16 -0
  188. package/emotion/es/components/_Icon/Icons/IconBlankCsvOutline.js +15 -0
  189. package/emotion/es/components/_Icon/Icons/IconBlankDocOutline.js +15 -0
  190. package/emotion/es/components/_Icon/Icons/IconBlankOutline.js +15 -0
  191. package/emotion/es/components/_Icon/Icons/IconBlankPdfOutline.js +15 -0
  192. package/emotion/es/components/_Icon/Icons/IconBlankTxtOutline.js +15 -0
  193. package/emotion/es/components/_Icon/Icons/IconBlankXlsOutline.js +15 -0
  194. package/emotion/es/components/_Icon/Icons/IconCloseCircleOutline.js +15 -0
  195. package/emotion/es/components/_Icon/Icons/IconPlus.js +15 -0
  196. package/emotion/es/components/_Icon/index.js +9 -1
  197. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.config.js +31 -0
  198. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.js +5 -0
  199. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +177 -0
  200. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +12 -15
  201. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -8
  202. package/emotion/es/examples/plasma_web/components/Attach/Attach.config.js +31 -0
  203. package/emotion/es/examples/plasma_web/components/Attach/Attach.js +5 -0
  204. package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +168 -0
  205. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +12 -15
  206. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -8
  207. package/emotion/es/index.js +2 -1
  208. package/es/components/Attach/Attach.css +48 -0
  209. package/es/components/Attach/Attach.js +176 -0
  210. package/es/components/Attach/Attach.js.map +1 -0
  211. package/es/components/Attach/Attach.styles.js +17 -0
  212. package/es/components/Attach/Attach.styles.js.map +1 -0
  213. package/es/components/Attach/Attach.styles_fl8wha.css +3 -0
  214. package/es/components/Attach/Attach.tokens.js +125 -0
  215. package/es/components/Attach/Attach.tokens.js.map +1 -0
  216. package/es/components/Attach/components/AttachButton/AttachButton.css +34 -0
  217. package/es/components/Attach/components/AttachButton/AttachButton.js +46 -0
  218. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -0
  219. package/es/components/Attach/ui/Button/Button.styles.js +19 -0
  220. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -0
  221. package/es/components/Attach/ui/Button/Button.styles_bj69th.css +1 -0
  222. package/es/components/Attach/ui/Cell/Cell.styles.js +21 -0
  223. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -0
  224. package/es/components/Attach/ui/Cell/Cell.styles_69w962.css +1 -0
  225. package/es/components/Attach/ui/IconButton/IconButton.styles.js +27 -0
  226. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -0
  227. package/es/components/Attach/ui/IconButton/IconButton.styles_1q2jfs2.css +2 -0
  228. package/es/components/Attach/utils/extractExtension.js +6 -0
  229. package/es/components/Attach/utils/extractExtension.js.map +1 -0
  230. package/es/components/Attach/utils/getFileicon.js +47 -0
  231. package/es/components/Attach/utils/getFileicon.js.map +1 -0
  232. package/es/components/Attach/utils/truncateFilename.js +20 -0
  233. package/es/components/Attach/utils/truncateFilename.js.map +1 -0
  234. package/es/components/{TextField/variations/_clear → Attach/variations/_size}/base.js +2 -2
  235. package/es/components/Attach/variations/_size/base.js.map +1 -0
  236. package/es/components/Attach/variations/_size/base_eax0b8.css +1 -0
  237. package/es/components/Attach/variations/_view/base.js +5 -0
  238. package/es/components/Attach/variations/_view/base.js.map +1 -0
  239. package/es/components/Attach/variations/_view/base_1nvsg1b.css +1 -0
  240. package/es/components/Autocomplete/Autocomplete.css +15 -17
  241. package/es/components/Cell/Cell.js +3 -2
  242. package/es/components/Cell/Cell.js.map +1 -1
  243. package/es/components/Combobox/ComboboxNew/Combobox.css +15 -17
  244. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +15 -17
  245. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +15 -17
  246. package/es/components/DatePicker/RangeDate/RangeDate.css +15 -17
  247. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +15 -17
  248. package/es/components/DatePicker/SingleDate/SingleDate.css +15 -17
  249. package/es/components/Range/Range.css +15 -17
  250. package/es/components/Slider/Slider.css +15 -17
  251. package/es/components/Slider/components/Double/Double.css +15 -17
  252. package/es/components/TextField/TextField.js +9 -24
  253. package/es/components/TextField/TextField.js.map +1 -1
  254. package/es/components/TextField/TextField.styles.js +7 -15
  255. package/es/components/TextField/TextField.styles.js.map +1 -1
  256. package/es/components/TextField/{TextField.styles_1d2ryq.css → TextField.styles_uponva.css} +2 -2
  257. package/es/components/TextField/TextField.tokens.js +0 -9
  258. package/es/components/TextField/TextField.tokens.js.map +1 -1
  259. package/es/components/TextField/variations/_disabled/base.js +1 -1
  260. package/es/components/TextField/variations/_disabled/base.js.map +1 -1
  261. package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +1 -0
  262. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  263. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  264. package/es/components/TextField/variations/_label-placement/base_6k17xp.css +1 -0
  265. package/es/components/TextField/variations/_read-only/base.js +1 -1
  266. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  267. package/es/components/TextField/variations/_read-only/base_8onybn.css +1 -0
  268. package/es/components/_Icon/Icon.assets/BlankCsvOutline.js +29 -0
  269. package/es/components/_Icon/Icon.assets/BlankCsvOutline.js.map +1 -0
  270. package/es/components/_Icon/Icon.assets/BlankDocOutline.js +33 -0
  271. package/es/components/_Icon/Icon.assets/BlankDocOutline.js.map +1 -0
  272. package/es/components/_Icon/Icon.assets/BlankOutline.js +20 -0
  273. package/es/components/_Icon/Icon.assets/BlankOutline.js.map +1 -0
  274. package/es/components/_Icon/Icon.assets/BlankPdfOutline.js +25 -0
  275. package/es/components/_Icon/Icon.assets/BlankPdfOutline.js.map +1 -0
  276. package/es/components/_Icon/Icon.assets/BlankTxtOutline.js +29 -0
  277. package/es/components/_Icon/Icon.assets/BlankTxtOutline.js.map +1 -0
  278. package/es/components/_Icon/Icon.assets/BlankXlsOutline.js +29 -0
  279. package/es/components/_Icon/Icon.assets/BlankXlsOutline.js.map +1 -0
  280. package/es/components/_Icon/Icon.assets/CloseCircleOutline.js +20 -0
  281. package/es/components/_Icon/Icon.assets/CloseCircleOutline.js.map +1 -0
  282. package/es/components/_Icon/Icon.assets/Plus.js +20 -0
  283. package/es/components/_Icon/Icon.assets/Plus.js.map +1 -0
  284. package/es/components/_Icon/Icons/IconBlankCsvOutline.js +19 -0
  285. package/es/components/_Icon/Icons/IconBlankCsvOutline.js.map +1 -0
  286. package/es/components/_Icon/Icons/IconBlankDocOutline.js +19 -0
  287. package/es/components/_Icon/Icons/IconBlankDocOutline.js.map +1 -0
  288. package/es/components/_Icon/Icons/IconBlankOutline.js +19 -0
  289. package/es/components/_Icon/Icons/IconBlankOutline.js.map +1 -0
  290. package/es/components/_Icon/Icons/IconBlankPdfOutline.js +19 -0
  291. package/es/components/_Icon/Icons/IconBlankPdfOutline.js.map +1 -0
  292. package/es/components/_Icon/Icons/IconBlankTxtOutline.js +19 -0
  293. package/es/components/_Icon/Icons/IconBlankTxtOutline.js.map +1 -0
  294. package/es/components/_Icon/Icons/IconBlankXlsOutline.js +19 -0
  295. package/es/components/_Icon/Icons/IconBlankXlsOutline.js.map +1 -0
  296. package/es/components/_Icon/Icons/IconCloseCircleOutline.js +19 -0
  297. package/es/components/_Icon/Icons/IconCloseCircleOutline.js.map +1 -0
  298. package/es/components/_Icon/Icons/IconPlus.js +19 -0
  299. package/es/components/_Icon/Icons/IconPlus.js.map +1 -0
  300. package/es/index.css +30 -17
  301. package/es/index.js +2 -0
  302. package/es/index.js.map +1 -1
  303. package/package.json +2 -2
  304. package/styled-components/cjs/components/Attach/Attach.js +186 -0
  305. package/styled-components/cjs/components/Attach/Attach.styles.js +18 -0
  306. package/styled-components/cjs/components/Attach/Attach.template-doc.mdx +63 -0
  307. package/styled-components/cjs/components/Attach/Attach.tokens.js +128 -0
  308. package/styled-components/cjs/components/Attach/Attach.types.js +5 -0
  309. package/styled-components/cjs/components/Attach/components/AttachButton/AttachButton.js +52 -0
  310. package/styled-components/cjs/components/Attach/components/AttachButton/index.js +12 -0
  311. package/styled-components/cjs/components/Attach/index.js +25 -0
  312. package/styled-components/cjs/components/Attach/ui/Button/Button.js +12 -0
  313. package/styled-components/cjs/components/Attach/ui/Button/Button.styles.js +16 -0
  314. package/styled-components/cjs/components/Attach/ui/Cell/Cell.js +12 -0
  315. package/styled-components/cjs/components/Attach/ui/Cell/Cell.styles.js +16 -0
  316. package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.js +12 -0
  317. package/styled-components/cjs/components/Attach/ui/IconButton/IconButton.styles.js +19 -0
  318. package/styled-components/cjs/components/Attach/utils/extractExtension.js +9 -0
  319. package/styled-components/cjs/components/Attach/utils/getFileicon.js +44 -0
  320. package/styled-components/cjs/components/Attach/utils/index.js +26 -0
  321. package/styled-components/cjs/components/Attach/utils/truncateFilename.js +23 -0
  322. package/styled-components/cjs/components/Attach/variations/_size/base.js +9 -0
  323. package/styled-components/cjs/components/Attach/variations/_view/base.js +9 -0
  324. package/styled-components/cjs/components/Cell/Cell.js +3 -2
  325. package/styled-components/cjs/components/TextField/TextField.js +9 -24
  326. package/styled-components/cjs/components/TextField/TextField.styles.js +3 -7
  327. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +17 -50
  328. package/styled-components/cjs/components/TextField/TextField.tokens.js +0 -9
  329. package/styled-components/cjs/components/TextField/variations/_disabled/base.js +1 -1
  330. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  331. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +1 -1
  332. package/styled-components/cjs/components/_Icon/Icon.assets/BlankCsvOutline.js +32 -0
  333. package/styled-components/cjs/components/_Icon/Icon.assets/BlankDocOutline.js +36 -0
  334. package/styled-components/cjs/components/_Icon/Icon.assets/BlankOutline.js +23 -0
  335. package/styled-components/cjs/components/_Icon/Icon.assets/BlankPdfOutline.js +28 -0
  336. package/styled-components/cjs/components/_Icon/Icon.assets/BlankTxtOutline.js +32 -0
  337. package/styled-components/cjs/components/_Icon/Icon.assets/BlankXlsOutline.js +32 -0
  338. package/styled-components/cjs/components/_Icon/Icon.assets/CloseCircleOutline.js +23 -0
  339. package/styled-components/cjs/components/_Icon/Icon.assets/Plus.js +23 -0
  340. package/styled-components/cjs/components/_Icon/Icons/IconBlankCsvOutline.js +22 -0
  341. package/styled-components/cjs/components/_Icon/Icons/IconBlankDocOutline.js +22 -0
  342. package/styled-components/cjs/components/_Icon/Icons/IconBlankOutline.js +22 -0
  343. package/styled-components/cjs/components/_Icon/Icons/IconBlankPdfOutline.js +22 -0
  344. package/styled-components/cjs/components/_Icon/Icons/IconBlankTxtOutline.js +22 -0
  345. package/styled-components/cjs/components/_Icon/Icons/IconBlankXlsOutline.js +22 -0
  346. package/styled-components/cjs/components/_Icon/Icons/IconCloseCircleOutline.js +22 -0
  347. package/styled-components/cjs/components/_Icon/Icons/IconPlus.js +22 -0
  348. package/styled-components/cjs/components/_Icon/index.js +57 -1
  349. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.config.js +37 -0
  350. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.js +11 -0
  351. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +177 -0
  352. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +9 -12
  353. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -8
  354. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.config.js +37 -0
  355. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.js +11 -0
  356. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +168 -0
  357. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +9 -12
  358. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -8
  359. package/styled-components/cjs/index.js +11 -0
  360. package/styled-components/es/components/Attach/Attach.js +177 -0
  361. package/styled-components/es/components/Attach/Attach.styles.js +10 -0
  362. package/styled-components/es/components/Attach/Attach.template-doc.mdx +63 -0
  363. package/styled-components/es/components/Attach/Attach.tokens.js +122 -0
  364. package/styled-components/es/components/Attach/Attach.types.js +1 -0
  365. package/styled-components/es/components/Attach/components/AttachButton/AttachButton.js +43 -0
  366. package/styled-components/es/components/Attach/components/AttachButton/index.js +1 -0
  367. package/styled-components/es/components/Attach/index.js +2 -0
  368. package/styled-components/es/components/Attach/ui/Button/Button.js +1 -0
  369. package/styled-components/es/components/Attach/ui/Button/Button.styles.js +9 -0
  370. package/styled-components/es/components/Attach/ui/Cell/Cell.js +1 -0
  371. package/styled-components/es/components/Attach/ui/Cell/Cell.styles.js +9 -0
  372. package/styled-components/es/components/Attach/ui/IconButton/IconButton.js +1 -0
  373. package/styled-components/es/components/Attach/ui/IconButton/IconButton.styles.js +12 -0
  374. package/styled-components/es/components/Attach/utils/extractExtension.js +3 -0
  375. package/styled-components/es/components/Attach/utils/getFileicon.js +37 -0
  376. package/styled-components/es/components/Attach/utils/index.js +3 -0
  377. package/styled-components/es/components/Attach/utils/truncateFilename.js +17 -0
  378. package/styled-components/es/components/Attach/variations/_size/base.js +3 -0
  379. package/styled-components/es/components/Attach/variations/_view/base.js +3 -0
  380. package/styled-components/es/components/Cell/Cell.js +3 -2
  381. package/styled-components/es/components/TextField/TextField.js +3 -18
  382. package/styled-components/es/components/TextField/TextField.styles.js +3 -7
  383. package/styled-components/es/components/TextField/TextField.template-doc.mdx +17 -50
  384. package/styled-components/es/components/TextField/TextField.tokens.js +0 -9
  385. package/styled-components/es/components/TextField/variations/_disabled/base.js +1 -1
  386. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  387. package/styled-components/es/components/TextField/variations/_read-only/base.js +2 -2
  388. package/styled-components/es/components/_Icon/Icon.assets/BlankCsvOutline.js +25 -0
  389. package/styled-components/es/components/_Icon/Icon.assets/BlankDocOutline.js +29 -0
  390. package/styled-components/es/components/_Icon/Icon.assets/BlankOutline.js +16 -0
  391. package/styled-components/es/components/_Icon/Icon.assets/BlankPdfOutline.js +21 -0
  392. package/styled-components/es/components/_Icon/Icon.assets/BlankTxtOutline.js +25 -0
  393. package/styled-components/es/components/_Icon/Icon.assets/BlankXlsOutline.js +25 -0
  394. package/styled-components/es/components/_Icon/Icon.assets/CloseCircleOutline.js +16 -0
  395. package/styled-components/es/components/_Icon/Icon.assets/Plus.js +16 -0
  396. package/styled-components/es/components/_Icon/Icons/IconBlankCsvOutline.js +15 -0
  397. package/styled-components/es/components/_Icon/Icons/IconBlankDocOutline.js +15 -0
  398. package/styled-components/es/components/_Icon/Icons/IconBlankOutline.js +15 -0
  399. package/styled-components/es/components/_Icon/Icons/IconBlankPdfOutline.js +15 -0
  400. package/styled-components/es/components/_Icon/Icons/IconBlankTxtOutline.js +15 -0
  401. package/styled-components/es/components/_Icon/Icons/IconBlankXlsOutline.js +15 -0
  402. package/styled-components/es/components/_Icon/Icons/IconCloseCircleOutline.js +15 -0
  403. package/styled-components/es/components/_Icon/Icons/IconPlus.js +15 -0
  404. package/styled-components/es/components/_Icon/index.js +9 -1
  405. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.config.js +31 -0
  406. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.js +5 -0
  407. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +177 -0
  408. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +9 -12
  409. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -8
  410. package/styled-components/es/examples/plasma_web/components/Attach/Attach.config.js +31 -0
  411. package/styled-components/es/examples/plasma_web/components/Attach/Attach.js +5 -0
  412. package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +168 -0
  413. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +9 -12
  414. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -8
  415. package/styled-components/es/index.js +2 -1
  416. package/types/components/Attach/Attach.d.ts +23 -0
  417. package/types/components/Attach/Attach.d.ts.map +1 -0
  418. package/types/components/Attach/Attach.styles.d.ts +5 -0
  419. package/types/components/Attach/Attach.styles.d.ts.map +1 -0
  420. package/types/components/Attach/Attach.tokens.d.ts +119 -0
  421. package/types/components/Attach/Attach.tokens.d.ts.map +1 -0
  422. package/types/components/Attach/Attach.types.d.ts +43 -0
  423. package/types/components/Attach/Attach.types.d.ts.map +1 -0
  424. package/types/components/Attach/components/AttachButton/AttachButton.d.ts +4 -0
  425. package/types/components/Attach/components/AttachButton/AttachButton.d.ts.map +1 -0
  426. package/types/components/Attach/components/AttachButton/index.d.ts +2 -0
  427. package/types/components/Attach/components/AttachButton/index.d.ts.map +1 -0
  428. package/types/components/Attach/index.d.ts +4 -0
  429. package/types/components/Attach/index.d.ts.map +1 -0
  430. package/types/components/Attach/ui/Button/Button.d.ts +2 -0
  431. package/types/components/Attach/ui/Button/Button.d.ts.map +1 -0
  432. package/types/components/Attach/ui/Button/Button.styles.d.ts +45 -0
  433. package/types/components/Attach/ui/Button/Button.styles.d.ts.map +1 -0
  434. package/types/components/Attach/ui/Cell/Cell.d.ts +2 -0
  435. package/types/components/Attach/ui/Cell/Cell.d.ts.map +1 -0
  436. package/types/components/Attach/ui/Cell/Cell.styles.d.ts +33 -0
  437. package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +1 -0
  438. package/types/components/Attach/ui/IconButton/IconButton.d.ts +2 -0
  439. package/types/components/Attach/ui/IconButton/IconButton.d.ts.map +1 -0
  440. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +88 -0
  441. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts.map +1 -0
  442. package/types/components/Attach/utils/extractExtension.d.ts +2 -0
  443. package/types/components/Attach/utils/extractExtension.d.ts.map +1 -0
  444. package/types/components/Attach/utils/getFileicon.d.ts +3 -0
  445. package/types/components/Attach/utils/getFileicon.d.ts.map +1 -0
  446. package/types/components/Attach/utils/index.d.ts +4 -0
  447. package/types/components/Attach/utils/index.d.ts.map +1 -0
  448. package/types/components/Attach/utils/truncateFilename.d.ts +7 -0
  449. package/types/components/Attach/utils/truncateFilename.d.ts.map +1 -0
  450. package/types/components/Attach/variations/_size/base.d.ts.map +1 -0
  451. package/types/components/Attach/variations/_view/base.d.ts +2 -0
  452. package/types/components/Attach/variations/_view/base.d.ts.map +1 -0
  453. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +0 -120
  454. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  455. package/types/components/Cell/Cell.d.ts.map +1 -1
  456. package/types/components/Cell/Cell.types.d.ts +1 -1
  457. package/types/components/Cell/Cell.types.d.ts.map +1 -1
  458. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +2 -2
  459. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +0 -120
  460. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  461. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +0 -120
  462. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  463. package/types/components/Range/Range.styles.d.ts +0 -120
  464. package/types/components/Range/Range.styles.d.ts.map +1 -1
  465. package/types/components/Slider/components/Double/Double.styles.d.ts +0 -120
  466. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  467. package/types/components/TextField/TextField.d.ts +0 -4
  468. package/types/components/TextField/TextField.d.ts.map +1 -1
  469. package/types/components/TextField/TextField.styles.d.ts +4 -5
  470. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  471. package/types/components/TextField/TextField.tokens.d.ts +0 -9
  472. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  473. package/types/components/TextField/TextField.types.d.ts +1 -20
  474. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  475. package/types/components/TextField/variations/_disabled/base.d.ts.map +1 -1
  476. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  477. package/types/components/TextField/variations/_read-only/base.d.ts.map +1 -1
  478. package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts +4 -0
  479. package/types/components/_Icon/Icon.assets/BlankCsvOutline.d.ts.map +1 -0
  480. package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts +4 -0
  481. package/types/components/_Icon/Icon.assets/BlankDocOutline.d.ts.map +1 -0
  482. package/types/components/_Icon/Icon.assets/BlankOutline.d.ts +4 -0
  483. package/types/components/_Icon/Icon.assets/BlankOutline.d.ts.map +1 -0
  484. package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts +4 -0
  485. package/types/components/_Icon/Icon.assets/BlankPdfOutline.d.ts.map +1 -0
  486. package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts +4 -0
  487. package/types/components/_Icon/Icon.assets/BlankTxtOutline.d.ts.map +1 -0
  488. package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts +4 -0
  489. package/types/components/_Icon/Icon.assets/BlankXlsOutline.d.ts.map +1 -0
  490. package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts +4 -0
  491. package/types/components/_Icon/Icon.assets/CloseCircleOutline.d.ts.map +1 -0
  492. package/types/components/_Icon/Icon.assets/Plus.d.ts +4 -0
  493. package/types/components/_Icon/Icon.assets/Plus.d.ts.map +1 -0
  494. package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts +4 -0
  495. package/types/components/_Icon/Icons/IconBlankCsvOutline.d.ts.map +1 -0
  496. package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts +4 -0
  497. package/types/components/_Icon/Icons/IconBlankDocOutline.d.ts.map +1 -0
  498. package/types/components/_Icon/Icons/IconBlankOutline.d.ts +4 -0
  499. package/types/components/_Icon/Icons/IconBlankOutline.d.ts.map +1 -0
  500. package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts +4 -0
  501. package/types/components/_Icon/Icons/IconBlankPdfOutline.d.ts.map +1 -0
  502. package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts +4 -0
  503. package/types/components/_Icon/Icons/IconBlankTxtOutline.d.ts.map +1 -0
  504. package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts +4 -0
  505. package/types/components/_Icon/Icons/IconBlankXlsOutline.d.ts.map +1 -0
  506. package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts +4 -0
  507. package/types/components/_Icon/Icons/IconCloseCircleOutline.d.ts.map +1 -0
  508. package/types/components/_Icon/Icons/IconPlus.d.ts +4 -0
  509. package/types/components/_Icon/Icons/IconPlus.d.ts.map +1 -0
  510. package/types/components/_Icon/index.d.ts +8 -0
  511. package/types/components/_Icon/index.d.ts.map +1 -1
  512. package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts +30 -0
  513. package/types/examples/plasma_b2c/components/Attach/Attach.config.d.ts.map +1 -0
  514. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +224 -0
  515. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts.map +1 -0
  516. package/types/examples/plasma_b2c/components/Cell/Cell.d.ts +2 -2
  517. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +0 -236
  518. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  519. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -3
  520. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  521. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -123
  522. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  523. package/types/examples/plasma_web/components/Attach/Attach.config.d.ts +30 -0
  524. package/types/examples/plasma_web/components/Attach/Attach.config.d.ts.map +1 -0
  525. package/types/examples/plasma_web/components/Attach/Attach.d.ts +224 -0
  526. package/types/examples/plasma_web/components/Attach/Attach.d.ts.map +1 -0
  527. package/types/examples/plasma_web/components/Cell/Cell.d.ts +2 -2
  528. package/types/examples/plasma_web/components/Mask/Mask.d.ts +0 -236
  529. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  530. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -3
  531. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  532. package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -123
  533. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  534. package/types/index.d.ts +1 -0
  535. package/types/index.d.ts.map +1 -1
  536. package/cjs/components/TextField/variations/_clear/base.js.map +0 -1
  537. package/cjs/components/TextField/variations/_clear/base_1v36fe3.css +0 -1
  538. package/cjs/components/TextField/variations/_disabled/base_2tv0nz.css +0 -1
  539. package/cjs/components/TextField/variations/_label-placement/base_1ghihns.css +0 -1
  540. package/cjs/components/TextField/variations/_read-only/base_kcc8wi.css +0 -1
  541. package/emotion/cjs/components/TextField/variations/_clear/base.js +0 -10
  542. package/emotion/cjs/components/TextField/variations/_clear/tokens.json +0 -10
  543. package/emotion/es/components/TextField/variations/_clear/base.js +0 -4
  544. package/emotion/es/components/TextField/variations/_clear/tokens.json +0 -10
  545. package/es/components/TextField/variations/_clear/base.js.map +0 -1
  546. package/es/components/TextField/variations/_clear/base_1v36fe3.css +0 -1
  547. package/es/components/TextField/variations/_disabled/base_2tv0nz.css +0 -1
  548. package/es/components/TextField/variations/_label-placement/base_1ghihns.css +0 -1
  549. package/es/components/TextField/variations/_read-only/base_kcc8wi.css +0 -1
  550. package/styled-components/cjs/components/TextField/variations/_clear/base.js +0 -10
  551. package/styled-components/cjs/components/TextField/variations/_clear/tokens.json +0 -10
  552. package/styled-components/es/components/TextField/variations/_clear/base.js +0 -4
  553. package/styled-components/es/components/TextField/variations/_clear/tokens.json +0 -10
  554. package/types/components/TextField/variations/_clear/base.d.ts.map +0 -1
  555. /package/types/components/{TextField/variations/_clear → Attach/variations/_size}/base.d.ts +0 -0
@@ -0,0 +1,168 @@
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
+ };
@@ -8,29 +8,26 @@ export var config = {
8
8
  },
9
9
  variations: {
10
10
  view: {
11
- "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
- positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
- warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
- negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
11
+ "default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
12
+ positive: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-positive);", ":var(--surface-positive);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
13
+ warning: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-warning);", ":var(--surface-warning);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor),
14
+ negative: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--text-secondary-hover);", ":var(--text-secondary-active);", ":var(--surface-negative);", ":var(--surface-negative);", ":var(--surface-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);", ":var(--surface-negative);", ":var(--text-tertiary);"], tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
15
15
  },
16
16
  size: {
17
- l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":0.25rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.5rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
18
- m: /*#__PURE__*/css(["", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":0.0625rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem -0.125rem -0.125rem 0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.625rem;", ":0.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem 0 0.125rem 0;", ":1.375rem 0 0.375rem 0;", ":0.25rem;", ":0.375rem;", ":auto;", ":2.25rem;", ":0.625rem;", ":0.875rem;", ":0.5rem;", ":0rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.375rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.6875rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
19
- s: /*#__PURE__*/css(["", ":2.5rem;", ":0.6875rem 0.875rem 0.6875rem 0.875rem;", ":0.375rem;", ":0.625rem;", ":0.0625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem -0.125rem -0.1875rem 0.75rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":0.25rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.25rem;", ":auto;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.375rem;", ":0.375rem;", ":0 0 0 0;", ":0.3125rem auto auto -0.6875rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
20
- xs: /*#__PURE__*/css(["", ":2rem;", ":0.5625rem 0.625rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":0.0625rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.125rem;", ":auto;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":0.375rem;", ":0 0 0 0;", ":0.25rem auto auto -0.625rem;", ":0 0 auto auto;", ":0.125rem -0.6875rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight)
17
+ l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":0.0625rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.5rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
18
+ m: /*#__PURE__*/css(["", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":0.0625rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem -0.125rem -0.125rem 0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.625rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem 0 0.125rem 0;", ":1.375rem 0 0.375rem 0;", ":0.25rem;", ":0.375rem;", ":auto;", ":2.25rem;", ":0.625rem;", ":0.875rem;", ":0.5rem;", ":0rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.5rem;", ":0.375rem;", ":0 0 0 0;", ":0.375rem auto auto -0.75rem;", ":0 0 auto auto;", ":0.25rem -0.6875rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
19
+ s: /*#__PURE__*/css(["", ":2.5rem;", ":0.6875rem 0.875rem 0.6875rem 0.875rem;", ":0.375rem;", ":0.625rem;", ":0.0625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem -0.125rem -0.1875rem 0.75rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.25rem;", ":auto;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.375rem;", ":0.375rem;", ":0 0 0 0;", ":0.3125rem auto auto -0.6875rem;", ":0 0 auto auto;", ":0.25rem -0.625rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight),
20
+ xs: /*#__PURE__*/css(["", ":2rem;", ":0.5625rem 0.625rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":0.0625rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.125rem;", ":auto;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":0.375rem;", ":0 0 0 0;", ":0.25rem auto auto -0.625rem;", ":0 0 auto auto;", ":0.125rem -0.6875rem auto auto;"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight)
21
21
  },
22
22
  labelPlacement: {
23
23
  inner: /*#__PURE__*/css(["", ":var(--plasma-input-label-color,var(--plasma-input-placeholder-color,var(--text-secondary)));", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], tokens.placeholderColor, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight),
24
24
  outer: /*#__PURE__*/css([""])
25
25
  },
26
- clear: {
27
- "true": /*#__PURE__*/css([""])
28
- },
29
26
  disabled: {
30
27
  "true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
31
28
  },
32
29
  readOnly: {
33
- "true": /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.borderColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.labelColorReadOnly)
30
+ "true": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--surface-transparent-tertiary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.borderColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.labelColorReadOnly)
34
31
  }
35
32
  }
36
33
  };
@@ -41,12 +41,6 @@ const meta: Meta<typeof TextField> = {
41
41
  },
42
42
  if: { arg: 'required', truthy: false },
43
43
  },
44
- hasDivider: {
45
- control: {
46
- type: 'boolean',
47
- },
48
- if: { arg: 'clear', truthy: true },
49
- },
50
44
  view: {
51
45
  options: views,
52
46
  control: {
@@ -154,8 +148,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
154
148
  optional: false,
155
149
  enableContentLeft: true,
156
150
  enableContentRight: true,
157
- clear: false,
158
- hasDivider: false,
159
151
  },
160
152
  render: (args) => <StoryDemo {...args} />,
161
153
  };
@@ -57,4 +57,5 @@ export * from './components/Price';
57
57
  export * from './components/Autocomplete';
58
58
  export * from './components/EmptyState';
59
59
  export * from './components/Editable';
60
- export * from './components/Mask';
60
+ export * from './components/Mask';
61
+ export * from './components/Attach';
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { RootProps } from '../../engines';
3
+ import { AttachProps } from './Attach.types';
4
+ export declare const attachRoot: (Root: RootProps<HTMLDivElement, AttachProps>) => React.ForwardRefExoticComponent<AttachProps & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const attachConfig: {
6
+ name: string;
7
+ tag: string;
8
+ layout: (Root: RootProps<HTMLDivElement, AttachProps>) => React.ForwardRefExoticComponent<AttachProps & React.RefAttributes<HTMLDivElement>>;
9
+ base: import("@linaria/core").LinariaClassName;
10
+ variations: {
11
+ view: {
12
+ css: import("@linaria/core").LinariaClassName;
13
+ };
14
+ size: {
15
+ css: import("@linaria/core").LinariaClassName;
16
+ };
17
+ };
18
+ defaults: {
19
+ view: string;
20
+ size: string;
21
+ };
22
+ };
23
+ //# sourceMappingURL=Attach.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attach.d.ts","sourceRoot":"","sources":["../../../src/components/Attach/Attach.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAU7C,eAAO,MAAM,UAAU,SAAU,UAAU,cAAc,EAAE,WAAW,CAAC,uFA+JjE,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAjKQ,UAAU,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;CAkLtE,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const base: import("@linaria/core").LinariaClassName;
3
+ export declare const StyledHiddenInput: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
4
+ export declare const StyledHiddenInputHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ //# sourceMappingURL=Attach.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attach.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Attach/Attach.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAEF,eAAO,MAAM,iBAAiB,8KAE7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qKAUnC,CAAC"}
@@ -0,0 +1,119 @@
1
+ export declare const classes: {
2
+ auto: string;
3
+ horizontal: string;
4
+ vertical: string;
5
+ cellHidden: string;
6
+ };
7
+ export declare const tokens: {
8
+ horizontalGap: string;
9
+ verticalGap: string;
10
+ buttonColor: string;
11
+ buttonValueColor: string;
12
+ buttonBackgroundColor: string;
13
+ buttonColorHover: string;
14
+ buttonBackgroundColorHover: string;
15
+ buttonColorActive: string;
16
+ buttonBackgroundColorActive: string;
17
+ buttonLoadingBackgroundColor: string;
18
+ buttonScaleHover: string;
19
+ buttonScaleActive: string;
20
+ buttonHeight: string;
21
+ buttonWidth: string;
22
+ buttonPadding: string;
23
+ buttonRadius: string;
24
+ buttonRadiusCircle: string;
25
+ buttonFontFamily: string;
26
+ buttonFontSize: string;
27
+ buttonFontStyle: string;
28
+ buttonFontWeight: string;
29
+ buttonLetterSpacing: string;
30
+ buttonLineHeight: string;
31
+ buttonLeftContentMargin: string;
32
+ buttonLeftContentAlignSelf: string;
33
+ buttonRightContentMargin: string;
34
+ buttonRightContentAlignSelf: string;
35
+ buttonValueMargin: string;
36
+ buttonDisabledOpacity: string;
37
+ buttonFocusColor: string;
38
+ buttonSpinnerColor: string;
39
+ buttonSpinnerSize: string;
40
+ cellColor: string;
41
+ cellBackgroundColor: string;
42
+ cellPadding: string;
43
+ cellPaddingLeftContent: string;
44
+ cellPaddingContent: string;
45
+ cellPaddingRightContent: string;
46
+ cellTextboxGap: string;
47
+ cellGap: string;
48
+ cellWidth: string;
49
+ cellLabelColor: string;
50
+ cellLabelFontFamily: string;
51
+ cellLabelFontSize: string;
52
+ cellLabelFontStyle: string;
53
+ cellLabelFontWeight: string;
54
+ cellLabelLetterSpacing: string;
55
+ cellLabelLineHeight: string;
56
+ cellTitleColor: string;
57
+ cellTitleFontFamily: string;
58
+ cellTitleFontSize: string;
59
+ cellTitleFontStyle: string;
60
+ cellTitleFontWeight: string;
61
+ cellTitleLetterSpacing: string;
62
+ cellTitleLineHeight: string;
63
+ cellSubtitleColor: string;
64
+ cellSubtitleFontFamily: string;
65
+ cellSubtitleFontSize: string;
66
+ cellSubtitleFontStyle: string;
67
+ cellSubtitleFontWeight: string;
68
+ cellSubtitleLetterSpacing: string;
69
+ cellSubtitleLineHeight: string;
70
+ iconButtonColor: string;
71
+ iconButtonBackgroundColor: string;
72
+ iconButtonLoadingBackgroundColor: string;
73
+ iconButtonColorHover: string;
74
+ iconButtonBackgroundColorHover: string;
75
+ iconButtonColorActive: string;
76
+ iconButtonBackgroundColorActive: string;
77
+ iconButtonScaleHover: string;
78
+ iconButtonScaleActive: string;
79
+ iconButtonHeight: string;
80
+ iconButtonWidth: string;
81
+ iconButtonPadding: string;
82
+ iconButtonRadius: string;
83
+ iconButtonRadiusCircle: string;
84
+ iconButtonFontFamily: string;
85
+ iconButtonFontSize: string;
86
+ iconButtonFontStyle: string;
87
+ iconButtonFontWeight: string;
88
+ iconButtonLetterSpacing: string;
89
+ iconButtonLineHeight: string;
90
+ iconButtonDisabledOpacity: string;
91
+ iconButtonFocusColor: string;
92
+ iconButtonSpinnerColor: string;
93
+ iconButtonSpinnerSize: string;
94
+ iconButtonCancelColor: string;
95
+ iconButtonCancelBackgroundColor: string;
96
+ iconButtonCancelLoadingBackgroundColor: string;
97
+ iconButtonCancelColorHover: string;
98
+ iconButtonCancelBackgroundColorHover: string;
99
+ iconButtonCancelColorActive: string;
100
+ iconButtonCancelBackgroundColorActive: string;
101
+ iconButtonCancelScaleHover: string;
102
+ iconButtonCancelScaleActive: string;
103
+ iconButtonCancelHeight: string;
104
+ iconButtonCancelWidth: string;
105
+ iconButtonCancelPadding: string;
106
+ iconButtonCancelRadius: string;
107
+ iconButtonCancelRadiusCircle: string;
108
+ iconButtonCancelFontFamily: string;
109
+ iconButtonCancelFontSize: string;
110
+ iconButtonCancelFontStyle: string;
111
+ iconButtonCancelFontWeight: string;
112
+ iconButtonCancelLetterSpacing: string;
113
+ iconButtonCancelLineHeight: string;
114
+ iconButtonCancelDisabledOpacity: string;
115
+ iconButtonCancelFocusColor: string;
116
+ iconButtonCancelSpinnerColor: string;
117
+ iconButtonCancelSpinnerSize: string;
118
+ };
119
+ //# sourceMappingURL=Attach.tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attach.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Attach/Attach.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0IlB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ import { ButtonProps } from '../Button/Button.types';
4
+ export declare type BaseAttachProps = {
5
+ /**
6
+ * Массив форматов файлов, которые могут быть прикреплены (см. HTML-атрибут 'accept' для 'input').
7
+ */
8
+ acceptedFileFormats?: string[];
9
+ /**
10
+ * Отображать прикрепленный файл
11
+ * @default true
12
+ */
13
+ hasAttachment?: boolean;
14
+ /**
15
+ * Расположение элементов.
16
+ * По умолчанию 'auto' – автоматический перенос элемента в случае нехватки ширины контейнера.
17
+ * @default 'auto'
18
+ */
19
+ flow?: 'horizontal' | 'vertical' | 'auto';
20
+ /**
21
+ * Размер Attach
22
+ */
23
+ size?: string;
24
+ /**
25
+ * Вид Attach
26
+ */
27
+ view?: string;
28
+ };
29
+ export declare type AttachButtonProps = ({
30
+ /**
31
+ * Тип кнопки. 'button' – обычная кнопка. 'iconButton' – кнопка с иконкой.
32
+ * @default 'button'
33
+ */
34
+ buttonType?: 'button';
35
+ } | {
36
+ buttonType?: 'iconButton';
37
+ /**
38
+ * Иконка
39
+ */
40
+ icon?: React.ReactNode;
41
+ }) & ButtonProps;
42
+ export declare type AttachProps = HTMLAttributes<HTMLDivElement> & ButtonProps & BaseAttachProps & AttachButtonProps;
43
+ //# sourceMappingURL=Attach.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attach.types.d.ts","sourceRoot":"","sources":["../../../src/components/Attach/Attach.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,oBAAY,eAAe,GAAG;IAC1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,CAC1B;IACI;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC;CACzB,GACD;IACI,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CACN,GACG,WAAW,CAAC;AAEhB,oBAAY,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AttachButtonProps } from '../../Attach.types';
3
+ export declare const AttachButton: React.ForwardRefExoticComponent<AttachButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
+ //# sourceMappingURL=AttachButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attach/components/AttachButton/AttachButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAoBvD,eAAO,MAAM,YAAY,6FAavB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { AttachButton } from './AttachButton';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attach/components/AttachButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { attachRoot, attachConfig } from './Attach';
2
+ export type { AttachProps } from './Attach.types';
3
+ export { tokens as attachTokens } from './Attach.tokens';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Attach/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { StyledButton } from './Button.styles';
2
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attach/ui/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledButton: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../../../types").AsProps<any> & {
3
+ text?: string | undefined;
4
+ contentLeft?: import("react").ReactNode;
5
+ contentPlacing?: ("default" | "relaxed") | undefined;
6
+ isLoading?: boolean | undefined;
7
+ loader?: import("react").ReactNode;
8
+ stretch?: boolean | undefined;
9
+ stretching?: ("auto" | "fixed" | "filled") | undefined;
10
+ square?: boolean | undefined;
11
+ focused?: boolean | undefined;
12
+ disabled?: boolean | undefined;
13
+ pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
14
+ view?: string | undefined;
15
+ size?: string | undefined;
16
+ outlined?: boolean | undefined;
17
+ shiftLeft?: boolean | undefined;
18
+ shiftRight?: boolean | undefined;
19
+ blur?: "small" | "medium" | "large" | undefined;
20
+ } & {
21
+ value?: string | number | undefined;
22
+ contentRight?: undefined;
23
+ } & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("../../../../types").AsProps<any> & {
24
+ text?: string | undefined;
25
+ contentLeft?: import("react").ReactNode;
26
+ contentPlacing?: ("default" | "relaxed") | undefined;
27
+ isLoading?: boolean | undefined;
28
+ loader?: import("react").ReactNode;
29
+ stretch?: boolean | undefined;
30
+ stretching?: ("auto" | "fixed" | "filled") | undefined;
31
+ square?: boolean | undefined;
32
+ focused?: boolean | undefined;
33
+ disabled?: boolean | undefined;
34
+ pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
35
+ view?: string | undefined;
36
+ size?: string | undefined;
37
+ outlined?: boolean | undefined;
38
+ shiftLeft?: boolean | undefined;
39
+ shiftRight?: boolean | undefined;
40
+ blur?: "small" | "medium" | "large" | undefined;
41
+ } & {
42
+ value?: undefined;
43
+ contentRight?: import("react").ReactNode;
44
+ } & import("react").RefAttributes<HTMLButtonElement>))>;
45
+ //# sourceMappingURL=Button.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attach/ui/Button/Button.styles.tsx"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAoCxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { StyledCell } from './Cell.styles';
2
+ //# sourceMappingURL=Cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attach/ui/Cell/Cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}