@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
package/cjs/index.css CHANGED
@@ -392,11 +392,12 @@
392
392
 
393
393
  .DropdownHeader_styles_196gwgm_s133b1g2__3510806e{background:var(--plasma-dropdown-header-background);font-family:var(--plasma-dropdown-header-font-family);font-size:var(--plasma-dropdown-header-font-size);font-style:var(--plasma-dropdown-header-font-style);font-weight:var(--plasma-dropdown-header-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-header-line-height);-moz-letter-spacing:var(--plasma-dropdown-header-line-height);-ms-letter-spacing:var(--plasma-dropdown-header-line-height);letter-spacing:var(--plasma-dropdown-header-line-height);line-height:var(--plasma-dropdown-header-font-weight);width:var(--plasma-dropdown-header-width);height:var(--plasma-dropdown-header-height);padding:var(--plasma-dropdown-header-padding-top) var(--plasma-dropdown-header-padding-right) var(--plasma-dropdown-header-padding-bottom) var(--plasma-dropdown-header-padding-left);margin:var(--plasma-dropdown-header-margin-top) var(--plasma-dropdown-header-margin-right) var(--plasma-dropdown-header-margin-bottom) var(--plasma-dropdown-header-margin-left);}
394
394
 
395
- .DropdownItem_styles_1b439rx_c1gkzlls__ed711128{--plasma-cell-title-color:var(--text-primary);--plasma-cell-background-color:var(--plasma-colors-transparent);--plasma-cell-padding:var(--plasma-dropdown-cell-padding);--plasma-cell-padding-left-content:var(--plasma-dropdown-cell-padding-left-content);--plasma-cell-padding-content:var(--plasma-dropdown-cell-padding-content);--plasma-cell-padding-right-content:var(--plasma-dropdown-cell-padding-right-content);--plasma-cell-textbox-gap:var(--plasma-dropdown-cell-textbox-gap);--plasma-cell-gap:var(--plasma-dropdown-cell-gap);--plasma-cell-title-font-family:var(--plasma-dropdown-cell-title-font-family);--plasma-cell-title-font-size:var(--plasma-dropdown-cell-title-font-size);--plasma-cell-title-font-style:var(--plasma-dropdown-cell-title-font-style);--plasma-cell-title-font-weight:var(--plasma-dropdown-cell-title-font-weight);--plasma-cell-title-letter-spacing:var(--plasma-dropdown-cell-title-letter-spacing);--plasma-cell-title-line-height:var(--plasma-dropdown-cell-title-line-height);width:100%;}
395
+ .DropdownItem_styles_14yih1y_c1gkzlls__bf539568{--plasma-cell-title-color:var(--text-primary);--plasma-cell-background-color:var(--plasma-colors-transparent);--plasma-cell-padding:var(--plasma-dropdown-cell-padding);--plasma-cell-padding-left-content:var(--plasma-dropdown-cell-padding-left-content);--plasma-cell-padding-content:var(--plasma-dropdown-cell-padding-content);--plasma-cell-padding-right-content:var(--plasma-dropdown-cell-padding-right-content);--plasma-cell-textbox-gap:var(--plasma-dropdown-cell-textbox-gap);--plasma-cell-gap:var(--plasma-dropdown-cell-gap);--plasma-cell-title-font-family:var(--plasma-dropdown-cell-title-font-family);--plasma-cell-title-font-size:var(--plasma-dropdown-cell-title-font-size);--plasma-cell-title-font-style:var(--plasma-dropdown-cell-title-font-style);--plasma-cell-title-font-weight:var(--plasma-dropdown-cell-title-font-weight);--plasma-cell-title-letter-spacing:var(--plasma-dropdown-cell-title-letter-spacing);--plasma-cell-title-line-height:var(--plasma-dropdown-cell-title-line-height);width:100%;}
396
396
 
397
- .DropdownItem_styles_1b439rx_d1m97l2m__ed711128{line-height:0;color:var(--text-secondary);}
398
- .DropdownItem_styles_1b439rx_doib72h__ed711128{height:1px;margin-top:var(--doib72h-0);margin-right:var(--plasma-dropdown-divider-margin-right);margin-bottom:var(--doib72h-1);margin-left:var(--plasma-dropdown-divider-margin-left);background:var(--plasma-dropdown-divider-color);}
399
- .DropdownItem_styles_1b439rx_w6l2f0g__ed711128{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:var(--plasma-dropdown-item-height);margin:0;box-sizing:content-box;padding:var(--w6l2f0g-0);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background-color:var(--plasma-colors-transparent);border-radius:var(--plasma-dropdown-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:0.125rem solid transparent;border-left:0.125rem solid transparent;background-clip:padding-box;position:relative;}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128:hover:not(.DropdownItem_styles_1b439rx_dropdownItemIsDisabled__ed711128){cursor:pointer;background-color:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128.DropdownItem_styles_1b439rx_dropdownItemIsActive__ed711128{background-color:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128.DropdownItem_styles_1b439rx_dropdownItemIsDisabled__ed711128{opacity:0.4;cursor:not-allowed;}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128:focus{outline:none;}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1b439rx_w6l2f0g__ed711128.DropdownItem_styles_1b439rx_dropdownItemIsFocused__ed711128:before{outline:none;box-shadow:0 0 0 0.0625rem var(--surface-accent);}
397
+ .DropdownItem_styles_14yih1y_d1m97l2m__bf539568{line-height:0;color:var(--text-secondary);}
398
+ .DropdownItem_styles_14yih1y_doib72h__bf539568{height:1px;margin-top:var(--doib72h-0);margin-right:var(--plasma-dropdown-divider-margin-right);margin-bottom:var(--doib72h-1);margin-left:var(--plasma-dropdown-divider-margin-left);background:var(--plasma-dropdown-divider-color);}
399
+ .DropdownItem_styles_14yih1y_w6l2f0g__bf539568{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:var(--plasma-dropdown-item-height);margin:0;box-sizing:content-box;padding:var(--w6l2f0g-0);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background-color:var(--plasma-colors-transparent);border-radius:var(--plasma-dropdown-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:0.125rem solid transparent;border-left:0.125rem solid transparent;background-clip:padding-box;position:relative;}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568:hover:not(.DropdownItem_styles_14yih1y_dropdownItemIsDisabled__bf539568){cursor:pointer;background-color:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568.DropdownItem_styles_14yih1y_dropdownItemIsActive__bf539568{background-color:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568.DropdownItem_styles_14yih1y_dropdownItemIsDisabled__bf539568{opacity:0.4;cursor:not-allowed;}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568:focus{outline:none;}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_14yih1y_w6l2f0g__bf539568.DropdownItem_styles_14yih1y_dropdownItemIsFocused__bf539568:before{outline:none;box-shadow:0 0 0 0.0625rem var(--surface-accent);}
400
+ .DropdownItem_styles_14yih1y_r1jav4ek__bf539568{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
400
401
 
401
402
  .DropdownItem_styles_1lyg81y_s1iqs5in__b17ea060{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
402
403
  .DropdownItem_styles_1lyg81y_sfg3dyd__b17ea060{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
@@ -462,15 +463,15 @@
462
463
  .Image_styles_12ttxgz_s2ny8jg__83bd03eb{width:100%;height:100%;object-fit:cover;position:absolute;}
463
464
  .Image_styles_12ttxgz_s1e232qk__83bd03eb{width:100%;height:100%;position:absolute;background-position:center;background-size:cover;}
464
465
 
465
- .base_qlxank_b5zny0e__7dda249c{color:var(--plasma-badge-color);background-color:var(--plasma-badge-background);}
466
+ .base_j3xzf3_b5zny0e__f0386786{color:var(--plasma-badge-custom-color,var(--plasma-badge-color));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background));}
466
467
 
467
- .base_to0y5x_bb8jvo5__5c9e1c86{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding-top:var(--plasma-badge-padding-top);padding-right:var(--plasma-badge-padding-right);padding-bottom:var(--plasma-badge-padding-bottom);padding-left:var(--plasma-badge-padding-left);}
468
+ .base_bu5opk_bb8jvo5__18c67c14{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding:var(--plasma-badge-padding);}.base_bu5opk_bb8jvo5__18c67c14.base_bu5opk_badgeIconOnly__18c67c14{padding:var(--plasma-badge-padding-icon-only);}.base_bu5opk_bb8jvo5__18c67c14.base_bu5opk_badgeIconOnly__18c67c14 .base_bu5opk_s1t43xoe__18c67c14{margin:0;}
468
469
 
469
470
  .base_zpvffd_b3w4z61__f9738ae7.base_zpvffd_badgePilled__f9738ae7{border-radius:var(--plasma-badge-pilled-border-radius);}
470
471
 
471
- .base_1l6036y_binquhc__5cc72580.base_1l6036y_badgeTransparent__5cc72580{color:var(--plasma-badge-color-transparent);background-color:var(--plasma-badge-background-transparent);}
472
+ .base_aapqhz_binquhc__81eb1c83.base_aapqhz_badgeTransparent__81eb1c83{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-transparent));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-transparent));}
472
473
 
473
- .base_oopyb7_b1e1wuvi__72387433.base_oopyb7_badgeClear__72387433{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
474
+ .base_wiboj8_b1e1wuvi__44d619d2.base_wiboj8_badgeClear__44d619d2{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-clear));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-clear));}
474
475
 
475
476
  .Badge_styles_hhbwyi_s1t43xoe__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
476
477
 
@@ -819,17 +820,3 @@
819
820
  .base_14s5rot_bpps6rw__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_segmentedView__6339f446,.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-segmentation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius) var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_14s5rot_bpps6rw__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{border-radius:var(--plasma_private-segmentation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segmentation-border-radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_segmentedView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446{--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color);position:relative;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-loading),.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_numberInputFocused__6339f446:not(number-input-disabled){--plasma_private-number-input_top-box-shadow:inset 0 var(--plasma-number-input_input-border-width) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_bottom-box-shadow:inset 0 calc(-1 * var(--plasma-number-input_input-border-width)) var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_left-box-shadow:inset var(--plasma-number-input_input-border-width) 0 var(--plasma-number-input_wrapper_border-color_focus);--plasma_private-number-input_right-box-shadow:inset calc(-1 * var(--plasma-number-input_input-border-width)) 0 var(--plasma-number-input_wrapper_border-color_focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446:before{content:'';position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:calc(100% - var(--plasma-number-input_icon-button_width) * 2);height:100%;background:var(--plasma-number-input_background-color-solid);box-shadow:var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_bottom-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446{position:relative;color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1s8bsh6__6339f446:not(error-animation).base_14s5rot_manualInputNumberInput__6339f446:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_left-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrement__6339f446{box-shadow:var(--plasma_private-number-input_bottom-box-shadow),var(--plasma_private-number-input_top-box-shadow),var(--plasma_private-number-input_right-box-shadow);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{background-color:var(--plasma-number-input_icon-button_background-color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:hover{color:var(--plasma-number-input_icon-button_color_solid-hover);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446:active{color:var(--plasma-number-input_icon-button_color_solid-active);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446{opacity:1;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446 svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{color:var(--plasma-number-input_icon-button_color);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active svg,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:hover,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonDecrementDisabled__6339f446:active,.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446.base_14s5rot_clearView__6339f446 .base_14s5rot_sj0ab1b__6339f446.base_14s5rot_actionButtonIncrementDisabled__6339f446:active{background-color:transparent;}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_s1ft73sv__6339f446{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_i1tgbhg7__6339f446:not(.base_14s5rot_errorAnimation__6339f446){color:var(--plasma-number-input_color-solid);}.base_14s5rot_bpps6rw__6339f446.base_14s5rot_solidView__6339f446 .base_14s5rot_az36kha__6339f446{color:var(--plasma-number-input_additional-text_color-solid);}
820
821
 
821
822
  .base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_numberInputDisabled__e93ebd2b{pointer-events:none;opacity:var(--plasma-number-input_disabled-opacity);cursor:not-allowed;}
822
-
823
- .base_1pdzq6t_byh8zio__d97f375f{background:var(--plasma-dropzone-background);border:var(--plasma-dropzone-border-color);}.base_1pdzq6t_byh8zio__d97f375f:not(.base_1pdzq6t_dropzoneActive__d97f375f):hover,.base_1pdzq6t_byh8zio__d97f375f:not(.base_1pdzq6t_dropzoneActive__d97f375f):focus-within{background:var(--plasma-dropzone-background-hover);border-color:var(--plasma-dropzone-border-color-hover);outline:none;}.base_1pdzq6t_byh8zio__d97f375f.base_1pdzq6t_dropzoneActive__d97f375f{border-color:var(--plasma-dropzone-border-color-active);}.base_1pdzq6t_byh8zio__d97f375f.base_1pdzq6t_dropzoneActive__d97f375f .base_1pdzq6t_dqiwesh__d97f375f{background:var(--plasma-dropzone-overlay-color-active);}.base_1pdzq6t_byh8zio__d97f375f .base_1pdzq6t_twnyozc__d97f375f{color:var(--plasma-dropzone-title-color);}.base_1pdzq6t_byh8zio__d97f375f .base_1pdzq6t_d1nsxook__d97f375f{color:var(--plasma-dropzone-description-color);}
824
-
825
- .base_1bt22g1_b1q81cck__c0e52b1e{padding:var(--plasma-dropzone-padding);border-radius:var(--plasma-dropzone-border-radius);height:var(--plasma_private-dropzone-height);width:var(--plasma_private-dropzone-width);}.base_1bt22g1_b1q81cck__c0e52b1e.base_1bt22g1_dropzoneStretch__c0e52b1e{width:100%;}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_dqiwesh__c0e52b1e{border-radius:var(--plasma-dropzone-border-radius);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_c1afz1o5__c0e52b1e{gap:var(--plasma-dropzone-content-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_twnyozc__c0e52b1e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;gap:var(--plasma-dropzone-title-wrapper-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_twnyozc__c0e52b1e.base_1bt22g1_dropzoneVerticalContentPlacing__c0e52b1e{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-dropzone-title-wrapper-column-gap);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_tahwclk__c0e52b1e{font-family:var(--plasma-dropzone-title-font-family);font-size:var(--plasma-dropzone-title-font-size);font-style:var(--plasma-dropzone-title-font-style);font-weight:var(--plasma-dropzone-title-font-weight);-webkit-letter-spacing:var(--plasma-dropzone-title-letter-spacing);-moz-letter-spacing:var(--plasma-dropzone-title-letter-spacing);-ms-letter-spacing:var(--plasma-dropzone-title-letter-spacing);letter-spacing:var(--plasma-dropzone-title-letter-spacing);line-height:var(--plasma-dropzone-title-line-height);}.base_1bt22g1_b1q81cck__c0e52b1e .base_1bt22g1_d1nsxook__c0e52b1e{font-family:var(--plasma-dropzone-description-font-family);font-size:var(--plasma-dropzone-description-font-size);font-style:var(--plasma-dropzone-description-font-style);font-weight:var(--plasma-dropzone-description-font-weight);-webkit-letter-spacing:var(--plasma-dropzone-description-letter-spacing);-moz-letter-spacing:var(--plasma-dropzone-description-letter-spacing);-ms-letter-spacing:var(--plasma-dropzone-description-letter-spacing);letter-spacing:var(--plasma-dropzone-description-letter-spacing);line-height:var(--plasma-dropzone-description-line-height);}
826
-
827
- .base_3qwygi_b1t0rfqa__f5b3e7aa.base_3qwygi_dropzoneDisabled__f5b3e7aa{opacity:var(--plasma-dropzone-disabled-opacity);cursor:not-allowed;}
828
-
829
- .Dropzone_styles_1fo7dbq_bfglrd7__65c68d0a{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;}
830
- .Dropzone_styles_1fo7dbq_dqiwesh__65c68d0a{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;}
831
- .Dropzone_styles_1fo7dbq_c1afz1o5__65c68d0a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
832
-
833
-
834
-
835
- .Dropzone_styles_1fo7dbq_hzipmyu__65c68d0a{display:none;}
package/cjs/index.js CHANGED
@@ -209,8 +209,6 @@ var Attach_tokens = require('./components/Attach/Attach.tokens.js');
209
209
  var ViewContainer = require('./components/ViewContainer/ViewContainer.js');
210
210
  var NumberInput = require('./components/NumberInput/NumberInput.js');
211
211
  var NumberInput_tokens = require('./components/NumberInput/NumberInput.tokens.js');
212
- var Dropzone = require('./components/Dropzone/Dropzone.js');
213
- var Dropzone_tokens = require('./components/Dropzone/Dropzone.tokens.js');
214
212
 
215
213
 
216
214
 
@@ -609,8 +607,4 @@ exports.numberInputConfig = NumberInput.numberInputConfig;
609
607
  exports.numberInputRoot = NumberInput.numberInputRoot;
610
608
  exports.numberInputClasses = NumberInput_tokens.classes;
611
609
  exports.numberInputTokens = NumberInput_tokens.tokens;
612
- exports.dropzoneConfig = Dropzone.dropzoneConfig;
613
- exports.dropzoneRoot = Dropzone.dropzoneRoot;
614
- exports.dropzoneClasses = Dropzone_tokens.classes;
615
- exports.dropzoneTokens = Dropzone_tokens.tokens;
616
610
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -14,7 +14,7 @@ var _base4 = /*#__PURE__*/require("./variations/_transparent/base");
14
14
  var _base5 = /*#__PURE__*/require("./variations/_clear/base");
15
15
  var _Badge = /*#__PURE__*/require("./Badge.styles");
16
16
  var _Badge2 = /*#__PURE__*/require("./Badge.tokens");
17
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
17
+ var _excluded = ["children", "className", "style", "text", "contentLeft", "contentRight", "size", "view", "customColor", "customBackgroundColor", "pilled", "transparent", "clear", "maxWidth"];
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
20
  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); }
@@ -27,13 +27,17 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
27
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
28
28
  var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
29
29
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
30
+ var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
30
31
  var children = props.children,
31
32
  className = props.className,
33
+ style = props.style,
32
34
  text = props.text,
33
35
  contentLeft = props.contentLeft,
34
36
  contentRight = props.contentRight,
35
37
  size = props.size,
36
38
  view = props.view,
39
+ customColor = props.customColor,
40
+ customBackgroundColor = props.customBackgroundColor,
37
41
  _props$pilled = props.pilled,
38
42
  pilled = _props$pilled === void 0 ? false : _props$pilled,
39
43
  _props$transparent = props.transparent,
@@ -48,19 +52,25 @@ var badgeRoot = exports.badgeRoot = function badgeRoot(Root) {
48
52
  var clearClass = clear ? _Badge2.classes.badgeClear : undefined;
49
53
  var truncateClass = maxWidth !== 'auto' ? _Badge2.classes.badgeTruncate : undefined;
50
54
  var txt = !text && typeof children === 'string' ? children : text;
55
+ var iconOnlyClass = !txt && contentLeft ? _Badge2.classes.iconOnly : undefined;
56
+ var BadgeContent = function BadgeContent() {
57
+ if (contentLeft) {
58
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children);
59
+ }
60
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight))));
61
+ };
51
62
  return /*#__PURE__*/_react["default"].createElement(Root, _extends({
52
63
  ref: ref,
53
- className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncateClass, className),
64
+ className: (0, _utils.cx)(pilledClass, transparentClass, clearClass, truncateClass, iconOnlyClass, className),
54
65
  view: view,
55
66
  size: size,
56
67
  pilled: pilled,
57
68
  transparent: transparent,
58
- clear: clear
59
- }, rest, {
60
- style: _objectSpread(_objectSpread({}, rest.style), {}, {
69
+ clear: clear,
70
+ style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty({
61
71
  maxWidth: maxWidth
62
- })
63
- }), contentLeft && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/_react["default"].createElement(_Badge.StyledContentRight, null, contentRight));
72
+ }, _Badge2.privateTokens.customBackground, customBackgroundColor), _Badge2.privateTokens.customColor, customColor))
73
+ }, rest), /*#__PURE__*/_react["default"].createElement(BadgeContent, null));
64
74
  });
65
75
  };
66
76
  var badgeConfig = exports.badgeConfig = {
@@ -52,16 +52,7 @@ export function App() {
52
52
  ```
53
53
 
54
54
  ### Вид badge
55
- Вид `badge` задается с помощью свойства `view`. Возможные значения свойства `view`:
56
-
57
- + `"primary"` – основной badge;
58
- + `"accent"` – бейдж акцентного цвета;
59
- + `"positive"` – успешное завершение;
60
- + `"warning"` – предупреждение;
61
- + `"negative"` – ошибка;
62
- + `"dark"` – темный badge;
63
- + `"light"` – светлый badge.
64
-
55
+ Вид `badge` задается с помощью свойства `view`.
65
56
  Так же на вид badge влияет свойства `transparent` и `clear`.
66
57
 
67
58
  ```tsx live
@@ -72,7 +63,7 @@ export function App() {
72
63
  const Badges = ({transparent, clear}) => {
73
64
  return (
74
65
  <div style=\{{ display: 'flex', gap: '0.5rem' }}>
75
- <Badge text="Бейдж" size="l" view="primary" transparent={transparent} clear={clear} />
66
+ <Badge text="Бейдж" size="l" view="default" transparent={transparent} clear={clear} />
76
67
  <Badge text="Бейдж" size="l" view="accent" transparent={transparent} clear={clear} />
77
68
  <Badge text="Бейдж" size="l" view="positive" transparent={transparent} clear={clear} />
78
69
  <Badge text="Бейдж" size="l" view="warning" transparent={transparent} clear={clear} />
@@ -94,7 +85,8 @@ export function App() {
94
85
  ```
95
86
 
96
87
  ### Иконка слева / справа
97
- В левой и/или правой части badge можно отобразить иконку:
88
+ В левой или правой части badge можно отобразить иконку.
89
+ Если же нужен Badge с иконкой без текста, нужно использовать `contentLeft`.
98
90
 
99
91
  ```tsx live
100
92
  import React from 'react';
@@ -107,17 +99,49 @@ export function App() {
107
99
  <Badge
108
100
  text="Бейдж"
109
101
  size="l"
110
- view="primary"
102
+ view="default"
111
103
  contentLeft={
112
104
  <IconEye color="inherit" size="xs" />
113
- } />
105
+ }
106
+ />
114
107
  <Badge
115
108
  text="Бейдж"
116
109
  size="l"
117
- view="primary"
110
+ view="default"
118
111
  contentRight={
119
112
  <IconEye color="inherit" size="xs" />
120
- } />
113
+ }
114
+ />
115
+ <Badge
116
+ size="l"
117
+ view="default"
118
+ contentLeft={
119
+ <IconEye color="inherit" size="xs" />
120
+ }
121
+ />
122
+ </div>
123
+ );
124
+ }
125
+ ```
126
+
127
+ ### Задание цвета текста и фона
128
+ Цвет текста и фона можно задать с помощью свойств
129
+ `customColor` и `customBackgroundColor` соответственно.
130
+
131
+ ```tsx live
132
+ import React from 'react';
133
+ import { Badge } from '@salutejs/{{ package }}';
134
+
135
+ export function App() {
136
+ return (
137
+ <div>
138
+ <Badge
139
+ text="Бейдж"
140
+ size="l"
141
+ view="default"
142
+ customColor="antiquewhite"
143
+ customBackgroundColor="darkolivegreen"
144
+ />
121
145
  </div>
122
146
  );
123
147
  }
@@ -3,12 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.classes = void 0;
6
+ exports.tokens = exports.privateTokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  badgePilled: 'badge-pilled',
9
9
  badgeTransparent: 'badge-transparent',
10
10
  badgeClear: 'badge-clear',
11
- badgeTruncate: 'badge-truncate'
11
+ badgeTruncate: 'badge-truncate',
12
+ iconOnly: 'badge-icon-only'
13
+ };
14
+ var privateTokens = exports.privateTokens = {
15
+ customBackground: '--plasma-badge-custom-background',
16
+ customColor: '--plasma-badge-custom-color'
12
17
  };
13
18
  var tokens = exports.tokens = {
14
19
  background: '--plasma-badge-background',
@@ -16,13 +21,12 @@ var tokens = exports.tokens = {
16
21
  backgroundTransparent: '--plasma-badge-background-transparent',
17
22
  colorTransparent: '--plasma-badge-color-transparent',
18
23
  colorClear: '--plasma-badge-color-clear',
24
+ backgroundClear: '--plasma-badge-background-clear',
19
25
  borderRadius: '--plasma-badge-border-radius',
20
26
  pilledBorderRadius: '--plasma-badge-pilled-border-radius',
21
27
  height: '--plasma-badge-height',
22
- paddingTop: '--plasma-badge-padding-top',
23
- paddingRight: '--plasma-badge-padding-right',
24
- paddingBottom: '--plasma-badge-padding-bottom',
25
- paddingLeft: '--plasma-badge-padding-left',
28
+ padding: '--plasma-badge-padding',
29
+ paddingIconOnly: '--plasma-badge-padding-icon-only',
26
30
  fontFamily: '--plasma-badge-font-family',
27
31
  fontSize: '--plasma-badge-font-size',
28
32
  fontStyle: '--plasma-badge-font-style',
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeClear, "{color:var(", _Badge.tokens.colorClear, ");background-color:transparent;padding:0;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fY2xlYXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL19jbGVhci9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZUNsZWFyfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JDbGVhcn0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgcGFkZGluZzogMDtcbiAgICB9XG5gO1xuIl19 */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeClear, "{color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.colorClear, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.backgroundClear, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fY2xlYXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL19jbGVhci9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZUNsZWFyfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yQ2xlYXJ9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kQ2xlYXJ9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Badge.tokens.fontFamily, ");font-size:var(", _Badge.tokens.fontSize, ");font-style:var(", _Badge.tokens.fontStyle, ");font-weight:var(", _Badge.tokens.fontWeight, ");letter-spacing:var(", _Badge.tokens.letterSpacing, ");line-height:var(", _Badge.tokens.lineHeight, ");border-radius:var(", _Badge.tokens.borderRadius, ");height:var(", _Badge.tokens.height, ");padding-top:var(", _Badge.tokens.paddingTop, ");padding-right:var(", _Badge.tokens.paddingRight, ");padding-bottom:var(", _Badge.tokens.paddingBottom, ");padding-left:var(", _Badge.tokens.paddingLeft, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmctdG9wOiB2YXIoJHt0b2tlbnMucGFkZGluZ1RvcH0pO1xuICAgIHBhZGRpbmctcmlnaHQ6IHZhcigke3Rva2Vucy5wYWRkaW5nUmlnaHR9KTtcbiAgICBwYWRkaW5nLWJvdHRvbTogdmFyKCR7dG9rZW5zLnBhZGRpbmdCb3R0b219KTtcbiAgICBwYWRkaW5nLWxlZnQ6IHZhcigke3Rva2Vucy5wYWRkaW5nTGVmdH0pO1xuYDtcbiJdfQ== */"));
9
+ var _Badge2 = /*#__PURE__*/require("../../Badge.styles");
10
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("font-family:var(", _Badge.tokens.fontFamily, ");font-size:var(", _Badge.tokens.fontSize, ");font-style:var(", _Badge.tokens.fontStyle, ");font-weight:var(", _Badge.tokens.fontWeight, ");letter-spacing:var(", _Badge.tokens.letterSpacing, ");line-height:var(", _Badge.tokens.lineHeight, ");border-radius:var(", _Badge.tokens.borderRadius, ");height:var(", _Badge.tokens.height, ");padding:var(", _Badge.tokens.padding, ");&.", _Badge.classes.iconOnly, "{padding:var(", _Badge.tokens.paddingIconOnly, ");", _Badge2.StyledContentLeft, "{margin:0;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcbmltcG9ydCB7IFN0eWxlZENvbnRlbnRMZWZ0IH0gZnJvbSAnLi4vLi4vQmFkZ2Uuc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5wYWRkaW5nfSk7XG5cbiAgICAmLiR7Y2xhc3Nlcy5pY29uT25seX0ge1xuICAgICAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMucGFkZGluZ0ljb25Pbmx5fSk7XG5cbiAgICAgICAgJHtTdHlsZWRDb250ZW50TGVmdH0ge1xuICAgICAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeTransparent, "{color:var(", _Badge.tokens.colorTransparent, ");background-color:var(", _Badge.tokens.backgroundTransparent, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JUcmFuc3BhcmVudH0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZFRyYW5zcGFyZW50fSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("&.", _Badge.classes.badgeTransparent, "{color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.colorTransparent, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.backgroundTransparent, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yVHJhbnNwYXJlbnR9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kVHJhbnNwYXJlbnR9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.base = void 0;
7
7
  var _react = /*#__PURE__*/require("@emotion/react");
8
8
  var _Badge = /*#__PURE__*/require("../../Badge.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("color:var(", _Badge.tokens.color, ");background-color:var(", _Badge.tokens.background, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2xvcn0pO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kfSk7XG5gO1xuIl19 */"));
9
+ var base = exports.base = /*#__PURE__*/(0, _react.css)("color:var(", _Badge.privateTokens.customColor, ", var(", _Badge.tokens.color, "));background-color:var(", _Badge.privateTokens.customBackground, ", var(", _Badge.tokens.background, "));;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQ29sb3J9LCB2YXIoJHt0b2tlbnMuY29sb3J9KSk7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7cHJpdmF0ZVRva2Vucy5jdXN0b21CYWNrZ3JvdW5kfSwgdmFyKCR7dG9rZW5zLmJhY2tncm91bmR9KSk7XG5gO1xuIl19 */"));
@@ -24,6 +24,10 @@ var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmoun
24
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
26
  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); }
27
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
28
+ 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."); }
29
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
30
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
27
31
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28
32
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
33
  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); }
@@ -186,9 +190,24 @@ var comboboxRoot = exports.comboboxRoot = function comboboxRoot(Root) {
186
190
 
187
191
  // Обработчик чипов
188
192
  var handleChipsChange = function handleChipsChange(chipLabels) {
189
- onChange(chipLabels.map(function (chipLabel) {
190
- return labelToItemMap.get(chipLabel).value;
191
- }));
193
+ if (!Array.isArray(value)) return;
194
+
195
+ // TODO: #1564
196
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
197
+ if (renderValue && !isTargetAmount) {
198
+ var resultValues = _toConsumableArray(value);
199
+ value.forEach(function (_, index) {
200
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
201
+ if (!chipLabels.includes(labelAfterRenderValue)) {
202
+ resultValues.splice(index, 1);
203
+ }
204
+ });
205
+ onChange(resultValues);
206
+ } else {
207
+ onChange(chipLabels.map(function (chipLabel) {
208
+ return labelToItemMap.get(chipLabel).value;
209
+ }));
210
+ }
192
211
  };
193
212
 
194
213
  // Обработчик открытия/закрытия выпадающего списка
@@ -357,7 +376,6 @@ var comboboxRoot = exports.comboboxRoot = function comboboxRoot(Root) {
357
376
  handleItemClick: handleItemClick,
358
377
  variant: variant,
359
378
  renderItem: renderItem,
360
- valueToItemMap: valueToItemMap,
361
379
  treeId: treeId
362
380
  }
363
381
  }, /*#__PURE__*/_react["default"].createElement(_FloatingPopover.FloatingPopover, {
@@ -40,7 +40,6 @@ var Item = exports.Item = function Item(_ref) {
40
40
  handleItemClick = _useContext.handleItemClick,
41
41
  variant = _useContext.variant,
42
42
  renderItem = _useContext.renderItem,
43
- valueToItemMap = _useContext.valueToItemMap,
44
43
  treeId = _useContext.treeId;
45
44
  var disabledClassName = disabled ? _Combobox.classes.dropdownItemIsDisabled : undefined;
46
45
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? _Combobox.classes.dropdownItemIsFocused : undefined;
@@ -94,7 +93,7 @@ var Item = exports.Item = function Item(_ref) {
94
93
  }))), !multiple && checked.get(item.value) === 'done' && /*#__PURE__*/_react["default"].createElement(_Icon.IconDone, {
95
94
  size: (0, _utils.sizeToIconSize)(size, variant),
96
95
  color: "inherit"
97
- })), renderItem ? /*#__PURE__*/_react["default"].createElement(_Item.StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/_react["default"].createElement(_Item.StyledWrapper, null, /*#__PURE__*/_react["default"].createElement(_Item.StyledCell, {
96
+ })), renderItem ? /*#__PURE__*/_react["default"].createElement(_Item.StyledText, null, renderItem(item)) : /*#__PURE__*/_react["default"].createElement(_Item.StyledWrapper, null, /*#__PURE__*/_react["default"].createElement(_Item.StyledCell, {
98
97
  view: "default",
99
98
  size: "l",
100
99
  contentLeft: contentLeft,
@@ -20,7 +20,7 @@ var _Dropdown2 = /*#__PURE__*/require("./Dropdown.tokens");
20
20
  var _useKeyboardNavigation = /*#__PURE__*/require("./hooks/useKeyboardNavigation");
21
21
  var _useHashMaps3 = /*#__PURE__*/require("./hooks/useHashMaps");
22
22
  var _FloatingPopover = /*#__PURE__*/require("./FloatingPopover");
23
- var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal"];
23
+ var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal", "renderItem"];
24
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
26
  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); }
@@ -69,6 +69,7 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
69
69
  _ref$alwaysOpened = _ref.alwaysOpened,
70
70
  alwaysOpened = _ref$alwaysOpened === void 0 ? false : _ref$alwaysOpened,
71
71
  portal = _ref.portal,
72
+ renderItem = _ref.renderItem,
72
73
  rest = _objectWithoutProperties(_ref, _excluded);
73
74
  var _useReducer = (0, _react.useReducer)(_pathReducer.pathReducer, []),
74
75
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -144,7 +145,8 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
144
145
  onItemClick: onItemClick,
145
146
  onItemSelect: onItemSelect,
146
147
  hasArrow: hasArrow,
147
- treeId: treeId
148
+ treeId: treeId,
149
+ renderItem: renderItem
148
150
  }
149
151
  }, /*#__PURE__*/_react["default"].createElement(_FloatingPopover.FloatingPopover, {
150
152
  ref: floatingPopoverRef,
@@ -43,7 +43,8 @@ var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
43
43
  onItemSelect = _useContext.onItemSelect,
44
44
  onItemClick = _useContext.onItemClick,
45
45
  hasArrow = _useContext.hasArrow,
46
- treeId = _useContext.treeId;
46
+ treeId = _useContext.treeId,
47
+ renderItem = _useContext.renderItem;
47
48
  var hasDescendants = Boolean(item.items);
48
49
  var disclosureIconSize = size === 'xs' ? 'xs' : 's';
49
50
  var isDisabledClassName = disabled || isDisabled ? _Dropdown.classes.dropdownItemIsDisabled : undefined;
@@ -94,7 +95,7 @@ var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
94
95
  "aria-expanded": ariaExpanded,
95
96
  "aria-level": ariaLevel,
96
97
  "aria-label": ariaLabel
97
- }, /*#__PURE__*/_react["default"].createElement(_DropdownItem.CellWrapper, null, /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledCell, {
98
+ }, renderItem ? /*#__PURE__*/_react["default"].createElement(_DropdownItem.RenderItemWrapper, null, renderItem(item)) : /*#__PURE__*/_react["default"].createElement(_DropdownItem.CellWrapper, null, /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledCell, {
98
99
  contentLeft: contentLeft,
99
100
  contentRight: contentRight,
100
101
  alignContentLeft: "center",