@salutejs/plasma-new-hope 0.195.0-canary.1546.11913646617.0 → 0.195.0-canary.1556.11929098791.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +17 -17
  2. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Badge/Badge.css +4 -4
  5. package/cjs/components/Badge/Badge.js +7 -17
  6. package/cjs/components/Badge/Badge.js.map +1 -1
  7. package/cjs/components/Badge/Badge.tokens.js +5 -10
  8. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  10. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  11. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  12. package/cjs/components/Badge/variations/_size/base.js +1 -1
  13. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  14. package/{es/components/Badge/variations/_size/base_bu5opk.css → cjs/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  17. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  18. package/cjs/components/Badge/variations/_view/base.js +1 -1
  19. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  20. package/cjs/components/Badge/variations/_view/base_qlxank.css +1 -0
  21. package/cjs/components/Combobox/ComboboxNew/Combobox.css +17 -17
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.js +25 -6
  23. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  24. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  25. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  28. package/cjs/components/Combobox/ComboboxOld/Combobox.css +5 -4
  29. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  30. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  31. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  32. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  33. package/cjs/components/DatePicker/RangeDate/RangeDate.css +17 -17
  34. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  35. package/cjs/components/DatePicker/SingleDate/SingleDate.css +17 -17
  36. package/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  37. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  38. package/cjs/components/Dropdown/Dropdown.css +5 -4
  39. package/cjs/components/Dropdown/Dropdown.js +4 -2
  40. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  41. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  42. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  43. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  44. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -1
  45. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  46. package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  47. package/cjs/components/Pagination/Pagination.css +17 -17
  48. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  49. package/cjs/components/Range/Range.css +17 -17
  50. package/cjs/components/Select/Select.css +17 -17
  51. package/cjs/components/Select/Select.js +0 -1
  52. package/cjs/components/Select/Select.js.map +1 -1
  53. package/cjs/components/Select/ui/Inner/Inner.css +17 -17
  54. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  55. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  56. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  57. package/cjs/components/Select/ui/Target/Target.css +17 -17
  58. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  59. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +28 -6
  60. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  61. package/cjs/components/Slider/Slider.css +17 -17
  62. package/cjs/components/Slider/components/Double/Double.css +17 -17
  63. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  64. package/cjs/components/TextField/TextField.js +9 -5
  65. package/cjs/components/TextField/TextField.js.map +1 -1
  66. package/cjs/components/TextField/TextField.styles.js +20 -11
  67. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  68. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  69. package/cjs/components/TextField/TextField.tokens.js +1 -0
  70. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  71. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  72. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  73. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  74. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  75. package/cjs/index.css +26 -25
  76. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  77. package/emotion/cjs/components/Badge/Badge.js +7 -17
  78. package/emotion/cjs/components/Badge/Badge.template-doc.mdx +16 -40
  79. package/emotion/cjs/components/Badge/Badge.tokens.js +6 -10
  80. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  81. package/emotion/cjs/components/Badge/variations/_size/base.js +1 -2
  82. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  83. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  84. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +29 -6
  85. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  86. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  87. package/emotion/cjs/components/Dropdown/Dropdown.js +4 -2
  88. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  89. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  90. package/emotion/cjs/components/Select/Select.js +0 -1
  91. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  92. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  93. package/emotion/cjs/components/TextField/TextField.js +10 -6
  94. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  95. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  96. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  97. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  98. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  99. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  100. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  101. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  102. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  103. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  104. package/emotion/es/components/Badge/Badge.js +8 -18
  105. package/emotion/es/components/Badge/Badge.template-doc.mdx +16 -40
  106. package/emotion/es/components/Badge/Badge.tokens.js +5 -9
  107. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  108. package/emotion/es/components/Badge/variations/_size/base.js +2 -3
  109. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  110. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  111. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +29 -6
  112. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  113. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  114. package/emotion/es/components/Dropdown/Dropdown.js +4 -2
  115. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  116. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -11
  117. package/emotion/es/components/Select/Select.js +0 -1
  118. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  119. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  120. package/emotion/es/components/TextField/TextField.js +10 -6
  121. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  122. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  123. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  124. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  125. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  126. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  127. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  128. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  129. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  130. package/es/components/Autocomplete/Autocomplete.css +17 -17
  131. package/es/components/Autocomplete/Autocomplete.js +7 -1
  132. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  133. package/es/components/Badge/Badge.css +4 -4
  134. package/es/components/Badge/Badge.js +10 -20
  135. package/es/components/Badge/Badge.js.map +1 -1
  136. package/es/components/Badge/Badge.tokens.js +6 -10
  137. package/es/components/Badge/Badge.tokens.js.map +1 -1
  138. package/es/components/Badge/variations/_clear/base.js +1 -1
  139. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  140. package/es/components/Badge/variations/_clear/base_oopyb7.css +1 -0
  141. package/es/components/Badge/variations/_size/base.js +1 -1
  142. package/es/components/Badge/variations/_size/base.js.map +1 -1
  143. package/{cjs/components/Badge/variations/_size/base_bu5opk.css → es/components/Badge/variations/_size/base_to0y5x.css} +1 -1
  144. package/es/components/Badge/variations/_transparent/base.js +1 -1
  145. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  146. package/es/components/Badge/variations/_transparent/base_1l6036y.css +1 -0
  147. package/es/components/Badge/variations/_view/base.js +1 -1
  148. package/es/components/Badge/variations/_view/base.js.map +1 -1
  149. package/es/components/Badge/variations/_view/base_qlxank.css +1 -0
  150. package/es/components/Combobox/ComboboxNew/Combobox.css +17 -17
  151. package/es/components/Combobox/ComboboxNew/Combobox.js +26 -7
  152. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  153. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +17 -17
  154. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +17 -17
  155. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  156. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  157. package/es/components/Combobox/ComboboxOld/Combobox.css +5 -4
  158. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +5 -4
  159. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +5 -4
  160. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +5 -4
  161. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +5 -4
  162. package/es/components/DatePicker/RangeDate/RangeDate.css +17 -17
  163. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +17 -17
  164. package/es/components/DatePicker/SingleDate/SingleDate.css +17 -17
  165. package/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  166. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  167. package/es/components/Dropdown/Dropdown.css +5 -4
  168. package/es/components/Dropdown/Dropdown.js +4 -2
  169. package/es/components/Dropdown/Dropdown.js.map +1 -1
  170. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +5 -4
  171. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  172. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  173. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +7 -2
  174. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  175. package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_1b439rx.css → DropdownItem.styles_14yih1y.css} +1 -0
  176. package/es/components/Pagination/Pagination.css +17 -17
  177. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -17
  178. package/es/components/Range/Range.css +17 -17
  179. package/es/components/Select/Select.css +17 -17
  180. package/es/components/Select/Select.js +0 -1
  181. package/es/components/Select/Select.js.map +1 -1
  182. package/es/components/Select/ui/Inner/Inner.css +17 -17
  183. package/es/components/Select/ui/Inner/ui/Item/Item.css +17 -17
  184. package/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  185. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  186. package/es/components/Select/ui/Target/Target.css +17 -17
  187. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +17 -17
  188. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +29 -7
  189. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  190. package/es/components/Slider/Slider.css +17 -17
  191. package/es/components/Slider/components/Double/Double.css +17 -17
  192. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +17 -17
  193. package/es/components/TextField/TextField.js +9 -5
  194. package/es/components/TextField/TextField.js.map +1 -1
  195. package/es/components/TextField/TextField.styles.js +20 -11
  196. package/es/components/TextField/TextField.styles.js.map +1 -1
  197. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  198. package/es/components/TextField/TextField.tokens.js +1 -0
  199. package/es/components/TextField/TextField.tokens.js.map +1 -1
  200. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  201. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  202. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  203. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  204. package/es/index.css +26 -25
  205. package/package.json +3 -2
  206. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  207. package/styled-components/cjs/components/Badge/Badge.js +7 -17
  208. package/styled-components/cjs/components/Badge/Badge.template-doc.mdx +16 -40
  209. package/styled-components/cjs/components/Badge/Badge.tokens.js +6 -10
  210. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  211. package/styled-components/cjs/components/Badge/variations/_size/base.js +1 -2
  212. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  213. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  214. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +29 -6
  215. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  216. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  217. package/styled-components/cjs/components/Dropdown/Dropdown.js +4 -2
  218. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -2
  219. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  220. package/styled-components/cjs/components/Select/Select.js +0 -1
  221. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  222. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  223. package/styled-components/cjs/components/TextField/TextField.js +9 -5
  224. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  225. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  226. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  227. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  228. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  229. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  230. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  231. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  232. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  233. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  234. package/styled-components/es/components/Badge/Badge.js +8 -18
  235. package/styled-components/es/components/Badge/Badge.template-doc.mdx +16 -40
  236. package/styled-components/es/components/Badge/Badge.tokens.js +5 -9
  237. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  238. package/styled-components/es/components/Badge/variations/_size/base.js +2 -3
  239. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  240. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  241. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +29 -6
  242. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  243. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  244. package/styled-components/es/components/Dropdown/Dropdown.js +4 -2
  245. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +4 -3
  246. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -2
  247. package/styled-components/es/components/Select/Select.js +0 -1
  248. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +1 -2
  249. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +34 -6
  250. package/styled-components/es/components/TextField/TextField.js +9 -5
  251. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  252. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  253. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  254. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  255. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +6 -23
  256. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -0
  257. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  258. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +6 -27
  259. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -2
  260. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  261. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +717 -61
  262. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  263. package/types/components/Badge/Badge.d.ts.map +1 -1
  264. package/types/components/Badge/Badge.tokens.d.ts +4 -8
  265. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  266. package/types/components/Badge/Badge.types.d.ts +5 -18
  267. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  268. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  269. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  270. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  271. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +31 -12
  272. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  273. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  274. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +717 -61
  275. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  276. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  277. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  278. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +717 -61
  279. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  280. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  281. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  282. package/types/components/Dropdown/Dropdown.d.ts +50 -2
  283. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  284. package/types/components/Dropdown/Dropdown.types.d.ts +11 -6
  285. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  286. package/types/components/Dropdown/index.d.ts +1 -0
  287. package/types/components/Dropdown/index.d.ts.map +1 -1
  288. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  289. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -0
  290. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  291. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +176 -4
  292. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  293. package/types/components/Range/Range.styles.d.ts +717 -61
  294. package/types/components/Range/Range.styles.d.ts.map +1 -1
  295. package/types/components/Select/Select.d.ts.map +1 -1
  296. package/types/components/Select/Select.types.d.ts +31 -12
  297. package/types/components/Select/Select.types.d.ts.map +1 -1
  298. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  299. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  300. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  301. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  302. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  303. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +717 -61
  304. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  305. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  306. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  307. package/types/components/Slider/components/Double/Double.styles.d.ts +717 -61
  308. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  309. package/types/components/TextField/TextField.d.ts.map +1 -1
  310. package/types/components/TextField/TextField.styles.d.ts +3 -1
  311. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  312. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  313. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  314. package/types/components/TextField/TextField.types.d.ts +43 -20
  315. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  316. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +3 -5
  317. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  318. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  319. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +4 -61
  320. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  321. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
  322. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  323. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  324. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  325. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +25 -1
  326. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  327. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1246 -62
  328. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  329. package/types/examples/plasma_b2c/components/Select/Select.d.ts +176 -4
  330. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  331. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +717 -61
  332. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  333. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +3 -5
  334. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  335. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  336. package/types/examples/plasma_web/components/Badge/Badge.d.ts +4 -61
  337. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  338. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
  339. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  340. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  341. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  342. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +25 -1
  343. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  344. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1246 -62
  345. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  346. package/types/examples/plasma_web/components/Select/Select.d.ts +176 -4
  347. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  348. package/types/examples/plasma_web/components/TextField/TextField.d.ts +717 -61
  349. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  350. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  351. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  352. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  353. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  354. package/es/components/Badge/variations/_clear/base_wiboj8.css +0 -1
  355. package/es/components/Badge/variations/_transparent/base_aapqhz.css +0 -1
  356. package/es/components/Badge/variations/_view/base_j3xzf3.css +0 -1
  357. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
@@ -31,13 +31,6 @@ 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
- },
41
34
  ...disableProps(['contentLeft', 'contentRight']),
42
35
  },
43
36
  };
@@ -47,7 +40,6 @@ export default meta;
47
40
  type StoryProps = ComponentProps<typeof Badge> & {
48
41
  enableContentLeft: boolean;
49
42
  enableContentRight: boolean;
50
- enableText: boolean;
51
43
  };
52
44
  type Story = StoryObj<StoryProps>;
53
45
 
@@ -68,39 +60,26 @@ export const Default: Story = {
68
60
  },
69
61
  enableContentRight: {
70
62
  control: { type: 'boolean' },
71
- if: { arg: 'enableText', truthy: true },
63
+ if: { arg: 'enableContentLeft', truthy: false },
72
64
  },
73
65
  },
74
66
  args: {
67
+ text: 'Hello',
75
68
  view: 'default',
76
69
  size: 'm',
77
- enableText: true,
78
- text: 'Hello',
79
70
  enableContentLeft: false,
80
71
  enableContentRight: false,
81
72
  clear: false,
82
73
  pilled: false,
83
74
  transparent: false,
84
- maxWidth: '',
85
75
  },
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
- };
76
+ render: ({ enableContentLeft, enableContentRight, size, ...rest }: StoryProps) => {
77
+ const iconSize = size === 'l' ? '1rem' : '0.75rem';
97
78
 
98
79
  return (
99
80
  <Badge
100
- contentLeft={
101
- enableContentLeft || !enableText ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined
102
- }
103
- contentRight={enableContentRight ? <BellIcon width={iconSize()} height={iconSize()} /> : undefined}
81
+ contentLeft={enableContentLeft ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
82
+ contentRight={enableContentRight ? <BellIcon width={iconSize} height={iconSize} /> : undefined}
104
83
  size={size}
105
84
  {...rest}
106
85
  />
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -210,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
210
216
  view: 'default',
211
217
  label: 'Лейбл',
212
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
213
220
  titleCaption: 'Подпись к полю',
214
221
  textBefore: '',
215
222
  textAfter: '',
@@ -219,11 +226,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
219
226
  readOnly: false,
220
227
  enableContentLeft: true,
221
228
  enableContentRight: true,
222
- clear: false,
223
- hasDivider: false,
224
229
  optional: false,
225
230
  required: false,
226
231
  requiredPlacement: 'right',
232
+ clear: false,
233
+ hasDivider: false,
227
234
  hasHint: true,
228
235
  hintText: 'Текст подсказки',
229
236
  hintTrigger: 'hover',
@@ -1,4 +1,4 @@
1
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
1
+ var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "hasPlaceholder", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
2
2
  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); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
@@ -28,6 +28,7 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
28
28
  view = _ref.view,
29
29
  size = _ref.size,
30
30
  labelPlacement = _ref.labelPlacement,
31
+ hasPlaceholder = _ref.hasPlaceholder,
31
32
  disabled = _ref.disabled,
32
33
  readOnly = _ref.readOnly,
33
34
  label = _ref.label,
@@ -147,6 +148,11 @@ export var autocompleteRoot = function autocompleteRoot(Root) {
147
148
  "aria-activedescendant": "".concat(listId, "/").concat(focused),
148
149
  "aria-describedby": helperTextId,
149
150
  hintText: String(hintText || '')
151
+ }, labelPlacement === 'inner' ? {
152
+ labelPlacement: labelPlacement,
153
+ hasPlaceholder: hasPlaceholder
154
+ } : {
155
+ labelPlacement: labelPlacement
150
156
  }, rest)),
151
157
  preventOverflow: false,
152
158
  ref: targetRef,
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["children", "className", "style", "text", "contentLeft", "contentRight", "size", "view", "customColor", "customBackgroundColor", "pilled", "transparent", "clear", "maxWidth"];
2
+ var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -16,20 +16,16 @@ import { base as pilledCSS } from './variations/_pilled/base';
16
16
  import { base as transparentCSS } from './variations/_transparent/base';
17
17
  import { base as clearCSS } from './variations/_clear/base';
18
18
  import { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';
19
- import { classes, privateTokens } from './Badge.tokens';
19
+ import { classes } from './Badge.tokens';
20
20
  export var badgeRoot = function badgeRoot(Root) {
21
21
  return /*#__PURE__*/forwardRef(function (props, ref) {
22
- var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
23
22
  var children = props.children,
24
23
  className = props.className,
25
- style = props.style,
26
24
  text = props.text,
27
25
  contentLeft = props.contentLeft,
28
26
  contentRight = props.contentRight,
29
27
  size = props.size,
30
28
  view = props.view,
31
- customColor = props.customColor,
32
- customBackgroundColor = props.customBackgroundColor,
33
29
  _props$pilled = props.pilled,
34
30
  pilled = _props$pilled === void 0 ? false : _props$pilled,
35
31
  _props$transparent = props.transparent,
@@ -44,25 +40,19 @@ export var badgeRoot = function badgeRoot(Root) {
44
40
  var clearClass = clear ? classes.badgeClear : undefined;
45
41
  var truncateClass = maxWidth !== 'auto' ? classes.badgeTruncate : undefined;
46
42
  var txt = !text && typeof children === 'string' ? children : text;
47
- var iconOnlyClass = !txt && contentLeft ? classes.iconOnly : undefined;
48
- var BadgeContent = function BadgeContent() {
49
- if (contentLeft) {
50
- return /*#__PURE__*/React.createElement(React.Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/React.createElement(StyledContentMain, null, txt)) : children);
51
- }
52
- return /*#__PURE__*/React.createElement(React.Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/React.createElement(StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight))));
53
- };
54
43
  return /*#__PURE__*/React.createElement(Root, _extends({
55
44
  ref: ref,
56
- className: cx(pilledClass, transparentClass, clearClass, truncateClass, iconOnlyClass, className),
45
+ className: cx(pilledClass, transparentClass, clearClass, truncateClass, className),
57
46
  view: view,
58
47
  size: size,
59
48
  pilled: pilled,
60
49
  transparent: transparent,
61
- clear: clear,
62
- style: _objectSpread(_objectSpread({}, style), {}, _defineProperty(_defineProperty({
50
+ clear: clear
51
+ }, rest, {
52
+ style: _objectSpread(_objectSpread({}, rest.style), {}, {
63
53
  maxWidth: maxWidth
64
- }, privateTokens.customBackground, customBackgroundColor), privateTokens.customColor, customColor))
65
- }, rest), /*#__PURE__*/React.createElement(BadgeContent, null));
54
+ })
55
+ }), contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight));
66
56
  });
67
57
  };
68
58
  export var badgeConfig = {
@@ -52,7 +52,16 @@ export function App() {
52
52
  ```
53
53
 
54
54
  ### Вид badge
55
- Вид `badge` задается с помощью свойства `view`.
55
+ Вид `badge` задается с помощью свойства `view`. Возможные значения свойства `view`:
56
+
57
+ + `"primary"` – основной badge;
58
+ + `"accent"` – бейдж акцентного цвета;
59
+ + `"positive"` – успешное завершение;
60
+ + `"warning"` – предупреждение;
61
+ + `"negative"` – ошибка;
62
+ + `"dark"` – темный badge;
63
+ + `"light"` – светлый badge.
64
+
56
65
  Так же на вид badge влияет свойства `transparent` и `clear`.
57
66
 
58
67
  ```tsx live
@@ -63,7 +72,7 @@ export function App() {
63
72
  const Badges = ({transparent, clear}) => {
64
73
  return (
65
74
  <div style=\{{ display: 'flex', gap: '0.5rem' }}>
66
- <Badge text="Бейдж" size="l" view="default" transparent={transparent} clear={clear} />
75
+ <Badge text="Бейдж" size="l" view="primary" transparent={transparent} clear={clear} />
67
76
  <Badge text="Бейдж" size="l" view="accent" transparent={transparent} clear={clear} />
68
77
  <Badge text="Бейдж" size="l" view="positive" transparent={transparent} clear={clear} />
69
78
  <Badge text="Бейдж" size="l" view="warning" transparent={transparent} clear={clear} />
@@ -85,8 +94,7 @@ export function App() {
85
94
  ```
86
95
 
87
96
  ### Иконка слева / справа
88
- В левой или правой части badge можно отобразить иконку.
89
- Если же нужен Badge с иконкой без текста, нужно использовать `contentLeft`.
97
+ В левой и/или правой части badge можно отобразить иконку:
90
98
 
91
99
  ```tsx live
92
100
  import React from 'react';
@@ -99,49 +107,17 @@ export function App() {
99
107
  <Badge
100
108
  text="Бейдж"
101
109
  size="l"
102
- view="default"
110
+ view="primary"
103
111
  contentLeft={
104
112
  <IconEye color="inherit" size="xs" />
105
- }
106
- />
113
+ } />
107
114
  <Badge
108
115
  text="Бейдж"
109
116
  size="l"
110
- view="default"
117
+ view="primary"
111
118
  contentRight={
112
119
  <IconEye color="inherit" size="xs" />
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
- />
120
+ } />
145
121
  </div>
146
122
  );
147
123
  }
@@ -2,12 +2,7 @@ export var classes = {
2
2
  badgePilled: 'badge-pilled',
3
3
  badgeTransparent: 'badge-transparent',
4
4
  badgeClear: 'badge-clear',
5
- badgeTruncate: 'badge-truncate',
6
- iconOnly: 'badge-icon-only'
7
- };
8
- export var privateTokens = {
9
- customBackground: '--plasma-badge-custom-background',
10
- customColor: '--plasma-badge-custom-color'
5
+ badgeTruncate: 'badge-truncate'
11
6
  };
12
7
  export var tokens = {
13
8
  background: '--plasma-badge-background',
@@ -15,12 +10,13 @@ export var tokens = {
15
10
  backgroundTransparent: '--plasma-badge-background-transparent',
16
11
  colorTransparent: '--plasma-badge-color-transparent',
17
12
  colorClear: '--plasma-badge-color-clear',
18
- backgroundClear: '--plasma-badge-background-clear',
19
13
  borderRadius: '--plasma-badge-border-radius',
20
14
  pilledBorderRadius: '--plasma-badge-pilled-border-radius',
21
15
  height: '--plasma-badge-height',
22
- padding: '--plasma-badge-padding',
23
- paddingIconOnly: '--plasma-badge-padding-icon-only',
16
+ paddingTop: '--plasma-badge-padding-top',
17
+ paddingRight: '--plasma-badge-padding-right',
18
+ paddingBottom: '--plasma-badge-padding-bottom',
19
+ paddingLeft: '--plasma-badge-padding-left',
24
20
  fontFamily: '--plasma-badge-font-family',
25
21
  fontSize: '--plasma-badge-font-size',
26
22
  fontStyle: '--plasma-badge-font-style',
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
- import { classes, privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css("&.", classes.badgeClear, "{color:var(", privateTokens.customColor, ", var(", tokens.colorClear, "));background-color:var(", privateTokens.customBackground, ", var(", tokens.backgroundClear, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fY2xlYXIvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL19jbGVhci9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZUNsZWFyfSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yQ2xlYXJ9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kQ2xlYXJ9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
2
+ import { classes, tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css("&.", classes.badgeClear, "{color:var(", 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 */"));
@@ -1,4 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
- import { classes, tokens } from '../../Badge.tokens';
3
- import { StyledContentLeft } from '../../Badge.styles';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.fontFamily, ");font-size:var(", tokens.fontSize, ");font-style:var(", tokens.fontStyle, ");font-weight:var(", tokens.fontWeight, ");letter-spacing:var(", tokens.letterSpacing, ");line-height:var(", tokens.lineHeight, ");border-radius:var(", tokens.borderRadius, ");height:var(", tokens.height, ");padding:var(", tokens.padding, ");&.", classes.iconOnly, "{padding:var(", tokens.paddingIconOnly, ");", StyledContentLeft, "{margin:0;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcbmltcG9ydCB7IFN0eWxlZENvbnRlbnRMZWZ0IH0gZnJvbSAnLi4vLi4vQmFkZ2Uuc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmc6IHZhcigke3Rva2Vucy5wYWRkaW5nfSk7XG5cbiAgICAmLiR7Y2xhc3Nlcy5pY29uT25seX0ge1xuICAgICAgICBwYWRkaW5nOiB2YXIoJHt0b2tlbnMucGFkZGluZ0ljb25Pbmx5fSk7XG5cbiAgICAgICAgJHtTdHlsZWRDb250ZW50TGVmdH0ge1xuICAgICAgICAgICAgbWFyZ2luOiAwO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
2
+ import { tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.fontFamily, ");font-size:var(", tokens.fontSize, ");font-style:var(", tokens.fontStyle, ");font-weight:var(", tokens.fontWeight, ");letter-spacing:var(", tokens.letterSpacing, ");line-height:var(", tokens.lineHeight, ");border-radius:var(", tokens.borderRadius, ");height:var(", tokens.height, ");padding-top:var(", tokens.paddingTop, ");padding-right:var(", tokens.paddingRight, ");padding-bottom:var(", tokens.paddingBottom, ");padding-left:var(", tokens.paddingLeft, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy5mb250RmFtaWx5fSk7XG4gICAgZm9udC1zaXplOiB2YXIoJHt0b2tlbnMuZm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy5mb250V2VpZ2h0fSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy5sZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5oZWlnaHR9KTtcblxuICAgIHBhZGRpbmctdG9wOiB2YXIoJHt0b2tlbnMucGFkZGluZ1RvcH0pO1xuICAgIHBhZGRpbmctcmlnaHQ6IHZhcigke3Rva2Vucy5wYWRkaW5nUmlnaHR9KTtcbiAgICBwYWRkaW5nLWJvdHRvbTogdmFyKCR7dG9rZW5zLnBhZGRpbmdCb3R0b219KTtcbiAgICBwYWRkaW5nLWxlZnQ6IHZhcigke3Rva2Vucy5wYWRkaW5nTGVmdH0pO1xuYDtcbiJdfQ== */"));
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
- import { classes, privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css("&.", classes.badgeTransparent, "{color:var(", privateTokens.customColor, ", var(", tokens.colorTransparent, "));background-color:var(", privateTokens.customBackground, ", var(", tokens.backgroundTransparent, "));};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCBwcml2YXRlVG9rZW5zLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHtwcml2YXRlVG9rZW5zLmN1c3RvbUNvbG9yfSwgdmFyKCR7dG9rZW5zLmNvbG9yVHJhbnNwYXJlbnR9KSk7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQmFja2dyb3VuZH0sIHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kVHJhbnNwYXJlbnR9KSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
2
+ import { classes, tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css("&.", classes.badgeTransparent, "{color:var(", tokens.colorTransparent, ");background-color:var(", tokens.backgroundTransparent, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdHJhbnNwYXJlbnQvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9CYWRnZS92YXJpYXRpb25zL190cmFuc3BhcmVudC9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9CYWRnZS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5iYWRnZVRyYW5zcGFyZW50fSB7XG4gICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuY29sb3JUcmFuc3BhcmVudH0pO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMuYmFja2dyb3VuZFRyYW5zcGFyZW50fSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -1,3 +1,3 @@
1
1
  import { css } from '@emotion/react';
2
- import { privateTokens, tokens } from '../../Badge.tokens';
3
- export var base = /*#__PURE__*/css("color:var(", privateTokens.customColor, ", var(", tokens.color, "));background-color:var(", privateTokens.customBackground, ", var(", tokens.background, "));;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgcHJpdmF0ZVRva2VucywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3ByaXZhdGVUb2tlbnMuY3VzdG9tQ29sb3J9LCB2YXIoJHt0b2tlbnMuY29sb3J9KSk7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7cHJpdmF0ZVRva2Vucy5jdXN0b21CYWNrZ3JvdW5kfSwgdmFyKCR7dG9rZW5zLmJhY2tncm91bmR9KSk7XG5gO1xuIl19 */"));
2
+ import { tokens } from '../../Badge.tokens';
3
+ export var base = /*#__PURE__*/css("color:var(", tokens.color, ");background-color:var(", tokens.background, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQmFkZ2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0JhZGdlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vQmFkZ2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2xvcn0pO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kfSk7XG5gO1xuIl19 */"));
@@ -1,5 +1,9 @@
1
- var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
1
+ var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "hasPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue"];
2
2
  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); }
3
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
+ 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."); }
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); }
3
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
8
  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."); }
5
9
  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); }
@@ -55,6 +59,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
55
59
  view = props.view,
56
60
  size = props.size,
57
61
  labelPlacement = props.labelPlacement,
62
+ hasPlaceholder = props.hasPlaceholder,
58
63
  _props$readOnly = props.readOnly,
59
64
  readOnly = _props$readOnly === void 0 ? false : _props$readOnly,
60
65
  _props$disabled = props.disabled,
@@ -177,9 +182,24 @@ export var comboboxRoot = function comboboxRoot(Root) {
177
182
 
178
183
  // Обработчик чипов
179
184
  var handleChipsChange = function handleChipsChange(chipLabels) {
180
- onChange(chipLabels.map(function (chipLabel) {
181
- return labelToItemMap.get(chipLabel).value;
182
- }));
185
+ if (!Array.isArray(value)) return;
186
+
187
+ // TODO: #1564
188
+ // Из лейблов чипов получаем value у item и далее прокидываем его в onChange.
189
+ if (renderValue && !isTargetAmount) {
190
+ var resultValues = _toConsumableArray(value);
191
+ value.forEach(function (_, index) {
192
+ var labelAfterRenderValue = renderValue(labelToItemMap.get(valueToItemMap.get(value[index]).label));
193
+ if (!chipLabels.includes(labelAfterRenderValue)) {
194
+ resultValues.splice(index, 1);
195
+ }
196
+ });
197
+ onChange(resultValues);
198
+ } else {
199
+ onChange(chipLabels.map(function (chipLabel) {
200
+ return labelToItemMap.get(chipLabel).value;
201
+ }));
202
+ }
183
203
  };
184
204
 
185
205
  // Обработчик открытия/закрытия выпадающего списка
@@ -348,7 +368,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
348
368
  handleItemClick: handleItemClick,
349
369
  variant: variant,
350
370
  renderItem: renderItem,
351
- valueToItemMap: valueToItemMap,
352
371
  treeId: treeId
353
372
  }
354
373
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
@@ -368,7 +387,6 @@ export var comboboxRoot = function comboboxRoot(Root) {
368
387
  onChange: handleTextValueChange,
369
388
  size: size,
370
389
  view: view,
371
- labelPlacement: labelPlacement,
372
390
  disabled: disabled,
373
391
  readOnly: readOnly,
374
392
  label: label,
@@ -391,6 +409,11 @@ export var comboboxRoot = function comboboxRoot(Root) {
391
409
  "aria-controls": "".concat(treeId, "_tree_level_1"),
392
410
  "aria-expanded": isCurrentListOpen,
393
411
  "aria-activedescendant": activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue) : ''
412
+ }, labelPlacement === 'inner' ? {
413
+ labelPlacement: labelPlacement,
414
+ hasPlaceholder: hasPlaceholder
415
+ } : {
416
+ labelPlacement: labelPlacement
394
417
  }, multiple ? {
395
418
  enumerationType: 'chip',
396
419
  chips: getChips(),
@@ -31,7 +31,6 @@ export var Item = function Item(_ref) {
31
31
  handleItemClick = _useContext.handleItemClick,
32
32
  variant = _useContext.variant,
33
33
  renderItem = _useContext.renderItem,
34
- valueToItemMap = _useContext.valueToItemMap,
35
34
  treeId = _useContext.treeId;
36
35
  var disabledClassName = disabled ? classes.dropdownItemIsDisabled : undefined;
37
36
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
@@ -85,7 +84,7 @@ export var Item = function Item(_ref) {
85
84
  }))), !multiple && checked.get(item.value) === 'done' && /*#__PURE__*/React.createElement(IconDone, {
86
85
  size: sizeToIconSize(size, variant),
87
86
  color: "inherit"
88
- })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(valueToItemMap.get(value))) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
87
+ })), renderItem ? /*#__PURE__*/React.createElement(StyledText, null, renderItem(item)) : /*#__PURE__*/React.createElement(StyledWrapper, null, /*#__PURE__*/React.createElement(StyledCell, {
89
88
  view: "default",
90
89
  size: "l",
91
90
  contentLeft: contentLeft,
@@ -1,4 +1,4 @@
1
- var _excluded = ["className", "opened", "label", "labelPlacement", "placeholder", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "view", "size", "readOnly", "disabled", "name", "defaultDate", "valueError", "valueSuccess", "format", "lang", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "eventMonthList", "disabledMonthList", "eventQuarterList", "disabledQuarterList", "eventYearList", "disabledYearList", "type", "frame", "usePortal", "placement", "closeOnOverlayClick", "closeOnEsc", "offset", "onChangeValue", "onCommitDate", "onToggle", "onFocus", "onBlur", "onChange"];
1
+ var _excluded = ["className", "opened", "label", "labelPlacement", "hasPlaceholder", "placeholder", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "view", "size", "readOnly", "disabled", "name", "defaultDate", "valueError", "valueSuccess", "format", "lang", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "eventMonthList", "disabledMonthList", "eventQuarterList", "disabledQuarterList", "eventYearList", "disabledYearList", "type", "frame", "usePortal", "placement", "closeOnOverlayClick", "closeOnEsc", "offset", "onChangeValue", "onCommitDate", "onToggle", "onFocus", "onBlur", "onChange"];
2
2
  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); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
@@ -28,6 +28,7 @@ export var datePickerRoot = function datePickerRoot(Root) {
28
28
  label = _ref.label,
29
29
  _ref$labelPlacement = _ref.labelPlacement,
30
30
  labelPlacement = _ref$labelPlacement === void 0 ? 'outer' : _ref$labelPlacement,
31
+ hasPlaceholder = _ref.hasPlaceholder,
31
32
  placeholder = _ref.placeholder,
32
33
  leftHelper = _ref.leftHelper,
33
34
  contentLeft = _ref.contentLeft,
@@ -164,10 +165,14 @@ export var datePickerRoot = function datePickerRoot(Root) {
164
165
  },
165
166
  onFocus: onFocus,
166
167
  onBlur: onBlur,
167
- onKeyDown: onKeyDown
168
- }, innerLabelPlacement && {
169
- label: label,
168
+ onKeyDown: onKeyDown,
170
169
  labelPlacement: labelPlacement
170
+ }, labelPlacement === 'inner' ? {
171
+ label: label,
172
+ labelPlacement: labelPlacement,
173
+ hasPlaceholder: hasPlaceholder
174
+ } : {
175
+ labelPlacement: undefined
171
176
  }));
172
177
  useEffect(function () {
173
178
  setIsInnerOpen(function (prevOpen) {
@@ -1,4 +1,4 @@
1
- var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal"];
1
+ 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"];
2
2
  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); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
@@ -60,6 +60,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
60
60
  _ref$alwaysOpened = _ref.alwaysOpened,
61
61
  alwaysOpened = _ref$alwaysOpened === void 0 ? false : _ref$alwaysOpened,
62
62
  portal = _ref.portal,
63
+ renderItem = _ref.renderItem,
63
64
  rest = _objectWithoutProperties(_ref, _excluded);
64
65
  var _useReducer = useReducer(pathReducer, []),
65
66
  _useReducer2 = _slicedToArray(_useReducer, 2),
@@ -135,7 +136,8 @@ export var dropdownRoot = function dropdownRoot(Root) {
135
136
  onItemClick: onItemClick,
136
137
  onItemSelect: onItemSelect,
137
138
  hasArrow: hasArrow,
138
- treeId: treeId
139
+ treeId: treeId,
140
+ renderItem: renderItem
139
141
  }
140
142
  }, /*#__PURE__*/React.createElement(FloatingPopover, {
141
143
  ref: floatingPopoverRef,
@@ -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",