@salutejs/plasma-new-hope 0.190.0-canary.1550.11795356464.0 → 0.190.0-canary.1552.11794692529.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) 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 +24 -21
  11. package/cjs/components/Combobox/ComboboxNew/Combobox.js +32 -6
  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/Form/Form.css +1 -0
  21. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +37 -0
  22. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
  23. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +15 -0
  24. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
  25. package/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
  28. package/cjs/components/DatePicker/RangeDate/RangeDate.css +22 -21
  29. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  30. package/cjs/components/DatePicker/SingleDate/SingleDate.css +22 -21
  31. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -1
  32. package/cjs/components/Pagination/Pagination.css +37 -86
  33. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  34. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  35. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  36. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  37. package/cjs/components/Range/Range.css +22 -21
  38. package/cjs/components/Select/Select.css +34 -83
  39. package/cjs/components/Select/Select.js +139 -179
  40. package/cjs/components/Select/Select.js.map +1 -1
  41. package/cjs/components/Select/Select.styles.js +50 -17
  42. package/cjs/components/Select/Select.styles.js.map +1 -1
  43. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  44. package/cjs/components/Select/Select.tokens.js +78 -122
  45. package/cjs/components/Select/Select.tokens.js.map +1 -1
  46. package/cjs/components/Select/hooks/useKeyboardNavigation.js +72 -19
  47. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  48. package/cjs/components/Select/hooks/usePathMaps.js +1 -4
  49. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  50. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  51. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  52. package/cjs/components/Select/ui/Inner/Inner.css +34 -83
  53. package/cjs/components/Select/ui/Inner/Inner.js +9 -9
  54. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  55. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  56. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -20
  57. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  58. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +51 -34
  59. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  60. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  61. package/cjs/components/Select/ui/Target/Target.css +17 -58
  62. package/cjs/components/Select/ui/Target/Target.js +16 -34
  63. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  64. package/cjs/components/Select/ui/Target/ui/Button/Button.css +5 -5
  65. package/cjs/components/Select/ui/Target/ui/Button/Button.js +14 -10
  66. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  67. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  68. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  69. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  70. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  71. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +97 -84
  72. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  73. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +103 -38
  74. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  75. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  76. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  77. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
  78. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  79. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  80. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  81. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  82. package/cjs/components/Select/utils/getView.js +2 -2
  83. package/cjs/components/Select/utils/getView.js.map +1 -1
  84. package/cjs/components/Select/variations/_size/base.js +9 -0
  85. package/cjs/components/Select/variations/_size/base.js.map +1 -0
  86. package/cjs/components/Select/variations/_size/base_x642ct.css +1 -0
  87. package/cjs/components/Select/variations/_view/base.js +9 -0
  88. package/cjs/components/Select/variations/_view/base.js.map +1 -0
  89. package/cjs/components/Select/variations/_view/base_x642ct.css +1 -0
  90. package/cjs/components/Slider/Slider.css +22 -21
  91. package/cjs/components/Slider/components/Double/Double.css +22 -21
  92. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  93. package/cjs/components/TextField/TextField.js +0 -7
  94. package/cjs/components/TextField/TextField.js.map +1 -1
  95. package/cjs/components/TextField/TextField.styles.js +22 -14
  96. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  97. package/{es/components/TextField/TextField.styles_j7dqpn.css → cjs/components/TextField/TextField.styles_grgg7q.css} +7 -6
  98. package/cjs/components/TextField/ui/Hint/Hint.css +21 -20
  99. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  100. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  101. package/cjs/components/TextField/variations/_clear/base.js +1 -1
  102. package/cjs/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  103. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  104. package/cjs/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  105. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  106. package/cjs/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  107. package/cjs/components/TextField/variations/_size/base.js +1 -1
  108. package/cjs/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  109. package/cjs/components/TextField/variations/_view/base.js +1 -1
  110. package/cjs/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  111. package/cjs/index.css +63 -46
  112. package/cjs/index.js +0 -2
  113. package/cjs/index.js.map +1 -1
  114. package/cjs/utils/index.js.map +1 -1
  115. package/cjs/utils/syntheticEvent.js +55 -0
  116. package/cjs/utils/syntheticEvent.js.map +1 -0
  117. package/emotion/cjs/components/Cell/Cell.js +1 -3
  118. package/emotion/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  119. package/emotion/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  120. package/emotion/cjs/components/Chip/Chip.js +1 -3
  121. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
  122. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  123. package/emotion/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  124. package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  125. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
  126. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +13 -0
  127. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  128. package/emotion/cjs/components/Select/Select.js +136 -177
  129. package/emotion/cjs/components/Select/Select.styles.js +31 -13
  130. package/emotion/cjs/components/Select/Select.tokens.js +60 -125
  131. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  132. package/emotion/cjs/components/Select/hooks/usePathMaps.js +1 -4
  133. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  134. package/emotion/cjs/components/Select/reducers/index.js +11 -0
  135. package/emotion/cjs/components/Select/ui/Inner/Inner.js +9 -9
  136. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  137. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -27
  138. package/emotion/cjs/components/Select/ui/Target/Target.js +18 -38
  139. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  140. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  141. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  142. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  143. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  144. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  145. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  146. package/emotion/cjs/components/Select/utils/getView.js +2 -2
  147. package/emotion/cjs/components/Select/utils/index.js +1 -22
  148. package/emotion/cjs/components/Select/variations/_size/base.js +8 -0
  149. package/emotion/cjs/components/Select/variations/_size/tokens.json +9 -0
  150. package/emotion/cjs/components/Select/variations/_view/base.js +8 -0
  151. package/emotion/cjs/components/Select/variations/_view/tokens.json +1 -0
  152. package/emotion/cjs/components/TextField/TextField.js +1 -8
  153. package/emotion/cjs/components/TextField/TextField.styles.js +40 -36
  154. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  155. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  156. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  157. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  158. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  159. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  160. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  161. package/emotion/cjs/index.js +0 -11
  162. package/emotion/cjs/utils/index.js +1 -9
  163. package/emotion/cjs/utils/syntheticEvent.js +53 -0
  164. package/emotion/es/components/Cell/Cell.js +1 -3
  165. package/emotion/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  166. package/emotion/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  167. package/emotion/es/components/Chip/Chip.js +1 -3
  168. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
  169. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  170. package/emotion/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  171. package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  172. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
  173. package/emotion/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +6 -0
  174. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  175. package/emotion/es/components/Select/Select.js +141 -182
  176. package/emotion/es/components/Select/Select.styles.js +30 -12
  177. package/emotion/es/components/Select/Select.tokens.js +60 -125
  178. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  179. package/emotion/es/components/Select/hooks/usePathMaps.js +1 -4
  180. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  181. package/emotion/es/components/Select/reducers/index.js +2 -1
  182. package/emotion/es/components/Select/ui/Inner/Inner.js +10 -10
  183. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  184. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +49 -26
  185. package/emotion/es/components/Select/ui/Target/Target.js +17 -35
  186. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  187. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +6 -6
  188. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  189. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +74 -27
  190. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  191. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
  192. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  193. package/emotion/es/components/Select/utils/getView.js +2 -2
  194. package/emotion/es/components/Select/utils/index.js +1 -4
  195. package/emotion/es/components/Select/variations/_size/base.js +2 -0
  196. package/emotion/es/components/Select/variations/_size/tokens.json +9 -0
  197. package/emotion/es/components/Select/variations/_view/base.js +2 -0
  198. package/emotion/es/components/Select/variations/_view/tokens.json +1 -0
  199. package/emotion/es/components/TextField/TextField.js +1 -8
  200. package/emotion/es/components/TextField/TextField.styles.js +40 -36
  201. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  202. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  203. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  204. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  205. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  206. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  207. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  208. package/emotion/es/index.js +0 -1
  209. package/emotion/es/utils/index.js +1 -2
  210. package/emotion/es/utils/syntheticEvent.js +47 -0
  211. package/es/components/Autocomplete/Autocomplete.css +22 -21
  212. package/es/components/Cell/Cell.js +1 -3
  213. package/es/components/Cell/Cell.js.map +1 -1
  214. package/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  215. package/es/components/Cell/ui/CellTextbox/CellTextbox.js.map +1 -1
  216. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  217. package/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js.map +1 -1
  218. package/es/components/Chip/Chip.js +1 -3
  219. package/es/components/Chip/Chip.js.map +1 -1
  220. package/es/components/Combobox/ComboboxNew/Combobox.css +24 -21
  221. package/es/components/Combobox/ComboboxNew/Combobox.js +34 -8
  222. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  223. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  224. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  225. package/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  226. package/es/components/Combobox/ComboboxNew/FloatingPopover.js.map +1 -1
  227. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  228. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  229. package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
  230. package/es/components/Combobox/ComboboxNew/ui/Form/Form.css +1 -0
  231. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js +33 -0
  232. package/es/components/Combobox/ComboboxNew/ui/Form/Form.js.map +1 -0
  233. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +11 -0
  234. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js.map +1 -0
  235. package/es/components/Combobox/ComboboxNew/ui/Form/Form.styles_22v2s5.css +1 -0
  236. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +24 -21
  237. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +24 -21
  238. package/es/components/DatePicker/RangeDate/RangeDate.css +22 -21
  239. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +22 -21
  240. package/es/components/DatePicker/SingleDate/SingleDate.css +22 -21
  241. package/es/components/Dropdown/FloatingPopover.js.map +1 -1
  242. package/es/components/Pagination/Pagination.css +37 -86
  243. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +37 -86
  244. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  245. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  246. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_1fesyfv.css +3 -0
  247. package/es/components/Range/Range.css +22 -21
  248. package/es/components/Select/Select.css +34 -83
  249. package/es/components/Select/Select.js +142 -182
  250. package/es/components/Select/Select.js.map +1 -1
  251. package/es/components/Select/Select.styles.js +48 -18
  252. package/es/components/Select/Select.styles.js.map +1 -1
  253. package/es/components/Select/Select.styles_768h42.css +5 -0
  254. package/es/components/Select/Select.tokens.js +78 -123
  255. package/es/components/Select/Select.tokens.js.map +1 -1
  256. package/es/components/Select/hooks/useKeyboardNavigation.js +73 -19
  257. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  258. package/es/components/Select/hooks/usePathMaps.js +1 -4
  259. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  260. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  261. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  262. package/es/components/Select/ui/Inner/Inner.css +34 -83
  263. package/es/components/Select/ui/Inner/Inner.js +10 -10
  264. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  265. package/es/components/Select/ui/Inner/ui/Item/Item.css +34 -83
  266. package/es/components/Select/ui/Inner/ui/Item/Item.js +14 -22
  267. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  268. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +50 -33
  269. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  270. package/es/components/Select/ui/Inner/ui/Item/Item.styles_8oe5oy.css +9 -0
  271. package/es/components/Select/ui/Target/Target.css +17 -58
  272. package/es/components/Select/ui/Target/Target.js +17 -35
  273. package/es/components/Select/ui/Target/Target.js.map +1 -1
  274. package/es/components/Select/ui/Target/ui/Button/Button.css +5 -5
  275. package/es/components/Select/ui/Target/ui/Button/Button.js +15 -11
  276. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -1
  277. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -1
  278. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  279. package/es/components/Select/ui/Target/ui/Button/Button.styles_lxxm4p.css +5 -0
  280. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +38 -53
  281. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  282. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  283. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +95 -39
  284. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  285. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_1damf5p.css +12 -0
  286. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.css +21 -0
  287. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
  288. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  289. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +18 -0
  290. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  291. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  292. package/es/components/Select/utils/getView.js +2 -2
  293. package/es/components/Select/utils/getView.js.map +1 -1
  294. package/es/components/Select/variations/_size/base.js +5 -0
  295. package/es/components/Select/variations/_size/base.js.map +1 -0
  296. package/es/components/Select/variations/_size/base_x642ct.css +1 -0
  297. package/es/components/Select/variations/_view/base.js +5 -0
  298. package/es/components/Select/variations/_view/base.js.map +1 -0
  299. package/es/components/Select/variations/_view/base_x642ct.css +1 -0
  300. package/es/components/Slider/Slider.css +22 -21
  301. package/es/components/Slider/components/Double/Double.css +22 -21
  302. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +22 -21
  303. package/es/components/TextField/TextField.js +0 -7
  304. package/es/components/TextField/TextField.js.map +1 -1
  305. package/es/components/TextField/TextField.styles.js +22 -14
  306. package/es/components/TextField/TextField.styles.js.map +1 -1
  307. package/{cjs/components/TextField/TextField.styles_j7dqpn.css → es/components/TextField/TextField.styles_grgg7q.css} +7 -6
  308. package/es/components/TextField/ui/Hint/Hint.css +21 -20
  309. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  310. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  311. package/es/components/TextField/variations/_clear/base.js +1 -1
  312. package/es/components/TextField/variations/_clear/{base_1396md2.css → base_1i91sjp.css} +1 -1
  313. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  314. package/es/components/TextField/variations/_label-placement/base_3domm.css +1 -0
  315. package/es/components/TextField/variations/_read-only/base.js +1 -1
  316. package/es/components/TextField/variations/_read-only/{base_1jvcf9a.css → base_17ypmu7.css} +1 -1
  317. package/es/components/TextField/variations/_size/base.js +1 -1
  318. package/es/components/TextField/variations/_size/{base_1tei47x.css → base_1xdmaqh.css} +1 -1
  319. package/es/components/TextField/variations/_view/base.js +1 -1
  320. package/es/components/TextField/variations/_view/{base_8ogww5.css → base_qhyte8.css} +1 -1
  321. package/es/index.css +63 -46
  322. package/es/index.js +0 -1
  323. package/es/index.js.map +1 -1
  324. package/es/utils/index.js.map +1 -1
  325. package/es/utils/syntheticEvent.js +50 -0
  326. package/es/utils/syntheticEvent.js.map +1 -0
  327. package/package.json +2 -2
  328. package/styled-components/cjs/components/Cell/Cell.js +1 -3
  329. package/styled-components/cjs/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  330. package/styled-components/cjs/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  331. package/styled-components/cjs/components/Chip/Chip.js +1 -3
  332. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +33 -7
  333. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  334. package/styled-components/cjs/components/Combobox/ComboboxNew/FloatingPopover.js +5 -19
  335. package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  336. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.js +38 -0
  337. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +12 -0
  338. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  339. package/styled-components/cjs/components/Select/Select.js +136 -177
  340. package/styled-components/cjs/components/Select/Select.styles.js +27 -12
  341. package/styled-components/cjs/components/Select/Select.tokens.js +60 -125
  342. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +73 -19
  343. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +1 -4
  344. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  345. package/styled-components/cjs/components/Select/reducers/index.js +11 -0
  346. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +9 -9
  347. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +12 -19
  348. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +26 -20
  349. package/styled-components/cjs/components/Select/ui/Target/Target.js +18 -38
  350. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +16 -13
  351. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  352. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -88
  353. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  354. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +37 -0
  355. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
  356. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  357. package/styled-components/cjs/components/Select/utils/getView.js +2 -2
  358. package/styled-components/cjs/components/Select/utils/index.js +1 -22
  359. package/styled-components/cjs/components/Select/variations/_size/base.js +8 -0
  360. package/styled-components/cjs/components/Select/variations/_size/tokens.json +9 -0
  361. package/styled-components/cjs/components/Select/variations/_view/base.js +8 -0
  362. package/styled-components/cjs/components/Select/variations/_view/tokens.json +1 -0
  363. package/styled-components/cjs/components/TextField/TextField.js +0 -7
  364. package/styled-components/cjs/components/TextField/TextField.styles.js +15 -12
  365. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  366. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  367. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  368. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +20 -28
  369. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  370. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +20 -28
  371. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  372. package/styled-components/cjs/index.js +0 -11
  373. package/styled-components/cjs/utils/index.js +1 -9
  374. package/styled-components/cjs/utils/syntheticEvent.js +53 -0
  375. package/styled-components/es/components/Cell/Cell.js +1 -3
  376. package/styled-components/es/components/Cell/ui/CellTextbox/CellTextbox.js +1 -7
  377. package/styled-components/es/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.js +1 -4
  378. package/styled-components/es/components/Chip/Chip.js +1 -3
  379. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +34 -7
  380. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -0
  381. package/styled-components/es/components/Combobox/ComboboxNew/FloatingPopover.js +4 -18
  382. package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +50 -1
  383. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.js +29 -0
  384. package/styled-components/es/components/Combobox/ComboboxNew/ui/Form/Form.styles.js +5 -0
  385. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  386. package/styled-components/es/components/Select/Select.js +141 -182
  387. package/styled-components/es/components/Select/Select.styles.js +26 -11
  388. package/styled-components/es/components/Select/Select.tokens.js +60 -125
  389. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +72 -18
  390. package/styled-components/es/components/Select/hooks/usePathMaps.js +1 -4
  391. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  392. package/styled-components/es/components/Select/reducers/index.js +2 -1
  393. package/styled-components/es/components/Select/ui/Inner/Inner.js +10 -10
  394. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +15 -22
  395. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +25 -19
  396. package/styled-components/es/components/Select/ui/Target/Target.js +17 -35
  397. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +16 -11
  398. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +3 -3
  399. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +99 -86
  400. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +61 -23
  401. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  402. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
  403. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  404. package/styled-components/es/components/Select/utils/getView.js +2 -2
  405. package/styled-components/es/components/Select/utils/index.js +1 -4
  406. package/styled-components/es/components/Select/variations/_size/base.js +2 -0
  407. package/styled-components/es/components/Select/variations/_size/tokens.json +9 -0
  408. package/styled-components/es/components/Select/variations/_view/base.js +2 -0
  409. package/styled-components/es/components/Select/variations/_view/tokens.json +1 -0
  410. package/styled-components/es/components/TextField/TextField.js +0 -7
  411. package/styled-components/es/components/TextField/TextField.styles.js +15 -12
  412. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +1 -7
  413. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +1 -1
  414. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  415. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -29
  416. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +40 -47
  417. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -29
  418. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +40 -47
  419. package/styled-components/es/index.js +0 -1
  420. package/styled-components/es/utils/index.js +1 -2
  421. package/styled-components/es/utils/syntheticEvent.js +47 -0
  422. package/types/components/Attach/ui/Button/Button.styles.d.ts +2 -2
  423. package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +4 -4
  424. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -16
  425. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  426. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +2 -2
  427. package/types/components/Cell/Cell.d.ts.map +1 -1
  428. package/types/components/Cell/ui/CellTextbox/CellTextbox.d.ts.map +1 -1
  429. package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.d.ts.map +1 -1
  430. package/types/components/Chip/Chip.d.ts.map +1 -1
  431. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
  432. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  433. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +1 -0
  434. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  435. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +25 -3
  436. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  437. package/types/components/Combobox/ComboboxNew/FloatingPopover.d.ts.map +1 -1
  438. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +3 -1
  439. package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
  440. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts +6 -0
  441. package/types/components/Combobox/ComboboxNew/ui/Form/Form.d.ts.map +1 -0
  442. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts +3 -0
  443. package/types/components/Combobox/ComboboxNew/ui/Form/Form.styles.d.ts.map +1 -0
  444. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -16
  445. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  446. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -16
  447. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  448. package/types/components/EmptyState/EmptyState.styles.d.ts +2 -2
  449. package/types/components/Notification/Notification.styles.d.ts +2 -2
  450. package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +2 -2
  451. package/types/components/Pagination/Pagination.styles.d.ts +4 -4
  452. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +40 -40
  453. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +2 -2
  454. package/types/components/Range/Range.styles.d.ts +16 -16
  455. package/types/components/Range/Range.styles.d.ts.map +1 -1
  456. package/types/components/Select/Select.d.ts +11 -5
  457. package/types/components/Select/Select.d.ts.map +1 -1
  458. package/types/components/Select/Select.styles.d.ts +9 -0
  459. package/types/components/Select/Select.styles.d.ts.map +1 -1
  460. package/types/components/Select/Select.tokens.d.ts +58 -121
  461. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  462. package/types/components/Select/Select.types.d.ts +20 -41
  463. package/types/components/Select/Select.types.d.ts.map +1 -1
  464. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +11 -5
  465. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  466. package/types/components/Select/hooks/usePathMaps.d.ts +1 -2
  467. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
  468. package/types/components/Select/index.d.ts +1 -1
  469. package/types/components/Select/index.d.ts.map +1 -1
  470. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  471. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  472. package/types/components/Select/reducers/index.d.ts +1 -0
  473. package/types/components/Select/reducers/index.d.ts.map +1 -1
  474. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -1
  475. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  476. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +2 -32
  477. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  478. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +0 -9
  479. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
  480. package/types/components/Select/ui/Target/Target.d.ts +2 -14
  481. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  482. package/types/components/Select/ui/Target/Target.types.d.ts +9 -10
  483. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  484. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +1 -1
  485. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -1
  486. package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +2 -2
  487. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +1 -1
  488. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
  489. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +1 -1
  490. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  491. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -628
  492. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  493. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -1
  494. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  495. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
  496. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
  497. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
  498. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
  499. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
  500. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
  501. package/types/components/Select/utils/getView.d.ts +1 -1
  502. package/types/components/Select/utils/getView.d.ts.map +1 -1
  503. package/types/components/Select/utils/index.d.ts +0 -3
  504. package/types/components/Select/utils/index.d.ts.map +1 -1
  505. package/types/components/Select/variations/_size/base.d.ts +2 -0
  506. package/types/components/Select/variations/_size/base.d.ts.map +1 -0
  507. package/types/components/Select/variations/_view/base.d.ts +2 -0
  508. package/types/components/Select/variations/_view/base.d.ts.map +1 -0
  509. package/types/components/Slider/components/Double/Double.styles.d.ts +16 -16
  510. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  511. package/types/components/TextField/TextField.d.ts.map +1 -1
  512. package/types/components/TextField/TextField.styles.d.ts +3 -1
  513. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  514. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +1 -3
  515. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  516. package/types/components/Toast/Toast.styles.d.ts +2 -2
  517. package/types/components/Toast/utils.d.ts +2 -2
  518. package/types/examples/plasma_b2c/components/Attach/Attach.d.ts +8 -8
  519. package/types/examples/plasma_b2c/components/Button/Button.d.ts +2 -2
  520. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1100 -140
  521. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  522. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +2 -2
  523. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -16
  524. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  525. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  526. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts.map +1 -1
  527. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +7 -15
  528. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  529. package/types/examples/plasma_b2c/components/Select/Select.d.ts +46 -53
  530. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  531. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +16 -16
  532. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -16
  533. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  534. package/types/examples/plasma_web/components/Attach/Attach.d.ts +8 -8
  535. package/types/examples/plasma_web/components/Button/Button.d.ts +2 -2
  536. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1100 -140
  537. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  538. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +2 -2
  539. package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -16
  540. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  541. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
  542. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts.map +1 -1
  543. package/types/examples/plasma_web/components/Select/Select.config.d.ts +7 -15
  544. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  545. package/types/examples/plasma_web/components/Select/Select.d.ts +46 -53
  546. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  547. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +16 -16
  548. package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -16
  549. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  550. package/types/index.d.ts +0 -1
  551. package/types/index.d.ts.map +1 -1
  552. package/types/types/index.d.ts +0 -2
  553. package/types/types/index.d.ts.map +1 -1
  554. package/types/utils/index.d.ts +0 -1
  555. package/types/utils/index.d.ts.map +1 -1
  556. package/types/utils/syntheticEvent.d.ts +4 -0
  557. package/types/utils/syntheticEvent.d.ts.map +1 -0
  558. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  559. package/cjs/components/Select/FloatingPopover.js +0 -87
  560. package/cjs/components/Select/FloatingPopover.js.map +0 -1
  561. package/cjs/components/Select/Select.styles_1p5c9p3.css +0 -2
  562. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  563. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  564. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
  565. package/cjs/components/Select/utils/getFallbackPlacements.js +0 -15
  566. package/cjs/components/Select/utils/getFallbackPlacements.js.map +0 -1
  567. package/cjs/components/Select/utils/getItemId.js +0 -10
  568. package/cjs/components/Select/utils/getItemId.js.map +0 -1
  569. package/cjs/components/Select/utils/getPlacement.js +0 -13
  570. package/cjs/components/Select/utils/getPlacement.js.map +0 -1
  571. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  572. package/cjs/utils/fixedForwardRef.js +0 -12
  573. package/cjs/utils/fixedForwardRef.js.map +0 -1
  574. package/emotion/cjs/components/Select/FloatingPopover.js +0 -91
  575. package/emotion/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  576. package/emotion/cjs/components/Select/utils/getItemId.js +0 -9
  577. package/emotion/cjs/components/Select/utils/getPlacement.js +0 -12
  578. package/emotion/cjs/types/DistributiveOmit.js +0 -5
  579. package/emotion/cjs/types/DistributivePick.js +0 -5
  580. package/emotion/cjs/utils/fixedForwardRef.js +0 -11
  581. package/emotion/es/components/Select/FloatingPopover.js +0 -84
  582. package/emotion/es/components/Select/utils/getFallbackPlacements.js +0 -8
  583. package/emotion/es/components/Select/utils/getItemId.js +0 -3
  584. package/emotion/es/components/Select/utils/getPlacement.js +0 -6
  585. package/emotion/es/types/DistributiveOmit.js +0 -1
  586. package/emotion/es/types/DistributivePick.js +0 -1
  587. package/emotion/es/utils/fixedForwardRef.js +0 -4
  588. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_10zfeps.css +0 -3
  589. package/es/components/Select/FloatingPopover.js +0 -83
  590. package/es/components/Select/FloatingPopover.js.map +0 -1
  591. package/es/components/Select/Select.styles_1p5c9p3.css +0 -2
  592. package/es/components/Select/ui/Inner/ui/Item/Item.styles_1x4bzlm.css +0 -9
  593. package/es/components/Select/ui/Target/ui/Button/Button.styles_10g64me.css +0 -5
  594. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_lu1i4v.css +0 -3
  595. package/es/components/Select/utils/getFallbackPlacements.js +0 -11
  596. package/es/components/Select/utils/getFallbackPlacements.js.map +0 -1
  597. package/es/components/Select/utils/getItemId.js +0 -6
  598. package/es/components/Select/utils/getItemId.js.map +0 -1
  599. package/es/components/Select/utils/getPlacement.js +0 -9
  600. package/es/components/Select/utils/getPlacement.js.map +0 -1
  601. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  602. package/es/utils/fixedForwardRef.js +0 -8
  603. package/es/utils/fixedForwardRef.js.map +0 -1
  604. package/styled-components/cjs/components/Select/FloatingPopover.js +0 -91
  605. package/styled-components/cjs/components/Select/utils/getFallbackPlacements.js +0 -14
  606. package/styled-components/cjs/components/Select/utils/getItemId.js +0 -9
  607. package/styled-components/cjs/components/Select/utils/getPlacement.js +0 -12
  608. package/styled-components/cjs/types/DistributiveOmit.js +0 -5
  609. package/styled-components/cjs/types/DistributivePick.js +0 -5
  610. package/styled-components/cjs/utils/fixedForwardRef.js +0 -11
  611. package/styled-components/es/components/Select/FloatingPopover.js +0 -84
  612. package/styled-components/es/components/Select/utils/getFallbackPlacements.js +0 -8
  613. package/styled-components/es/components/Select/utils/getItemId.js +0 -3
  614. package/styled-components/es/components/Select/utils/getPlacement.js +0 -6
  615. package/styled-components/es/types/DistributiveOmit.js +0 -1
  616. package/styled-components/es/types/DistributivePick.js +0 -1
  617. package/styled-components/es/utils/fixedForwardRef.js +0 -4
  618. package/types/components/Select/FloatingPopover.d.ts +0 -5
  619. package/types/components/Select/FloatingPopover.d.ts.map +0 -1
  620. package/types/components/Select/utils/getFallbackPlacements.d.ts +0 -4
  621. package/types/components/Select/utils/getFallbackPlacements.d.ts.map +0 -1
  622. package/types/components/Select/utils/getItemId.d.ts +0 -2
  623. package/types/components/Select/utils/getItemId.d.ts.map +0 -1
  624. package/types/components/Select/utils/getPlacement.d.ts +0 -4
  625. package/types/components/Select/utils/getPlacement.d.ts.map +0 -1
  626. package/types/types/DistributiveOmit.d.ts +0 -2
  627. package/types/types/DistributiveOmit.d.ts.map +0 -1
  628. package/types/types/DistributivePick.d.ts +0 -2
  629. package/types/types/DistributivePick.d.ts.map +0 -1
  630. package/types/utils/fixedForwardRef.d.ts +0 -3
  631. package/types/utils/fixedForwardRef.d.ts.map +0 -1
@@ -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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EAAE,sDAAsD;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,2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,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;;;;"}
@@ -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,K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AC,aAAA,CAACK,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,SA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lC,MAAM,KAAK,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,GAA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IAEYe,WAAW,GAAG,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,CA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,cAAc,EAAEC,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]) {
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardNavigation.js","sources":["../../../../../src/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.ts"],"sourcesContent":["import type { KeyboardEvent, Dispatch } from 'react';\nimport React from 'react';\n\nimport { PathAction, PathState, FocusedPathAction, FocusedPathState } from '../reducers';\nimport type { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\nimport { PathMapType, FocusedToValueMapType } from './getPathMaps';\n\nconst JUMP_SIZE = 10;\n\nexport const keys = {\n Enter: 'Enter',\n Space: 'Space',\n Tab: 'Tab',\n Escape: 'Escape',\n Backspace: 'Backspace',\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Home: 'Home',\n End: 'End',\n PageUp: 'PageUp',\n PageDown: 'PageDown',\n};\n\nexport const getItemByFocused = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n\ntype Props = {\n focusedPath: FocusedPathState;\n dispatchFocusedPath: Dispatch<FocusedPathAction>;\n path: PathState;\n dispatchPath: Dispatch<PathAction>;\n pathMap: PathMapType;\n focusedToValueMap: FocusedToValueMapType;\n handleListToggle: (opened: boolean) => void;\n handlePressDown: (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => void;\n setTextValue: React.Dispatch<React.SetStateAction<string>>;\n};\n\ntype ReturnedProps = {\n onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;\n};\n\nexport const useKeyNavigation = ({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleListToggle,\n handlePressDown,\n setTextValue,\n}: Props): ReturnedProps => {\n const currentIndex: number = focusedPath?.[focusedPath.length - 1] || 0;\n const currentLength: number = pathMap.get(path?.[focusedPath.length - 1]) || 0;\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n switch (event.key) {\n case keys.ArrowUp: {\n if (focusedPath.length) {\n if (currentIndex > 0) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleListToggle(true);\n }\n\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n break;\n }\n\n case keys.ArrowDown: {\n if (focusedPath.length) {\n if (currentIndex + 1 < currentLength) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleListToggle(true);\n }\n\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n break;\n }\n\n case keys.ArrowLeft: {\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n\n if (focusedPath.length) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n } else {\n dispatchFocusedPath({ type: 'return_prev_focus' });\n }\n }\n\n if (path.length === 1) {\n handleListToggle(false);\n }\n }\n\n break;\n }\n\n case keys.ArrowRight: {\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n\n if (!focusedPath.length) {\n break;\n }\n\n const currentItem = getItemByFocused(focusedPath, focusedToValueMap);\n\n if (currentItem?.items) {\n if (path.length > focusedPath.length) {\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n } else {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n }\n }\n }\n\n break;\n }\n\n case keys.Enter: {\n event.preventDefault();\n\n const currentItem = getItemByFocused(focusedPath, focusedToValueMap)!;\n\n if (currentItem?.disabled) {\n break;\n }\n\n if (!path[0]) {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n break;\n }\n\n if (currentItem) {\n handlePressDown(currentItem);\n }\n\n break;\n }\n\n case keys.Tab:\n case keys.Escape: {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n handleListToggle(false);\n setTextValue('');\n\n break;\n }\n\n case keys.Home: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n\n handleListToggle(true);\n }\n\n break;\n }\n\n case keys.End: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'change_last_focus', value: (pathMap.get('root') || 0) - 1 });\n\n handleListToggle(true);\n }\n\n break;\n }\n\n case keys.PageUp: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - JUMP_SIZE });\n }\n\n break;\n }\n\n case keys.PageDown: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentLength - currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + JUMP_SIZE });\n }\n\n break;\n }\n\n default: {\n break;\n }\n }\n };\n\n return { onKeyDown };\n};\n"],"names":["JUMP_SIZE","keys","Enter","Space","Tab","Escape","Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","getItemByFocused","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get","useKeyNavigation","_ref","dispatchFocusedPath","path","dispatchPath","pathMap","handleListToggle","handlePressDown","setTextValue","currentIndex","length","currentLength","onKeyDown","event","key","type","value","stopPropagation","preventDefault","currentItem","items","toString","disabled"],"mappings":"AAQA,IAAMA,SAAS,GAAG,EAAE,CAAA;AAEb,IAAMC,IAAI,GAAG;AAChBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,E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AAS,EAAE;AAC3B2B,YAAAA,mBAAmB,CAAC;AAAEa,cAAAA,IAAI,EAAE,mBAAmB;AAAEC,cAAAA,KAAK,EAAE,CAAA;AAAE,aAAC,CAAC,CAAA;AAChE,WAAC,MAAM;AACHd,YAAAA,mBAAmB,CAAC;AAAEa,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEP,YAAY,GAAGlC,SAAAA;AAAU,aAAC,CAAC,CAAA;AACvF,WAAA;AAEA,UAAA,MAAA;AACJ,SAAA;MAEA,KAAKC,IAAI,CAACa,QAAQ;AAAE,QAAA;AAChB,UAAA,IAAI,CAACc,IAAI,CAAC,CAAC,CAAC,EAAE;AACV,YAAA,MAAA;AACJ,WAAA;AAEA,UAAA,IAAIA,IAAI,CAACO,MAAM,GAAGnB,WAAW,CAACmB,MAAM,EAAE;AAClCN,YAAAA,YAAY,CAAC;AAAEW,cAAAA,IAAI,EAAE,oBAAA;AAAqB,aAAC,CAAC,CAAA;AAChD,WAAA;AAEA,UAAA,IAAIJ,aAAa,GAAGF,YAAY,IAAIlC,SAAS,EAAE;AAC3C2B,YAAAA,mBAAmB,CAAC;AAAEa,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEL,aAAa,GAAG,CAAA;AAAE,aAAC,CAAC,CAAA;AAChF,WAAC,MAAM;AACHT,YAAAA,mBAAmB,CAAC;AAAEa,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEP,YAAY,GAAGlC,SAAAA;AAAU,aAAC,CAAC,CAAA;AACvF,WAAA;AAEA,UAAA,MAAA;AACJ,SAAA;AAKJ,KAAA;GACH,CAAA;EAED,OAAO;AAAEqC,IAAAA,SAAS,EAATA,SAAAA;GAAW,CAAA;AACxB;;;;"}
1
+ {"version":3,"file":"useKeyboardNavigation.js","sources":["../../../../../src/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.ts"],"sourcesContent":["import type { KeyboardEvent, Dispatch } from 'react';\nimport React from 'react';\n\nimport { PathAction, PathState, FocusedPathAction, FocusedPathState } from '../reducers';\nimport { ComboboxProps } from '../Combobox.types';\nimport type { ItemOptionTransformed } from '../ui/Inner/ui/Item/Item.types';\n\nimport { PathMapType, FocusedToValueMapType } from './getPathMaps';\n\nconst JUMP_SIZE = 10;\n\nexport const keys = {\n Enter: 'Enter',\n Space: 'Space',\n Tab: 'Tab',\n Escape: 'Escape',\n Backspace: 'Backspace',\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Home: 'Home',\n End: 'End',\n PageUp: 'PageUp',\n PageDown: 'PageDown',\n};\n\nexport const getItemByFocused = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n\ntype Props = {\n focusedPath: FocusedPathState;\n dispatchFocusedPath: Dispatch<FocusedPathAction>;\n path: PathState;\n dispatchPath: Dispatch<PathAction>;\n pathMap: PathMapType;\n focusedToValueMap: FocusedToValueMapType;\n handleListToggle: (opened: boolean) => void;\n handlePressDown: (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => void;\n multiselect: ComboboxProps['multiple'];\n setTextValue: React.Dispatch<React.SetStateAction<string>>;\n};\n\ntype ReturnedProps = {\n onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;\n};\n\nexport const useKeyNavigation = ({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleListToggle,\n handlePressDown,\n multiselect,\n setTextValue,\n}: Props): ReturnedProps => {\n const currentIndex: number = focusedPath?.[focusedPath.length - 1] || 0;\n const currentLength: number = pathMap.get(path?.[focusedPath.length - 1]) || 0;\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n switch (event.key) {\n case keys.ArrowUp: {\n if (focusedPath.length) {\n if (currentIndex > 0) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleListToggle(true);\n }\n\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n break;\n }\n\n case keys.ArrowDown: {\n if (focusedPath.length) {\n if (currentIndex + 1 < currentLength) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleListToggle(true);\n }\n\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n break;\n }\n\n case keys.ArrowLeft: {\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n\n if (focusedPath.length) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n } else {\n dispatchFocusedPath({ type: 'return_prev_focus' });\n }\n }\n\n if (path.length === 1) {\n handleListToggle(false);\n }\n }\n\n break;\n }\n\n case keys.ArrowRight: {\n if (path[0]) {\n event.stopPropagation();\n event.preventDefault();\n\n if (!focusedPath.length) {\n break;\n }\n\n const currentItem = getItemByFocused(focusedPath, focusedToValueMap);\n\n console.log('currentItem', currentItem, focusedPath, focusedToValueMap);\n\n if (currentItem?.items) {\n if (path.length > focusedPath.length) {\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n } else {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n }\n }\n }\n\n break;\n }\n\n case keys.Backspace: {\n if (!multiselect) break;\n\n break;\n }\n\n // case keys.Space: {\n // event.preventDefault();\n //\n // const currentItem = getItemByFocused(focusedPath, focusedToValueMap);\n //\n // if (!path[0]) {\n // dispatchPath({ type: 'opened_first_level' });\n // dispatchFocusedPath({ type: 'set_initial_focus' });\n // break;\n // }\n //\n // if (!currentItem || currentItem?.disabled) {\n // break;\n // }\n //\n // handlePressDown(currentItem);\n //\n // break;\n // }\n\n case keys.Enter: {\n event.preventDefault();\n\n const currentItem = getItemByFocused(focusedPath, focusedToValueMap)!;\n\n if (currentItem?.disabled) {\n break;\n }\n\n if (!path[0]) {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n break;\n }\n\n // if (currentItem?.items) {\n // if (path.length > focusedPath.length) {\n // dispatchFocusedPath({ type: 'add_focus', value: 0 });\n // } else {\n // dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n // }\n //\n // break;\n // }\n\n if (currentItem) {\n handlePressDown(currentItem);\n }\n\n break;\n }\n\n case keys.Tab: {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n handleListToggle(false);\n setTextValue('');\n\n break;\n }\n\n case keys.Escape: {\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n handleListToggle(false);\n\n break;\n }\n\n case keys.Home: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n\n handleListToggle(true);\n }\n\n break;\n }\n\n case keys.End: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'change_last_focus', value: (pathMap.get('root') || 0) - 1 });\n\n handleListToggle(true);\n }\n\n break;\n }\n\n case keys.PageUp: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - JUMP_SIZE });\n }\n\n break;\n }\n\n case keys.PageDown: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentLength - currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + JUMP_SIZE });\n }\n\n break;\n }\n\n default: {\n break;\n }\n }\n };\n\n return { onKeyDown };\n};\n"],"names":["JUMP_SIZE","keys","Enter","Space","Tab","Escape","Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","getItemByFocused","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get","useKeyNavigation","_ref","dispatchFocusedPath","path","dispatchPath","pathMap","handleListToggle","handlePressDown","multiselect","setTextValue","currentIndex","length","currentLength","onKeyDown","event","key","type","value","stopPropagation","preventDefault","currentItem","console","log","items","toString","disabled"],"mappings":"AASA,IAAMA,SAAS,GAAG,EAAE,CAAA;AAEb,IAAMC,IAAI,GAAG;AAChBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAA;AACd,EAAC;AAEM,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IAAInC,SAAS,EAAE;AAC3C2B,YAAAA,mBAAmB,CAAC;AAAEc,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEL,aAAa,GAAG,CAAA;AAAE,aAAC,CAAC,CAAA;AAChF,WAAC,MAAM;AACHV,YAAAA,mBAAmB,CAAC;AAAEc,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEP,YAAY,GAAGnC,SAAAA;AAAU,aAAC,CAAC,CAAA;AACvF,WAAA;AAEA,UAAA,MAAA;AACJ,SAAA;AAKJ,KAAA;GACH,CAAA;EAED,OAAO;AAAEsC,IAAAA,SAAS,EAATA,SAAAA;GAAW,CAAA;AACxB;;;;"}
@@ -0,0 +1 @@
1
+ .Form_styles_22v2s5_sngk5la__4621e773{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
@@ -0,0 +1,33 @@
1
+ import React, { forwardRef, useRef, useEffect } from 'react';
2
+ import { useForkRef } from '@salutejs/plasma-core';
3
+ import { createEvent } from '../../../../../utils/syntheticEvent.js';
4
+ import { SelectHidden } from './Form.styles.js';
5
+
6
+ var Form = /*#__PURE__*/forwardRef(function (_ref, ref) {
7
+ var name = _ref.name,
8
+ multiple = _ref.multiple,
9
+ value = _ref.value,
10
+ onChange = _ref.onChange;
11
+ var values = multiple ? value : [value];
12
+ var selectRef = useRef(null);
13
+ var forkRef = useForkRef(selectRef, ref);
14
+ useEffect(function () {
15
+ var event = createEvent(selectRef);
16
+ onChange && onChange(event);
17
+ }, [values]);
18
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
19
+ ref: forkRef,
20
+ multiple: multiple,
21
+ name: name,
22
+ hidden: true,
23
+ value: multiple ? values : values[0]
24
+ }, values.map(function (v) {
25
+ return /*#__PURE__*/React.createElement("option", {
26
+ key: v,
27
+ value: v
28
+ }, v);
29
+ })));
30
+ });
31
+
32
+ export { Form };
33
+ //# sourceMappingURL=Form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Form/Form.tsx"],"sourcesContent":["import React, { ChangeEvent, forwardRef, useEffect, useRef } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { createEvent } from '../../../../../utils/syntheticEvent';\nimport { ComboboxProps } from '../../Combobox.types';\n\nimport { SelectHidden } from './Form.styles';\n\ntype Props = Pick<ComboboxProps, 'name' | 'value' | 'multiple'> & {\n onChange: (value: ChangeEvent<HTMLSelectElement> | null) => void;\n};\n\nexport const Form = forwardRef<HTMLSelectElement, Props>(({ name, multiple, value, onChange }, ref) => {\n const values = (multiple ? value : [value]) as string[];\n const selectRef = useRef<HTMLSelectElement | null>(null);\n const forkRef = useForkRef(selectRef, ref);\n\n useEffect(() => {\n const event = createEvent(selectRef);\n onChange && onChange(event);\n }, [values]);\n return (\n <>\n <SelectHidden ref={forkRef} multiple={multiple} name={name} hidden value={multiple ? values : values[0]}>\n {values.map((v) => (\n <option key={v} value={v}>\n {v}\n </option>\n ))}\n </SelectHidden>\n </>\n );\n});\n"],"names":["Form","forwardRef","_ref","ref","name","multiple","value","onChange","values","selectRef","useRef","forkRef","useForkRef","useEffect","event","createEvent","React","createElement","Fragment","SelectHidden","hidden","map","v","key"],"mappings":";;;;;AAYO,IAAMA,IAAI,gBAAGC,UAAU,CAA2B,UAAAC,IAAA,EAAsCC,GAAG,EAAK;AAAA,EAAA,IAA3CC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ,CAAA;EACvF,IAAMC,MAAM,GAAIH,QAAQ,GAAGC,KAAK,GAAG,CAACA,KAAK,CAAc,CAAA;AACvD,EAAA,IAAMG,SAAS,GAAGC,MAAM,CAA2B,IAAI,CAAC,CAAA;AACxD,EAAA,IAAMC,OAAO,GAAGC,UAAU,CAACH,SAAS,EAAEN,GAAG,CAAC,CAAA;AAE1CU,EAAAA,SAAS,CAAC,YAAM;AACZ,IAAA,IAAMC,KAAK,GAAGC,WAAW,CAACN,SAAS,CAAC,CAAA;AACpCF,IAAAA,QAAQ,IAAIA,QAAQ,CAACO,KAAK,CAAC,CAAA;AAC/B,GAAC,EAAE,CAACN,MAAM,CAAC,CAAC,CAAA;AACZ,EAAA,oBACIQ,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACIF,KAAA,CAAAC,aAAA,CAACE,YAAY,EAAA;AAAChB,IAAAA,GAAG,EAAEQ,OAAQ;AAACN,IAAAA,QAAQ,EAAEA,QAAS;AAACD,IAAAA,IAAI,EAAEA,IAAK;IAACgB,MAAM,EAAA,IAAA;AAACd,IAAAA,KAAK,EAAED,QAAQ,GAAGG,MAAM,GAAGA,MAAM,CAAC,CAAC,CAAA;AAAE,GAAA,EACnGA,MAAM,CAACa,GAAG,CAAC,UAACC,CAAC,EAAA;IAAA,oBACVN,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AAAQM,MAAAA,GAAG,EAAED,CAAE;AAAChB,MAAAA,KAAK,EAAEgB,CAAAA;AAAE,KAAA,EACpBA,CACG,CAAC,CAAA;GACZ,CACS,CAChB,CAAC,CAAA;AAEX,CAAC;;;;"}
@@ -0,0 +1,11 @@
1
+ import './Form.styles_22v2s5.css';
2
+ import { styled } from '@linaria/react';
3
+
4
+ var SelectHidden = /*#__PURE__*/styled('select')({
5
+ name: "SelectHidden",
6
+ "class": "sngk5la",
7
+ propsAsIs: false
8
+ });
9
+
10
+ export { SelectHidden };
11
+ //# sourceMappingURL=Form.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.styles.js","sources":["../../../../../../src/components/Combobox/ComboboxNew/ui/Form/Form.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { applyHidden } from '../../../../../mixins';\n\nexport const SelectHidden = styled.select`\n ${applyHidden()};\n`;\n"],"names":["SelectHidden","styled","name","class","propsAsIs"],"mappings":";;AAIO,IAAMA,YAAY,gBAAGC,MAAM,CAAA,QAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEjC;;;;"}
@@ -0,0 +1 @@
1
+ .sngk5la{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}