@salutejs/plasma-new-hope 0.195.0-canary.1534.11913376384.0 → 0.195.0-canary.1546.11930615455.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (372) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -333
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Badge/Badge.css +4 -4
  4. package/cjs/components/Badge/Badge.js +17 -7
  5. package/cjs/components/Badge/Badge.js.map +1 -1
  6. package/cjs/components/Badge/Badge.tokens.js +10 -5
  7. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  10. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  11. package/cjs/components/Badge/variations/_size/base.js +1 -1
  12. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  13. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  17. package/cjs/components/Badge/variations/_view/base.js +1 -1
  18. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  19. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  20. package/cjs/components/Combobox/ComboboxNew/Combobox.js +18 -4
  21. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  22. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  23. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  24. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -4
  25. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  26. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  27. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  28. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  29. package/cjs/components/Dropdown/Dropdown.css +5 -4
  30. package/cjs/components/Dropdown/Dropdown.js +4 -2
  31. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  32. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  33. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  34. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  35. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -1
  36. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  37. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  38. package/cjs/components/Select/Select.js +0 -1
  39. package/cjs/components/Select/Select.js.map +1 -1
  40. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  41. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  42. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +18 -3
  43. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  44. package/cjs/index.css +9 -22
  45. package/cjs/index.js +0 -6
  46. package/cjs/index.js.map +1 -1
  47. package/emotion/cjs/components/Badge/Badge.js +17 -7
  48. package/emotion/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  49. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  50. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  51. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  52. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  53. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  54. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -4
  55. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  56. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -2
  57. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  58. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  59. package/emotion/cjs/components/Select/Select.js +0 -1
  60. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  61. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  62. package/emotion/cjs/components/_Icon/index.js +1 -8
  63. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  64. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  65. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  66. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  67. package/emotion/cjs/index.js +0 -11
  68. package/emotion/es/components/Badge/Badge.js +18 -8
  69. package/emotion/es/components/Badge/Badge.template-doc.mdx +40 -16
  70. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  71. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  72. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  73. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  74. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  75. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +22 -4
  76. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  77. package/emotion/es/components/Dropdown/Dropdown.js +4 -2
  78. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  79. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  80. package/emotion/es/components/Select/Select.js +0 -1
  81. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  82. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  83. package/emotion/es/components/_Icon/index.js +1 -2
  84. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  85. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  86. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  87. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  88. package/emotion/es/index.js +1 -2
  89. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -332
  90. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  91. package/es/components/Badge/Badge.css +4 -4
  92. package/es/components/Badge/Badge.js +20 -10
  93. package/es/components/Badge/Badge.js.map +1 -1
  94. package/es/components/Badge/Badge.tokens.js +10 -6
  95. package/es/components/Badge/Badge.tokens.js.map +1 -1
  96. package/es/components/Badge/variations/_clear/base.js +1 -1
  97. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  98. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  99. package/es/components/Badge/variations/_size/base.js +1 -1
  100. package/es/components/Badge/variations/_size/base.js.map +1 -1
  101. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  102. package/es/components/Badge/variations/_transparent/base.js +1 -1
  103. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  104. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  105. package/es/components/Badge/variations/_view/base.js +1 -1
  106. package/es/components/Badge/variations/_view/base.js.map +1 -1
  107. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  108. package/es/components/Combobox/ComboboxNew/Combobox.js +19 -5
  109. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  110. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  111. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  112. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -4
  113. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  114. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  115. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  116. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  117. package/es/components/Dropdown/Dropdown.css +5 -4
  118. package/es/components/Dropdown/Dropdown.js +4 -2
  119. package/es/components/Dropdown/Dropdown.js.map +1 -1
  120. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  121. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  122. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  123. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -2
  124. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  125. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  126. package/es/components/Select/Select.js +0 -1
  127. package/es/components/Select/Select.js.map +1 -1
  128. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  129. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  130. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +19 -4
  131. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  132. package/es/index.css +9 -22
  133. package/es/index.js +0 -2
  134. package/es/index.js.map +1 -1
  135. package/package.json +5 -4
  136. package/styled-components/cjs/components/Badge/Badge.js +17 -7
  137. package/styled-components/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  138. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  139. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  140. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  141. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  142. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  143. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -4
  144. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  145. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -2
  146. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  147. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  148. package/styled-components/cjs/components/Select/Select.js +0 -1
  149. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  150. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  151. package/styled-components/cjs/components/_Icon/index.js +1 -8
  152. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  153. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  154. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  155. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  156. package/styled-components/cjs/index.js +0 -11
  157. package/styled-components/es/components/Badge/Badge.js +18 -8
  158. package/styled-components/es/components/Badge/Badge.template-doc.mdx +40 -16
  159. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  160. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  161. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  162. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  163. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  164. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +22 -4
  165. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  166. package/styled-components/es/components/Dropdown/Dropdown.js +4 -2
  167. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  168. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  169. package/styled-components/es/components/Select/Select.js +0 -1
  170. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  171. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +24 -3
  172. package/styled-components/es/components/_Icon/index.js +1 -2
  173. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  174. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  175. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  176. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  177. package/styled-components/es/index.js +1 -2
  178. package/types/components/Badge/Badge.d.ts.map +1 -1
  179. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  180. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  181. package/types/components/Badge/Badge.types.d.ts +18 -5
  182. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  183. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  184. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  185. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  186. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -2
  187. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  188. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  189. package/types/components/Dropdown/Dropdown.d.ts +50 -2
  190. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  191. package/types/components/Dropdown/Dropdown.types.d.ts +11 -6
  192. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  193. package/types/components/Dropdown/index.d.ts +1 -0
  194. package/types/components/Dropdown/index.d.ts.map +1 -1
  195. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  196. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -0
  197. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  198. package/types/components/Select/Select.d.ts.map +1 -1
  199. package/types/components/Select/Select.types.d.ts +1 -2
  200. package/types/components/Select/Select.types.d.ts.map +1 -1
  201. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  202. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  203. package/types/components/_Icon/index.d.ts +0 -1
  204. package/types/components/_Icon/index.d.ts.map +1 -1
  205. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  206. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +61 -4
  207. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  208. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +25 -1
  209. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  210. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  211. package/types/examples/plasma_web/components/Badge/Badge.d.ts +61 -4
  212. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  213. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +25 -1
  214. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  215. package/types/index.d.ts +0 -1
  216. package/types/index.d.ts.map +1 -1
  217. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  218. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  219. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  220. package/cjs/components/Dropzone/Dropzone.css +0 -15
  221. package/cjs/components/Dropzone/Dropzone.js +0 -252
  222. package/cjs/components/Dropzone/Dropzone.js.map +0 -1
  223. package/cjs/components/Dropzone/Dropzone.styles.js +0 -47
  224. package/cjs/components/Dropzone/Dropzone.styles.js.map +0 -1
  225. package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  226. package/cjs/components/Dropzone/Dropzone.tokens.js +0 -47
  227. package/cjs/components/Dropzone/Dropzone.tokens.js.map +0 -1
  228. package/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  229. package/cjs/components/Dropzone/variations/_disabled/base.js.map +0 -1
  230. package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  231. package/cjs/components/Dropzone/variations/_size/base.js +0 -9
  232. package/cjs/components/Dropzone/variations/_size/base.js.map +0 -1
  233. package/cjs/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  234. package/cjs/components/Dropzone/variations/_view/base.js +0 -9
  235. package/cjs/components/Dropzone/variations/_view/base.js.map +0 -1
  236. package/cjs/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  237. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -24
  238. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  239. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -23
  240. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  241. package/emotion/cjs/components/Dropzone/Dropzone.js +0 -271
  242. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +0 -67
  243. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  244. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  245. package/emotion/cjs/components/Dropzone/Dropzone.types.js +0 -5
  246. package/emotion/cjs/components/Dropzone/index.js +0 -31
  247. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  248. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  249. package/emotion/cjs/components/Dropzone/variations/_size/base.js +0 -10
  250. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  251. package/emotion/cjs/components/Dropzone/variations/_view/base.js +0 -10
  252. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  253. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  254. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  255. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  256. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  257. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  258. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  259. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  260. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  261. package/emotion/es/components/Dropzone/Dropzone.js +0 -263
  262. package/emotion/es/components/Dropzone/Dropzone.styles.js +0 -60
  263. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  264. package/emotion/es/components/Dropzone/Dropzone.tokens.js +0 -38
  265. package/emotion/es/components/Dropzone/Dropzone.types.js +0 -1
  266. package/emotion/es/components/Dropzone/index.js +0 -2
  267. package/emotion/es/components/Dropzone/variations/_disabled/base.js +0 -3
  268. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  269. package/emotion/es/components/Dropzone/variations/_size/base.js +0 -4
  270. package/emotion/es/components/Dropzone/variations/_size/tokens.json +0 -19
  271. package/emotion/es/components/Dropzone/variations/_view/base.js +0 -4
  272. package/emotion/es/components/Dropzone/variations/_view/tokens.json +0 -9
  273. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  274. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  275. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  276. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  277. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  278. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  279. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  280. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  281. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  282. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  283. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  284. package/es/components/Dropzone/Dropzone.css +0 -15
  285. package/es/components/Dropzone/Dropzone.js +0 -247
  286. package/es/components/Dropzone/Dropzone.js.map +0 -1
  287. package/es/components/Dropzone/Dropzone.styles.js +0 -37
  288. package/es/components/Dropzone/Dropzone.styles.js.map +0 -1
  289. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  290. package/es/components/Dropzone/Dropzone.tokens.js +0 -41
  291. package/es/components/Dropzone/Dropzone.tokens.js.map +0 -1
  292. package/es/components/Dropzone/variations/_disabled/base.js +0 -5
  293. package/es/components/Dropzone/variations/_disabled/base.js.map +0 -1
  294. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  295. package/es/components/Dropzone/variations/_size/base.js +0 -5
  296. package/es/components/Dropzone/variations/_size/base.js.map +0 -1
  297. package/es/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  298. package/es/components/Dropzone/variations/_view/base.js +0 -5
  299. package/es/components/Dropzone/variations/_view/base.js.map +0 -1
  300. package/es/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  301. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -20
  302. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  303. package/es/components/_Icon/Icons/IconArrowBarDown.js +0 -19
  304. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  305. package/styled-components/cjs/components/Dropzone/Dropzone.js +0 -271
  306. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +0 -29
  307. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  308. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  309. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +0 -5
  310. package/styled-components/cjs/components/Dropzone/index.js +0 -31
  311. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  312. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  313. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +0 -10
  314. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  315. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +0 -10
  316. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  317. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  318. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  319. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  320. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  321. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  322. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  323. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  324. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  325. package/styled-components/es/components/Dropzone/Dropzone.js +0 -263
  326. package/styled-components/es/components/Dropzone/Dropzone.styles.js +0 -21
  327. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  328. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +0 -38
  329. package/styled-components/es/components/Dropzone/Dropzone.types.js +0 -1
  330. package/styled-components/es/components/Dropzone/index.js +0 -2
  331. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +0 -3
  332. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  333. package/styled-components/es/components/Dropzone/variations/_size/base.js +0 -4
  334. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +0 -19
  335. package/styled-components/es/components/Dropzone/variations/_view/base.js +0 -4
  336. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +0 -9
  337. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  338. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  339. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  340. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  341. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  342. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  343. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  344. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  345. package/types/components/Dropzone/Dropzone.d.ts +0 -59
  346. package/types/components/Dropzone/Dropzone.d.ts.map +0 -1
  347. package/types/components/Dropzone/Dropzone.styles.d.ts +0 -9
  348. package/types/components/Dropzone/Dropzone.styles.d.ts.map +0 -1
  349. package/types/components/Dropzone/Dropzone.tokens.d.ts +0 -39
  350. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +0 -1
  351. package/types/components/Dropzone/Dropzone.types.d.ts +0 -77
  352. package/types/components/Dropzone/Dropzone.types.d.ts.map +0 -1
  353. package/types/components/Dropzone/index.d.ts +0 -3
  354. package/types/components/Dropzone/index.d.ts.map +0 -1
  355. package/types/components/Dropzone/variations/_disabled/base.d.ts +0 -2
  356. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +0 -1
  357. package/types/components/Dropzone/variations/_size/base.d.ts +0 -2
  358. package/types/components/Dropzone/variations/_size/base.d.ts.map +0 -1
  359. package/types/components/Dropzone/variations/_view/base.d.ts +0 -2
  360. package/types/components/Dropzone/variations/_view/base.d.ts.map +0 -1
  361. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +0 -4
  362. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +0 -1
  363. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +0 -4
  364. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +0 -1
  365. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +0 -18
  366. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  367. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +0 -29
  368. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +0 -1
  369. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +0 -18
  370. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  371. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +0 -29
  372. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +0 -1
@@ -4,7 +4,7 @@ import { cx } from '../../../../utils';
4
4
  import { IconDisclosureRight } from '../../../_Icon';
5
5
  import { Context } from '../../Dropdown';
6
6
  import { getItemId } from '../../utils';
7
- import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell } from './DropdownItem.styles';
7
+ import { Wrapper, DisclosureIconWrapper, Divider, CellWrapper, StyledCell, RenderItemWrapper } from './DropdownItem.styles';
8
8
  export var DropdownItem = function DropdownItem(_ref) {
9
9
  var item = _ref.item,
10
10
  path = _ref.path,
@@ -34,7 +34,8 @@ export var DropdownItem = function DropdownItem(_ref) {
34
34
  onItemSelect = _useContext.onItemSelect,
35
35
  onItemClick = _useContext.onItemClick,
36
36
  hasArrow = _useContext.hasArrow,
37
- treeId = _useContext.treeId;
37
+ treeId = _useContext.treeId,
38
+ renderItem = _useContext.renderItem;
38
39
  var hasDescendants = Boolean(item.items);
39
40
  var disclosureIconSize = size === 'xs' ? 'xs' : 's';
40
41
  var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
@@ -85,7 +86,7 @@ export var DropdownItem = function DropdownItem(_ref) {
85
86
  "aria-expanded": ariaExpanded,
86
87
  "aria-level": ariaLevel,
87
88
  "aria-label": ariaLabel
88
- }, /*#__PURE__*/React.createElement(CellWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
+ }, renderItem ? /*#__PURE__*/React.createElement(RenderItemWrapper, null, renderItem(item)) : /*#__PURE__*/React.createElement(CellWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
90
  contentLeft: contentLeft,
90
91
  contentRight: contentRight,
91
92
  alignContentLeft: "center",
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { classes, tokens, constants } from '../../Dropdown.tokens';
3
- import { addFocus } from '../../../../mixins';
3
+ import { addFocus, applyEllipsis } from '../../../../mixins';
4
4
  import { cellConfig, cellTokens } from '../../../Cell';
5
5
  import { component, mergeConfig } from '../../../../engines';
6
6
  var mergedCellConfig = /*#__PURE__*/mergeConfig(cellConfig);
@@ -35,4 +35,7 @@ export var Wrapper = /*#__PURE__*/styled.li.withConfig({
35
35
  outlineRadius: /*#__PURE__*/"var(".concat(tokens.itemBorderRadius, ")"),
36
36
  hasTransition: false,
37
37
  customFocusRules: /*#__PURE__*/"\n &.".concat(classes.dropdownItemIsFocused, ":before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(").concat(constants.focusColor, ");\n }\n ")
38
- }));
38
+ }));
39
+ export var RenderItemWrapper = /*#__PURE__*/styled.div.withConfig({
40
+ componentId: "plasma-new-hope__sc-hs0ek1-5"
41
+ })(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
@@ -272,7 +272,6 @@ export var selectRoot = function selectRoot(Root) {
272
272
  handleItemClick: handleItemClick,
273
273
  variant: variant,
274
274
  renderItem: renderItem,
275
- valueToItemMap: valueToItemMap,
276
275
  treeId: treeId
277
276
  }
278
277
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
@@ -32,7 +32,6 @@ export var Item = function Item(_ref) {
32
32
  handleItemClick = _useContext.handleItemClick,
33
33
  variant = _useContext.variant,
34
34
  renderItem = _useContext.renderItem,
35
- valueToItemMap = _useContext.valueToItemMap,
36
35
  treeId = _useContext.treeId;
37
36
  var itemDisabled = Boolean(disabled || isDisabled);
38
37
  var disabledClassName = itemDisabled ? classes.dropdownItemIsDisabled : undefined;
@@ -87,7 +86,7 @@ export var Item = function Item(_ref) {
87
86
  }))), !multiselect && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
88
87
  size: sizeToIconSize(size, variant),
89
88
  color: "inherit"
90
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
91
90
  contentLeft: contentLeft,
92
91
  contentRight: contentRight
93
92
  // TODO: #1548
@@ -1,4 +1,10 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2
8
  import React, { forwardRef } from 'react';
3
9
  import { sizeToIconSize, getItemId } from '../../../../utils';
4
10
  import { classes } from '../../../../Select.tokens';
@@ -47,9 +53,24 @@ export var Textfield = /*#__PURE__*/forwardRef(function (_ref, ref) {
47
53
 
48
54
  // Обработчик чипов
49
55
  var handleChipsChange = function handleChipsChange(chipLabels) {
50
- onChange(chipLabels.map(function (chipLabel) {
51
- return labelToItemMap.get(chipLabel).value;
52
- }));
56
+ if (!Array.isArray(value)) return;
57
+
58
+ // TODO: #1564
59
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
60
+ if (renderValue && !isTargetAmount) {
61
+ var resultValues = _toConsumableArray(value);
62
+ value.forEach(function (_, index) {
63
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
64
+ if (!chipLabels.includes(labelAfterRenderValue)) {
65
+ resultValues.splice(index, 1);
66
+ }
67
+ });
68
+ onChange(resultValues);
69
+ } else {
70
+ onChange(chipLabels.map(function (chipLabel) {
71
+ return labelToItemMap.get(chipLabel).value;
72
+ }));
73
+ }
53
74
  };
54
75
  return /*#__PURE__*/React.createElement(StyledTextField, _extends({
55
76
  ref: ref,
@@ -24,5 +24,4 @@ export { IconBlankOutline } from './Icons/IconBlankOutline';
24
24
  export { IconBlankPdfOutline } from './Icons/IconBlankPdfOutline';
25
25
  export { IconBlankTxtOutline } from './Icons/IconBlankTxtOutline';
26
26
  export { IconBlankXlsOutline } from './Icons/IconBlankXlsOutline';
27
- export { IconInfoCircleOutline } from './Icons/IconInfoCircleOutline';
28
- export { IconArrowBarDown } from './Icons/IconArrowBarDown';
27
+ export { IconInfoCircleOutline } from './Icons/IconInfoCircleOutline';
@@ -16,10 +16,10 @@ export var config = {
16
16
  light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
17
17
  },
18
18
  size: {
19
- l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":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.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
- m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":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.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
- s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
- xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
19
+ l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":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.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
+ m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 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.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
+ s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
+ xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
23
23
  },
24
24
  pilled: {
25
25
  "true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
@@ -28,7 +28,7 @@ export var config = {
28
28
  "true": /*#__PURE__*/css([""])
29
29
  },
30
30
  clear: {
31
- "true": /*#__PURE__*/css([""])
31
+ "true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
32
32
  },
33
33
  truncate: {
34
34
  "true": /*#__PURE__*/css([""])
@@ -34,6 +34,10 @@ const meta: Meta<typeof Badge> = {
34
34
  maxWidth: {
35
35
  control: { type: 'text' },
36
36
  },
37
+ text: {
38
+ control: { type: 'text' },
39
+ if: { arg: 'enableText', truthy: true },
40
+ },
37
41
  ...disableProps(['contentLeft', 'contentRight']),
38
42
  },
39
43
  };
@@ -43,6 +47,7 @@ export default meta;
43
47
  type StoryProps = ComponentProps<typeof Badge> & {
44
48
  enableContentLeft: boolean;
45
49
  enableContentRight: boolean;
50
+ enableText: boolean;
46
51
  };
47
52
  type Story = StoryObj<StoryProps>;
48
53
 
@@ -63,13 +68,14 @@ export const Default: Story = {
63
68
  },
64
69
  enableContentRight: {
65
70
  control: { type: 'boolean' },
66
- if: { arg: 'enableContentLeft', truthy: false },
71
+ if: { arg: 'enableText', truthy: true },
67
72
  },
68
73
  },
69
74
  args: {
70
- text: 'Hello Kitty',
71
75
  view: 'default',
72
76
  size: 'm',
77
+ enableText: true,
78
+ text: 'Hello',
73
79
  enableContentLeft: false,
74
80
  enableContentRight: false,
75
81
  clear: false,
@@ -77,13 +83,24 @@ export const Default: Story = {
77
83
  transparent: false,
78
84
  maxWidth: '',
79
85
  },
80
- render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
81
- const iconSize = size === 'l' ? '1rem' : '0.75rem';
86
+ render: ({ enableContentLeft, enableContentRight, enableText, size, ...rest }: StoryProps) => {
87
+ const iconSize = () => {
88
+ switch (size) {
89
+ case 'l':
90
+ return '1rem';
91
+ case 'xs':
92
+ return '0.625rem';
93
+ default:
94
+ return '0.75rem';
95
+ }
96
+ };
82
97
 
83
98
  return (
84
99
  <Badge
85
- contentLeft={enableContentLeft ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
86
- contentRight={enableContentRight ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
100
+ contentLeft={
101
+ enableContentLeft || !enableText ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined
102
+ }
103
+ contentRight={enableContentRight ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined}
87
104
  size={size}
88
105
  {...rest}
89
106
  />
@@ -16,10 +16,10 @@ export var config = {
16
16
  light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
17
17
  },
18
18
  size: {
19
- l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.6875rem;", ":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.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
- m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.5625rem;", ":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.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
- s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.4375rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
- xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.paddingRight, badgeTokens.paddingLeft, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
19
+ l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":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.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
20
+ m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 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.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
21
+ s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
22
+ xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
23
23
  },
24
24
  pilled: {
25
25
  "true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
@@ -28,7 +28,7 @@ export var config = {
28
28
  "true": /*#__PURE__*/css([""])
29
29
  },
30
30
  clear: {
31
- "true": /*#__PURE__*/css([""])
31
+ "true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
32
32
  }
33
33
  }
34
34
  };
@@ -31,6 +31,13 @@ const meta: Meta<typeof Badge> = {
31
31
  control: { type: 'boolean' },
32
32
  if: { arg: 'clear', truthy: false },
33
33
  },
34
+ maxWidth: {
35
+ control: { type: 'text' },
36
+ },
37
+ text: {
38
+ control: { type: 'text' },
39
+ if: { arg: 'enableText', truthy: true },
40
+ },
34
41
  ...disableProps(['contentLeft', 'contentRight']),
35
42
  },
36
43
  };
@@ -40,6 +47,7 @@ export default meta;
40
47
  type StoryProps = ComponentProps<typeof Badge> & {
41
48
  enableContentLeft: boolean;
42
49
  enableContentRight: boolean;
50
+ enableText: boolean;
43
51
  };
44
52
  type Story = StoryObj<StoryProps>;
45
53
 
@@ -60,26 +68,39 @@ export const Default: Story = {
60
68
  },
61
69
  enableContentRight: {
62
70
  control: { type: 'boolean' },
63
- if: { arg: 'enableContentLeft', truthy: false },
71
+ if: { arg: 'enableText', truthy: true },
64
72
  },
65
73
  },
66
74
  args: {
67
- text: 'Hello',
68
75
  view: 'default',
69
76
  size: 'm',
77
+ enableText: true,
78
+ text: 'Hello',
70
79
  enableContentLeft: false,
71
80
  enableContentRight: false,
72
81
  clear: false,
73
82
  pilled: false,
74
83
  transparent: false,
84
+ maxWidth: '',
75
85
  },
76
- render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
77
- const iconSize = size === 'l' ? '1rem' : '0.75rem';
86
+ render: ({ enableContentLeft, enableContentRight, enableText, size, ...rest }: StoryProps) => {
87
+ const iconSize = () => {
88
+ switch (size) {
89
+ case 'l':
90
+ return '1rem';
91
+ case 'xs':
92
+ return '0.625rem';
93
+ default:
94
+ return '0.75rem';
95
+ }
96
+ };
78
97
 
79
98
  return (
80
99
  <Badge
81
- contentLeft={enableContentLeft ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
82
- contentRight={enableContentRight ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
100
+ contentLeft={
101
+ enableContentLeft || !enableText ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined
102
+ }
103
+ contentRight={enableContentRight ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined}
83
104
  size={size}
84
105
  {...rest}
85
106
  />
@@ -63,5 +63,4 @@ export * from './components/Editable';
63
63
  export * from './components/Mask';
64
64
  export * from './components/Attach';
65
65
  export * from './components/ViewContainer';
66
- export * from './components/NumberInput';
67
- export * from './components/Dropzone';
66
+ export * from './components/NumberInput';
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,sFA4CnE,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBA9CQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ExE,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,sFAoEnE,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBAtEQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGxE,CAAC"}
@@ -3,6 +3,11 @@ export declare const classes: {
3
3
  badgeTransparent: string;
4
4
  badgeClear: string;
5
5
  badgeTruncate: string;
6
+ iconOnly: string;
7
+ };
8
+ export declare const privateTokens: {
9
+ customBackground: string;
10
+ customColor: string;
6
11
  };
7
12
  export declare const tokens: {
8
13
  background: string;
@@ -10,13 +15,12 @@ export declare const tokens: {
10
15
  backgroundTransparent: string;
11
16
  colorTransparent: string;
12
17
  colorClear: string;
18
+ backgroundClear: string;
13
19
  borderRadius: string;
14
20
  pilledBorderRadius: string;
15
21
  height: string;
16
- paddingTop: string;
17
- paddingRight: string;
18
- paddingBottom: string;
19
- paddingLeft: string;
22
+ padding: string;
23
+ paddingIconOnly: string;
20
24
  fontFamily: string;
21
25
  fontSize: string;
22
26
  fontStyle: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC"}
1
+ {"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC"}
@@ -45,19 +45,32 @@ declare type ClearViewProps = {
45
45
  */
46
46
  clear?: false;
47
47
  };
48
+ declare type IconContentProps = {
49
+ /**
50
+ * Слот для контента слева, например `Icon`
51
+ */
52
+ contentLeft?: ReactNode;
53
+ /**
54
+ * Слот для контента справа, например `Icon`
55
+ */
56
+ contentRight?: never;
57
+ } | {
58
+ contentLeft?: never;
59
+ contentRight?: ReactNode;
60
+ };
48
61
  declare type CustomBadgeProps = {
49
62
  /**
50
63
  * Текстовая надпись
51
64
  */
52
65
  text?: string;
53
66
  /**
54
- * Слот для контента слева, например `Icon`
67
+ * Пользовательский цвет текста и иконок
55
68
  */
56
- contentLeft?: ReactNode;
69
+ customColor?: string;
57
70
  /**
58
- * Слот для контента справа, например `Icon`
71
+ * Пользовательский цвет фона
59
72
  */
60
- contentRight?: ReactNode;
73
+ customBackgroundColor?: string;
61
74
  /**
62
75
  * Обрезает контент по максимальной ширине и добавляет ...
63
76
  * @default 'auto'
@@ -75,7 +88,7 @@ declare type CustomBadgeProps = {
75
88
  * default
76
89
  */
77
90
  view?: string;
78
- } & PropsWithChildren;
91
+ } & IconContentProps & PropsWithChildren;
79
92
  export declare type BadgeProps = HTMLAttributes<HTMLDivElement> & CustomBadgeProps & ClearViewProps;
80
93
  export declare type BadgeRootProps = HTMLAttributes<HTMLDivElement> & CustomBadgeProps & {
81
94
  pilled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzF,aAAK,cAAc,GACb;IACI;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAER,aAAK,gBAAgB,GAAG;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,iBAAiB,CAAC;AAEtB,oBAAY,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAC5F,oBAAY,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GACvD,gBAAgB,GAAG;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzF,aAAK,cAAc,GACb;IACI;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAER,aAAK,gBAAgB,GACf;IACI;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACI,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAER,aAAK,gBAAgB,GAAG;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,oBAAY,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAC5F,oBAAY,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GACvD,gBAAgB,GAAG;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAMhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAKhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAgBhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAqBhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,+IA2YtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBA7YQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAka3F,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,+IA8ZtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAhaQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAqb3F,CAAC"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { RequiredProps } from '../../TextField/TextField.types';
4
4
  import { FocusedPathState } from './reducers';
5
5
  import { ItemOption, ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';
6
- import type { ValueToCheckedMapType, ValueToItemMapType } from './hooks/getPathMaps';
6
+ import type { ValueToCheckedMapType } from './hooks/getPathMaps';
7
7
  declare type Placement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
8
8
  declare type IsMultiselect<T extends ItemOption = ItemOption> = {
9
9
  multiple?: false;
@@ -175,7 +175,6 @@ export declare type ItemContext = {
175
175
  handleItemClick: (item: ItemOptionTransformed, e: React.MouseEvent<HTMLElement>) => void;
176
176
  variant: ComboboxProps['variant'];
177
177
  renderItem: ComboboxProps['renderItem'];
178
- valueToItemMap: ValueToItemMapType;
179
178
  treeId: string;
180
179
  };
181
180
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAC9C;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK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oBAAoB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAU,EAAE,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAqH9B,CAAC"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAU,EAAE,EAAc,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAazC,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAoH9B,CAAC"}
@@ -5,11 +5,59 @@ export declare const Context: React.Context<ItemContext>;
5
5
  /**
6
6
  * Выпадающий список.
7
7
  */
8
- export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const dropdownRoot: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
9
+ items: import(".").DropdownItemOption[];
10
+ alwaysOpened?: boolean | undefined;
11
+ children?: React.ReactNode;
12
+ itemRole?: string | undefined;
13
+ onHover?: ((index: number) => void) | undefined;
14
+ onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
15
+ trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
16
+ placement?: import("./Dropdown.types").DropdownPlacement | undefined;
17
+ offset?: [number, number] | undefined;
18
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
19
+ hasArrow?: boolean | undefined;
20
+ closeOnSelect?: boolean | undefined;
21
+ closeOnOverlayClick?: boolean | undefined;
22
+ onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
23
+ size?: string | undefined;
24
+ view?: string | undefined;
25
+ variant?: "normal" | "tight" | undefined;
26
+ portal?: string | React.RefObject<HTMLElement> | undefined;
27
+ renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
28
+ onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
29
+ listOverflow?: import("csstype").Property.Overflow | undefined;
30
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
31
+ hoverIndex?: number | undefined;
32
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
33
  export declare const dropdownConfig: {
10
34
  name: string;
11
35
  tag: string;
12
- layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
36
+ layout: (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) => React.ForwardRefExoticComponent<{
37
+ items: import(".").DropdownItemOption[];
38
+ alwaysOpened?: boolean | undefined;
39
+ children?: React.ReactNode;
40
+ itemRole?: string | undefined;
41
+ onHover?: ((index: number) => void) | undefined;
42
+ onItemSelect?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
43
+ trigger?: import("./Dropdown.types").DropdownTrigger | undefined;
44
+ placement?: import("./Dropdown.types").DropdownPlacement | undefined;
45
+ offset?: [number, number] | undefined;
46
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
47
+ hasArrow?: boolean | undefined;
48
+ closeOnSelect?: boolean | undefined;
49
+ closeOnOverlayClick?: boolean | undefined;
50
+ onToggle?: ((isOpen: boolean, event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
51
+ size?: string | undefined;
52
+ view?: string | undefined;
53
+ variant?: "normal" | "tight" | undefined;
54
+ portal?: string | React.RefObject<HTMLElement> | undefined;
55
+ renderItem?: ((item: import(".").DropdownItemOption) => React.ReactNode) | undefined;
56
+ onItemClick?: ((item: import(".").DropdownItemOption, event: React.SyntheticEvent<Element, Event>) => void) | undefined;
57
+ listOverflow?: import("csstype").Property.Overflow | undefined;
58
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
59
+ hoverIndex?: number | undefined;
60
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
61
  base: import("@linaria/core").LinariaClassName;
14
62
  variations: {
15
63
  view: {
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,yFAyJrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA3JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;CA4KzF,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;+EA2JrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA7JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8KzF,CAAC"}