@salutejs/plasma-new-hope 0.192.0-canary.1550.11801015277.0 → 0.192.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (716) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +22 -21
  2. package/cjs/components/Cell/Cell.js +1 -3
  3. package/cjs/components/Cell/Cell.js.map +1 -1
  4. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  5. package/cjs/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  6. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  7. package/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  8. package/cjs/components/Chip/Chip.js +1 -3
  9. package/cjs/components/Chip/Chip.js.map +1 -1
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.css +22 -21
  11. package/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  12. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  13. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  14. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  16. package/cjs/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  17. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  18. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  19. package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  20. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -21
  21. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -21
  22. package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -21
  23. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  24. package/cjs/components/DatePicker/SingleDate/SingleDate.css +22 -21
  25. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
  26. package/cjs/components/Pagination/Pagination.css +37 -86
  27. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  28. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  29. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  30. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  31. package/cjs/components/Range/Range.css +22 -21
  32. package/cjs/components/Select/Select.css +34 -83
  33. package/cjs/components/Select/Select.js +139 -179
  34. package/cjs/components/Select/Select.js.map +1 -1
  35. package/cjs/components/Select/Select.styles.js +50 -17
  36. package/cjs/components/Select/Select.styles.js.map +1 -1
  37. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  38. package/cjs/components/Select/Select.tokens.js +78 -122
  39. package/cjs/components/Select/Select.tokens.js.map +1 -1
  40. package/cjs/components/Select/hooks/useKeyboardNavigation.js +72 -19
  41. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  42. package/cjs/components/Select/hooks/usePathMaps.js +1 -4
  43. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  44. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  45. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  46. package/cjs/components/Select/ui/Inner/Inner.css +34 -83
  47. package/cjs/components/Select/ui/Inner/Inner.js +9 -9
  48. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  49. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  50. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -20
  51. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  52. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +51 -34
  53. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  54. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  55. package/cjs/components/Select/ui/Target/Target.css +17 -58
  56. package/cjs/components/Select/ui/Target/Target.js +16 -34
  57. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  58. package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
  59. package/cjs/components/Select/ui/Target/ui/Button/Button.js +14 -10
  60. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  61. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  62. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  63. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  64. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  65. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +97 -84
  66. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  67. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +103 -38
  68. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  69. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  70. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  71. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
  72. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  73. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  74. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  75. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  76. package/cjs/components/Select/utils/getButtonLabel.js +1 -1
  77. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  78. package/cjs/components/Select/utils/getView.js +2 -2
  79. package/cjs/components/Select/utils/getView.js.map +1 -1
  80. package/cjs/components/Select/variations/_size/base.js +9 -0
  81. package/cjs/components/Select/variations/_size/base.js.map +1 -0
  82. package/cjs/components/Select/variations/_size/base_x642ct.css +1 -0
  83. package/cjs/components/Select/variations/_view/base.js +9 -0
  84. package/cjs/components/Select/variations/_view/base.js.map +1 -0
  85. package/cjs/components/Select/variations/_view/base_x642ct.css +1 -0
  86. package/cjs/components/Slider/Slider.css +22 -21
  87. package/cjs/components/Slider/components/Double/Double.css +22 -21
  88. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  89. package/cjs/components/Switch/Switch.css +11 -7
  90. package/cjs/components/Switch/Switch.js +16 -7
  91. package/cjs/components/Switch/Switch.js.map +1 -1
  92. package/cjs/components/Switch/Switch.styles.js +16 -4
  93. package/cjs/components/Switch/Switch.styles.js.map +1 -1
  94. package/cjs/components/Switch/Switch.styles_bei7bh.css +6 -0
  95. package/cjs/components/Switch/Switch.tokens.js +11 -0
  96. package/cjs/components/Switch/Switch.tokens.js.map +1 -1
  97. package/cjs/components/Switch/_focused/base.js +1 -1
  98. package/cjs/components/Switch/_focused/{base_j4murk.css → base_sz3n0x.css} +1 -1
  99. package/cjs/components/Switch/_size/base.js +1 -1
  100. package/cjs/components/Switch/_size/base.js.map +1 -1
  101. package/cjs/components/Switch/_size/base_1tcl212.css +1 -0
  102. package/cjs/components/Switch/_toggleSize/base.js +9 -0
  103. package/cjs/components/Switch/_toggleSize/base.js.map +1 -0
  104. package/cjs/components/Switch/_toggleSize/base_6i0904.css +1 -0
  105. package/cjs/components/Switch/_view/base.js +1 -1
  106. package/cjs/components/Switch/_view/base.js.map +1 -1
  107. package/cjs/components/Switch/_view/base_yxkf3s.css +1 -0
  108. package/cjs/components/TextField/TextField.js +2 -11
  109. package/cjs/components/TextField/TextField.js.map +1 -1
  110. package/cjs/components/TextField/TextField.styles.js +22 -14
  111. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  112. package/{es/components/TextField/TextField.styles_j7dqpn.css → cjs/components/TextField/TextField.styles_grgg7q.css} +7 -6
  113. package/cjs/components/TextField/TextField.tokens.js +1 -2
  114. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  115. package/cjs/components/TextField/ui/Hint/Hint.css +21 -20
  116. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  117. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  118. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  119. package/cjs/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  120. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  121. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  122. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  123. package/cjs/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  124. package/cjs/components/TextField/variations/_size/base.js +1 -1
  125. package/cjs/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  126. package/cjs/components/TextField/variations/_view/base.js +1 -1
  127. package/cjs/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  128. package/cjs/index.css +72 -53
  129. package/cjs/index.js +0 -2
  130. package/cjs/index.js.map +1 -1
  131. package/cjs/utils/index.js.map +1 -1
  132. package/emotion/cjs/components/Cell/Cell.js +1 -3
  133. package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  134. package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  135. package/emotion/cjs/components/Chip/Chip.js +1 -3
  136. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  137. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  138. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  139. package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  140. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  141. package/emotion/cjs/components/Select/Select.js +136 -177
  142. package/emotion/cjs/components/Select/Select.styles.js +31 -13
  143. package/emotion/cjs/components/Select/Select.tokens.js +60 -125
  144. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  145. package/emotion/cjs/components/Select/hooks/usePathMaps.js +1 -4
  146. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  147. package/emotion/cjs/components/Select/reducers/index.js +11 -0
  148. package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
  149. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  150. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -27
  151. package/emotion/cjs/components/Select/ui/Target/Target.js +18 -38
  152. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  153. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  154. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  155. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  156. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  157. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  158. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  159. package/emotion/cjs/components/Select/utils/getButtonLabel.js +1 -1
  160. package/emotion/cjs/components/Select/utils/getView.js +2 -2
  161. package/emotion/cjs/components/Select/utils/index.js +1 -22
  162. package/emotion/cjs/components/Select/variations/_size/base.js +8 -0
  163. package/emotion/cjs/components/Select/variations/_size/tokens.json +9 -0
  164. package/emotion/cjs/components/Select/variations/_view/base.js +8 -0
  165. package/emotion/cjs/components/Select/variations/_view/tokens.json +1 -0
  166. package/emotion/cjs/components/Switch/Switch.js +17 -8
  167. package/emotion/cjs/components/Switch/Switch.styles.js +21 -5
  168. package/emotion/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  169. package/emotion/cjs/components/Switch/Switch.tokens.js +11 -0
  170. package/emotion/cjs/components/Switch/_size/base.js +1 -1
  171. package/emotion/cjs/components/Switch/_toggleSize/base.js +10 -0
  172. package/emotion/cjs/components/Switch/_view/base.js +1 -1
  173. package/emotion/cjs/components/TextField/TextField.js +3 -12
  174. package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
  175. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -2
  176. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  177. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  178. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  179. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  180. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  181. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  182. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  183. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  184. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  185. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  186. package/emotion/cjs/index.js +0 -11
  187. package/emotion/cjs/utils/index.js +1 -9
  188. package/emotion/es/components/Cell/Cell.js +1 -3
  189. package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  190. package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  191. package/emotion/es/components/Chip/Chip.js +1 -3
  192. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  193. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  194. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  195. package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  196. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  197. package/emotion/es/components/Select/Select.js +141 -182
  198. package/emotion/es/components/Select/Select.styles.js +30 -12
  199. package/emotion/es/components/Select/Select.tokens.js +60 -125
  200. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  201. package/emotion/es/components/Select/hooks/usePathMaps.js +1 -4
  202. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  203. package/emotion/es/components/Select/reducers/index.js +2 -1
  204. package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
  205. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  206. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +49 -26
  207. package/emotion/es/components/Select/ui/Target/Target.js +17 -35
  208. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  209. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  210. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  211. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  212. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  213. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
  214. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  215. package/emotion/es/components/Select/utils/getButtonLabel.js +1 -1
  216. package/emotion/es/components/Select/utils/getView.js +2 -2
  217. package/emotion/es/components/Select/utils/index.js +1 -4
  218. package/emotion/es/components/Select/variations/_size/base.js +2 -0
  219. package/emotion/es/components/Select/variations/_size/tokens.json +9 -0
  220. package/emotion/es/components/Select/variations/_view/base.js +2 -0
  221. package/emotion/es/components/Select/variations/_view/tokens.json +1 -0
  222. package/emotion/es/components/Switch/Switch.js +13 -4
  223. package/emotion/es/components/Switch/Switch.styles.js +20 -4
  224. package/emotion/es/components/Switch/Switch.template-doc.mdx +37 -1
  225. package/emotion/es/components/Switch/Switch.tokens.js +11 -0
  226. package/emotion/es/components/Switch/_size/base.js +2 -2
  227. package/emotion/es/components/Switch/_toggleSize/base.js +4 -0
  228. package/emotion/es/components/Switch/_view/base.js +2 -2
  229. package/emotion/es/components/TextField/TextField.js +3 -12
  230. package/emotion/es/components/TextField/TextField.styles.js +40 -36
  231. package/emotion/es/components/TextField/TextField.tokens.js +1 -2
  232. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  233. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  234. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  235. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  236. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.config.js +11 -4
  237. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  238. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  239. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  240. package/emotion/es/examples/plasma_web/components/Switch/Switch.config.js +11 -4
  241. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  242. package/emotion/es/index.js +0 -1
  243. package/emotion/es/utils/index.js +1 -2
  244. package/es/components/Autocomplete/Autocomplete.css +22 -21
  245. package/es/components/Cell/Cell.js +1 -3
  246. package/es/components/Cell/Cell.js.map +1 -1
  247. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  248. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  249. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  250. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  251. package/es/components/Chip/Chip.js +1 -3
  252. package/es/components/Chip/Chip.js.map +1 -1
  253. package/es/components/Combobox/ComboboxNew/Combobox.css +22 -21
  254. package/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  255. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  256. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  257. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  258. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  259. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  260. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  261. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  262. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  263. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +22 -21
  264. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +22 -21
  265. package/es/components/DatePicker/RangeDate/RangeDate.css +22 -21
  266. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  267. package/es/components/DatePicker/SingleDate/SingleDate.css +22 -21
  268. package/es/components/Dropdown/FloatingPopover.js.map +1 -1
  269. package/es/components/Pagination/Pagination.css +37 -86
  270. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  271. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  272. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  273. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  274. package/es/components/Range/Range.css +22 -21
  275. package/es/components/Select/Select.css +34 -83
  276. package/es/components/Select/Select.js +142 -182
  277. package/es/components/Select/Select.js.map +1 -1
  278. package/es/components/Select/Select.styles.js +48 -18
  279. package/es/components/Select/Select.styles.js.map +1 -1
  280. package/es/components/Select/Select.styles_768h42.css +5 -0
  281. package/es/components/Select/Select.tokens.js +78 -123
  282. package/es/components/Select/Select.tokens.js.map +1 -1
  283. package/es/components/Select/hooks/useKeyboardNavigation.js +73 -19
  284. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  285. package/es/components/Select/hooks/usePathMaps.js +1 -4
  286. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  287. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  288. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  289. package/es/components/Select/ui/Inner/Inner.css +34 -83
  290. package/es/components/Select/ui/Inner/Inner.js +10 -10
  291. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  292. package/es/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  293. package/es/components/Select/ui/Inner/ui/Item/Item.js +14 -22
  294. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  295. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -33
  296. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  297. package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  298. package/es/components/Select/ui/Target/Target.css +17 -58
  299. package/es/components/Select/ui/Target/Target.js +17 -35
  300. package/es/components/Select/ui/Target/Target.js.map +1 -1
  301. package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
  302. package/es/components/Select/ui/Target/ui/Button/Button.js +15 -11
  303. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  304. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  305. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  306. package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  307. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  308. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  309. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  310. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +95 -39
  311. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  312. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  313. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  314. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
  315. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  316. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +18 -0
  317. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  318. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  319. package/es/components/Select/utils/getButtonLabel.js +1 -1
  320. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  321. package/es/components/Select/utils/getView.js +2 -2
  322. package/es/components/Select/utils/getView.js.map +1 -1
  323. package/es/components/Select/variations/_size/base.js +5 -0
  324. package/es/components/Select/variations/_size/base.js.map +1 -0
  325. package/es/components/Select/variations/_size/base_x642ct.css +1 -0
  326. package/es/components/Select/variations/_view/base.js +5 -0
  327. package/es/components/Select/variations/_view/base.js.map +1 -0
  328. package/es/components/Select/variations/_view/base_x642ct.css +1 -0
  329. package/es/components/Slider/Slider.css +22 -21
  330. package/es/components/Slider/components/Double/Double.css +22 -21
  331. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  332. package/es/components/Switch/Switch.css +11 -7
  333. package/es/components/Switch/Switch.js +17 -8
  334. package/es/components/Switch/Switch.js.map +1 -1
  335. package/es/components/Switch/Switch.styles.js +15 -5
  336. package/es/components/Switch/Switch.styles.js.map +1 -1
  337. package/es/components/Switch/Switch.styles_bei7bh.css +6 -0
  338. package/es/components/Switch/Switch.tokens.js +11 -0
  339. package/es/components/Switch/Switch.tokens.js.map +1 -1
  340. package/es/components/Switch/_focused/base.js +1 -1
  341. package/es/components/Switch/_focused/{base_j4murk.css → base_sz3n0x.css} +1 -1
  342. package/es/components/Switch/_size/base.js +1 -1
  343. package/es/components/Switch/_size/base.js.map +1 -1
  344. package/es/components/Switch/_size/base_1tcl212.css +1 -0
  345. package/es/components/Switch/_toggleSize/base.js +5 -0
  346. package/es/components/Switch/_toggleSize/base.js.map +1 -0
  347. package/es/components/Switch/_toggleSize/base_6i0904.css +1 -0
  348. package/es/components/Switch/_view/base.js +1 -1
  349. package/es/components/Switch/_view/base.js.map +1 -1
  350. package/es/components/Switch/_view/base_yxkf3s.css +1 -0
  351. package/es/components/TextField/TextField.js +2 -11
  352. package/es/components/TextField/TextField.js.map +1 -1
  353. package/es/components/TextField/TextField.styles.js +22 -14
  354. package/es/components/TextField/TextField.styles.js.map +1 -1
  355. package/{cjs/components/TextField/TextField.styles_j7dqpn.css → es/components/TextField/TextField.styles_grgg7q.css} +7 -6
  356. package/es/components/TextField/TextField.tokens.js +1 -2
  357. package/es/components/TextField/TextField.tokens.js.map +1 -1
  358. package/es/components/TextField/ui/Hint/Hint.css +21 -20
  359. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  360. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  361. package/es/components/TextField/variations/_clear/base.js +1 -1
  362. package/es/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  363. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  364. package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  365. package/es/components/TextField/variations/_read-only/base.js +1 -1
  366. package/es/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  367. package/es/components/TextField/variations/_size/base.js +1 -1
  368. package/es/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  369. package/es/components/TextField/variations/_view/base.js +1 -1
  370. package/es/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  371. package/es/index.css +72 -53
  372. package/es/index.js +0 -1
  373. package/es/index.js.map +1 -1
  374. package/es/utils/index.js.map +1 -1
  375. package/package.json +2 -2
  376. package/styled-components/cjs/components/Cell/Cell.js +1 -3
  377. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  378. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  379. package/styled-components/cjs/components/Chip/Chip.js +1 -3
  380. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
  381. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  382. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  383. package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  384. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  385. package/styled-components/cjs/components/Select/Select.js +136 -177
  386. package/styled-components/cjs/components/Select/Select.styles.js +27 -12
  387. package/styled-components/cjs/components/Select/Select.tokens.js +60 -125
  388. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  389. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +1 -4
  390. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  391. package/styled-components/cjs/components/Select/reducers/index.js +11 -0
  392. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
  393. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  394. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -20
  395. package/styled-components/cjs/components/Select/ui/Target/Target.js +18 -38
  396. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  397. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  398. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  399. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  400. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  401. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
  402. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  403. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +1 -1
  404. package/styled-components/cjs/components/Select/utils/getView.js +2 -2
  405. package/styled-components/cjs/components/Select/utils/index.js +1 -22
  406. package/styled-components/cjs/components/Select/variations/_size/base.js +8 -0
  407. package/styled-components/cjs/components/Select/variations/_size/tokens.json +9 -0
  408. package/styled-components/cjs/components/Select/variations/_view/base.js +8 -0
  409. package/styled-components/cjs/components/Select/variations/_view/tokens.json +1 -0
  410. package/styled-components/cjs/components/Switch/Switch.js +17 -8
  411. package/styled-components/cjs/components/Switch/Switch.styles.js +11 -5
  412. package/styled-components/cjs/components/Switch/Switch.template-doc.mdx +37 -1
  413. package/styled-components/cjs/components/Switch/Switch.tokens.js +11 -0
  414. package/styled-components/cjs/components/Switch/_size/base.js +1 -1
  415. package/styled-components/cjs/components/Switch/_toggleSize/base.js +10 -0
  416. package/styled-components/cjs/components/Switch/_view/base.js +1 -1
  417. package/styled-components/cjs/components/TextField/TextField.js +2 -11
  418. package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
  419. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -2
  420. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  421. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  422. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  423. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  424. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  425. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  426. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  427. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  428. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  429. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  430. package/styled-components/cjs/index.js +0 -11
  431. package/styled-components/cjs/utils/index.js +1 -9
  432. package/styled-components/es/components/Cell/Cell.js +1 -3
  433. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  434. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  435. package/styled-components/es/components/Chip/Chip.js +1 -3
  436. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
  437. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  438. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  439. package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  440. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  441. package/styled-components/es/components/Select/Select.js +141 -182
  442. package/styled-components/es/components/Select/Select.styles.js +26 -11
  443. package/styled-components/es/components/Select/Select.tokens.js +60 -125
  444. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  445. package/styled-components/es/components/Select/hooks/usePathMaps.js +1 -4
  446. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  447. package/styled-components/es/components/Select/reducers/index.js +2 -1
  448. package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
  449. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  450. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -19
  451. package/styled-components/es/components/Select/ui/Target/Target.js +17 -35
  452. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  453. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  454. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  455. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  456. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  457. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
  458. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  459. package/styled-components/es/components/Select/utils/getButtonLabel.js +1 -1
  460. package/styled-components/es/components/Select/utils/getView.js +2 -2
  461. package/styled-components/es/components/Select/utils/index.js +1 -4
  462. package/styled-components/es/components/Select/variations/_size/base.js +2 -0
  463. package/styled-components/es/components/Select/variations/_size/tokens.json +9 -0
  464. package/styled-components/es/components/Select/variations/_view/base.js +2 -0
  465. package/styled-components/es/components/Select/variations/_view/tokens.json +1 -0
  466. package/styled-components/es/components/Switch/Switch.js +13 -4
  467. package/styled-components/es/components/Switch/Switch.styles.js +10 -4
  468. package/styled-components/es/components/Switch/Switch.template-doc.mdx +37 -1
  469. package/styled-components/es/components/Switch/Switch.tokens.js +11 -0
  470. package/styled-components/es/components/Switch/_size/base.js +2 -2
  471. package/styled-components/es/components/Switch/_toggleSize/base.js +4 -0
  472. package/styled-components/es/components/Switch/_view/base.js +2 -2
  473. package/styled-components/es/components/TextField/TextField.js +2 -11
  474. package/styled-components/es/components/TextField/TextField.styles.js +15 -12
  475. package/styled-components/es/components/TextField/TextField.tokens.js +1 -2
  476. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  477. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  478. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  479. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  480. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.config.js +9 -2
  481. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +7 -1
  482. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  483. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  484. package/styled-components/es/examples/plasma_web/components/Switch/Switch.config.js +9 -2
  485. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +14 -1
  486. package/styled-components/es/index.js +0 -1
  487. package/styled-components/es/utils/index.js +1 -2
  488. package/types/components/Attach/ui/Button/Button.styles.d.ts +2 -2
  489. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +4 -4
  490. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -16
  491. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  492. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +2 -2
  493. package/types/components/Cell/Cell.d.ts.map +1 -1
  494. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -1
  495. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -1
  496. package/types/components/Chip/Chip.d.ts.map +1 -1
  497. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  498. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
  499. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  500. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -1
  501. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  502. package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
  503. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +3 -1
  504. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
  505. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -16
  506. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  507. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -16
  508. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  509. package/types/components/EmptyState/EmptyState.styles.d.ts +2 -2
  510. package/types/components/Notification/Notification.styles.d.ts +2 -2
  511. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +2 -2
  512. package/types/components/Pagination/Pagination.styles.d.ts +4 -4
  513. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +40 -40
  514. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +2 -2
  515. package/types/components/Range/Range.styles.d.ts +16 -16
  516. package/types/components/Range/Range.styles.d.ts.map +1 -1
  517. package/types/components/Select/Select.d.ts +11 -5
  518. package/types/components/Select/Select.d.ts.map +1 -1
  519. package/types/components/Select/Select.styles.d.ts +9 -0
  520. package/types/components/Select/Select.styles.d.ts.map +1 -1
  521. package/types/components/Select/Select.tokens.d.ts +58 -121
  522. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  523. package/types/components/Select/Select.types.d.ts +20 -41
  524. package/types/components/Select/Select.types.d.ts.map +1 -1
  525. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +11 -5
  526. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  527. package/types/components/Select/hooks/usePathMaps.d.ts +1 -2
  528. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
  529. package/types/components/Select/index.d.ts +1 -1
  530. package/types/components/Select/index.d.ts.map +1 -1
  531. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  532. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  533. package/types/components/Select/reducers/index.d.ts +1 -0
  534. package/types/components/Select/reducers/index.d.ts.map +1 -1
  535. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
  536. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  537. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +2 -32
  538. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  539. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +0 -9
  540. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
  541. package/types/components/Select/ui/Target/Target.d.ts +2 -14
  542. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  543. package/types/components/Select/ui/Target/Target.types.d.ts +9 -10
  544. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  545. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
  546. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  547. package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
  548. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
  549. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
  550. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
  551. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  552. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -628
  553. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  554. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -1
  555. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  556. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
  557. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
  558. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
  559. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
  560. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
  561. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
  562. package/types/components/Select/utils/getView.d.ts +1 -1
  563. package/types/components/Select/utils/getView.d.ts.map +1 -1
  564. package/types/components/Select/utils/index.d.ts +0 -3
  565. package/types/components/Select/utils/index.d.ts.map +1 -1
  566. package/types/components/Select/variations/_size/base.d.ts +2 -0
  567. package/types/components/Select/variations/_size/base.d.ts.map +1 -0
  568. package/types/components/Select/variations/_view/base.d.ts +2 -0
  569. package/types/components/Select/variations/_view/base.d.ts.map +1 -0
  570. package/types/components/Slider/components/Double/Double.styles.d.ts +16 -16
  571. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  572. package/types/components/Switch/Switch.d.ts +3 -0
  573. package/types/components/Switch/Switch.d.ts.map +1 -1
  574. package/types/components/Switch/Switch.styles.d.ts +2 -0
  575. package/types/components/Switch/Switch.styles.d.ts.map +1 -1
  576. package/types/components/Switch/Switch.tokens.d.ts +9 -0
  577. package/types/components/Switch/Switch.tokens.d.ts.map +1 -1
  578. package/types/components/Switch/Switch.types.d.ts +10 -2
  579. package/types/components/Switch/Switch.types.d.ts.map +1 -1
  580. package/types/components/Switch/_size/base.d.ts.map +1 -1
  581. package/types/components/Switch/_toggleSize/base.d.ts +2 -0
  582. package/types/components/Switch/_toggleSize/base.d.ts.map +1 -0
  583. package/types/components/Switch/_view/base.d.ts.map +1 -1
  584. package/types/components/TextField/TextField.d.ts.map +1 -1
  585. package/types/components/TextField/TextField.styles.d.ts +3 -1
  586. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  587. package/types/components/TextField/TextField.tokens.d.ts +0 -1
  588. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  589. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +1 -3
  590. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  591. package/types/components/Toast/Toast.styles.d.ts +2 -2
  592. package/types/components/Toast/utils.d.ts +2 -2
  593. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +8 -8
  594. package/types/examples/plasma_b2c/components/Button/Button.d.ts +2 -2
  595. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +24 -24
  596. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +2 -2
  597. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -16
  598. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  599. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  600. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts.map +1 -1
  601. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +7 -15
  602. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  603. package/types/examples/plasma_b2c/components/Select/Select.d.ts +46 -53
  604. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  605. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts +7 -0
  606. package/types/examples/plasma_b2c/components/Switch/Switch.config.d.ts.map +1 -1
  607. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts +6 -0
  608. package/types/examples/plasma_b2c/components/Switch/Switch.d.ts.map +1 -1
  609. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +16 -16
  610. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -16
  611. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  612. package/types/examples/plasma_web/components/Attach/Attach.d.ts +8 -8
  613. package/types/examples/plasma_web/components/Button/Button.d.ts +2 -2
  614. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +24 -24
  615. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +2 -2
  616. package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -16
  617. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  618. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
  619. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts.map +1 -1
  620. package/types/examples/plasma_web/components/Select/Select.config.d.ts +7 -15
  621. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  622. package/types/examples/plasma_web/components/Select/Select.d.ts +46 -53
  623. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  624. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts +7 -0
  625. package/types/examples/plasma_web/components/Switch/Switch.config.d.ts.map +1 -1
  626. package/types/examples/plasma_web/components/Switch/Switch.d.ts +6 -0
  627. package/types/examples/plasma_web/components/Switch/Switch.d.ts.map +1 -1
  628. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +16 -16
  629. package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -16
  630. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  631. package/types/index.d.ts +0 -1
  632. package/types/index.d.ts.map +1 -1
  633. package/types/types/index.d.ts +0 -2
  634. package/types/types/index.d.ts.map +1 -1
  635. package/types/utils/index.d.ts +0 -1
  636. package/types/utils/index.d.ts.map +1 -1
  637. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  638. package/cjs/components/Select/FloatingPopover.js +0 -87
  639. package/cjs/components/Select/FloatingPopover.js.map +0 -1
  640. package/cjs/components/Select/Select.styles_1p5c9p3.css +0 -2
  641. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  642. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  643. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
  644. package/cjs/components/Select/utils/getFallbackPlacements.js +0 -15
  645. package/cjs/components/Select/utils/getFallbackPlacements.js.map +0 -1
  646. package/cjs/components/Select/utils/getItemId.js +0 -10
  647. package/cjs/components/Select/utils/getItemId.js.map +0 -1
  648. package/cjs/components/Select/utils/getPlacement.js +0 -13
  649. package/cjs/components/Select/utils/getPlacement.js.map +0 -1
  650. package/cjs/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  651. package/cjs/components/Switch/_size/base_1rjzpi4.css +0 -1
  652. package/cjs/components/Switch/_view/base_1mtyz12.css +0 -1
  653. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  654. package/cjs/utils/fixedForwardRef.js +0 -12
  655. package/cjs/utils/fixedForwardRef.js.map +0 -1
  656. package/emotion/cjs/components/Select/FloatingPopover.js +0 -91
  657. package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  658. package/emotion/cjs/components/Select/utils/getItemId.js +0 -9
  659. package/emotion/cjs/components/Select/utils/getPlacement.js +0 -12
  660. package/emotion/cjs/types/DistributiveOmit.js +0 -5
  661. package/emotion/cjs/types/DistributivePick.js +0 -5
  662. package/emotion/cjs/utils/fixedForwardRef.js +0 -11
  663. package/emotion/es/components/Select/FloatingPopover.js +0 -84
  664. package/emotion/es/components/Select/utils/getFallbackPlacements.js +0 -8
  665. package/emotion/es/components/Select/utils/getItemId.js +0 -3
  666. package/emotion/es/components/Select/utils/getPlacement.js +0 -6
  667. package/emotion/es/types/DistributiveOmit.js +0 -1
  668. package/emotion/es/types/DistributivePick.js +0 -1
  669. package/emotion/es/utils/fixedForwardRef.js +0 -4
  670. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  671. package/es/components/Select/FloatingPopover.js +0 -83
  672. package/es/components/Select/FloatingPopover.js.map +0 -1
  673. package/es/components/Select/Select.styles_1p5c9p3.css +0 -2
  674. package/es/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  675. package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  676. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_q4kc1p.css +0 -3
  677. package/es/components/Select/utils/getFallbackPlacements.js +0 -11
  678. package/es/components/Select/utils/getFallbackPlacements.js.map +0 -1
  679. package/es/components/Select/utils/getItemId.js +0 -6
  680. package/es/components/Select/utils/getItemId.js.map +0 -1
  681. package/es/components/Select/utils/getPlacement.js +0 -9
  682. package/es/components/Select/utils/getPlacement.js.map +0 -1
  683. package/es/components/Switch/Switch.styles_1kk0qzz.css +0 -4
  684. package/es/components/Switch/_size/base_1rjzpi4.css +0 -1
  685. package/es/components/Switch/_view/base_1mtyz12.css +0 -1
  686. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  687. package/es/utils/fixedForwardRef.js +0 -8
  688. package/es/utils/fixedForwardRef.js.map +0 -1
  689. package/styled-components/cjs/components/Select/FloatingPopover.js +0 -91
  690. package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  691. package/styled-components/cjs/components/Select/utils/getItemId.js +0 -9
  692. package/styled-components/cjs/components/Select/utils/getPlacement.js +0 -12
  693. package/styled-components/cjs/types/DistributiveOmit.js +0 -5
  694. package/styled-components/cjs/types/DistributivePick.js +0 -5
  695. package/styled-components/cjs/utils/fixedForwardRef.js +0 -11
  696. package/styled-components/es/components/Select/FloatingPopover.js +0 -84
  697. package/styled-components/es/components/Select/utils/getFallbackPlacements.js +0 -8
  698. package/styled-components/es/components/Select/utils/getItemId.js +0 -3
  699. package/styled-components/es/components/Select/utils/getPlacement.js +0 -6
  700. package/styled-components/es/types/DistributiveOmit.js +0 -1
  701. package/styled-components/es/types/DistributivePick.js +0 -1
  702. package/styled-components/es/utils/fixedForwardRef.js +0 -4
  703. package/types/components/Select/FloatingPopover.d.ts +0 -5
  704. package/types/components/Select/FloatingPopover.d.ts.map +0 -1
  705. package/types/components/Select/utils/getFallbackPlacements.d.ts +0 -4
  706. package/types/components/Select/utils/getFallbackPlacements.d.ts.map +0 -1
  707. package/types/components/Select/utils/getItemId.d.ts +0 -2
  708. package/types/components/Select/utils/getItemId.d.ts.map +0 -1
  709. package/types/components/Select/utils/getPlacement.d.ts +0 -4
  710. package/types/components/Select/utils/getPlacement.d.ts.map +0 -1
  711. package/types/types/DistributiveOmit.d.ts +0 -2
  712. package/types/types/DistributiveOmit.d.ts.map +0 -1
  713. package/types/types/DistributivePick.d.ts +0 -2
  714. package/types/types/DistributivePick.d.ts.map +0 -1
  715. package/types/utils/fixedForwardRef.d.ts +0 -3
  716. package/types/utils/fixedForwardRef.d.ts.map +0 -1
@@ -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 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(value 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 listWidth={listWidth}\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","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,aAAa,CAAc,EAAiB,EAAC;;AAEpE;AACA;AACA;IACaC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA+D,EAAA;AAAA,EAAA,oBACxFC,UAAU,CAAkC,UA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lK,IAAAA,IAAI,EAAE;AACFmK,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDnK,IAAAA,IAAI,EAAE;AACFkK,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDjK,IAAAA,QAAQ,EAAE;AACN+J,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNtK,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 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(value 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 listWidth={listWidth}\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,gBAA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iK,cAAc,GAAG;AAC1BC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEhM,YAAY;AACpBiM,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRnK,IAAAA,IAAI,EAAE;AACFoK,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDpK,IAAAA,IAAI,EAAE;AACFmK,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDlK,IAAAA,QAAQ,EAAE;AACNgK,MAAAA,GAAG,EAAEE,MAAAA;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;;;;"}
@@ -51,6 +51,7 @@ var tokens = {
51
51
  checkboxIconColor: '--plasma-combobox-checkbox-icon-color',
52
52
  checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',
53
53
  indicatorSize: '--plasma-combobox-indicator-size',
54
+ targetHeight: '--plasma-combobox-target-height',
54
55
  // Токены для TextField
55
56
  textFieldColor: '--plasma-combobox-new-textfield-color',
56
57
  textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.tokens.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownItemIsFocused: 'dropdown-item-is-focused',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n dropdownItemIsActive: 'dropdown-item-is-active',\n selectTargetArrow: 'combobox-target-arrow',\n arrowInverse: 'arrow-inverse',\n textfieldTarget: 'combobox-textfield-target',\n selectChipIsFocused: 'combobox-chip-is-focused',\n selectWithoutBoxShadow: 'combobox-without-box-shadow',\n selectItemCheckbox: 'combobox-item-checkbox',\n selectSpinner: 'combobox-spinner',\n emptyStateWrapper: 'combobox-empty-state-wrapper',\n};\n\nexport const tokens = {\n borderRadius: '--plasma-combobox-border-radius',\n padding: '--plasma-combobox-padding',\n focusOffset: '--plasma-combobox-focus-offset',\n\n fontFamily: '--plasma-combobox-font-family',\n fontSize: '--plasma-combobox-font-size',\n fontStyle: '--plasma-combobox-font-style',\n fontWeight: '--plasma-combobox-font-weight',\n fontLetterSpacing: '--plasma-combobox-font-letter-spacing',\n fontLineHeight: '--plasma-combobox-font-line-height',\n\n dropdownBorderColor: '--plasma-select-dropdown-border-color',\n dropdownBorderWidth: '--plasma-select-dropdown-border-width',\n\n itemHeight: '--plasma-combobox-item-height',\n itemBorderRadius: '--plasma-combobox-item-border-radius',\n itemPadding: '--plasma-combobox-item-padding',\n itemPaddingTight: '--plasma-combobox-item-padding-tight',\n itemIconSize: '--plasma-combobox-item-icon-size',\n itemIconSizeTight: '--plasma-combobox-item-icon-size-tight',\n itemIconMargin: '--plasma-combobox-item-icon-margin',\n itemBackgroundHover: '--plasma-combobox-item-background-hover',\n\n cellPadding: '--plasma-combobox-cell-padding',\n cellPaddingLeftContent: '--plasma-combobox-cell-padding-left-content',\n cellPaddingContent: '--plasma-combobox-cell-padding-content',\n cellPaddingRightContent: '--plasma-combobox-cell-padding-right-content',\n cellTextboxGap: '--plasma-combobox-cell-textbox-gap',\n cellGap: '--plasma-combobox-cell-gap',\n cellTitleFontFamily: '--plasma-combobox-cell-title-font-family',\n cellTitleFontSize: '--plasma-combobox-cell-title-font-size',\n cellTitleFontStyle: '--plasma-combobox-cell-title-font-style',\n cellTitleFontWeight: '--plasma-combobox-cell-title-font-weight',\n cellTitleLetterSpacing: '--plasma-combobox-cell-title-letter-spacing',\n cellTitleLineHeight: '--plasma-combobox-cell-title-line-height',\n\n checkboxTriggerSize: '--plasma-combobox-checkbox-trigger-size',\n checkboxTriggerSizeTight: '--plasma-combobox-checkbox-trigger-size-tight',\n checkboxTriggerBorderRadius: '--plasma-combobox-checkbox-trigger-border-radius',\n checkboxTriggerBorderRadiusTight: '--plasma-combobox-checkbox-trigger-border-radius-tight',\n checkboxFillColor: '--plasma-combobox-checkbox-fill-color',\n checkboxIconColor: '--plasma-combobox-checkbox-icon-color',\n checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',\n\n indicatorSize: '--plasma-combobox-indicator-size',\n\n // Токены для TextField\n textFieldColor: '--plasma-combobox-new-textfield-color',\n textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',\n\n textFieldBackgroundColor: '--plasma-combobox-new-textfield-background-color',\n textFieldBackgroundColorHover: '--plasma-combobox-new-textfield-background-color-hover',\n textFieldBackgroundColorFocus: '--plasma-combobox-new-textfield-background-color-focus',\n\n textFieldBorderColor: '--plasma-combobox-new-textfield-border-color',\n textFieldBorderColorHover: '--plasma-combobox-new-textfield-border-color-hover',\n textFieldBorderColorFocus: '--plasma-combobox-new-textfield-border-color-focus',\n\n textFieldColorReadOnly: '--plasma-combobox-new-textfield-color-readonly',\n textFieldBackgroundColorReadOnly: '--plasma-combobox-new-textfield-bg-color-readonly',\n textFieldBorderColorReadOnly: '--plasma-combobox-new-textfield-border-color-readonly',\n textFieldPlaceholderColorReadOnly: '--plasma-combobox-new-textfield-placeholder-color-readonly',\n\n textFieldCaretColor: '--plasma-combobox-new-textfield-caret-color',\n textFieldPlaceholderColor: '--plasma-combobox-new-textfield-placeholder-color',\n textFieldPlaceholderColorFocus: '--plasma-combobox-new-textfield-placeholder-color-focus',\n textFieldClearPlaceholderColor: '--plasma-combobox-new-textfield-clear-placeholder-color',\n textFieldClearPlaceholderColorFocus: '--plasma-combobox-new-textfield-clear-placeholder-color-focus',\n textFieldOptionalColor: '--plasma-combobox-new-textfield-optional-color',\n\n textFieldHeight: '--plasma-combobox-new-textfield-height',\n textFieldBorderWidth: '--plasma-combobox-new-textfield-border-width',\n textFieldBorderRadius: '--plasma-combobox-new-textfield-border-radius',\n\n textFieldPadding: '--plasma-combobox-new-textfield-padding',\n textFieldPaddingWithChips: '--plasma-combobox-new-textfield-padding-with-chips',\n\n textFieldLeftContentMargin: '--plasma-combobox-new-textfield-left-content-margin',\n textFieldRightContentMargin: '--plasma-combobox-new-textfield-right-content-margin',\n\n textFieldFontFamily: '--plasma-combobox-new-textfield-font-family',\n textFieldFontStyle: '--plasma-combobox-new-textfield-font-style',\n textFieldFontSize: '--plasma-combobox-new-textfield-font-size',\n textFieldFontWeight: '--plasma-combobox-new-textfield-font-weight',\n textFieldLetterSpacing: '--plasma-combobox-new-textfield-letter-spacing',\n textFieldLineHeight: '--plasma-combobox-new-textfield-line-height',\n\n textFieldContentSlotColor: '--plasma-combobox-new-textfield-content-slot-color',\n textFieldContentSlotColorHover: '--plasma-combobox-new-textfield-content-slot-color-hover',\n textFieldContentSlotColorActive: '--plasma-combobox-new-textfield-content-slot-color-active',\n\n textFieldContentSlotRightColor: '--plasma-combobox-new-textfield-content-right-slot-color',\n textFieldContentSlotRightColorHover: '--plasma-combobox-new-textfield-content-right-slot-color-hover',\n textFieldContentSlotRightColorActive: '--plasma-combobox-new-textfield-content-right-slot-color-active',\n\n textFieldLabelColor: '--plasma-combobox-new-textfield-label-color',\n textFieldLabelColorReadOnly: '--plasma-combobox-new-textfield-label-color-readonly',\n textFieldLabelOffset: '--plasma-combobox-new-textfield-label-offset',\n textFieldClearLabelOffset: '--plasma-combobox-new-textfield-clear-label-offset',\n\n textFieldLabelFontFamily: '--plasma-combobox-new-textfield-label-font-family',\n textFieldLabelFontStyle: '--plasma-combobox-new-textfield-label-font-style',\n textFieldLabelFontSize: '--plasma-combobox-new-textfield-label-font-size',\n textFieldLabelFontWeight: '--plasma-combobox-new-textfield-label-font-weight',\n textFieldLabelLetterSpacing: '--plasma-combobox-new-textfield-label-letter-spacing',\n textFieldLabelLineHeight: '--plasma-combobox-new-textfield-label-line-height',\n\n textFieldLabelInnerFontFamily: '--plasma-combobox-new-textfield-placement_inner-label-font-family',\n textFieldLabelInnerFontStyle: '--plasma-combobox-new-textfield-placement_inner-label-font-style',\n textFieldLabelInnerFontSize: '--plasma-combobox-new-textfield-placement_inner-label-font-size',\n textFieldLabelInnerFontWeight: '--plasma-combobox-new-textfield-placement_inner-label-font-weight',\n textFieldLabelInnerLetterSpacing: '--plasma-combobox-new-textfield-placement_inner-label-letter-spacing',\n textFieldLabelInnerLineHeight: '--plasma-combobox-new-textfield-placement_inner-label-line-height',\n\n textFieldLabelInnerPadding: '--plasma-combobox-new-textfield-placement_inner-label-padding',\n textFieldContentLabelInnerPadding: '--plasma-combobox-new-textfield-placement_inner-content-padding',\n\n textFieldTitleCaptionColor: '--plasma-combobox-new-textfield-title-caption-color',\n textFieldTitleCaptionColorReadOnly: '--plasma-combobox-new-textfield-title-caption-color-readonly',\n textFieldTitleCaptionInnerLabelOffset: '--plasma-combobox-new-textfield-title-caption-label-inner-offset',\n\n textFieldTitleCaptionFontFamily: '--plasma-combobox-new-textfield-title-caption-font-family',\n textFieldTitleCaptionFontStyle: '--plasma-combobox-new-textfield-title-caption-font-style',\n textFieldTitleCaptionFontSize: '--plasma-combobox-new-textfield-title-caption-font-size',\n textFieldTitleCaptionFontWeight: '--plasma-combobox-new-textfield-title-caption-font-weight',\n textFieldTitleCaptionLetterSpacing: '--plasma-combobox-new-textfield-title-caption-letter-spacing',\n textFieldTitleCaptionLineHeight: '--plasma-combobox-new-textfield-title-caption-line-height',\n\n textFieldLeftHelperColor: '--plasma-combobox-new-textfield-left-helper-color',\n textFieldLeftHelperColorReadOnly: '--plasma-combobox-new-textfield-left-helper-color-readonly',\n textFieldLeftHelperOffset: '--plasma-combobox-new-textfield-left-helper-offset',\n\n textFieldLeftHelperFontFamily: '--plasma-combobox-new-textfield-left-helper-font-family',\n textFieldLeftHelperFontStyle: '--plasma-combobox-new-textfield-left-helper-font-style',\n textFieldLeftHelperFontSize: '--plasma-combobox-new-textfield-left-helper-font-size',\n textFieldLeftHelperFontWeight: '--plasma-combobox-new-textfield-left-helper-font-weight',\n textFieldLeftHelperLetterSpacing: '--plasma-combobox-new-textfield-left-helper-letter-spacing',\n textFieldLeftHelperLineHeight: '--plasma-combobox-new-textfield-left-helper-line-height',\n\n textFieldTextBeforeColor: '--plasma-combobox-new-textfield-before-text-color',\n textFieldTextAfterColor: '--plasma-combobox-new-textfield-after-text-color',\n textFieldTextBeforeMargin: '--plasma-combobox-new-textfield-before-text-margin',\n textFieldTextAfterMargin: '--plasma-combobox-new-textfield-after-text-margin',\n\n textFieldDisabledOpacity: '--plasma-combobox-new-textfield-disabled-opacity',\n\n textFieldChipHeight: '--plasma-combobox-new-textfield-chip-height',\n textFieldChipBorderRadius: '--plasma-combobox-new-textfield-chip-border-radius',\n textFieldChipGap: '--plasma-combobox-new-textfield-chip-gap',\n textFieldChipBackground: '--plasma-combobox-new-textfield--chip-background',\n textFieldChipColor: '--plasma-combobox-new-textfield-chip-color',\n textFieldChipBackgroundHover: '--plasma-combobox-new-textfield-chip-background-hover',\n textFieldChipColorHover: '--plasma-combobox-new-textfield-chip-color-hover',\n textFieldChipScaleHover: '--plasma-combobox-new-textfield-chip-scale-hover',\n textFieldChipBackgroundReadOnly: '--plasma-combobox-new-textfield-chip-background-read-only',\n textFieldChipColorReadOnly: '--plasma-combobox-new-textfield-chip-color-read-only',\n textFieldChipBackgroundReadOnlyHover: '--plasma-combobox-new-textfield-chip-background-read-only-hover',\n textFieldChipColorReadOnlyHover: '--plasma-combobox-new-textfield-chip-color-read-only-hover',\n textFieldChipBackgroundActive: '--plasma-combobox-new-textfield-chip-background-active',\n textFieldChipColorActive: '--plasma-combobox-new-textfield-chip-color-active',\n textFieldChipScaleActive: '--plasma-combobox-new-textfield-chip-scale-active',\n textFieldChipCloseIconColor: '--plasma-combobox-new-textfield-chip-close-icons-color',\n textFieldChipOutlineSize: '--plasma-combobox-new-textfield-chip-outline-size',\n textFieldChipWidth: '--plasma-combobox-new-textfield-chip-width',\n textFieldChipPaddingTop: '--plasma-combobox-new-textfield-chip-padding-top',\n textFieldChipPaddingRight: '--plasma-combobox-new-textfield-chip-padding-right',\n textFieldChipPaddingBottom: '--plasma-combobox-new-textfield-chip-padding-bottom',\n textFieldChipPaddingLeft: '--plasma-combobox-new-textfield-chip-padding-left',\n textFieldChipCloseIconSize: '--plasma-combobox-new-textfield-chip-close-icon-size',\n textFieldChipFontFamily: '--plasma-combobox-new-textfield-chip-font-family',\n textFieldChipFontSize: '--plasma-combobox-new-textfield-chip-font-size',\n textFieldChipFontStyle: '--plasma-combobox-new-textfield-chip-font-style',\n textFieldChipFontWeight: '--plasma-combobox-new-textfield-chip-font-weight',\n textFieldChipLetterSpacing: '--plasma-combobox-new-textfield-chip-letter-spacing',\n textFieldChipLineHeight: '--plasma-combobox-new-textfield-chip-line-height',\n textFieldChipClearContentMarginLeft: '--plasma-combobox-new-textfield-chip-clear-content-margin-left',\n textFieldChipClearContentMarginRight: '--plasma-combobox-new-textfield-chip-clear-content-margin-right',\n textFieldChipOpacityReadonly: '--plasma-combobox-new-textfield-chip-opacity-readonly',\n\n textFieldFocusColor: '--plasma-combobox-new-textfield-focus-color',\n\n textFieldIndicatorColor: '--plasma-combobox-new-textfield-indicator-color',\n textFieldIndicatorSizeInner: '--plasma-combobox-new-textfield-indicator-size-inner',\n textFieldIndicatorSizeOuter: '--plasma-combobox-new-textfield-indicator-size-outer',\n textFieldIndicatorLabelPlacementInner: '--plasma-combobox-new-textfield-indicator-placement-inner',\n textFieldIndicatorLabelPlacementOuter: '--plasma-combobox-new-textfield-indicator-placement-outer',\n textFieldIndicatorLabelPlacementInnerRight: '--plasma-combobox-new-textfield-indicator-placement-inner-right',\n textFieldIndicatorLabelPlacementOuterRight: '--plasma-combobox-new-textfield-indicator-placement-outer-right',\n textFieldClearIndicatorLabelPlacementInner: '--plasma-combobox-new-textfield-clear-indicator-placement-inner',\n textFieldClearIndicatorLabelPlacementInnerRight:\n '--plasma-combobox-new-textfield-clear-indicator-placement-inner-right',\n textFieldClearIndicatorHintInnerRight: '--plasma-combobox-new-textfield-clear-indicator-hint-placement-inner-right',\n\n // Токены для EmptyState\n emptyStatePadding: '--plasma-combobox-new-empty-state-padding',\n\n labelOffset: '--plasma-combobox-label-offset',\n\n innerLabelGap: '--plasma-combobox-inner-label-gap',\n\n helperTextColor: '--plasma-combobox-helper-text-color',\n helperTextOffset: '--plasma-combobox-helper-text-offset',\n\n spinnerSize: '--plasma-combobox-spinner-size',\n spinnerSizeTight: '--plasma-combobox-spinner-size-tight',\n\n disclosureIconColor: '--plasma-combobox-disclosure-icon-color',\n disclosureIconColorHover: '--plasma-combobox-disclosure-icon-color-hover',\n};\n\nexport const constants = {\n focusColor: '--surface-accent',\n focusSize: '0.0625rem',\n background: '--surface-solid-card',\n boxShadow: '0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04)',\n itemBackground: '--plasma-colors-transparent',\n textfieldTargetColor: '--text-primary',\n textfieldOuterLabelColor: '--text-primary',\n textfieldInnerLabelColor: '--text-secondary',\n textfieldPlaceholderColor: '--text-secondary',\n textfieldBorderSize: '0.0625rem',\n opacity: '0.4',\n fontFamily: '--plasma-typo-body-xs-font-family',\n fontSize: '--plasma-typo-body-xs-font-size',\n fontStyle: '--plasma-typo-body-xs-font-style',\n fontWeight: '--plasma-typo-body-xs-font-weight',\n fontLetterSpacing: '--plasma-typo-body-xs-letter-spacing',\n fontLineHeight: '--plasma-typo-body-xs-line-height',\n cellTitleColor: '--text-primary',\n cellBackgroundColor: '--plasma-colors-transparent',\n};\n"],"names":["classes","dropdownItemIsFocused","dropdownItemIsDisabled","dropdownItemIsActive","selectTargetArrow","arrowInverse","textfieldTarget","selectChipIsFocused","selectWithoutBoxShadow","selectItemCheckbox","selectSpinner","emptyStateWrapper","tokens","borderRadius","padding","focusOffset","fontFamily","fontSize","fontStyle","fontWeight","fontLetterSpacing","fontLineHeight","dropdownBorderColor","dropdownBorderWidth","itemHeight","itemBorderRadius","itemPadding","itemPaddingTight","itemIconSize","itemIconSizeTight","itemIconMargin","itemBackgroundHover","cellPadding","cellPaddingLeftContent","cellPaddingContent","cellPaddingRightContent","cellTextboxGap","cellGap","cellTitleFontFamily","cellTitleFontSize","cellTitleFontStyle","cellTitleFontWeight","cellTitleLetterSpacing","cellTitleLineHeight","checkboxTriggerSize","checkboxTriggerSizeTight","checkboxTriggerBorderRadius","checkboxTriggerBorderRadiusTight","checkboxFillColor","checkboxIconColor","checkboxTriggerBorderColor","indicatorSize","textFieldColor","textFieldClearColor","textFieldBackgroundColor","textFieldBackgroundColorHover","textFieldBackgroundColorFocus","textFieldBorderColor","textFieldBorderColorHover","textFieldBorderColorFocus","textFieldColorReadOnly","textFieldBackgroundColorReadOnly","textFieldBorderColorReadOnly","textFieldPlaceholderColorReadOnly","textFieldCaretColor","textFieldPlaceholderColor","textFieldPlaceholderColorFocus","textFieldClearPlaceholderColor","textFieldClearPlaceholderColorFocus","textFieldOptionalColor","textFieldHeight","textFieldBorderWidth","textFieldBorderRadius","textFieldPadding","textFieldPaddingWithChips","textFieldLeftContentMargin","textFieldRightContentMargin","textFieldFontFamily","textFieldFontStyle","textFieldFontSize","textFieldFontWeight","textFieldLetterSpacing","textFieldLineHeight","textFieldContentSlotColor","textFieldContentSlotColorHover","textFieldContentSlotColorActive","textFieldContentSlotRightColor","textFieldContentSlotRightColorHover","textFieldContentSlotRightColorActive","textFieldLabelColor","textFieldLabelColorReadOnly","textFieldLabelOffset","textFieldClearLabelOffset","textFieldLabelFontFamily","textFieldLabelFontStyle","textFieldLabelFontSize","textFieldLabelFontWeight","textFieldLabelLetterSpacing","textFieldLabelLineHeight","textFieldLabelInnerFontFamily","textFieldLabelInnerFontStyle","textFieldLabelInnerFontSize","textFieldLabelInnerFontWeight","textFieldLabelInnerLetterSpacing","textFieldLabelInnerLineHeight","textFieldLabelInnerPadding","textFieldContentLabelInnerPadding","textFieldTitleCaptionColor","textFieldTitleCaptionColorReadOnly","textFieldTitleCaptionInnerLabelOffset","textFieldTitleCaptionFontFamily","textFieldTitleCaptionFontStyle","textFieldTitleCaptionFontSize","textFieldTitleCaptionFontWeight","textFieldTitleCaptionLetterSpacing","textFieldTitleCaptionLineHeight","textFieldLeftHelperColor","textFieldLeftHelperColorReadOnly","textFieldLeftHelperOffset","textFieldLeftHelperFontFamily","textFieldLeftHelperFontStyle","textFieldLeftHelperFontSize","textFieldLeftHelperFontWeight","textFieldLeftHelperLetterSpacing","textFieldLeftHelperLineHeight","textFieldTextBeforeColor","textFieldTextAfterColor","textFieldTextBeforeMargin","textFieldTextAfterMargin","textFieldDisabledOpacity","textFieldChipHeight","textFieldChipBorderRadius","textFieldChipGap","textFieldChipBackground","textFieldChipColor","textFieldChipBackgroundHover","textFieldChipColorHover","textFieldChipScaleHover","textFieldChipBackgroundReadOnly","textFieldChipColorReadOnly","textFieldChipBackgroundReadOnlyHover","textFieldChipColorReadOnlyHover","textFieldChipBackgroundActive","textFieldChipColorActive","textFieldChipScaleActive","textFieldChipCloseIconColor","textFieldChipOutlineSize","textFieldChipWidth","textFieldChipPaddingTop","textFieldChipPaddingRight","textFieldChipPaddingBottom","textFieldChipPaddingLeft","textFieldChipCloseIconSize","textFieldChipFontFamily","textFieldChipFontSize","textFieldChipFontStyle","textFieldChipFontWeight","textFieldChipLetterSpacing","textFieldChipLineHeight","textFieldChipClearContentMarginLeft","textFieldChipClearContentMarginRight","textFieldChipOpacityReadonly","textFieldFocusColor","textFieldIndicatorColor","textFieldIndicatorSizeInner","textFieldIndicatorSizeOuter","textFieldIndicatorLabelPlacementInner","textFieldIndicatorLabelPlacementOuter","textFieldIndicatorLabelPlacementInnerRight","textFieldIndicatorLabelPlacementOuterRight","textFieldClearIndicatorLabelPlacementInner","textFieldClearIndicatorLabelPlacementInnerRight","textFieldClearIndicatorHintInnerRight","emptyStatePadding","labelOffset","innerLabelGap","helperTextColor","helperTextOffset","spinnerSize","spinnerSizeTight","disclosureIconColor","disclosureIconColorHover"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA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AACnFC,EAAAA,qCAAqC,EAAE,2DAA2D;AAClGC,EAAAA,qCAAqC,EAAE,2DAA2D;AAClGC,EAAAA,0CAA0C,EAAE,iEAAiE;AAC7GC,EAAAA,0CAA0C,EAAE,iEAAiE;AAC7GC,EAAAA,0CAA0C,EAAE,iEAAiE;AAC7GC,EAAAA,+CAA+C,EAC3C,uEAAuE;AAC3EC,EAAAA,qCAAqC,EAAE,4EAA4E;AAEnH;AACAC,EAAAA,iBAAiB,EAAE,2CAA2C;AAE9DC,EAAAA,WAAW,EAAE,gCAAgC;AAE7CC,EAAAA,aAAa,EAAE,mCAAmC;AAElDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,gBAAgB,EAAE,sCAAsC;AAExDC,EAAAA,WAAW,EAAE,gCAAgC;AAC7CC,EAAAA,gBAAgB,EAAE,sCAAsC;AAExDC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,wBAAwB,EAAE,+CAAA;AAC9B;;;;"}
1
+ {"version":3,"file":"Combobox.tokens.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownItemIsFocused: 'dropdown-item-is-focused',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n dropdownItemIsActive: 'dropdown-item-is-active',\n selectTargetArrow: 'combobox-target-arrow',\n arrowInverse: 'arrow-inverse',\n textfieldTarget: 'combobox-textfield-target',\n selectChipIsFocused: 'combobox-chip-is-focused',\n selectWithoutBoxShadow: 'combobox-without-box-shadow',\n selectItemCheckbox: 'combobox-item-checkbox',\n selectSpinner: 'combobox-spinner',\n emptyStateWrapper: 'combobox-empty-state-wrapper',\n};\n\nexport const tokens = {\n borderRadius: '--plasma-combobox-border-radius',\n padding: '--plasma-combobox-padding',\n focusOffset: '--plasma-combobox-focus-offset',\n\n fontFamily: '--plasma-combobox-font-family',\n fontSize: '--plasma-combobox-font-size',\n fontStyle: '--plasma-combobox-font-style',\n fontWeight: '--plasma-combobox-font-weight',\n fontLetterSpacing: '--plasma-combobox-font-letter-spacing',\n fontLineHeight: '--plasma-combobox-font-line-height',\n\n dropdownBorderColor: '--plasma-select-dropdown-border-color',\n dropdownBorderWidth: '--plasma-select-dropdown-border-width',\n\n itemHeight: '--plasma-combobox-item-height',\n itemBorderRadius: '--plasma-combobox-item-border-radius',\n itemPadding: '--plasma-combobox-item-padding',\n itemPaddingTight: '--plasma-combobox-item-padding-tight',\n itemIconSize: '--plasma-combobox-item-icon-size',\n itemIconSizeTight: '--plasma-combobox-item-icon-size-tight',\n itemIconMargin: '--plasma-combobox-item-icon-margin',\n itemBackgroundHover: '--plasma-combobox-item-background-hover',\n\n cellPadding: '--plasma-combobox-cell-padding',\n cellPaddingLeftContent: '--plasma-combobox-cell-padding-left-content',\n cellPaddingContent: '--plasma-combobox-cell-padding-content',\n cellPaddingRightContent: '--plasma-combobox-cell-padding-right-content',\n cellTextboxGap: '--plasma-combobox-cell-textbox-gap',\n cellGap: '--plasma-combobox-cell-gap',\n cellTitleFontFamily: '--plasma-combobox-cell-title-font-family',\n cellTitleFontSize: '--plasma-combobox-cell-title-font-size',\n cellTitleFontStyle: '--plasma-combobox-cell-title-font-style',\n cellTitleFontWeight: '--plasma-combobox-cell-title-font-weight',\n cellTitleLetterSpacing: '--plasma-combobox-cell-title-letter-spacing',\n cellTitleLineHeight: '--plasma-combobox-cell-title-line-height',\n\n checkboxTriggerSize: '--plasma-combobox-checkbox-trigger-size',\n checkboxTriggerSizeTight: '--plasma-combobox-checkbox-trigger-size-tight',\n checkboxTriggerBorderRadius: '--plasma-combobox-checkbox-trigger-border-radius',\n checkboxTriggerBorderRadiusTight: '--plasma-combobox-checkbox-trigger-border-radius-tight',\n checkboxFillColor: '--plasma-combobox-checkbox-fill-color',\n checkboxIconColor: '--plasma-combobox-checkbox-icon-color',\n checkboxTriggerBorderColor: '--plasma-combobox-checkbox-trigger-border-color',\n\n indicatorSize: '--plasma-combobox-indicator-size',\n\n targetHeight: '--plasma-combobox-target-height',\n\n // Токены для TextField\n textFieldColor: '--plasma-combobox-new-textfield-color',\n textFieldClearColor: '--plasma-combobox-new-textfield-clear-color',\n\n textFieldBackgroundColor: '--plasma-combobox-new-textfield-background-color',\n textFieldBackgroundColorHover: '--plasma-combobox-new-textfield-background-color-hover',\n textFieldBackgroundColorFocus: '--plasma-combobox-new-textfield-background-color-focus',\n\n textFieldBorderColor: '--plasma-combobox-new-textfield-border-color',\n textFieldBorderColorHover: '--plasma-combobox-new-textfield-border-color-hover',\n textFieldBorderColorFocus: '--plasma-combobox-new-textfield-border-color-focus',\n\n textFieldColorReadOnly: '--plasma-combobox-new-textfield-color-readonly',\n textFieldBackgroundColorReadOnly: '--plasma-combobox-new-textfield-bg-color-readonly',\n textFieldBorderColorReadOnly: '--plasma-combobox-new-textfield-border-color-readonly',\n textFieldPlaceholderColorReadOnly: '--plasma-combobox-new-textfield-placeholder-color-readonly',\n\n textFieldCaretColor: '--plasma-combobox-new-textfield-caret-color',\n textFieldPlaceholderColor: '--plasma-combobox-new-textfield-placeholder-color',\n textFieldPlaceholderColorFocus: '--plasma-combobox-new-textfield-placeholder-color-focus',\n textFieldClearPlaceholderColor: '--plasma-combobox-new-textfield-clear-placeholder-color',\n textFieldClearPlaceholderColorFocus: '--plasma-combobox-new-textfield-clear-placeholder-color-focus',\n textFieldOptionalColor: '--plasma-combobox-new-textfield-optional-color',\n\n textFieldHeight: '--plasma-combobox-new-textfield-height',\n textFieldBorderWidth: '--plasma-combobox-new-textfield-border-width',\n textFieldBorderRadius: '--plasma-combobox-new-textfield-border-radius',\n\n textFieldPadding: '--plasma-combobox-new-textfield-padding',\n textFieldPaddingWithChips: '--plasma-combobox-new-textfield-padding-with-chips',\n\n textFieldLeftContentMargin: '--plasma-combobox-new-textfield-left-content-margin',\n textFieldRightContentMargin: '--plasma-combobox-new-textfield-right-content-margin',\n\n textFieldFontFamily: '--plasma-combobox-new-textfield-font-family',\n textFieldFontStyle: '--plasma-combobox-new-textfield-font-style',\n textFieldFontSize: '--plasma-combobox-new-textfield-font-size',\n textFieldFontWeight: '--plasma-combobox-new-textfield-font-weight',\n textFieldLetterSpacing: '--plasma-combobox-new-textfield-letter-spacing',\n textFieldLineHeight: '--plasma-combobox-new-textfield-line-height',\n\n textFieldContentSlotColor: '--plasma-combobox-new-textfield-content-slot-color',\n textFieldContentSlotColorHover: '--plasma-combobox-new-textfield-content-slot-color-hover',\n textFieldContentSlotColorActive: '--plasma-combobox-new-textfield-content-slot-color-active',\n\n textFieldContentSlotRightColor: '--plasma-combobox-new-textfield-content-right-slot-color',\n textFieldContentSlotRightColorHover: '--plasma-combobox-new-textfield-content-right-slot-color-hover',\n textFieldContentSlotRightColorActive: '--plasma-combobox-new-textfield-content-right-slot-color-active',\n\n textFieldLabelColor: '--plasma-combobox-new-textfield-label-color',\n textFieldLabelColorReadOnly: '--plasma-combobox-new-textfield-label-color-readonly',\n textFieldLabelOffset: '--plasma-combobox-new-textfield-label-offset',\n textFieldClearLabelOffset: '--plasma-combobox-new-textfield-clear-label-offset',\n\n textFieldLabelFontFamily: '--plasma-combobox-new-textfield-label-font-family',\n textFieldLabelFontStyle: '--plasma-combobox-new-textfield-label-font-style',\n textFieldLabelFontSize: '--plasma-combobox-new-textfield-label-font-size',\n textFieldLabelFontWeight: '--plasma-combobox-new-textfield-label-font-weight',\n textFieldLabelLetterSpacing: '--plasma-combobox-new-textfield-label-letter-spacing',\n textFieldLabelLineHeight: '--plasma-combobox-new-textfield-label-line-height',\n\n textFieldLabelInnerFontFamily: '--plasma-combobox-new-textfield-placement_inner-label-font-family',\n textFieldLabelInnerFontStyle: '--plasma-combobox-new-textfield-placement_inner-label-font-style',\n textFieldLabelInnerFontSize: '--plasma-combobox-new-textfield-placement_inner-label-font-size',\n textFieldLabelInnerFontWeight: '--plasma-combobox-new-textfield-placement_inner-label-font-weight',\n textFieldLabelInnerLetterSpacing: '--plasma-combobox-new-textfield-placement_inner-label-letter-spacing',\n textFieldLabelInnerLineHeight: '--plasma-combobox-new-textfield-placement_inner-label-line-height',\n\n textFieldLabelInnerPadding: '--plasma-combobox-new-textfield-placement_inner-label-padding',\n textFieldContentLabelInnerPadding: '--plasma-combobox-new-textfield-placement_inner-content-padding',\n\n textFieldTitleCaptionColor: '--plasma-combobox-new-textfield-title-caption-color',\n textFieldTitleCaptionColorReadOnly: '--plasma-combobox-new-textfield-title-caption-color-readonly',\n textFieldTitleCaptionInnerLabelOffset: '--plasma-combobox-new-textfield-title-caption-label-inner-offset',\n\n textFieldTitleCaptionFontFamily: '--plasma-combobox-new-textfield-title-caption-font-family',\n textFieldTitleCaptionFontStyle: '--plasma-combobox-new-textfield-title-caption-font-style',\n textFieldTitleCaptionFontSize: '--plasma-combobox-new-textfield-title-caption-font-size',\n textFieldTitleCaptionFontWeight: '--plasma-combobox-new-textfield-title-caption-font-weight',\n textFieldTitleCaptionLetterSpacing: '--plasma-combobox-new-textfield-title-caption-letter-spacing',\n textFieldTitleCaptionLineHeight: '--plasma-combobox-new-textfield-title-caption-line-height',\n\n textFieldLeftHelperColor: '--plasma-combobox-new-textfield-left-helper-color',\n textFieldLeftHelperColorReadOnly: '--plasma-combobox-new-textfield-left-helper-color-readonly',\n textFieldLeftHelperOffset: '--plasma-combobox-new-textfield-left-helper-offset',\n\n textFieldLeftHelperFontFamily: '--plasma-combobox-new-textfield-left-helper-font-family',\n textFieldLeftHelperFontStyle: '--plasma-combobox-new-textfield-left-helper-font-style',\n textFieldLeftHelperFontSize: '--plasma-combobox-new-textfield-left-helper-font-size',\n textFieldLeftHelperFontWeight: '--plasma-combobox-new-textfield-left-helper-font-weight',\n textFieldLeftHelperLetterSpacing: '--plasma-combobox-new-textfield-left-helper-letter-spacing',\n textFieldLeftHelperLineHeight: '--plasma-combobox-new-textfield-left-helper-line-height',\n\n textFieldTextBeforeColor: '--plasma-combobox-new-textfield-before-text-color',\n textFieldTextAfterColor: '--plasma-combobox-new-textfield-after-text-color',\n textFieldTextBeforeMargin: '--plasma-combobox-new-textfield-before-text-margin',\n textFieldTextAfterMargin: '--plasma-combobox-new-textfield-after-text-margin',\n\n textFieldDisabledOpacity: '--plasma-combobox-new-textfield-disabled-opacity',\n\n textFieldChipHeight: '--plasma-combobox-new-textfield-chip-height',\n textFieldChipBorderRadius: '--plasma-combobox-new-textfield-chip-border-radius',\n textFieldChipGap: '--plasma-combobox-new-textfield-chip-gap',\n textFieldChipBackground: '--plasma-combobox-new-textfield--chip-background',\n textFieldChipColor: '--plasma-combobox-new-textfield-chip-color',\n textFieldChipBackgroundHover: '--plasma-combobox-new-textfield-chip-background-hover',\n textFieldChipColorHover: '--plasma-combobox-new-textfield-chip-color-hover',\n textFieldChipScaleHover: '--plasma-combobox-new-textfield-chip-scale-hover',\n textFieldChipBackgroundReadOnly: '--plasma-combobox-new-textfield-chip-background-read-only',\n textFieldChipColorReadOnly: '--plasma-combobox-new-textfield-chip-color-read-only',\n textFieldChipBackgroundReadOnlyHover: '--plasma-combobox-new-textfield-chip-background-read-only-hover',\n textFieldChipColorReadOnlyHover: '--plasma-combobox-new-textfield-chip-color-read-only-hover',\n textFieldChipBackgroundActive: '--plasma-combobox-new-textfield-chip-background-active',\n textFieldChipColorActive: '--plasma-combobox-new-textfield-chip-color-active',\n textFieldChipScaleActive: '--plasma-combobox-new-textfield-chip-scale-active',\n textFieldChipCloseIconColor: '--plasma-combobox-new-textfield-chip-close-icons-color',\n textFieldChipOutlineSize: '--plasma-combobox-new-textfield-chip-outline-size',\n textFieldChipWidth: '--plasma-combobox-new-textfield-chip-width',\n textFieldChipPaddingTop: '--plasma-combobox-new-textfield-chip-padding-top',\n textFieldChipPaddingRight: '--plasma-combobox-new-textfield-chip-padding-right',\n textFieldChipPaddingBottom: '--plasma-combobox-new-textfield-chip-padding-bottom',\n textFieldChipPaddingLeft: '--plasma-combobox-new-textfield-chip-padding-left',\n textFieldChipCloseIconSize: '--plasma-combobox-new-textfield-chip-close-icon-size',\n textFieldChipFontFamily: '--plasma-combobox-new-textfield-chip-font-family',\n textFieldChipFontSize: '--plasma-combobox-new-textfield-chip-font-size',\n textFieldChipFontStyle: '--plasma-combobox-new-textfield-chip-font-style',\n textFieldChipFontWeight: '--plasma-combobox-new-textfield-chip-font-weight',\n textFieldChipLetterSpacing: '--plasma-combobox-new-textfield-chip-letter-spacing',\n textFieldChipLineHeight: '--plasma-combobox-new-textfield-chip-line-height',\n textFieldChipClearContentMarginLeft: '--plasma-combobox-new-textfield-chip-clear-content-margin-left',\n textFieldChipClearContentMarginRight: '--plasma-combobox-new-textfield-chip-clear-content-margin-right',\n textFieldChipOpacityReadonly: '--plasma-combobox-new-textfield-chip-opacity-readonly',\n\n textFieldFocusColor: '--plasma-combobox-new-textfield-focus-color',\n\n textFieldIndicatorColor: '--plasma-combobox-new-textfield-indicator-color',\n textFieldIndicatorSizeInner: '--plasma-combobox-new-textfield-indicator-size-inner',\n textFieldIndicatorSizeOuter: '--plasma-combobox-new-textfield-indicator-size-outer',\n textFieldIndicatorLabelPlacementInner: '--plasma-combobox-new-textfield-indicator-placement-inner',\n textFieldIndicatorLabelPlacementOuter: '--plasma-combobox-new-textfield-indicator-placement-outer',\n textFieldIndicatorLabelPlacementInnerRight: '--plasma-combobox-new-textfield-indicator-placement-inner-right',\n textFieldIndicatorLabelPlacementOuterRight: '--plasma-combobox-new-textfield-indicator-placement-outer-right',\n textFieldClearIndicatorLabelPlacementInner: '--plasma-combobox-new-textfield-clear-indicator-placement-inner',\n textFieldClearIndicatorLabelPlacementInnerRight:\n '--plasma-combobox-new-textfield-clear-indicator-placement-inner-right',\n textFieldClearIndicatorHintInnerRight: '--plasma-combobox-new-textfield-clear-indicator-hint-placement-inner-right',\n\n // Токены для EmptyState\n emptyStatePadding: '--plasma-combobox-new-empty-state-padding',\n\n labelOffset: '--plasma-combobox-label-offset',\n\n innerLabelGap: '--plasma-combobox-inner-label-gap',\n\n helperTextColor: '--plasma-combobox-helper-text-color',\n helperTextOffset: '--plasma-combobox-helper-text-offset',\n\n spinnerSize: '--plasma-combobox-spinner-size',\n spinnerSizeTight: '--plasma-combobox-spinner-size-tight',\n\n disclosureIconColor: '--plasma-combobox-disclosure-icon-color',\n disclosureIconColorHover: '--plasma-combobox-disclosure-icon-color-hover',\n};\n\nexport const constants = {\n focusColor: '--surface-accent',\n focusSize: '0.0625rem',\n background: '--surface-solid-card',\n boxShadow: '0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04)',\n itemBackground: '--plasma-colors-transparent',\n textfieldTargetColor: '--text-primary',\n textfieldOuterLabelColor: '--text-primary',\n textfieldInnerLabelColor: '--text-secondary',\n textfieldPlaceholderColor: '--text-secondary',\n textfieldBorderSize: '0.0625rem',\n opacity: '0.4',\n fontFamily: '--plasma-typo-body-xs-font-family',\n fontSize: '--plasma-typo-body-xs-font-size',\n fontStyle: '--plasma-typo-body-xs-font-style',\n fontWeight: '--plasma-typo-body-xs-font-weight',\n fontLetterSpacing: '--plasma-typo-body-xs-letter-spacing',\n fontLineHeight: '--plasma-typo-body-xs-line-height',\n cellTitleColor: '--text-primary',\n cellBackgroundColor: '--plasma-colors-transparent',\n};\n"],"names":["classes","dropdownItemIsFocused","dropdownItemIsDisabled","dropdownItemIsActive","selectTargetArrow","arrowInverse","textfieldTarget","selectChipIsFocused","selectWithoutBoxShadow","selectItemCheckbox","selectSpinner","emptyStateWrapper","tokens","borderRadius","padding","focusOffset","fontFamily","fontSize","fontStyle","fontWeight","fontLetterSpacing","fontLineHeight","dropdownBorderColor","dropdownBorderWidth","itemHeight","itemBorderRadius","itemPadding","itemPaddingTight","itemIconSize","itemIconSizeTight","itemIconMargin","itemBackgroundHover","cellPadding","cellPaddingLeftContent","cellPaddingContent","cellPaddingRightContent","cellTextboxGap","cellGap","cellTitleFontFamily","cellTitleFontSize","cellTitleFontStyle","cellTitleFontWeight","cellTitleLetterSpacing","cellTitleLineHeight","checkboxTriggerSize","checkboxTriggerSizeTight","checkboxTriggerBorderRadius","checkboxTriggerBorderRadiusTight","checkboxFillColor","checkboxIconColor","checkboxTriggerBorderColor","indicatorSize","targetHeight","textFieldColor","textFieldClearColor","textFieldBackgroundColor","textFieldBackgroundColorHover","textFieldBackgroundColorFocus","textFieldBorderColor","textFieldBorderColorHover","textFieldBorderColorFocus","textFieldColorReadOnly","textFieldBackgroundColorReadOnly","textFieldBorderColorReadOnly","textFieldPlaceholderColorReadOnly","textFieldCaretColor","textFieldPlaceholderColor","textFieldPlaceholderColorFocus","textFieldClearPlaceholderColor","textFieldClearPlaceholderColorFocus","textFieldOptionalColor","textFieldHeight","textFieldBorderWidth","textFieldBorderRadius","textFieldPadding","textFieldPaddingWithChips","textFieldLeftContentMargin","textFieldRightContentMargin","textFieldFontFamily","textFieldFontStyle","textFieldFontSize","textFieldFontWeight","textFieldLetterSpacing","textFieldLineHeight","textFieldContentSlotColor","textFieldContentSlotColorHover","textFieldContentSlotColorActive","textFieldContentSlotRightColor","textFieldContentSlotRightColorHover","textFieldContentSlotRightColorActive","textFieldLabelColor","textFieldLabelColorReadOnly","textFieldLabelOffset","textFieldClearLabelOffset","textFieldLabelFontFamily","textFieldLabelFontStyle","textFieldLabelFontSize","textFieldLabelFontWeight","textFieldLabelLetterSpacing","textFieldLabelLineHeight","textFieldLabelInnerFontFamily","textFieldLabelInnerFontStyle","textFieldLabelInnerFontSize","textFieldLabelInnerFontWeight","textFieldLabelInnerLetterSpacing","textFieldLabelInnerLineHeight","textFieldLabelInnerPadding","textFieldContentLabelInnerPadding","textFieldTitleCaptionColor","textFieldTitleCaptionColorReadOnly","textFieldTitleCaptionInnerLabelOffset","textFieldTitleCaptionFontFamily","textFieldTitleCaptionFontStyle","textFieldTitleCaptionFontSize","textFieldTitleCaptionFontWeight","textFieldTitleCaptionLetterSpacing","textFieldTitleCaptionLineHeight","textFieldLeftHelperColor","textFieldLeftHelperColorReadOnly","textFieldLeftHelperOffset","textFieldLeftHelperFontFamily","textFieldLeftHelperFontStyle","textFieldLeftHelperFontSize","textFieldLeftHelperFontWeight","textFieldLeftHelperLetterSpacing","textFieldLeftHelperLineHeight","textFieldTextBeforeColor","textFieldTextAfterColor","textFieldTextBeforeMargin","textFieldTextAfterMargin","textFieldDisabledOpacity","textFieldChipHeight","textFieldChipBorderRadius","textFieldChipGap","textFieldChipBackground","textFieldChipColor","textFieldChipBackgroundHover","textFieldChipColorHover","textFieldChipScaleHover","textFieldChipBackgroundReadOnly","textFieldChipColorReadOnly","textFieldChipBackgroundReadOnlyHover","textFieldChipColorReadOnlyHover","textFieldChipBackgroundActive","textFieldChipColorActive","textFieldChipScaleActive","textFieldChipCloseIconColor","textFieldChipOutlineSize","textFieldChipWidth","textFieldChipPaddingTop","textFieldChipPaddingRight","textFieldChipPaddingBottom","textFieldChipPaddingLeft","textFieldChipCloseIconSize","textFieldChipFontFamily","textFieldChipFontSize","textFieldChipFontStyle","textFieldChipFontWeight","textFieldChipLetterSpacing","textFieldChipLineHeight","textFieldChipClearContentMarginLeft","textFieldChipClearContentMarginRight","textFieldChipOpacityReadonly","textFieldFocusColor","textFieldIndicatorColor","textFieldIndicatorSizeInner","textFieldIndicatorSizeOuter","textFieldIndicatorLabelPlacementInner","textFieldIndicatorLabelPlacementOuter","textFieldIndicatorLabelPlacementInnerRight","textFieldIndicatorLabelPlacementOuterRight","textFieldClearIndicatorLabelPlacementInner","textFieldClearIndicatorLabelPlacementInnerRight","textFieldClearIndicatorHintInnerRight","emptyStatePadding","labelOffset","innerLabelGap","helperTextColor","helperTextOffset","spinnerSize","spinnerSizeTight","disclosureIconColor","disclosureIconColorHover"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA,sBAAsB,EAAE,2BAA2B;AACnDC,EAAAA,oBAAoB,EAAE,yBAAyB;AAC/CC,EAAAA,iBAAiB,EAAE,uBAAuB;AAC1CC,EAAAA,YAAY,EAAE,eAAe;AAC7BC,EAAAA,eAAe,EAAE,2BAA2B;AAC5CC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,iEAAiE;AAC7GC,EAAAA,0CAA0C,EAAE,iEAAiE;AAC7GC,EAAAA,+CAA+C,EAC3C,uEAAuE;AAC3EC,EAAAA,qCAAqC,EAAE,4EAA4E;AAEnH;AACAC,EAAAA,iBAAiB,EAAE,2CAA2C;AAE9DC,EAAAA,WAAW,EAAE,gCAAgC;AAE7CC,EAAAA,aAAa,EAAE,mCAAmC;AAElDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,gBAAgB,EAAE,sCAAsC;AAExDC,EAAAA,WAAW,EAAE,gCAAgC;AAC7CC,EAAAA,gBAAgB,EAAE,sCAAsC;AAExDC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,wBAAwB,EAAE,+CAAA;AAC9B;;;;"}
@@ -52,30 +52,16 @@ var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  /*#__PURE__*/
53
53
  // root - принимает ref контейнера портала.
54
54
  // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
55
- React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
55
+ React.createElement(FloatingPortal, {
56
+ root: portal,
57
+ id: portal ? undefined : wrappedId
58
+ }, /*#__PURE__*/React.createElement("div", {
56
59
  ref: refs.setFloating,
57
60
  style: _objectSpread2(_objectSpread2({}, floatingStyles), {}, {
58
61
  zIndex: 1
59
62
  })
60
63
  }, children)));
61
64
  });
62
- // root - принимает ref контейнера портала.
63
- // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
64
- var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
65
- if (!portal) {
66
- return {
67
- id: wrappedId
68
- };
69
- }
70
- if (typeof portal === 'string') {
71
- return {
72
- id: portal
73
- };
74
- }
75
- return {
76
- root: portal
77
- };
78
- };
79
65
 
80
66
  export { FloatingPopover };
81
67
  //# sourceMappingURL=FloatingPopover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingPopover.js","sources":["../../../../src/components/Combobox/ComboboxNew/FloatingPopover.tsx"],"sourcesContent":["import { flip, shift, size, useFloating, FloatingPortal, offset as offsetMiddleware } from '@floating-ui/react';\nimport React, { forwardRef } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport type { FloatingPopoverProps } from './Combobox.types';\n\nconst FloatingPopover = forwardRef<HTMLDivElement, FloatingPopoverProps>(\n ({ target, children, opened, onToggle, placement, portal, listWidth, offset = 0 }, ref) => {\n const { refs, floatingStyles } = useFloating({\n placement,\n open: opened,\n middleware: [\n offsetMiddleware(offset),\n flip({ fallbackAxisSideDirection: 'end' }),\n shift(),\n size({\n apply({ rects, elements }) {\n Object.assign(elements.floating.style, {\n width: listWidth || `${rects.reference.width}px`,\n });\n },\n }),\n ],\n });\n\n const wrappedId = safeUseId();\n\n const handleClick = () => {\n if (onToggle) {\n onToggle(!opened);\n }\n };\n\n // Проверка на target. Это может быть как ReactNode, так и функция, в которую пробрасывается ref.\n // Это нужно для более тонкой настройки reference-элемента, вокруг которого и будет позиционироваться выпадашка.\n // Пример: когда в Textfield под инпутом находится helperText (или еще что-либо),\n // но выпадающий список должен позиционироваться непосредственно возле самого инпута.\n const isTargetAsFunction = typeof target === 'function';\n\n return (\n <div ref={ref} id={wrappedId}>\n <div ref={isTargetAsFunction ? undefined : refs.setReference} onClick={handleClick}>\n {typeof target === 'function' ? target(refs.setReference as any) : target}\n </div>\n\n {opened && (\n // root - принимает ref контейнера портала.\n // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.\n <FloatingPortal {...getFloatingPortalProps(portal, wrappedId)}>\n <div ref={refs.setFloating} style={{ ...floatingStyles, zIndex: 1 }}>\n {children}\n </div>\n </FloatingPortal>\n )}\n </div>\n );\n },\n);\n\ntype FloatingPortalReturnedProps = {\n root?: React.RefObject<HTMLElement>;\n id?: string;\n};\n\n// root - принимает ref контейнера портала.\n// id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.\nconst getFloatingPortalProps = (\n portal: FloatingPopoverProps['portal'],\n wrappedId: string,\n): FloatingPortalReturnedProps => {\n if (!portal) {\n return { id: wrappedId };\n }\n\n if (typeof portal === 'string') {\n return { id: portal };\n }\n\n return { root: portal };\n};\n\nexport { FloatingPopover };\n"],"names":["FloatingPopover","forwardRef","_ref","ref","target","children","opened","onToggle","placement","portal","listWidth","_ref$offset","offset","_useFloating","useFloating","open","middleware","offsetMiddleware","flip","fallbackAxisSideDirection","shift","size","apply","_ref2","rects","elements","Object","assign","floating","style","width","concat","reference","refs","floatingStyles","wrappedId","safeUseId","handleClick","isTargetAsFunction","React","createElement","id","undefined","setReference","onClick","FloatingPortal","getFloatingPortalProps","setFloating","_objectSpread","zIndex","root"],"mappings":";;;;;AAMMA,IAAAA,eAAe,gBAAGC,UAAU,CAC9B,UAAAC,IAAA,EAAmFC,GAAG,EAAK;AAAA,EAAA,IAAxFC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAEC,SAAS,GAAAN,IAAA,CAATM,SAAS;IAAEC,MAAM,GAAAP,IAAA,CAANO,MAAM;IAAEC,SAAS,GAAAR,IAAA,CAATQ,SAAS;IAAAC,WAAA,GAAAT,IAAA,CAAEU,MAAM;AAANA,IAAAA,QAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,WAAA,CAAA;EAC3E,IAAAE,YAAA,GAAiCC,WAAW,CAAC;AACzCN,MAAAA,SAAS,EAATA,SAAS;AACTO,MAAAA,IAAI,EAAET,MAAM;MACZU,UAAU,EAAE,CACRC,MAAgB,CAACL,QAAM,CAAC,EACxBM,IAAI,CAAC;AAAEC,QAAAA,yBAAyB,EAAE,KAAA;AAAM,OAAC,CAAC,EAC1CC,KAAK,EAAE,EACPC,IAAI,CAAC;QACDC,KAAK,EAAA,SAA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,cAAc,EAAKC,sBAAsB,CAACrC,MAAM,EAAE0B,SAAS,CAAC,eACzDI,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKrC,GAAG,EAAE8B,IAAI,CAACc,WAAY;AAAClB,IAAAA,KAAK,EAAAmB,cAAA,CAAAA,cAAA,KAAOd,cAAc,CAAA,EAAA,EAAA,EAAA;AAAEe,MAAAA,MAAM,EAAE,CAAA;AAAC,KAAA,CAAA;GAC5D5C,EAAAA,QACA,CACO,CAEnB,CAAC,CAAA;AAEd,CACJ,EAAC;AAOD;AACA;AACA,IAAMyC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CACxBrC,MAAsC,EACtC0B,SAAiB,EACa;EAC9B,IAAI,CAAC1B,MAAM,EAAE;IACT,OAAO;AAAEgC,MAAAA,EAAE,EAAEN,SAAAA;KAAW,CAAA;AAC5B,GAAA;AAEA,EAAA,IAAI,OAAO1B,MAAM,KAAK,QAAQ,EAAE;IAC5B,OAAO;AAAEgC,MAAAA,EAAE,EAAEhC,MAAAA;KAAQ,CAAA;AACzB,GAAA;EAEA,OAAO;AAAEyC,IAAAA,IAAI,EAAEzC,MAAAA;GAAQ,CAAA;AAC3B,CAAC;;;;"}
1
+ {"version":3,"file":"FloatingPopover.js","sources":["../../../../src/components/Combobox/ComboboxNew/FloatingPopover.tsx"],"sourcesContent":["import { flip, shift, size, useFloating, FloatingPortal, offset as offsetMiddleware } from '@floating-ui/react';\nimport React, { forwardRef } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport type { FloatingPopoverProps } from './Combobox.types';\n\nconst FloatingPopover = forwardRef<HTMLDivElement, FloatingPopoverProps>(\n ({ target, children, opened, onToggle, placement, portal, listWidth, offset = 0 }, ref) => {\n const { refs, floatingStyles } = useFloating({\n placement,\n open: opened,\n middleware: [\n offsetMiddleware(offset),\n flip({ fallbackAxisSideDirection: 'end' }),\n shift(),\n size({\n apply({ rects, elements }) {\n Object.assign(elements.floating.style, {\n width: listWidth || `${rects.reference.width}px`,\n });\n },\n }),\n ],\n });\n\n const wrappedId = safeUseId();\n\n const handleClick = () => {\n if (onToggle) {\n onToggle(!opened);\n }\n };\n\n // Проверка на target. Это может быть как ReactNode, так и функция, в которую пробрасывается ref.\n // Это нужно для более тонкой настройки reference-элемента, вокруг которого и будет позиционироваться выпадашка.\n // Пример: когда в Textfield под инпутом находится helperText (или еще что-либо),\n // но выпадающий список должен позиционироваться непосредственно возле самого инпута.\n const isTargetAsFunction = typeof target === 'function';\n\n return (\n <div ref={ref} id={wrappedId}>\n <div ref={isTargetAsFunction ? undefined : refs.setReference} onClick={handleClick}>\n {typeof target === 'function' ? target(refs.setReference as any) : target}\n </div>\n\n {opened && (\n // root - принимает ref контейнера портала.\n // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.\n <FloatingPortal root={portal} id={portal ? undefined : wrappedId}>\n <div ref={refs.setFloating} style={{ ...floatingStyles, zIndex: 1 }}>\n {children}\n </div>\n </FloatingPortal>\n )}\n </div>\n );\n },\n);\n\nexport { FloatingPopover };\n"],"names":["FloatingPopover","forwardRef","_ref","ref","target","children","opened","onToggle","placement","portal","listWidth","_ref$offset","offset","_useFloating","useFloating","open","middleware","offsetMiddleware","flip","fallbackAxisSideDirection","shift","size","apply","_ref2","rects","elements","Object","assign","floating","style","width","concat","reference","refs","floatingStyles","wrappedId","safeUseId","handleClick","isTargetAsFunction","React","createElement","id","undefined","setReference","onClick","FloatingPortal","root","setFloating","_objectSpread","zIndex"],"mappings":";;;;;AAMMA,IAAAA,eAAe,gBAAGC,UAAU,CAC9B,UAAAC,IAAA,EAAmFC,GAAG,EAAK;AAAA,EAAA,IAAxFC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAEC,SAAS,GAAAN,IAAA,CAATM,SAAS;IAAEC,MAA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,UAAU,CAAA;EAEvD,oBACImC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKrC,IAAAA,GAAG,EAAEA,GAAI;AAACsC,IAAAA,EAAE,EAAEN,SAAAA;GACfI,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKrC,IAAAA,GAAG,EAAEmC,kBAAkB,GAAGI,SAAS,GAAGT,IAAI,CAACU,YAAa;AAACC,IAAAA,OAAO,EAAEP,WAAAA;AAAY,GAAA,EAC9E,OAAOjC,MAAM,KAAK,UAAU,GAAGA,MAAM,CAAC6B,IAAI,CAACU,YAAmB,CAAC,GAAGvC,MAClE,CAAC,EAELE,MAAM;AAAA;AACH;AACA;EACAiC,KAAA,CAAAC,aAAA,CAACK,cAAc,EAAA;AAACC,IAAAA,IAAI,EAAErC,MAAO;AAACgC,IAAAA,EAAE,EAAEhC,MAAM,GAAGiC,SAAS,GAAGP,SAAAA;GACnDI,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKrC,GAAG,EAAE8B,IAAI,CAACc,WAAY;AAAClB,IAAAA,KAAK,EAAAmB,cAAA,CAAAA,cAAA,KAAOd,cAAc,CAAA,EAAA,EAAA,EAAA;AAAEe,MAAAA,MAAM,EAAE,CAAA;AAAC,KAAA,CAAA;GAC5D5C,EAAAA,QACA,CACO,CAEnB,CAAC,CAAA;AAEd,CACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPathMaps.js","sources":["../../../../../src/components/Combobox/ComboboxNew/hooks/getPathMaps.ts"],"sourcesContent":["import { isEmpty } from '../../../../utils';\nimport { ComboboxProps } from '../Combobox.types';\nimport { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\nexport type PathMapType = Map<string, number>;\nexport type FocusedToValueMapType = Map<string, ItemOptionTransformed>;\nexport type ValueToCheckedMapType = Map<ItemOptionTransformed['value'], boolean | 'done' | 'dot' | 'indeterminate'>;\nexport type ValueToItemMapType = Map<ItemOptionTransformed['value'], ItemOptionTransformed>;\nexport type LabelToItemMapType = Map<ItemOptionTransformed['label'], ItemOptionTransformed>;\n\nexport const getPathMap = (items: ComboboxProps['items']) => {\n const pathMap: PathMapType = new Map();\n const focusedToValueMap: FocusedToValueMapType = new Map();\n\n pathMap.set('root', items?.length || 0);\n\n const rec = (items: ComboboxProps['items'], prevIndex = '') => {\n items?.forEach((item: ItemOptionTransformed, index: number) => {\n const { value, items: innerItems } = item;\n const currIndex = `${prevIndex}/${index}`.replace(/^(\\/)/, '');\n\n focusedToValueMap.set(currIndex, item);\n\n if (innerItems) {\n pathMap.set(value, innerItems.length);\n rec(innerItems, currIndex);\n }\n });\n };\n rec(items);\n\n return [pathMap, focusedToValueMap] as [PathMapType, FocusedToValueMapType];\n};\n\nexport const getTreeMaps = (items: ComboboxProps['items']) => {\n const valueToCheckedMap: ValueToCheckedMapType = new Map();\n const valueToItemMap: ValueToItemMapType = new Map();\n const labelToItemMap: LabelToItemMapType = new Map();\n\n const rec = (items: ComboboxProps['items'], prevIndex = '') => {\n items?.forEach((item: ItemOptionTransformed, index: number) => {\n const { value, label, items: innerItems } = item;\n\n const currIndex = `${prevIndex}/${index}`.replace(/^(\\/)/, '');\n\n valueToCheckedMap.set(value, false);\n\n if (isEmpty(innerItems) || !innerItems) {\n valueToItemMap.set(value, item);\n labelToItemMap.set(label, item);\n } else {\n rec(innerItems, currIndex);\n }\n });\n };\n rec(items);\n\n return [valueToCheckedMap, valueToItemMap, labelToItemMap] as [\n ValueToCheckedMapType,\n ValueToItemMapType,\n LabelToItemMapType,\n ];\n};\n"],"names":["getPathMap","items","pathMap","Map","focusedToValueMap","set","length","rec","prevIndex","arguments","undefined","forEach","item","index","value","innerItems","currIndex","concat","replace","getTreeMaps","valueToCheckedMap","valueToItemMap","labelToItemMap","label","isEmpty"],"mappings":";;IAUaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,KAA6B,EAAK;AACzD,EAAA,IAAMC,OAAoB,GAAG,IAAIC,GAAG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AAG,SAAdA,WAAWA,CAAIlB,KAA6B,EAAK;AAC1D,EAAA,IAAMmB,iBAAwC,GAAG,IAAIjB,GAAG,EAAE,CAAA;AAC1D,EAAA,IAAMkB,cAAkC,GAAG,IAAIlB,GAAG,EAAE,CAAA;AACpD,EAAA,IAAMmB,cAAkC,GAAG,IAAInB,GAAG,EAAE,CAAA;AAEpD,EAAA,IAAMI,GAAG,GAAG,SAANA,GAAGA,CAAIN,KAA6B,EAAqB;IAC3DA,KAAK,KAAA,IAAA,IAALA,KAAK,KAAA,KAAA,CAAA,IAALA,KAAK,CAAEU,OAAO,CAAC,UAACC,IAA2B,EAAEC,KAAa,EAAK;AAC3D,MAAA,IAAQC,KAAK,GAA+BF,IAAI,CAAxCE,KAAK;QAAES,KAAK,GAAwBX,IAAI,CAAjCW,KAAK;QAASR,UAAU,GAAKH,IAAI,CAA1BX,KAAK,CAAA;AAI3BmB,MAAAA,iBAAiB,CAACf,GAAG,CAACS,KAAK,EAAE,KAAK,CAAC,CAAA;AAEnC,MAAA,IAAIU,OAAO,CAACT,UAAU,CAAC,IAAI,CAACA,UAAU,EAAE;AACpCM,QAAAA,cAAc,CAAChB,GAAG,CAACS,KAAK,EAAEF,IAAI,CAAC,CAAA;AAC/BU,QAAAA,cAAc,CAACjB,GAAG,CAACkB,KAAK,EAAEX,IAAI,CAAC,CAAA;AACnC,OAAC,MAAM;AACHL,QAAAA,GAAG,CAACQ,UAAqB,CAAC,CAAA;AAC9B,OAAA;AACJ,KAAC,CAAC,CAAA;GACL,CAAA;EACDR,GAAG,CAACN,KAAK,CAAC,CAAA;AAEV,EAAA,OAAO,CAACmB,iBAAiB,EAAEC,cAAc,EAAEC,cAAc,CAAC,CAAA;AAK9D;;;;"}
1
+ {"version":3,"file":"getPathMaps.js","sources":["../../../../../src/components/Combobox/ComboboxNew/hooks/getPathMaps.ts"],"sourcesContent":["import { isEmpty } from '../../../../utils';\nimport { ComboboxProps } from '../Combobox.types';\nimport { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\nexport type PathMapType = Map<string, number>;\nexport type FocusedToValueMapType = Map<string, ItemOptionTransformed>;\nexport type ValueToCheckedMapType = Map<ItemOptionTransformed['value'], boolean | 'done' | 'dot' | 'indeterminate'>;\nexport type ValueToItemMapType = Map<ItemOptionTransformed['value'], ItemOptionTransformed>;\nexport type LabelToItemMapType = Map<ItemOptionTransformed['label'], ItemOptionTransformed>;\n\nexport const getPathMap = (items: ComboboxProps['items']) => {\n const pathMap: PathMapType = new Map();\n const focusedToValueMap: FocusedToValueMapType = new Map();\n\n pathMap.set('root', items?.length || 0);\n\n const rec = (items: ComboboxProps['items'], prevIndex = '') => {\n items?.forEach((item: ItemOptionTransformed, index: number) => {\n const { value, items: innerItems } = item;\n const currIndex = `${prevIndex}/${index}`.replace(/^(\\/)/, '');\n\n focusedToValueMap.set(currIndex, item);\n\n if (innerItems) {\n pathMap.set(value, innerItems.length);\n rec(innerItems, currIndex);\n }\n });\n };\n rec(items);\n\n return [pathMap, focusedToValueMap] as [PathMapType, FocusedToValueMapType];\n};\n\nexport const getTreeMaps = (items: ComboboxProps['items']) => {\n const valueToCheckedMap: ValueToCheckedMapType = new Map();\n const valueToItemMap: ValueToItemMapType = new Map();\n const labelToItemMap: ValueToItemMapType = new Map();\n\n const rec = (items: ComboboxProps['items'], prevIndex = '') => {\n items?.forEach((item: ItemOptionTransformed, index: number) => {\n const { value, label, items: innerItems } = item;\n\n const currIndex = `${prevIndex}/${index}`.replace(/^(\\/)/, '');\n\n valueToCheckedMap.set(value, false);\n\n if (isEmpty(innerItems) || !innerItems) {\n valueToItemMap.set(value, item);\n labelToItemMap.set(label, item);\n } else {\n rec(innerItems, currIndex);\n }\n });\n };\n rec(items);\n\n return [valueToCheckedMap, valueToItemMap, labelToItemMap] as [\n ValueToCheckedMapType,\n ValueToItemMapType,\n LabelToItemMapType,\n ];\n};\n"],"names":["getPathMap","items","pathMap","Map","focusedToValueMap","set","length","rec","prevIndex","arguments","undefined","forEach","item","index","value","innerItems","currIndex","concat","replace","getTreeMaps","valueToCheckedMap","valueToItemMap","labelToItemMap","label","isEmpty"],"mappings":";;IAUaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,KAA6B,EAAK;AACzD,EAAA,IAAMC,OAAoB,GAAG,IAAIC,GAAG,EAAE,CAAA;AACtC,EAAA,IAAMC,iBAAwC,GAAG,IAAID,GAAG,EAAE,CAAA;AAE1DD,EAAAA,OAAO,CAACG,GAAG,CAAC,MAAM,EAAE,CAAAJ,KAAK,KAALA,IAAAA,IAAAA,KAAK,uBAALA,KAAK,CAAEK,MAAM,KAAI,CAAC,CAAC,CAAA;AAEvC,EAAA,IAAMC,GAAG,GAAG,SAANA,GAAGA,CAAIN,KAA6B,EAAqB;AAAA,IAAA,IAAnBO,SAAS,GAAAC,SAAA,CAAAH,MAAA,GAAA,CAAA,IAAAG,SAAA,CAAA,CAAA,CAAA,KAAAC,SAAA,GAAAD,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE,CAAA;IACtDR,KAAK,KAAA,IAAA,IAALA,KAAK,KAAA,KAAA,CAAA,IAALA,KAAK,CAAEU,OAAO,CAAC,UAACC,IAA2B,EAAEC,KAAa,EAAK;AAC3D,MAAA,IAAQC,KAAK,GAAwBF,IAAI,CAAjCE,KAAK;QAASC,UAAU,GAAKH,IAAI,CAA1BX,KAAK,CAAA;AACpB,MAAA,IAAMe,SAAS,GAAG,EAAA,CAAAC,MAAA,CAAGT,SAAS,EAAAS,GAAAA,CAAAA,CAAAA,MAAA,CAAIJ,KAAK,EAAGK,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAE9Dd,MAAAA,iBAAiB,CAACC,GAAG,CAACW,SAAS,EAAEJ,IAAI,CAAC,CAAA;AAEtC,MAAA,IAAIG,UAAU,EAAE;QACZb,OAAO,CAACG,GAAG,CAACS,KAAK,EAAEC,UAAU,CAACT,MAAM,CAAC,CAAA;AACrCC,QAAAA,GAAG,CAACQ,UAAU,EAA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cAAc,CAAC,CAAA;AAK9D;;;;"}
@@ -29,6 +29,7 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
29
29
  focusedToValueMap = _ref.focusedToValueMap,
30
30
  handleListToggle = _ref.handleListToggle,
31
31
  handlePressDown = _ref.handlePressDown,
32
+ multiselect = _ref.multiselect,
32
33
  setTextValue = _ref.setTextValue;
33
34
  var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
34
35
  var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[focusedPath.length - 1]) || 0;
@@ -123,6 +124,7 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
123
124
  break;
124
125
  }
125
126
  var currentItem = getItemByFocused(focusedPath, focusedToValueMap);
127
+ console.log('currentItem', currentItem, focusedPath, focusedToValueMap);
126
128
  if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
127
129
  if (path.length > focusedPath.length) {
128
130
  dispatchFocusedPath({
@@ -139,6 +141,32 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
139
141
  }
140
142
  break;
141
143
  }
144
+ case keys.Backspace:
145
+ {
146
+ if (!multiselect) break;
147
+ break;
148
+ }
149
+
150
+ // case keys.Space: {
151
+ // event.preventDefault();
152
+ //
153
+ // const currentItem = getItemByFocused(focusedPath, focusedToValueMap);
154
+ //
155
+ // if (!path[0]) {
156
+ // dispatchPath({ type: 'opened_first_level' });
157
+ // dispatchFocusedPath({ type: 'set_initial_focus' });
158
+ // break;
159
+ // }
160
+ //
161
+ // if (!currentItem || currentItem?.disabled) {
162
+ // break;
163
+ // }
164
+ //
165
+ // handlePressDown(currentItem);
166
+ //
167
+ // break;
168
+ // }
169
+
142
170
  case keys.Enter:
143
171
  {
144
172
  event.preventDefault();
@@ -155,13 +183,23 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
155
183
  });
156
184
  break;
157
185
  }
186
+
187
+ // if (currentItem?.items) {
188
+ // if (path.length > focusedPath.length) {
189
+ // dispatchFocusedPath({ type: 'add_focus', value: 0 });
190
+ // } else {
191
+ // dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });
192
+ // }
193
+ //
194
+ // break;
195
+ // }
196
+
158
197
  if (_currentItem) {
159
198
  handlePressDown(_currentItem);
160
199
  }
161
200
  break;
162
201
  }
163
202
  case keys.Tab:
164
- case keys.Escape:
165
203
  {
166
204
  dispatchPath({
167
205
  type: 'reset'
@@ -173,6 +211,17 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
173
211
  setTextValue('');
174
212
  break;
175
213
  }
214
+ case keys.Escape:
215
+ {
216
+ dispatchPath({
217
+ type: 'reset'
218
+ });
219
+ dispatchFocusedPath({
220
+ type: 'reset'
221
+ });
222
+ handleListToggle(false);
223
+ break;
224
+ }
176
225
  case keys.Home:
177
226
  {
178
227
  if (path[0]) {