@salutejs/plasma-new-hope 0.174.0-canary.1505.11515852860.0 → 0.174.0-canary.1511.11518967304.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -27
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  3. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -9
  4. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  5. package/cjs/components/NumberInput/NumberInput.css +54 -0
  6. package/cjs/components/NumberInput/NumberInput.js +188 -0
  7. package/cjs/components/NumberInput/NumberInput.js.map +1 -0
  8. package/cjs/components/NumberInput/NumberInput.styles.js +9 -0
  9. package/cjs/components/NumberInput/NumberInput.styles.js.map +1 -0
  10. package/cjs/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  11. package/cjs/components/NumberInput/NumberInput.tokens.js +90 -0
  12. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -0
  13. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +19 -0
  14. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  15. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +22 -0
  16. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  17. package/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  18. package/cjs/components/NumberInput/ui/Input/Input.css +15 -0
  19. package/cjs/components/NumberInput/ui/Input/Input.js +190 -0
  20. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -0
  21. package/cjs/components/NumberInput/ui/Input/Input.styles.js +96 -0
  22. package/cjs/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  23. package/cjs/components/NumberInput/ui/Input/Input.styles_jszc0c.css +8 -0
  24. package/cjs/components/NumberInput/utils/index.js +8 -0
  25. package/cjs/components/NumberInput/utils/index.js.map +1 -0
  26. package/cjs/components/NumberInput/variations/_background-type/base.js +9 -0
  27. package/cjs/components/NumberInput/variations/_background-type/base.js.map +1 -0
  28. package/cjs/components/NumberInput/variations/_background-type/base_1jmdljr.css +1 -0
  29. package/cjs/components/NumberInput/variations/_clear/base.js +9 -0
  30. package/cjs/components/NumberInput/variations/_clear/base.js.map +1 -0
  31. package/cjs/components/NumberInput/variations/_clear/base_3l8dqb.css +1 -0
  32. package/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  33. package/cjs/components/NumberInput/variations/_disabled/base.js.map +1 -0
  34. package/cjs/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  35. package/cjs/components/NumberInput/variations/_segmentation/base.js +9 -0
  36. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  37. package/cjs/components/NumberInput/variations/_segmentation/base_nl8ve.css +1 -0
  38. package/cjs/components/NumberInput/variations/_shape/base.js +9 -0
  39. package/cjs/components/NumberInput/variations/_shape/base.js.map +1 -0
  40. package/cjs/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  41. package/cjs/components/NumberInput/variations/_size/base.js +9 -0
  42. package/cjs/components/NumberInput/variations/_size/base.js.map +1 -0
  43. package/cjs/components/NumberInput/variations/_size/base_1pju5qf.css +1 -0
  44. package/cjs/components/NumberInput/variations/_view/base.js +9 -0
  45. package/cjs/components/NumberInput/variations/_view/base.js.map +1 -0
  46. package/cjs/components/NumberInput/variations/_view/base_cghr9q.css +1 -0
  47. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  48. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  49. package/cjs/components/Select/Select.js +25 -13
  50. package/cjs/components/Select/Select.js.map +1 -1
  51. package/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  52. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  53. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  54. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  55. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  56. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  57. package/cjs/components/Select/utils/getButtonLabel.js +1 -1
  58. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  59. package/cjs/components/Select/utils/initialItemsTransform.js +6 -9
  60. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
  61. package/cjs/index.css +25 -0
  62. package/cjs/index.js +6 -0
  63. package/cjs/index.js.map +1 -1
  64. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  65. package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  66. package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  67. package/emotion/cjs/components/NumberInput/NumberInput.js +198 -0
  68. package/emotion/cjs/components/NumberInput/NumberInput.styles.js +17 -0
  69. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +87 -0
  70. package/emotion/cjs/components/NumberInput/NumberInput.types.js +5 -0
  71. package/emotion/cjs/components/NumberInput/index.js +31 -0
  72. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  73. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +16 -0
  74. package/emotion/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  75. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +198 -0
  76. package/emotion/cjs/components/NumberInput/ui/Input/Input.styles.js +82 -0
  77. package/emotion/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  78. package/emotion/cjs/components/NumberInput/ui/index.js +19 -0
  79. package/emotion/cjs/components/NumberInput/utils/index.js +7 -0
  80. package/emotion/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  81. package/emotion/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  82. package/emotion/cjs/components/NumberInput/variations/_clear/base.js +12 -0
  83. package/emotion/cjs/components/NumberInput/variations/_clear/tokens.json +5 -0
  84. package/emotion/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  85. package/emotion/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  86. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  87. package/emotion/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  88. package/emotion/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  89. package/emotion/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  90. package/emotion/cjs/components/NumberInput/variations/_size/base.js +13 -0
  91. package/emotion/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  92. package/emotion/cjs/components/NumberInput/variations/_view/base.js +13 -0
  93. package/emotion/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  94. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  95. package/emotion/cjs/components/Select/Select.js +25 -12
  96. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  97. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  98. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  99. package/emotion/cjs/components/Select/utils/getButtonLabel.js +1 -1
  100. package/emotion/cjs/components/Select/utils/index.js +1 -8
  101. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  102. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  103. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +48 -0
  104. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  105. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  106. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  107. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +48 -0
  108. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  109. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  110. package/emotion/cjs/index.js +11 -0
  111. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  112. package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  113. package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  114. package/emotion/es/components/NumberInput/NumberInput.js +190 -0
  115. package/emotion/es/components/NumberInput/NumberInput.styles.js +11 -0
  116. package/emotion/es/components/NumberInput/NumberInput.tokens.js +81 -0
  117. package/emotion/es/components/NumberInput/NumberInput.types.js +1 -0
  118. package/emotion/es/components/NumberInput/index.js +2 -0
  119. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  120. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +9 -0
  121. package/emotion/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  122. package/emotion/es/components/NumberInput/ui/Input/Input.js +189 -0
  123. package/emotion/es/components/NumberInput/ui/Input/Input.styles.js +75 -0
  124. package/emotion/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  125. package/emotion/es/components/NumberInput/ui/index.js +2 -0
  126. package/emotion/es/components/NumberInput/utils/index.js +1 -0
  127. package/emotion/es/components/NumberInput/variations/_background-type/base.js +4 -0
  128. package/emotion/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  129. package/emotion/es/components/NumberInput/variations/_clear/base.js +6 -0
  130. package/emotion/es/components/NumberInput/variations/_clear/tokens.json +5 -0
  131. package/emotion/es/components/NumberInput/variations/_disabled/base.js +3 -0
  132. package/emotion/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  133. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  134. package/emotion/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  135. package/emotion/es/components/NumberInput/variations/_shape/base.js +5 -0
  136. package/emotion/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  137. package/emotion/es/components/NumberInput/variations/_size/base.js +7 -0
  138. package/emotion/es/components/NumberInput/variations/_size/tokens.json +22 -0
  139. package/emotion/es/components/NumberInput/variations/_view/base.js +7 -0
  140. package/emotion/es/components/NumberInput/variations/_view/tokens.json +14 -0
  141. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  142. package/emotion/es/components/Select/Select.js +26 -13
  143. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  144. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  145. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  146. package/emotion/es/components/Select/utils/getButtonLabel.js +1 -1
  147. package/emotion/es/components/Select/utils/index.js +1 -2
  148. package/emotion/es/components/Select/utils/initialItemsTransform.js +6 -19
  149. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  150. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +42 -0
  151. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  152. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  153. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  154. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +42 -0
  155. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  156. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  157. package/emotion/es/index.js +2 -1
  158. package/es/components/Combobox/ComboboxNew/Combobox.js +22 -27
  159. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  160. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -9
  161. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  162. package/es/components/NumberInput/NumberInput.css +54 -0
  163. package/es/components/NumberInput/NumberInput.js +183 -0
  164. package/es/components/NumberInput/NumberInput.js.map +1 -0
  165. package/es/components/NumberInput/NumberInput.styles.js +5 -0
  166. package/es/components/NumberInput/NumberInput.styles.js.map +1 -0
  167. package/es/components/NumberInput/NumberInput.styles_jeawjl.css +1 -0
  168. package/es/components/NumberInput/NumberInput.tokens.js +84 -0
  169. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -0
  170. package/es/components/NumberInput/ui/ActionButton/ActionButton.js +15 -0
  171. package/es/components/NumberInput/ui/ActionButton/ActionButton.js.map +1 -0
  172. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +18 -0
  173. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js.map +1 -0
  174. package/es/components/NumberInput/ui/ActionButton/ActionButton.styles_x642ct.css +1 -0
  175. package/es/components/NumberInput/ui/Input/Input.css +15 -0
  176. package/es/components/NumberInput/ui/Input/Input.js +186 -0
  177. package/es/components/NumberInput/ui/Input/Input.js.map +1 -0
  178. package/es/components/NumberInput/ui/Input/Input.styles.js +85 -0
  179. package/es/components/NumberInput/ui/Input/Input.styles.js.map +1 -0
  180. package/es/components/NumberInput/ui/Input/Input.styles_jszc0c.css +8 -0
  181. package/es/components/NumberInput/utils/index.js +4 -0
  182. package/es/components/NumberInput/utils/index.js.map +1 -0
  183. package/es/components/NumberInput/variations/_background-type/base.js +5 -0
  184. package/es/components/NumberInput/variations/_background-type/base.js.map +1 -0
  185. package/es/components/NumberInput/variations/_background-type/base_1jmdljr.css +1 -0
  186. package/es/components/NumberInput/variations/_clear/base.js +5 -0
  187. package/es/components/NumberInput/variations/_clear/base.js.map +1 -0
  188. package/es/components/NumberInput/variations/_clear/base_3l8dqb.css +1 -0
  189. package/es/components/NumberInput/variations/_disabled/base.js +5 -0
  190. package/es/components/NumberInput/variations/_disabled/base.js.map +1 -0
  191. package/es/components/NumberInput/variations/_disabled/base_1sl0mh8.css +1 -0
  192. package/es/components/NumberInput/variations/_segmentation/base.js +5 -0
  193. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -0
  194. package/es/components/NumberInput/variations/_segmentation/base_nl8ve.css +1 -0
  195. package/es/components/NumberInput/variations/_shape/base.js +5 -0
  196. package/es/components/NumberInput/variations/_shape/base.js.map +1 -0
  197. package/es/components/NumberInput/variations/_shape/base_k05biw.css +1 -0
  198. package/es/components/NumberInput/variations/_size/base.js +5 -0
  199. package/es/components/NumberInput/variations/_size/base.js.map +1 -0
  200. package/es/components/NumberInput/variations/_size/base_1pju5qf.css +1 -0
  201. package/es/components/NumberInput/variations/_view/base.js +5 -0
  202. package/es/components/NumberInput/variations/_view/base.js.map +1 -0
  203. package/es/components/NumberInput/variations/_view/base_cghr9q.css +1 -0
  204. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  205. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  206. package/es/components/Select/Select.js +26 -14
  207. package/es/components/Select/Select.js.map +1 -1
  208. package/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  209. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  210. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  211. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  212. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  213. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  214. package/es/components/Select/utils/getButtonLabel.js +1 -1
  215. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  216. package/es/components/Select/utils/initialItemsTransform.js +6 -9
  217. package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
  218. package/es/index.css +25 -0
  219. package/es/index.js +2 -0
  220. package/es/index.js.map +1 -1
  221. package/package.json +2 -2
  222. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +22 -26
  223. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +1 -8
  224. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  225. package/styled-components/cjs/components/NumberInput/NumberInput.js +198 -0
  226. package/styled-components/cjs/components/NumberInput/NumberInput.styles.js +8 -0
  227. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +87 -0
  228. package/styled-components/cjs/components/NumberInput/NumberInput.types.js +5 -0
  229. package/styled-components/cjs/components/NumberInput/index.js +31 -0
  230. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.js +18 -0
  231. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.styles.js +15 -0
  232. package/styled-components/cjs/components/NumberInput/ui/ActionButton/ActionButton.types.js +5 -0
  233. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +198 -0
  234. package/styled-components/cjs/components/NumberInput/ui/Input/Input.styles.js +49 -0
  235. package/styled-components/cjs/components/NumberInput/ui/Input/Input.types.js +5 -0
  236. package/styled-components/cjs/components/NumberInput/ui/index.js +19 -0
  237. package/styled-components/cjs/components/NumberInput/utils/index.js +7 -0
  238. package/styled-components/cjs/components/NumberInput/variations/_background-type/base.js +10 -0
  239. package/styled-components/cjs/components/NumberInput/variations/_background-type/tokens.json +6 -0
  240. package/styled-components/cjs/components/NumberInput/variations/_clear/base.js +12 -0
  241. package/styled-components/cjs/components/NumberInput/variations/_clear/tokens.json +5 -0
  242. package/styled-components/cjs/components/NumberInput/variations/_disabled/base.js +9 -0
  243. package/styled-components/cjs/components/NumberInput/variations/_disabled/tokens.json +4 -0
  244. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +12 -0
  245. package/styled-components/cjs/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  246. package/styled-components/cjs/components/NumberInput/variations/_shape/base.js +11 -0
  247. package/styled-components/cjs/components/NumberInput/variations/_shape/tokens.json +1 -0
  248. package/styled-components/cjs/components/NumberInput/variations/_size/base.js +13 -0
  249. package/styled-components/cjs/components/NumberInput/variations/_size/tokens.json +22 -0
  250. package/styled-components/cjs/components/NumberInput/variations/_view/base.js +13 -0
  251. package/styled-components/cjs/components/NumberInput/variations/_view/tokens.json +14 -0
  252. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  253. package/styled-components/cjs/components/Select/Select.js +25 -12
  254. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  255. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  256. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  257. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +1 -1
  258. package/styled-components/cjs/components/Select/utils/index.js +1 -8
  259. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +6 -19
  260. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  261. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +48 -0
  262. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.js +11 -0
  263. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  264. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  265. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +48 -0
  266. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.js +11 -0
  267. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  268. package/styled-components/cjs/index.js +11 -0
  269. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +23 -27
  270. package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +1 -2
  271. package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +5 -19
  272. package/styled-components/es/components/NumberInput/NumberInput.js +190 -0
  273. package/styled-components/es/components/NumberInput/NumberInput.styles.js +2 -0
  274. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +81 -0
  275. package/styled-components/es/components/NumberInput/NumberInput.types.js +1 -0
  276. package/styled-components/es/components/NumberInput/index.js +2 -0
  277. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.js +11 -0
  278. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.styles.js +8 -0
  279. package/styled-components/es/components/NumberInput/ui/ActionButton/ActionButton.types.js +1 -0
  280. package/styled-components/es/components/NumberInput/ui/Input/Input.js +189 -0
  281. package/styled-components/es/components/NumberInput/ui/Input/Input.styles.js +42 -0
  282. package/styled-components/es/components/NumberInput/ui/Input/Input.types.js +1 -0
  283. package/styled-components/es/components/NumberInput/ui/index.js +2 -0
  284. package/styled-components/es/components/NumberInput/utils/index.js +1 -0
  285. package/styled-components/es/components/NumberInput/variations/_background-type/base.js +4 -0
  286. package/styled-components/es/components/NumberInput/variations/_background-type/tokens.json +6 -0
  287. package/styled-components/es/components/NumberInput/variations/_clear/base.js +6 -0
  288. package/styled-components/es/components/NumberInput/variations/_clear/tokens.json +5 -0
  289. package/styled-components/es/components/NumberInput/variations/_disabled/base.js +3 -0
  290. package/styled-components/es/components/NumberInput/variations/_disabled/tokens.json +4 -0
  291. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +6 -0
  292. package/styled-components/es/components/NumberInput/variations/_segmentation/tokens.json +1 -0
  293. package/styled-components/es/components/NumberInput/variations/_shape/base.js +5 -0
  294. package/styled-components/es/components/NumberInput/variations/_shape/tokens.json +1 -0
  295. package/styled-components/es/components/NumberInput/variations/_size/base.js +7 -0
  296. package/styled-components/es/components/NumberInput/variations/_size/tokens.json +22 -0
  297. package/styled-components/es/components/NumberInput/variations/_view/base.js +7 -0
  298. package/styled-components/es/components/NumberInput/variations/_view/tokens.json +14 -0
  299. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  300. package/styled-components/es/components/Select/Select.js +26 -13
  301. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  302. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  303. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  304. package/styled-components/es/components/Select/utils/getButtonLabel.js +1 -1
  305. package/styled-components/es/components/Select/utils/index.js +1 -2
  306. package/styled-components/es/components/Select/utils/initialItemsTransform.js +6 -19
  307. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +0 -6
  308. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +42 -0
  309. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.js +5 -0
  310. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +109 -0
  311. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +0 -6
  312. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +42 -0
  313. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.js +5 -0
  314. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +109 -0
  315. package/styled-components/es/index.js +2 -1
  316. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  317. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +3 -14
  318. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  319. package/types/components/Combobox/ComboboxNew/utils/index.d.ts +0 -1
  320. package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
  321. package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
  322. package/types/components/NumberInput/NumberInput.d.ts +42 -0
  323. package/types/components/NumberInput/NumberInput.d.ts.map +1 -0
  324. package/types/components/NumberInput/NumberInput.styles.d.ts +2 -0
  325. package/types/components/NumberInput/NumberInput.styles.d.ts.map +1 -0
  326. package/types/components/NumberInput/NumberInput.tokens.d.ts +76 -0
  327. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -0
  328. package/types/components/NumberInput/NumberInput.types.d.ts +112 -0
  329. package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -0
  330. package/types/components/NumberInput/index.d.ts +3 -0
  331. package/types/components/NumberInput/index.d.ts.map +1 -0
  332. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts +4 -0
  333. package/types/components/NumberInput/ui/ActionButton/ActionButton.d.ts.map +1 -0
  334. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +45 -0
  335. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -0
  336. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +7 -0
  337. package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -0
  338. package/types/components/NumberInput/ui/Input/Input.d.ts +16 -0
  339. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -0
  340. package/types/components/NumberInput/ui/Input/Input.styles.d.ts +30 -0
  341. package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -0
  342. package/types/components/NumberInput/ui/Input/Input.types.d.ts +16 -0
  343. package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -0
  344. package/types/components/NumberInput/ui/index.d.ts +3 -0
  345. package/types/components/NumberInput/ui/index.d.ts.map +1 -0
  346. package/types/components/NumberInput/utils/index.d.ts +2 -0
  347. package/types/components/NumberInput/utils/index.d.ts.map +1 -0
  348. package/types/components/NumberInput/variations/_background-type/base.d.ts +2 -0
  349. package/types/components/NumberInput/variations/_background-type/base.d.ts.map +1 -0
  350. package/types/components/NumberInput/variations/_clear/base.d.ts +2 -0
  351. package/types/components/NumberInput/variations/_clear/base.d.ts.map +1 -0
  352. package/types/components/NumberInput/variations/_disabled/base.d.ts +2 -0
  353. package/types/components/NumberInput/variations/_disabled/base.d.ts.map +1 -0
  354. package/types/components/NumberInput/variations/_segmentation/base.d.ts +2 -0
  355. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -0
  356. package/types/components/NumberInput/variations/_shape/base.d.ts +2 -0
  357. package/types/components/NumberInput/variations/_shape/base.d.ts.map +1 -0
  358. package/types/components/NumberInput/variations/_size/base.d.ts +2 -0
  359. package/types/components/NumberInput/variations/_size/base.d.ts.map +1 -0
  360. package/types/components/NumberInput/variations/_view/base.d.ts +2 -0
  361. package/types/components/NumberInput/variations/_view/base.d.ts.map +1 -0
  362. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +8 -8
  363. package/types/components/Select/Select.d.ts +2 -2
  364. package/types/components/Select/Select.d.ts.map +1 -1
  365. package/types/components/Select/Select.types.d.ts +1 -2
  366. package/types/components/Select/Select.types.d.ts.map +1 -1
  367. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -2
  368. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  369. package/types/components/Select/ui/Target/Target.types.d.ts +2 -2
  370. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  371. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +4 -4
  372. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  373. package/types/components/Select/utils/index.d.ts +0 -1
  374. package/types/components/Select/utils/index.d.ts.map +1 -1
  375. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
  376. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +6 -30
  377. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  378. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts +41 -0
  379. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  380. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts +84 -0
  381. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.d.ts.map +1 -0
  382. package/types/examples/plasma_b2c/components/Select/Select.d.ts +8 -8
  383. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +6 -30
  384. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  385. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts +41 -0
  386. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -0
  387. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts +84 -0
  388. package/types/examples/plasma_web/components/NumberInput/NumberInput.d.ts.map +1 -0
  389. package/types/examples/plasma_web/components/Select/Select.d.ts +8 -8
  390. package/types/index.d.ts +1 -0
  391. package/types/index.d.ts.map +1 -1
  392. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -21
  393. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  394. package/cjs/components/Select/utils/getInitialValue.js +0 -21
  395. package/cjs/components/Select/utils/getInitialValue.js.map +0 -1
  396. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  397. package/emotion/cjs/components/Select/utils/getInitialValue.js +0 -20
  398. package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  399. package/emotion/es/components/Select/utils/getInitialValue.js +0 -14
  400. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -17
  401. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +0 -1
  402. package/es/components/Select/utils/getInitialValue.js +0 -17
  403. package/es/components/Select/utils/getInitialValue.js.map +0 -1
  404. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -20
  405. package/styled-components/cjs/components/Select/utils/getInitialValue.js +0 -20
  406. package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +0 -14
  407. package/styled-components/es/components/Select/utils/getInitialValue.js +0 -14
  408. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts +0 -4
  409. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +0 -1
  410. package/types/components/Select/utils/getInitialValue.d.ts +0 -4
  411. package/types/components/Select/utils/getInitialValue.d.ts.map +0 -1
@@ -13,7 +13,6 @@ var Combobox_styles = require('./Combobox.styles.js');
13
13
  var base = require('./variations/_view/base.js');
14
14
  var base$1 = require('./variations/_size/base.js');
15
15
  var initialItemsTransform = require('./utils/initialItemsTransform.js');
16
- var getInitialValue = require('./utils/getInitialValue.js');
17
16
  var filterItems = require('./utils/filterItems.js');
18
17
  var pathReducer = require('./reducers/pathReducer.js');
19
18
  var focusedPathReducer = require('./reducers/focusedPathReducer.js');
@@ -27,7 +26,7 @@ var sizeToIconSize = require('../../Select/utils/sizeToIconSize.js');
27
26
  var getItemId = require('./utils/getItemId.js');
28
27
  var Inner = require('./ui/Inner/Inner.js');
29
28
 
30
- 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"];
29
+ var _excluded = ["multiple", "value", "onChange", "isTargetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect"];
31
30
  var Context = /*#__PURE__*/React.createContext({});
32
31
 
33
32
  /**
@@ -40,7 +39,6 @@ var comboboxRoot = function comboboxRoot(Root) {
40
39
  outerValue = props.value,
41
40
  outerOnChange = props.onChange,
42
41
  isTargetAmount = props.isTargetAmount,
43
- targetAmount = props.targetAmount,
44
42
  items = props.items,
45
43
  _props$placement = props.placement,
46
44
  placement = _props$placement === void 0 ? 'bottom-start' : _props$placement,
@@ -68,15 +66,10 @@ var comboboxRoot = function comboboxRoot(Root) {
68
66
  alwaysOpened = _props$alwaysOpened === void 0 ? false : _props$alwaysOpened,
69
67
  filter = props.filter,
70
68
  outerCloseAfterSelect = props.closeAfterSelect,
71
- renderValue = props.renderValue,
72
69
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
73
- var transformedItems = React.useMemo(function () {
74
- return initialItemsTransform.initialItemsTransform(items || []);
75
- }, [items]);
76
-
77
70
  // Создаем структуры для быстрой работы с деревом
78
71
  var _useMemo = React.useMemo(function () {
79
- return getPathMaps.getTreeMaps(transformedItems);
72
+ return getPathMaps.getTreeMaps(items);
80
73
  }, [items]),
81
74
  _useMemo2 = _rollupPluginBabelHelpers.slicedToArray(_useMemo, 3),
82
75
  valueToCheckedMap = _useMemo2[0],
@@ -90,11 +83,14 @@ var comboboxRoot = function comboboxRoot(Root) {
90
83
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
91
84
  internalValue = _useState4[0],
92
85
  setInternalValue = _useState4[1];
93
- var value = outerValue !== null && outerValue !== undefined ? getInitialValue.getInitialValue(outerValue, valueToItemMap) : internalValue;
86
+ var value = outerValue || internalValue;
94
87
  var inputRef = React.useRef(null);
95
88
  var floatingPopoverRef = React.useRef(null);
96
89
  var inputForkRef = plasmaCore.useForkRef(inputRef, ref);
97
90
  var treeId = plasmaCore.safeUseId();
91
+ var transformedItems = React.useMemo(function () {
92
+ return initialItemsTransform.initialItemsTransform(items || []);
93
+ }, [items]);
98
94
  var filteredItems = filterItems.filterItems(transformedItems, textValue, (_valueToItemMap$get2 = valueToItemMap.get(value)) === null || _valueToItemMap$get2 === void 0 ? void 0 : _valueToItemMap$get2.label, filter);
99
95
  var _useMemo3 = React.useMemo(function () {
100
96
  return getPathMaps.getPathMap(filteredItems);
@@ -261,7 +257,16 @@ var comboboxRoot = function comboboxRoot(Root) {
261
257
  if (e) {
262
258
  e.stopPropagation();
263
259
  }
264
- var isCurrentChecked = checked.get(item.value);
260
+ var checkedCopy = new Map(checked);
261
+ var isCurrentChecked = checkedCopy.get(item.value);
262
+ checkedCopy.forEach(function (_, key) {
263
+ checkedCopy.set(key, false);
264
+ });
265
+ if (!isCurrentChecked) {
266
+ checkedCopy.set(item.value, 'done');
267
+ updateSingleAncestors.updateSingleAncestors(item, checkedCopy, 'dot');
268
+ }
269
+ setTextValue(isCurrentChecked ? '' : item.label);
265
270
  if (!alwaysOpened && closeAfterSelect) {
266
271
  dispatchPath({
267
272
  type: 'reset'
@@ -275,18 +280,14 @@ var comboboxRoot = function comboboxRoot(Root) {
275
280
  }
276
281
  };
277
282
  var getChips = function getChips() {
278
- if (multiple && Array.isArray(value)) {
283
+ if (multiple) {
279
284
  if (value.length === 0) return [];
280
285
  if (isTargetAmount) {
281
- return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(targetAmount || value.length)];
286
+ return ["\u0412\u044B\u0431\u0440\u0430\u043D\u043E ".concat(value.length)];
282
287
  }
283
- var renderValueMapper = renderValue && function (stringValue) {
284
- return renderValue(valueToItemMap.get(stringValue));
285
- };
286
- var valueToItemMapper = function valueToItemMapper(stringValue) {
287
- return valueToItemMap.get(stringValue).label;
288
- };
289
- return value.map(renderValueMapper || valueToItemMapper);
288
+ return value.map(function (value) {
289
+ return valueToItemMap.get(value).label;
290
+ });
290
291
  }
291
292
  return [];
292
293
  };
@@ -314,7 +315,6 @@ var comboboxRoot = function comboboxRoot(Root) {
314
315
  // В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.
315
316
  // Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.
316
317
  React.useLayoutEffect(function () {
317
- var _valueToItemMap$get4;
318
318
  var checkedCopy = new Map(checked);
319
319
  checkedCopy.forEach(function (_, key) {
320
320
  checkedCopy.set(key, false);
@@ -332,12 +332,7 @@ var comboboxRoot = function comboboxRoot(Root) {
332
332
  }
333
333
  }
334
334
  setChecked(checkedCopy);
335
- setTextValue(((_valueToItemMap$get4 = valueToItemMap.get(outerValue)) === null || _valueToItemMap$get4 === void 0 ? void 0 : _valueToItemMap$get4.label) || '');
336
-
337
- // В deps мы кладем именно outerValue и internalValue, а не просто value.
338
- // Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.
339
- // А переменную, содержащую сложные типы данных, нельзя помещать в deps.
340
- }, [outerValue, internalValue, items]);
335
+ }, [value]);
341
336
  return /*#__PURE__*/React.createElement(Root, {
342
337
  size: size,
343
338
  view: view,
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';\nimport type { ChangeEvent } from 'react';\nimport { safeUseId, useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../engines';\nimport { isEmpty } from '../../../utils';\nimport { useOutsideClick } from '../../../hooks';\nimport { sizeToIconSize } from '../../Select/utils';\n\nimport { classes } from './Combobox.tokens';\nimport { FloatingPopover } from './FloatingPopover';\nimport { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';\nimport {\n initialItemsTransform,\n updateAncestors,\n updateDescendants,\n updateSingleAncestors,\n filterItems,\n getItemId,\n getInitialValue,\n} from './utils';\nimport { Inner, StyledTextField } from './ui';\nimport { pathReducer, focusedPathReducer } from './reducers';\nimport { getPathMap, getTreeMaps } from './hooks/getPathMaps';\nimport { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Combobox.styles';\nimport type { ItemContext, ComboboxProps } from './Combobox.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport type { ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';\n\nexport const Context = createContext<ItemContext>({} as ItemContext);\n\n/**\n * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.\n */\nexport const comboboxRoot = (Root: RootProps<HTMLInputElement, Omit<ComboboxProps, 'items'>>) =>\n forwardRef<HTMLInputElement, ComboboxProps>((props, ref) => {\n const {\n multiple,\n value: outerValue,\n onChange: outerOnChange,\n isTargetAmount,\n targetAmount,\n items,\n placement = 'bottom-start',\n label,\n placeholder,\n helperText,\n contentLeft,\n textBefore,\n textAfter,\n variant = 'normal',\n listOverflow,\n listHeight,\n listWidth,\n portal,\n renderItem,\n view,\n size,\n labelPlacement,\n readOnly = false,\n disabled = false,\n alwaysOpened = false,\n filter,\n closeAfterSelect: outerCloseAfterSelect,\n renderValue,\n ...rest\n } = props;\n const transformedItems = useMemo(() => initialItemsTransform(items || []), [items]);\n\n // Создаем структуры для быстрой работы с деревом\n const [valueToCheckedMap, valueToItemMap, labelToItemMap] = useMemo(() => getTreeMaps(transformedItems), [\n items,\n ]);\n\n const [textValue, setTextValue] = useState(valueToItemMap.get(outerValue as string)?.label || '');\n const [internalValue, setInternalValue] = useState<string | string[]>(multiple ? [] : '');\n\n const value =\n outerValue !== null && outerValue !== undefined\n ? getInitialValue(outerValue, valueToItemMap)\n : internalValue;\n\n const inputRef = useRef<HTMLInputElement>(null);\n const floatingPopoverRef = useRef<HTMLDivElement>(null);\n const inputForkRef = useForkRef(inputRef, ref);\n const treeId = safeUseId();\n\n const filteredItems = filterItems(\n transformedItems,\n textValue,\n valueToItemMap.get(value as string)?.label as string,\n filter,\n );\n\n const [pathMap, focusedToValueMap] = useMemo(() => getPathMap(filteredItems), [filteredItems, textValue]);\n\n // Состояния дерева элементов\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n const [checked, setChecked] = useState(valueToCheckedMap);\n\n const isCurrentListOpen = alwaysOpened || Boolean(path[0]);\n const activeDescendantItemValue = getItemByFocused(focusedPath, focusedToValueMap)?.value || '';\n const withArrowInverse = isCurrentListOpen ? classes.arrowInverse : undefined;\n const closeAfterSelect = outerCloseAfterSelect ?? !multiple;\n\n // Логика работы при клике за пределами выпадающего списка\n const targetRef = useOutsideClick<HTMLUListElement>(() => {\n if (!isCurrentListOpen) {\n return;\n }\n\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n\n // Проверяем, отличается ли значение в инпуте от выбранного value после закрытия дропдауна.\n // Если изменилось, то возвращаем label выбранного айтема.\n // Если нет выбранного элемента, то стираем значение инпута.\n if (textValue !== value) {\n if (isEmpty(value)) {\n setTextValue('');\n } else {\n setTextValue(valueToItemMap.get(value as string)?.label || '');\n }\n }\n }, floatingPopoverRef);\n\n const onChange = (newValue: string | Array<string>) => {\n if (outerOnChange) {\n outerOnChange(newValue as any);\n }\n\n setInternalValue(newValue);\n };\n\n const handleClickArrow = () => {\n if (disabled || readOnly) {\n return;\n }\n\n if (isCurrentListOpen) {\n dispatchPath({ type: 'reset' });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n }\n\n dispatchFocusedPath({ type: 'reset' });\n };\n\n // Обработчик изменения значения в инпуте\n const handleTextValueChange = (e: ChangeEvent<HTMLInputElement>) => {\n setTextValue(e.target.value);\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'reset' });\n };\n\n // Обработчик чипов\n const handleChipsChange = (chipLabels: any[]) => {\n onChange(chipLabels.map((chipLabel) => labelToItemMap.get(chipLabel)!.value));\n };\n\n // Обработчик открытия/закрытия выпадающего списка\n const handleListToggle = (opened: boolean) => {\n if (disabled || readOnly) {\n return;\n }\n\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n };\n\n // Обработчик выбора чекбоксов (только при multiple)\n const handleCheckboxChange = (item: ItemOptionTransformed) => {\n if (!multiple) {\n return;\n }\n\n const checkedCopy = new Map(checked);\n\n if (!checkedCopy.get(item.value)) {\n checkedCopy.set(item.value, true);\n updateDescendants(item, checkedCopy, true);\n } else {\n checkedCopy.set(item.value, false);\n updateDescendants(item, checkedCopy, false);\n }\n\n updateAncestors(item, checkedCopy);\n\n const newValues: Array<string> = [];\n\n valueToItemMap.forEach((item, key) => {\n if (checkedCopy.get(key)) {\n newValues.push(item.value);\n }\n });\n\n if (!alwaysOpened && closeAfterSelect) {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n }\n\n if (onChange) {\n onChange(newValues);\n }\n\n // После выбора/снятия чекбокса скроллим к инпуту\n setTimeout(() => {\n if (inputRef.current) {\n inputRef.current.scrollIntoView({\n behavior: 'smooth',\n inline: 'start',\n });\n }\n }, 1);\n };\n\n // Обработчик клика по айтему выпадающего списка\n const handleItemClick = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (!isEmpty(item?.items)) {\n return;\n }\n\n if (multiple) {\n handleCheckboxChange(item);\n return;\n }\n\n if (e) {\n e.stopPropagation();\n }\n\n const isCurrentChecked = checked.get(item.value);\n\n if (!alwaysOpened && closeAfterSelect) {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n }\n\n if (onChange) {\n onChange(isCurrentChecked ? '' : item.value);\n }\n };\n\n const getChips = (): string[] => {\n if (multiple && Array.isArray(value)) {\n if (value.length === 0) return [];\n\n if (isTargetAmount) {\n return [`Выбрано ${targetAmount || value.length}`];\n }\n\n const renderValueMapper =\n renderValue && ((stringValue: string) => renderValue(valueToItemMap.get(stringValue)!));\n const valueToItemMapper = (stringValue: string) => valueToItemMap.get(stringValue)!.label;\n\n return value.map(renderValueMapper || valueToItemMapper);\n }\n\n return [];\n };\n\n const handlePressDown = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (isEmpty(item.items)) {\n handleItemClick(item, e);\n } else if (multiple) {\n handleCheckboxChange(item);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleListToggle,\n handlePressDown,\n multiselect: multiple,\n setTextValue,\n });\n\n // В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.\n // Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.\n useLayoutEffect(() => {\n const checkedCopy = new Map(checked);\n\n checkedCopy.forEach((_, key) => {\n checkedCopy.set(key, false);\n });\n\n if (!isEmpty(value)) {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n checkedCopy.set(val, true);\n updateDescendants(valueToItemMap.get(val)!, checkedCopy, true);\n updateAncestors(valueToItemMap.get(val)!, checkedCopy);\n });\n } else {\n checkedCopy.set(value, 'done');\n updateSingleAncestors(valueToItemMap.get(value)!, checkedCopy, 'dot');\n }\n }\n\n setChecked(checkedCopy);\n\n setTextValue(valueToItemMap.get(outerValue as string)?.label || '');\n\n // В deps мы кладем именно outerValue и internalValue, а не просто value.\n // Т.к. вначале нужно отфильтровать и провалидировать outerValue и результат положить в переменную.\n // А переменную, содержащую сложные типы данных, нельзя помещать в deps.\n }, [outerValue, internalValue, items]);\n\n return (\n <Root size={size} view={view} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <div>\n <Context.Provider\n value={{\n focusedPath,\n checked,\n multiple,\n size,\n handleCheckboxChange,\n handleItemClick,\n variant,\n renderItem,\n valueToItemMap,\n treeId,\n }}\n >\n <FloatingPopover\n ref={floatingPopoverRef}\n opened={isCurrentListOpen}\n onToggle={(opened: boolean) => opened && handleListToggle(true)}\n placement={placement}\n portal={portal}\n target={(referenceRef) => (\n <StyledTextField\n ref={inputForkRef}\n inputWrapperRef={referenceRef}\n value={textValue}\n onChange={handleTextValueChange}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n placeholder={placeholder}\n contentLeft={contentLeft}\n contentRight={\n <IconArrowWrapper disabled={disabled} onClick={handleClickArrow}>\n <StyledArrow\n color=\"inherit\"\n size={sizeToIconSize(size)}\n className={withArrowInverse}\n />\n </IconArrowWrapper>\n }\n textBefore={textBefore}\n textAfter={textAfter}\n onKeyDown={onKeyDown}\n leftHelper={helperText}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={`${treeId}_tree_level_1`}\n aria-expanded={isCurrentListOpen}\n aria-activedescendant={\n activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue) : ''\n }\n {...(multiple\n ? {\n enumerationType: 'chip',\n chips: getChips(),\n onChangeChips: handleChipsChange,\n }\n : { enumerationType: 'plain' })}\n {...rest}\n onEnterDisabled // Пропс для отключения обработчика Enter внутри Textfield\n />\n )}\n >\n <Root\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n role=\"tree\"\n id={`${treeId}_tree_level_1`}\n aria-multiselectable={Boolean(multiple)}\n listHeight={listHeight}\n listOverflow={listOverflow}\n listWidth={listWidth}\n ref={targetRef}\n >\n {isEmpty(filteredItems) ? (\n <StyledEmptyState\n className={classes.emptyStateWrapper}\n size={size}\n description=\"Ничего не найдено\"\n />\n ) : (\n filteredItems.map((item, index) => (\n <Inner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n listWidth={listWidth}\n />\n ))\n )}\n </Ul>\n </Root>\n </FloatingPopover>\n </Context.Provider>\n </div>\n </Root>\n );\n });\n\nexport const comboboxConfig = {\n name: 'Select',\n tag: 'div',\n layout: comboboxRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n readOnly: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n labelPlacement: 'outer',\n },\n};\n"],"names":["Context","createContext","comboboxRoot","Root","forwardRef","props","ref","_valueToItemMap$get","_valueToItemMap$get2","_getItemByFocused","multiple","outerValue","value","outerOnChange","onChange","isTargetAmount","targetAmount","items","_props$placement","placement","label","placeholder","helperText","contentLeft","textBefore","textAfter","_props$variant","variant","listOverflow","listHeight","listWidth","portal","renderItem","view","size","labelPlacement","_props$readOnly","readOnly","_props$disabled","disabled","_props$alwaysOpened","alwaysOpened","filter","outerCloseAfterSelect","closeAfterSelect","renderValue","rest","_objectWithoutProperties","_excluded","transformedItems","useMemo","initialItemsTransform","_useMemo","getTreeMaps","_useMemo2","_slicedToArray","valueToCheckedMap","valueToItemMap","labelToItemMap","_useState","useState","get","_useState2","textValue","setTextValue","_useState3","_useState4","internalValue","setInternalValue","undefined","getInitialValue","inputRef","useRef","floatingPopoverRef","inputForkRef","useForkRef","treeId","safeUseId","filteredItems","filterItems","_useMemo3","getPathMap","_useMemo4","pathMap","focusedToValueMap","_useReducer","useReducer","pathReducer","_useReducer2","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useState5","_useState6","checked","setChecked","isCurrentListOpen","Boolean","activeDescendantItemValue","getItemByFocused","withArrowInverse","classes","arrowInverse","targetRef","useOutsideClick","type","isEmpty","_valueToItemMap$get3","newValue","handleClickArrow","handleTextValueChange","e","target","handleChipsChange","chipLabels","map","chipLabel","handleListToggle","opened","handleCheckboxChange","item","checkedCopy","Map","set","updateDescendants","updateAncestors","newValues","forEach","key","push","setTimeout","current","scrollIntoView","behavior","inline","handleItemClick","stopPropagation","isCurrentChecked","getChips","Array","isArray","length","concat","renderValueMapper","stringValue","valueToItemMapper","handlePressDown","_useKeyNavigation","useKeyNavigation","multiselect","onKeyDown","useLayoutEffect","_valueToItemMap$get4","_","val","updateSingleAncestors","React","createElement","Provider","FloatingPopover","onToggle","referenceRef","StyledTextField","_extends","inputWrapperRef","contentRight","IconArrowWrapper","onClick","StyledArrow","color","sizeToIconSize","className","leftHelper","role","getItemId","enumerationType","chips","onChangeChips","onEnterDisabled","Ul","id","StyledEmptyState","emptyStateWrapper","description","index","Inner","currentLevel","comboboxConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BaA,OAAO,gBAAGC,mBAAa,CAAc,EAAiB,EAAC;;AAEpE;AACA;AACA;IACaC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBACxFC,gBAAU,CAAkC,UAACC,KAAK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A,oBAAI;AACJC,EAAAA,UAAU,EAAE;AACRnK,IAAAA,IAAI,EAAE;AACFoK,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDpK,IAAAA,IAAI,EAAE;AACFmK,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDlK,IAAAA,QAAQ,EAAE;AACNgK,MAAAA,GAAG,EAAEE,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNvK,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;AACpB,GAAA;AACJ;;;;;;"}
1
+ {"version":3,"file":"Combobox.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect, useRef } from 'react';\nimport type { ChangeEvent } from 'react';\nimport { safeUseId, useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../engines';\nimport { isEmpty } from '../../../utils';\nimport { useOutsideClick } from '../../../hooks';\nimport { sizeToIconSize } from '../../Select/utils';\n\nimport { classes } from './Combobox.tokens';\nimport { FloatingPopover } from './FloatingPopover';\nimport { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';\nimport {\n initialItemsTransform,\n updateAncestors,\n updateDescendants,\n updateSingleAncestors,\n filterItems,\n getItemId,\n} from './utils';\nimport { Inner, StyledTextField } from './ui';\nimport { pathReducer, focusedPathReducer } from './reducers';\nimport { getPathMap, getTreeMaps } from './hooks/getPathMaps';\nimport { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Combobox.styles';\nimport type { ItemContext, ComboboxProps } from './Combobox.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport type { ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';\n\nexport const Context = createContext<ItemContext>({} as ItemContext);\n\n/**\n * Поле ввода с выпадающим списком и возможностью фильтрации и выбора элементов.\n */\nexport const comboboxRoot = (Root: RootProps<HTMLInputElement, Omit<ComboboxProps, 'items'>>) =>\n forwardRef<HTMLInputElement, ComboboxProps>((props, ref) => {\n const {\n multiple,\n value: outerValue,\n onChange: outerOnChange,\n isTargetAmount,\n items,\n placement = 'bottom-start',\n label,\n placeholder,\n helperText,\n contentLeft,\n textBefore,\n textAfter,\n variant = 'normal',\n listOverflow,\n listHeight,\n listWidth,\n portal,\n renderItem,\n view,\n size,\n labelPlacement,\n readOnly = false,\n disabled = false,\n alwaysOpened = false,\n filter,\n closeAfterSelect: outerCloseAfterSelect,\n ...rest\n } = props;\n // Создаем структуры для быстрой работы с деревом\n const [valueToCheckedMap, valueToItemMap, labelToItemMap] = useMemo(() => getTreeMaps(items), [items]);\n\n const [textValue, setTextValue] = useState(valueToItemMap.get(outerValue as string)?.label || '');\n const [internalValue, setInternalValue] = useState<string | string[]>(multiple ? [] : '');\n\n const value = outerValue || internalValue;\n\n const inputRef = useRef<HTMLInputElement>(null);\n const floatingPopoverRef = useRef<HTMLDivElement>(null);\n const inputForkRef = useForkRef(inputRef, ref);\n const treeId = safeUseId();\n\n const transformedItems = useMemo(() => initialItemsTransform(items || []), [items]);\n\n const filteredItems = filterItems(\n transformedItems,\n textValue,\n valueToItemMap.get(value as string)?.label as string,\n filter,\n );\n\n const [pathMap, focusedToValueMap] = useMemo(() => getPathMap(filteredItems), [filteredItems, textValue]);\n\n // Состояния дерева элементов\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n const [checked, setChecked] = useState(valueToCheckedMap);\n\n const isCurrentListOpen = alwaysOpened || Boolean(path[0]);\n const activeDescendantItemValue = getItemByFocused(focusedPath, focusedToValueMap)?.value || '';\n const withArrowInverse = isCurrentListOpen ? classes.arrowInverse : undefined;\n const closeAfterSelect = outerCloseAfterSelect ?? !multiple;\n\n // Логика работы при клике за пределами выпадающего списка\n const targetRef = useOutsideClick<HTMLUListElement>(() => {\n if (!isCurrentListOpen) {\n return;\n }\n\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n\n // Проверяем, отличается ли значение в инпуте от выбранного value после закрытия дропдауна.\n // Если изменилось, то возвращаем label выбранного айтема.\n // Если нет выбранного элемента, то стираем значение инпута.\n if (textValue !== value) {\n if (isEmpty(value)) {\n setTextValue('');\n } else {\n setTextValue(valueToItemMap.get(value as string)?.label || '');\n }\n }\n }, floatingPopoverRef);\n\n const onChange = (newValue: string | Array<string>) => {\n if (outerOnChange) {\n outerOnChange(newValue as any);\n }\n\n setInternalValue(newValue);\n };\n\n const handleClickArrow = () => {\n if (disabled || readOnly) {\n return;\n }\n\n if (isCurrentListOpen) {\n dispatchPath({ type: 'reset' });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n }\n\n dispatchFocusedPath({ type: 'reset' });\n };\n\n // Обработчик изменения значения в инпуте\n const handleTextValueChange = (e: ChangeEvent<HTMLInputElement>) => {\n setTextValue(e.target.value);\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'reset' });\n };\n\n // Обработчик чипов\n const handleChipsChange = (chipLabels: any[]) => {\n onChange(chipLabels.map((chipLabel) => labelToItemMap.get(chipLabel)!.value));\n };\n\n // Обработчик открытия/закрытия выпадающего списка\n const handleListToggle = (opened: boolean) => {\n if (disabled || readOnly) {\n return;\n }\n\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n };\n\n // Обработчик выбора чекбоксов (только при multiple)\n const handleCheckboxChange = (item: ItemOptionTransformed) => {\n if (!multiple) {\n return;\n }\n\n const checkedCopy = new Map(checked);\n\n if (!checkedCopy.get(item.value)) {\n checkedCopy.set(item.value, true);\n updateDescendants(item, checkedCopy, true);\n } else {\n checkedCopy.set(item.value, false);\n updateDescendants(item, checkedCopy, false);\n }\n\n updateAncestors(item, checkedCopy);\n\n const newValues: Array<string> = [];\n\n valueToItemMap.forEach((item, key) => {\n if (checkedCopy.get(key)) {\n newValues.push(item.value);\n }\n });\n\n if (!alwaysOpened && closeAfterSelect) {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n }\n\n if (onChange) {\n onChange(newValues);\n }\n\n // После выбора/снятия чекбокса скроллим к инпуту\n setTimeout(() => {\n if (inputRef.current) {\n inputRef.current.scrollIntoView({\n behavior: 'smooth',\n inline: 'start',\n });\n }\n }, 1);\n };\n\n // Обработчик клика по айтему выпадающего списка\n const handleItemClick = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (!isEmpty(item?.items)) {\n return;\n }\n\n if (multiple) {\n handleCheckboxChange(item);\n return;\n }\n\n if (e) {\n e.stopPropagation();\n }\n\n const checkedCopy = new Map(checked);\n\n const isCurrentChecked = checkedCopy.get(item.value);\n\n checkedCopy.forEach((_, key) => {\n checkedCopy.set(key, false);\n });\n\n if (!isCurrentChecked) {\n checkedCopy.set(item.value, 'done');\n updateSingleAncestors(item, checkedCopy, 'dot');\n }\n\n setTextValue(isCurrentChecked ? '' : item.label);\n\n if (!alwaysOpened && closeAfterSelect) {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n }\n\n if (onChange) {\n onChange(isCurrentChecked ? '' : item.value);\n }\n };\n\n const getChips = (): string[] => {\n if (multiple) {\n if (value.length === 0) return [];\n\n if (isTargetAmount) {\n return [`Выбрано ${value.length}`];\n }\n\n return (value as []).map((value) => valueToItemMap.get(value)!.label);\n }\n\n return [];\n };\n\n const handlePressDown = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (isEmpty(item.items)) {\n handleItemClick(item, e);\n } else if (multiple) {\n handleCheckboxChange(item);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleListToggle,\n handlePressDown,\n multiselect: multiple,\n setTextValue,\n });\n\n // В данном эффекте мы следим за изменениями value снаружи и вносим коррективы в дерево чекбоксов.\n // Пример: когда юзер очистил value извне, тогда нужно пройтись по элементам и выключить все чекбоксы.\n useLayoutEffect(() => {\n const checkedCopy = new Map(checked);\n\n checkedCopy.forEach((_, key) => {\n checkedCopy.set(key, false);\n });\n\n if (!isEmpty(value)) {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n checkedCopy.set(val, true);\n updateDescendants(valueToItemMap.get(val)!, checkedCopy, true);\n updateAncestors(valueToItemMap.get(val)!, checkedCopy);\n });\n } else {\n checkedCopy.set(value, 'done');\n updateSingleAncestors(valueToItemMap.get(value)!, checkedCopy, 'dot');\n }\n }\n\n setChecked(checkedCopy);\n }, [value]);\n\n return (\n <Root size={size} view={view} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <div>\n <Context.Provider\n value={{\n focusedPath,\n checked,\n multiple,\n size,\n handleCheckboxChange,\n handleItemClick,\n variant,\n renderItem,\n valueToItemMap,\n treeId,\n }}\n >\n <FloatingPopover\n ref={floatingPopoverRef}\n opened={isCurrentListOpen}\n onToggle={(opened: boolean) => opened && handleListToggle(true)}\n placement={placement}\n portal={portal}\n target={(referenceRef) => (\n <StyledTextField\n ref={inputForkRef}\n inputWrapperRef={referenceRef}\n value={textValue}\n onChange={handleTextValueChange}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n placeholder={placeholder}\n contentLeft={contentLeft}\n contentRight={\n <IconArrowWrapper disabled={disabled} onClick={handleClickArrow}>\n <StyledArrow\n color=\"inherit\"\n size={sizeToIconSize(size)}\n className={withArrowInverse}\n />\n </IconArrowWrapper>\n }\n textBefore={textBefore}\n textAfter={textAfter}\n onKeyDown={onKeyDown}\n leftHelper={helperText}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={`${treeId}_tree_level_1`}\n aria-expanded={isCurrentListOpen}\n aria-activedescendant={\n activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue) : ''\n }\n {...(multiple\n ? {\n enumerationType: 'chip',\n chips: getChips(),\n onChangeChips: handleChipsChange,\n }\n : { enumerationType: 'plain' })}\n {...rest}\n onEnterDisabled // Пропс для отключения обработчика Enter внутри Textfield\n />\n )}\n >\n <Root\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n role=\"tree\"\n id={`${treeId}_tree_level_1`}\n aria-multiselectable={Boolean(multiple)}\n listHeight={listHeight}\n listOverflow={listOverflow}\n listWidth={listWidth}\n ref={targetRef}\n >\n {isEmpty(filteredItems) ? (\n <StyledEmptyState\n className={classes.emptyStateWrapper}\n size={size}\n description=\"Ничего не найдено\"\n />\n ) : (\n filteredItems.map((item, index) => (\n <Inner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n listWidth={listWidth}\n />\n ))\n )}\n </Ul>\n </Root>\n </FloatingPopover>\n </Context.Provider>\n </div>\n </Root>\n );\n });\n\nexport const comboboxConfig = {\n name: 'Select',\n tag: 'div',\n layout: comboboxRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n readOnly: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n labelPlacement: 'outer',\n },\n};\n"],"names":["Context","createContext","comboboxRoot","Root","forwardRef","props","ref","_valueToItemMap$get","_valueToItemMap$get2","_getItemByFocused","multiple","outerValue","value","outerOnChange","onChange","isTargetAmount","items","_props$placement","placement","label","placeholder","helperText","contentLeft","textBefore","textAfter","_props$variant","variant","listOverflow","listHeight","listWidth","portal","renderItem","view","size","labelPlacement","_props$readOnly","readOnly","_props$disabled","disabled","_props$alwaysOpened","alwaysOpened","filter","outerCloseAfterSelect","closeAfterSelect","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","getTreeMaps","_useMemo2","_slicedToArray","valueToCheckedMap","valueToItemMap","labelToItemMap","_useState","useState","get","_useState2","textValue","setTextValue","_useState3","_useState4","internalValue","setInternalValue","inputRef","useRef","floatingPopoverRef","inputForkRef","useForkRef","treeId","safeUseId","transformedItems","initialItemsTransform","filteredItems","filterItems","_useMemo3","getPathMap","_useMemo4","pathMap","focusedToValueMap","_useReducer","useReducer","pathReducer","_useReducer2","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useState5","_useState6","checked","setChecked","isCurrentListOpen","Boolean","activeDescendantItemValue","getItemByFocused","withArrowInverse","classes","arrowInverse","undefined","targetRef","useOutsideClick","type","isEmpty","_valueToItemMap$get3","newValue","handleClickArrow","handleTextValueChange","e","target","handleChipsChange","chipLabels","map","chipLabel","handleListToggle","opened","handleCheckboxChange","item","checkedCopy","Map","set","updateDescendants","updateAncestors","newValues","forEach","key","push","setTimeout","current","scrollIntoView","behavior","inline","handleItemClick","stopPropagation","isCurrentChecked","_","updateSingleAncestors","getChips","length","concat","handlePressDown","_useKeyNavigation","useKeyNavigation","multiselect","onKeyDown","useLayoutEffect","Array","isArray","val","React","createElement","Provider","FloatingPopover","onToggle","referenceRef","StyledTextField","_extends","inputWrapperRef","contentRight","IconArrowWrapper","onClick","StyledArrow","color","sizeToIconSize","className","leftHelper","role","getItemId","enumerationType","chips","onChangeChips","onEnterDisabled","Ul","id","StyledEmptyState","emptyStateWrapper","description","index","Inner","currentLevel","comboboxConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BaA,OAAO,gBAAGC,mBAAa,CAAc,EAAiB,EAAC;;AAEpE;AACA;AACA;IACaC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBACxFC,gBAAU,CAAkC,UAACC,KAAK,EAAEC,GAAG,EAAK;AAAA,IAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,iBAAA,CAAA;AACx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AE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;AACpB,GAAA;AACJ;;;;;;"}
@@ -2,20 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
6
-
7
5
  // Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.
8
6
  // Дает возможность прохода к корневому элементу (снизу вверх).
9
- // На выходе получаем глубокую копию исходного массива items.
10
7
  var initialItemsTransform = function initialItemsTransform(items, parent) {
11
- return _rollupPluginBabelHelpers.toConsumableArray(items).map(function (item) {
12
- var itemCopy = _rollupPluginBabelHelpers.objectSpread2({}, item);
13
- itemCopy.parent = parent;
14
- if (itemCopy.items) {
15
- itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);
8
+ items.forEach(function (item) {
9
+ item.parent = parent;
10
+ if (item.items) {
11
+ item.items = initialItemsTransform(item.items, item);
16
12
  }
17
- return itemCopy;
18
13
  });
14
+ return items;
19
15
  };
20
16
 
21
17
  exports.initialItemsTransform = initialItemsTransform;
@@ -1 +1 @@
1
- {"version":3,"file":"initialItemsTransform.js","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/initialItemsTransform.ts"],"sourcesContent":["import { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\n// Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.\n// Дает возможность прохода к корневому элементу (снизу вверх).\n// На выходе получаем глубокую копию исходного массива items.\nexport const initialItemsTransform = (\n items: Array<ItemOptionTransformed>,\n parent?: ItemOptionTransformed,\n): Array<ItemOptionTransformed> => {\n return [...items].map((item) => {\n const itemCopy = { ...item };\n\n itemCopy.parent = parent;\n\n if (itemCopy.items) {\n itemCopy.items = initialItemsTransform(itemCopy.items, itemCopy);\n }\n\n return itemCopy;\n });\n};\n"],"names":["initialItemsTransform","items","parent","_toConsumableArray","map","item","itemCopy","_objectSpread"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAC9BC,KAAmC,EACnCC,MAA8B,EACC;EAC/B,OAAOC,2CAAA,CAAIF,KAAK,CAAA,CAAEG,GAAG,CAAC,UAACC,IAAI,EAAK;AAC5B,IAAA,IAAMC,QAAQ,GAAAC,uCAAA,CAAA,EAAA,EAAQF,IAAI,CAAE,CAAA;IAE5BC,QAAQ,CAACJ,MAAM,GAAGA,MAAM,CAAA;IAExB,IAAII,QAAQ,CAACL,KAAK,EAAE;MAChBK,QAAQ,CAACL,KAAK,GAAGD,qBAAqB,CAACM,QAAQ,CAACL,KAAK,EAAEK,QAAQ,CAAC,CAAA;AACpE,KAAA;AAEA,IAAA,OAAOA,QAAQ,CAAA;AACnB,GAAC,CAAC,CAAA;AACN;;;;"}
1
+ {"version":3,"file":"initialItemsTransform.js","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/initialItemsTransform.ts"],"sourcesContent":["import { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\n// Проходимся по массиву items и добавляем в каждый item ключ parent, который ссылается на item родителя.\n// Дает возможность прохода к корневому элементу (снизу вверх).\nexport const initialItemsTransform = (\n items: Array<ItemOptionTransformed>,\n parent?: ItemOptionTransformed,\n): Array<ItemOptionTransformed> => {\n items.forEach((item) => {\n item.parent = parent;\n\n if (item.items) {\n item.items = initialItemsTransform(item.items, item);\n }\n });\n\n return items;\n};\n"],"names":["initialItemsTransform","items","parent","forEach","item"],"mappings":";;;;AAEA;AACA;AACO,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAC9BC,KAAmC,EACnCC,MAA8B,EACC;AAC/BD,EAAAA,KAAK,CAACE,OAAO,CAAC,UAACC,IAAI,EAAK;IACpBA,IAAI,CAACF,MAAM,GAAGA,MAAM,CAAA;IAEpB,IAAIE,IAAI,CAACH,KAAK,EAAE;MACZG,IAAI,CAACH,KAAK,GAAGD,qBAAqB,CAACI,IAAI,CAACH,KAAK,EAAEG,IAAI,CAAC,CAAA;AACxD,KAAA;AACJ,GAAC,CAAC,CAAA;AAEF,EAAA,OAAOH,KAAK,CAAA;AAChB;;;;"}
@@ -0,0 +1,54 @@
1
+ .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
+
3
+ .Button_styles_1sopr3d_bzw1898__8219590b{min-width:4ch;-webkit-flex-shrink:2;-ms-flex-negative:2;flex-shrink:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Button_styles_1sopr3d_bzw1898__8219590b.Button_styles_1sopr3d_buttonContentRelaxed__8219590b{text-align:start;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;}
4
+ .Button_styles_1sopr3d_bdfuqwe__8219590b{color:var(--plasma-button-value-color);margin:var(--plasma-button-value-margin);min-width:4ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
5
+ .Button_styles_1sopr3d_l9ypozh__8219590b{opacity:var(--l9ypozh-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:var(--l9ypozh-1);-webkit-justify-content:var(--l9ypozh-1);-ms-flex-pack:var(--l9ypozh-1);justify-content:var(--l9ypozh-1);height:100%;width:100%;}
6
+ .Button_styles_1sopr3d_l4dfhbg__8219590b{position:absolute;}
7
+ .Button_styles_1sopr3d_srdlazt__8219590b{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
8
+ .Button_styles_1sopr3d_s7rggv0__8219590b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:var(--plasma-button-left-content-margin);-webkit-align-self:var(--plasma-button-left-content-align-self);-ms-flex-item-align:var(--plasma-button-left-content-align);align-self:var(--plasma-button-left-content-align-self);}
9
+ .Button_styles_1sopr3d_s1rjh7ra__8219590b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:var(--plasma-button-right-content-margin);-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);}
10
+ .Button_styles_1sopr3d_b9ga1dj__8219590b{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_1sopr3d_b9ga1dj__8219590b{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_b9ga1dj__8219590b.Button_styles_1sopr3d_buttonSquare__8219590b{width:var(--plasma-button-height);padding:0;}
11
+
12
+ .base_1x0spnh_b1ty39ru__fb659d61{color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}.base_1x0spnh_b1ty39ru__fb659d61.base_1x0spnh_buttonLoading__fb659d61{background-color:var(--plasma-button-loading-background-color);}.base_1x0spnh_b1ty39ru__fb659d61:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background-color:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.base_1x0spnh_b1ty39ru__fb659d61:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background-color:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}
13
+
14
+ .base_1alzrso_be0ha5g__cdc67255{height:var(--plasma-button-height);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);}
15
+
16
+ .base_1t3ywu_b169l30m__aba40ddd[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.base_1t3ywu_b169l30m__aba40ddd[disabled]:hover,.base_1t3ywu_b169l30m__aba40ddd[disabled]:active{scale:none;color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}
17
+
18
+ .base_1kq737e_b187cmzt__d829f64a{position:relative;}.base_1kq737e_b187cmzt__d829f64a:focus{outline:none;}.base_1kq737e_b187cmzt__d829f64a::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1kq737e_b187cmzt__d829f64a.base_1kq737e_focusVisible__d829f64a:focus::before,.base_1kq737e_b187cmzt__d829f64a[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}
19
+
20
+ .base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFixed__bd4ad37e{width:var(--plasma-button-width);}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFilled__bd4ad37e{width:100%;}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingAuto__bd4ad37e{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
21
+
22
+ .IconButton_styles_sttslf_b1ua728l__193d7826{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);height:var(--plasma-button-height);width:var(--plasma-button-width);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);position:relative;--plasma-button-padding:0;--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-loading-background-color:var(--plasma-icon-button-loading-background-color);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}a.IconButton_styles_sttslf_b1ua728l__193d7826{-webkit-text-decoration:none;text-decoration:none;}.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_buttonSquare__193d7826{width:var(--plasma-button-height);padding:0;}.IconButton_styles_sttslf_b1ua728l__193d7826:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background-color:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.IconButton_styles_sttslf_b1ua728l__193d7826:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background-color:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}.IconButton_styles_sttslf_b1ua728l__193d7826:focus{outline:none;}.IconButton_styles_sttslf_b1ua728l__193d7826::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_focusVisible__193d7826:focus::before,.IconButton_styles_sttslf_b1ua728l__193d7826[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}.IconButton_styles_sttslf_b1ua728l__193d7826[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.IconButton_styles_sttslf_b1ua728l__193d7826[disabled]:hover,.IconButton_styles_sttslf_b1ua728l__193d7826[disabled]:active{scale:none;color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_buttonStretchingFixed__193d7826{width:var(--plasma-button-width);}.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_buttonStretchingFilled__193d7826{width:100%;}.IconButton_styles_sttslf_b1ua728l__193d7826.IconButton_styles_sttslf_buttonStretchingAuto__193d7826{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
23
+
24
+ .base_1gusher_b1chvyq8__76b641f5{color:var(--plasma-spinner-color);}
25
+
26
+ .base_ova69f_bw56nfh__55225c7f{width:var(--plasma-spinner-size);height:var(--plasma-spinner-size);}
27
+
28
+ .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
29
+ .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
30
+
31
+ .Input_styles_jszc0c_i1s8bsh6__6eb57599{overflow-x:auto;overflow-y:hidden;-webkit-flex:1;-ms-flex:1;flex:1;cursor:var(--i1s8bsh6-0);-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.Input_styles_jszc0c_i1s8bsh6__6eb57599::-webkit-scrollbar{display:none;}
32
+ .Input_styles_jszc0c_t6wb9c__6eb57599{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;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 auto;box-sizing:border-box;}
33
+
34
+
35
+
36
+ .Input_styles_jszc0c_d1n4jo6t__6eb57599{position:relative;}
37
+ .Input_styles_jszc0c_i1tgbhg7__6eb57599{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;width:var(--i1tgbhg7-0);box-sizing:border-box;cursor:var(--i1tgbhg7-1);pointer-events:var(--i1tgbhg7-2);-webkit-transition:width 0.1s;transition:width 0.1s;}.Input_styles_jszc0c_i1tgbhg7__6eb57599.Input_styles_jszc0c_i1tgbhg7__6eb57599.Input_styles_jszc0c_errorAnimation__6eb57599{color:var(--plasma-number-input_error-color);-webkit-animation:Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599 0.5s forwards;animation:Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599 0.5s forwards;}@-webkit-keyframes Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599{0%{opacity:1;}12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{opacity:1;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{opacity:0;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}@keyframes Input_styles_jszc0c_shakingErrorI1tgbhg7__6eb57599{0%{opacity:1;}12.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}25%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}37.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}50%{opacity:1;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}62.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}75%{-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}87.5%{-webkit-transform:translateX(0.188rem);-ms-transform:translateX(0.188rem);transform:translateX(0.188rem);}100%{opacity:0;-webkit-transform:translateX(-0.188rem);-ms-transform:translateX(-0.188rem);transform:translateX(-0.188rem);}}
38
+ .Input_styles_jszc0c_i1il5xze__6eb57599{position:absolute;z-index:-999;visibility:hidden;top:0;left:0;opacity:0;height:0;white-space:pre;}
39
+
40
+ .NumberInput_styles_jeawjl_bwds6g__9a871afb{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;}
41
+
42
+ .base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color);--plasma-icon-button-background-color:var(--plasma-number-input_icon-button_background-color);--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-hover);--plasma-icon-button-background-color-hover:var(--plasma-number-input_icon-button_background-color-hover);--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-active);--plasma-icon-button-background-color-active:var(--plasma-number-input_icon-button_background-color-active);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9{opacity:var(--plasma-number-input_action-button_disabled-opacity);cursor:not-allowed;}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9:hover,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9:hover,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonDecrementDisabled__10de7ad9:active,.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_sj0ab1b__10de7ad9.base_cghr9q_actionButtonIncrementDisabled__10de7ad9:active{scale:none;color:var(--plasma-number-input_icon-button_color);background-color:var(--plasma-number-input_icon-button_background-color);}.base_cghr9q_bhi37xj__10de7ad9.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_i1s8bsh6__10de7ad9:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_s1ft73sv__10de7ad9{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_i1tgbhg7__10de7ad9{color:var(--plasma-number-input_color);caret-color:var(--plasma-number-input_caret_color);}.base_cghr9q_bhi37xj__10de7ad9 .base_cghr9q_az36kha__10de7ad9{color:var(--plasma-number-input_additional-text_color);}
43
+
44
+ .base_1pju5qf_b13wjeky__eb7ed667{width:var(--plasma_private-number-input_width);min-width:var(--plasma-number-input_min-width);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_sj0ab1b__eb7ed667{--plasma-icon-button-height:var(--plasma-number-input_icon-button_height);--plasma-icon-button-width:var(--plasma-number-input_icon-button_width);--plasma-icon-button-padding:var(--plasma-number-input_icon-button_padding);--plasma-icon-button-font-family:var(--plasma-number-input_icon-button_font-family);--plasma-icon-button-font-size:var(--plasma-number-input_icon-button_font-size);--plasma-icon-button-font-style:var(--plasma-number-input_icon-button_font-style);--plasma-icon-button-font-weight:var(--plasma-number-input_icon-button_font-weight);--plasma-icon-button-letter-spacing:var(--plasma-number-input_icon-button_letter-spacing);--plasma-icon-button-line-height:var(--plasma-number-input_icon-button_line-height);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_i1s8bsh6__eb7ed667{margin:var(--plasma-number-input_input-wrapper_margin);border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_t6wb9c__eb7ed667{height:var(--plasma-number-input_text-wrapper_height);padding:var(--plasma-number-input_text-wrapper_padding);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_d1n4jo6t__eb7ed667,.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_i1tgbhg7__eb7ed667,.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667{font-family:var(--plasma-number-input_font-family);font-size:var(--plasma-number-input_font-size);font-style:var(--plasma-number-input_font-style);font-weight:var(--plasma-number-input_font-weight);-webkit-letter-spacing:var(--plasma-number-input_letter-spacing);-moz-letter-spacing:var(--plasma-number-input_letter-spacing);-ms-letter-spacing:var(--plasma-number-input_letter-spacing);letter-spacing:var(--plasma-number-input_letter-spacing);line-height:var(--plasma-number-input_line-height);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667.base_1pju5qf_textBefore__eb7ed667{margin-right:var(--plasma-number-input_text-before_margin-right);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_az36kha__eb7ed667.base_1pju5qf_textAfter__eb7ed667{margin-left:var(--plasma-number-input_text-after_margin-left);}.base_1pju5qf_b13wjeky__eb7ed667 .base_1pju5qf_s1ft73sv__eb7ed667{--plasma-spinner-size:var(--plasma-number-input_loader-spinner_size);}
45
+
46
+ .base_k05biw_b1l31q8y__7da7a6d0 .base_k05biw_sj0ab1b__7da7a6d0{--plasma-icon-button-radius:var(--plasma-number-input_icon-button_radius);}
47
+
48
+ .base_1jmdljr_b15uqx38__1838da29 .base_1jmdljr_i1s8bsh6__1838da29{background-color:var(--plasma-number-input_background-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color);}.base_1jmdljr_b15uqx38__1838da29 .base_1jmdljr_i1s8bsh6__1838da29:hover{background-color:var(--plasma-number-input_background-color-hover);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-hover);}
49
+
50
+ .base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_segmentedView__1f8a3627,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_actionButtonDecrement__1f8a3627{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius) var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_actionButtonIncrement__1f8a3627{border-radius:var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627{background:transparent;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627:hover{background-color:var(--plasma-number-input_icon-button_background-color-hover);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627:active{background-color:var(--plasma-number-input_icon-button_background-color-active);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:hover,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:hover,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:active,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:active{background-color:transparent;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627{opacity:1;}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627 svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:hover svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:hover svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonDecrementDisabled__1f8a3627:active svg,.base_nl8ve_bpps6rw__1f8a3627 .base_nl8ve_sj0ab1b__1f8a3627.base_nl8ve_solidView__1f8a3627.base_nl8ve_actionButtonIncrementDisabled__1f8a3627:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627{background:var(--plasma-number-input_background-color-solid);border-radius:var(--plasma-number-input_icon-button_radius);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1s8bsh6__1f8a3627{position:relative;color:var(--plasma-number-input_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1s8bsh6__1f8a3627: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_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_s1ft73sv__1f8a3627{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1tgbhg7__1f8a3627{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_i1tgbhg7__1f8a3627:not(.base_nl8ve_errorAnimation__1f8a3627){color:var(--plasma-number-input_color-solid);}.base_nl8ve_bpps6rw__1f8a3627.base_nl8ve_solidView__1f8a3627 .base_nl8ve_az36kha__1f8a3627{color:var(--plasma-number-input_additional-text_color-solid);}
51
+
52
+ .base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0{background:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0{--plasma-icon-button-color:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color:transparent;--plasma-icon-button-color-hover:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color-hover:transparent;--plasma-icon-button-color-active:var(--plasma-number-input_icon-button_color-clear);--plasma-icon-button-background-color-active:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0:active{color:var(--plasma-number-input_icon-button_color-clear);background-color:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonDecrementDisabled__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonIncrementDisabled__50c564e0:hover,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonDecrementDisabled__50c564e0:active,.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_sj0ab1b__50c564e0.base_3l8dqb_actionButtonIncrementDisabled__50c564e0:active{color:var(--plasma-number-input_icon-button_color-clear);background-color:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1s8bsh6__50c564e0{background-color:transparent;box-shadow:transparent;}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1s8bsh6__50c564e0:focus-within{background-color:var(--plasma-number-input_background-color-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-focus);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1tgbhg7__50c564e0{caret-color:var(--plasma-number-input_caret_color);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_i1tgbhg7__50c564e0:not(.base_3l8dqb_errorAnimation__50c564e0){color:var(--plasma-number-input_color-clear);}.base_3l8dqb_b750ywr__50c564e0.base_3l8dqb_clearView__50c564e0 .base_3l8dqb_az36kha__50c564e0{color:var(--plasma-number-input_additional-text_color-clear);}
53
+
54
+ .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;}