@salutejs/plasma-new-hope 0.110.0-canary.1307.10059399396.0 → 0.110.1-canary.1233.10062283292.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1018) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  2. package/cjs/components/Button/Button.styles.js.map +1 -1
  3. package/cjs/components/Chip/Chip.tokens.js +2 -0
  4. package/cjs/components/Chip/Chip.tokens.js.map +1 -1
  5. package/cjs/components/Combobox/Combobox.js +2 -2
  6. package/cjs/components/Combobox/Combobox.js.map +1 -1
  7. package/cjs/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
  8. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  9. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  10. package/cjs/components/Combobox/utils/index.js +103 -0
  11. package/cjs/components/Combobox/utils/index.js.map +1 -1
  12. package/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
  13. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  14. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  15. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
  16. package/cjs/components/Pagination/Pagination.css +56 -48
  17. package/cjs/components/Pagination/Pagination.js +12 -5
  18. package/cjs/components/Pagination/Pagination.js.map +1 -1
  19. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  20. package/cjs/components/Pagination/Pagination.tokens.js +9 -11
  21. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  22. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +74 -66
  23. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +20 -26
  24. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  25. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -22
  26. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  27. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
  28. package/cjs/components/Select/Select.css +71 -62
  29. package/cjs/components/Select/Select.js +265 -193
  30. package/cjs/components/Select/Select.js.map +1 -1
  31. package/cjs/components/Select/Select.styles.js +51 -36
  32. package/cjs/components/Select/Select.styles.js.map +1 -1
  33. package/cjs/components/Select/Select.styles_zx0ztg.css +5 -0
  34. package/cjs/components/Select/Select.tokens.js +57 -166
  35. package/cjs/components/Select/Select.tokens.js.map +1 -1
  36. package/cjs/components/Select/hooks/useKeyboardNavigation.js +353 -0
  37. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
  38. package/cjs/components/Select/hooks/usePathMaps.js +37 -0
  39. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -0
  40. package/cjs/components/Select/reducers/focusedChipIndexReducer.js +39 -0
  41. package/cjs/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  42. package/cjs/components/Select/reducers/focusedPathReducer.js +37 -0
  43. package/cjs/components/Select/reducers/focusedPathReducer.js.map +1 -0
  44. package/cjs/components/Select/reducers/pathReducer.js +41 -0
  45. package/cjs/components/Select/reducers/pathReducer.js.map +1 -0
  46. package/cjs/components/Select/ui/Inner/Inner.css +110 -0
  47. package/cjs/components/Select/ui/Inner/Inner.js +82 -0
  48. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -0
  49. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +110 -0
  50. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +97 -0
  51. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -0
  52. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +110 -0
  53. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -0
  54. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles_y3jg1m.css +9 -0
  55. package/cjs/components/Select/ui/Target/Target.css +66 -0
  56. package/cjs/components/Select/ui/Target/Target.js +63 -0
  57. package/cjs/components/Select/ui/Target/Target.js.map +1 -0
  58. package/cjs/components/Select/ui/Target/ui/Button/Button.css +33 -0
  59. package/cjs/components/Select/ui/Target/ui/Button/Button.js +59 -0
  60. package/cjs/components/Select/ui/Target/ui/Button/Button.js.map +1 -0
  61. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +52 -0
  62. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -0
  63. package/cjs/components/Select/ui/Target/ui/Button/Button.styles_nn6pg.css +5 -0
  64. package/{es/components/Select/ui/SelectTarget/SelectTarget.css → cjs/components/Select/ui/Target/ui/Textfield/Textfield.css} +13 -7
  65. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +113 -0
  66. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -0
  67. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +113 -0
  68. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -0
  69. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles_16d02b7.css +12 -0
  70. package/cjs/components/Select/ui/{SelectChip/SelectChip.css → Target/ui/Textfield/ui/Chip/Chip.css} +1 -1
  71. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +36 -0
  72. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  73. package/cjs/components/Select/ui/{SelectChip/SelectChip.styles.js → Target/ui/Textfield/ui/Chip/Chip.styles.js} +5 -8
  74. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  75. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  76. package/cjs/components/Select/utils/getButtonLabel.js +47 -0
  77. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -0
  78. package/cjs/components/Select/utils/getCorrectHeight.js +13 -0
  79. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -0
  80. package/cjs/components/Select/utils/initialItemsTransform.js +19 -0
  81. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -0
  82. package/cjs/components/Select/utils/sizeToIconSize.js +11 -0
  83. package/cjs/components/Select/utils/sizeToIconSize.js.map +1 -0
  84. package/cjs/components/Select/utils/updateAncestors.js +34 -0
  85. package/cjs/components/Select/utils/updateAncestors.js.map +1 -0
  86. package/cjs/components/Select/utils/updateDescendants.js +18 -0
  87. package/cjs/components/Select/utils/updateDescendants.js.map +1 -0
  88. package/cjs/components/Select/utils/updateSingleAncestors.js +15 -0
  89. package/cjs/components/Select/utils/updateSingleAncestors.js.map +1 -0
  90. package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +33 -0
  91. package/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
  92. package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +31 -0
  93. package/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
  94. package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +23 -0
  95. package/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
  96. package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +23 -0
  97. package/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
  98. package/cjs/engines/common.js.map +1 -1
  99. package/cjs/index.css +42 -27
  100. package/cjs/index.js +2 -18
  101. package/cjs/index.js.map +1 -1
  102. package/cjs/utils/index.js.map +1 -1
  103. package/cjs/utils/isEmpty.js +49 -0
  104. package/cjs/utils/isEmpty.js.map +1 -0
  105. package/emotion/cjs/components/Button/Button.styles.js +9 -9
  106. package/emotion/cjs/components/Chip/Chip.tokens.js +2 -0
  107. package/emotion/cjs/components/Combobox/Combobox.js +6 -6
  108. package/emotion/cjs/components/Combobox/hooks/index.js +14 -1
  109. package/emotion/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +4 -5
  110. package/emotion/cjs/components/Combobox/utils/index.js +105 -1
  111. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
  112. package/emotion/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  113. package/emotion/cjs/components/Pagination/Pagination.js +12 -5
  114. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  115. package/emotion/cjs/components/Pagination/Pagination.tokens.js +9 -11
  116. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -35
  117. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -12
  118. package/emotion/cjs/components/Select/Select.js +255 -187
  119. package/emotion/cjs/components/Select/Select.styles.js +29 -25
  120. package/emotion/cjs/components/Select/Select.tokens.js +80 -167
  121. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +355 -0
  122. package/emotion/cjs/components/Select/hooks/usePathMaps.js +33 -0
  123. package/emotion/cjs/components/Select/index.js +1 -25
  124. package/emotion/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  125. package/emotion/cjs/components/Select/reducers/focusedPathReducer.js +40 -0
  126. package/emotion/cjs/components/Select/reducers/index.js +38 -0
  127. package/emotion/cjs/components/Select/reducers/pathReducer.js +44 -0
  128. package/emotion/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.js +18 -0
  129. package/emotion/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +26 -0
  130. package/emotion/cjs/components/Select/ui/Inner/Inner.js +80 -0
  131. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +95 -0
  132. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +92 -0
  133. package/emotion/cjs/components/Select/ui/Inner/ui/index.js +16 -0
  134. package/emotion/cjs/components/Select/ui/Target/Target.js +61 -0
  135. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.js +57 -0
  136. package/emotion/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +44 -0
  137. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +111 -0
  138. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +84 -0
  139. package/{styled-components/cjs/components/Select/ui/SelectChip/SelectChip.js → emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js} +24 -27
  140. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +22 -0
  141. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  142. package/emotion/cjs/components/Select/ui/Target/ui/index.js +27 -0
  143. package/emotion/cjs/components/Select/ui/index.js +33 -72
  144. package/emotion/cjs/components/Select/utils/getButtonLabel.js +43 -0
  145. package/emotion/cjs/components/Select/utils/getCorrectHeight.js +12 -0
  146. package/emotion/cjs/components/Select/utils/index.js +44 -102
  147. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +18 -0
  148. package/emotion/cjs/components/Select/utils/sizeToIconSize.js +10 -0
  149. package/emotion/cjs/components/Select/utils/updateAncestors.js +33 -0
  150. package/emotion/cjs/components/Select/utils/updateDescendants.js +17 -0
  151. package/emotion/cjs/components/Select/utils/updateSingleAncestors.js +14 -0
  152. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +32 -0
  153. package/emotion/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +30 -0
  154. package/emotion/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +22 -0
  155. package/emotion/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +22 -0
  156. package/emotion/cjs/components/_Icon/index.js +14 -0
  157. package/emotion/cjs/examples/_helpers.js +1 -1
  158. package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +12 -12
  159. package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  160. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +21 -11
  161. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.js +5 -15
  162. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
  163. package/emotion/cjs/examples/plasma_b2c/components/Select/style.css +36 -0
  164. package/emotion/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +12 -12
  165. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +21 -11
  166. package/emotion/cjs/examples/plasma_web/components/Select/Select.js +5 -15
  167. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
  168. package/emotion/cjs/examples/plasma_web/components/Select/style.css +37 -0
  169. package/emotion/cjs/utils/index.js +9 -1
  170. package/emotion/cjs/utils/isEmpty.js +47 -0
  171. package/emotion/es/components/Button/Button.styles.js +9 -9
  172. package/emotion/es/components/Chip/Chip.tokens.js +2 -0
  173. package/emotion/es/components/Combobox/Combobox.js +2 -2
  174. package/emotion/es/components/Combobox/hooks/index.js +2 -1
  175. package/emotion/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -2
  176. package/emotion/es/components/Combobox/utils/index.js +105 -1
  177. package/emotion/es/components/Dropdown/Dropdown.tokens.js +32 -18
  178. package/emotion/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  179. package/emotion/es/components/Pagination/Pagination.js +12 -5
  180. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  181. package/emotion/es/components/Pagination/Pagination.tokens.js +9 -11
  182. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -33
  183. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +6 -12
  184. package/emotion/es/components/Select/Select.js +252 -185
  185. package/emotion/es/components/Select/Select.styles.js +29 -25
  186. package/emotion/es/components/Select/Select.tokens.js +79 -166
  187. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +349 -0
  188. package/emotion/es/components/Select/hooks/usePathMaps.js +27 -0
  189. package/emotion/es/components/Select/index.js +1 -2
  190. package/emotion/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  191. package/emotion/es/components/Select/reducers/focusedPathReducer.js +34 -0
  192. package/emotion/es/components/Select/reducers/index.js +3 -0
  193. package/emotion/es/components/Select/reducers/pathReducer.js +38 -0
  194. package/emotion/es/components/Select/ui/InfiniteLoader/InfiniteLoader.js +11 -0
  195. package/emotion/es/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +19 -0
  196. package/emotion/es/components/Select/ui/Inner/Inner.js +73 -0
  197. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +86 -0
  198. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +85 -0
  199. package/emotion/es/components/Select/ui/Inner/ui/index.js +1 -0
  200. package/emotion/es/components/Select/ui/Target/Target.js +54 -0
  201. package/emotion/es/components/Select/ui/Target/ui/Button/Button.js +50 -0
  202. package/emotion/es/components/Select/ui/Target/ui/Button/Button.styles.js +37 -0
  203. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +104 -0
  204. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +77 -0
  205. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  206. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +15 -0
  207. package/emotion/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  208. package/emotion/es/components/Select/ui/Target/ui/index.js +2 -0
  209. package/emotion/es/components/Select/ui/index.js +3 -6
  210. package/emotion/es/components/Select/utils/getButtonLabel.js +37 -0
  211. package/emotion/es/components/Select/utils/getCorrectHeight.js +6 -0
  212. package/emotion/es/components/Select/utils/index.js +7 -106
  213. package/emotion/es/components/Select/utils/initialItemsTransform.js +12 -0
  214. package/emotion/es/components/Select/utils/sizeToIconSize.js +4 -0
  215. package/emotion/es/components/Select/utils/updateAncestors.js +27 -0
  216. package/emotion/es/components/Select/utils/updateDescendants.js +11 -0
  217. package/emotion/es/components/Select/utils/updateSingleAncestors.js +8 -0
  218. package/emotion/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +25 -0
  219. package/emotion/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +23 -0
  220. package/emotion/es/components/_Icon/Icons/IconDisclosureDownCentered.js +15 -0
  221. package/emotion/es/components/_Icon/Icons/IconDisclosureRightCentered.js +15 -0
  222. package/emotion/es/components/_Icon/index.js +2 -0
  223. package/emotion/es/examples/_helpers.js +1 -1
  224. package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +12 -12
  225. package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  226. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +21 -11
  227. package/emotion/es/examples/plasma_b2c/components/Select/Select.js +3 -12
  228. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
  229. package/emotion/es/examples/plasma_b2c/components/Select/style.css +36 -0
  230. package/emotion/es/examples/plasma_web/components/Pagination/Pagination.config.js +12 -12
  231. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +21 -11
  232. package/emotion/es/examples/plasma_web/components/Select/Select.js +3 -12
  233. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
  234. package/emotion/es/examples/plasma_web/components/Select/style.css +37 -0
  235. package/emotion/es/utils/index.js +1 -0
  236. package/emotion/es/utils/isEmpty.js +42 -0
  237. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  238. package/es/components/Button/Button.styles.js.map +1 -1
  239. package/es/components/Chip/Chip.tokens.js +2 -0
  240. package/es/components/Chip/Chip.tokens.js.map +1 -1
  241. package/es/components/Combobox/Combobox.js +2 -2
  242. package/es/components/Combobox/Combobox.js.map +1 -1
  243. package/es/components/Combobox/hooks/useKeyNavigation.js.map +1 -0
  244. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  245. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js.map +1 -1
  246. package/es/components/Combobox/utils/index.js +102 -3
  247. package/es/components/Combobox/utils/index.js.map +1 -1
  248. package/es/components/Dropdown/Dropdown.tokens.js +32 -18
  249. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  250. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  251. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -1
  252. package/es/components/Pagination/Pagination.css +56 -48
  253. package/es/components/Pagination/Pagination.js +12 -5
  254. package/es/components/Pagination/Pagination.js.map +1 -1
  255. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  256. package/es/components/Pagination/Pagination.tokens.js +9 -11
  257. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  258. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +74 -66
  259. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +23 -29
  260. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  261. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -21
  262. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  263. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_187mk6b.css +3 -0
  264. package/es/components/Select/Select.css +71 -62
  265. package/es/components/Select/Select.js +264 -193
  266. package/es/components/Select/Select.js.map +1 -1
  267. package/es/components/Select/Select.styles.js +48 -34
  268. package/es/components/Select/Select.styles.js.map +1 -1
  269. package/es/components/Select/Select.styles_zx0ztg.css +5 -0
  270. package/es/components/Select/Select.tokens.js +57 -166
  271. package/es/components/Select/Select.tokens.js.map +1 -1
  272. package/es/components/Select/hooks/useKeyboardNavigation.js +348 -0
  273. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -0
  274. package/es/components/Select/hooks/usePathMaps.js +33 -0
  275. package/es/components/Select/hooks/usePathMaps.js.map +1 -0
  276. package/es/components/Select/reducers/focusedChipIndexReducer.js +35 -0
  277. package/es/components/Select/reducers/focusedChipIndexReducer.js.map +1 -0
  278. package/es/components/Select/reducers/focusedPathReducer.js +33 -0
  279. package/es/components/Select/reducers/focusedPathReducer.js.map +1 -0
  280. package/es/components/Select/reducers/pathReducer.js +37 -0
  281. package/es/components/Select/reducers/pathReducer.js.map +1 -0
  282. package/es/components/Select/ui/Inner/Inner.css +110 -0
  283. package/es/components/Select/ui/Inner/Inner.js +78 -0
  284. package/es/components/Select/ui/Inner/Inner.js.map +1 -0
  285. package/es/components/Select/ui/Inner/ui/Item/Item.css +110 -0
  286. package/es/components/Select/ui/Inner/ui/Item/Item.js +93 -0
  287. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -0
  288. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +98 -0
  289. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -0
  290. package/es/components/Select/ui/Inner/ui/Item/Item.styles_y3jg1m.css +9 -0
  291. package/es/components/Select/ui/Target/Target.css +66 -0
  292. package/es/components/Select/ui/Target/Target.js +59 -0
  293. package/es/components/Select/ui/Target/Target.js.map +1 -0
  294. package/es/components/Select/ui/Target/ui/Button/Button.css +33 -0
  295. package/es/components/Select/ui/Target/ui/Button/Button.js +55 -0
  296. package/es/components/Select/ui/Target/ui/Button/Button.js.map +1 -0
  297. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +44 -0
  298. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -0
  299. package/es/components/Select/ui/Target/ui/Button/Button.styles_nn6pg.css +5 -0
  300. package/{cjs/components/Select/ui/SelectTarget/SelectTarget.css → es/components/Select/ui/Target/ui/Textfield/Textfield.css} +13 -7
  301. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +109 -0
  302. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -0
  303. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +98 -0
  304. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -0
  305. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles_16d02b7.css +12 -0
  306. package/es/components/Select/ui/{SelectChip/SelectChip.css → Target/ui/Textfield/ui/Chip/Chip.css} +1 -1
  307. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +32 -0
  308. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js.map +1 -0
  309. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +19 -0
  310. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -0
  311. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles_1a752pa.css +1 -0
  312. package/es/components/Select/utils/getButtonLabel.js +43 -0
  313. package/es/components/Select/utils/getButtonLabel.js.map +1 -0
  314. package/es/components/Select/utils/getCorrectHeight.js +9 -0
  315. package/es/components/Select/utils/getCorrectHeight.js.map +1 -0
  316. package/es/components/Select/utils/initialItemsTransform.js +15 -0
  317. package/es/components/Select/utils/initialItemsTransform.js.map +1 -0
  318. package/es/components/Select/utils/sizeToIconSize.js +7 -0
  319. package/es/components/Select/utils/sizeToIconSize.js.map +1 -0
  320. package/es/components/Select/utils/updateAncestors.js +30 -0
  321. package/es/components/Select/utils/updateAncestors.js.map +1 -0
  322. package/es/components/Select/utils/updateDescendants.js +14 -0
  323. package/es/components/Select/utils/updateDescendants.js.map +1 -0
  324. package/es/components/Select/utils/updateSingleAncestors.js +11 -0
  325. package/es/components/Select/utils/updateSingleAncestors.js.map +1 -0
  326. package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +29 -0
  327. package/es/components/_Icon/Icon.assets/DisclosureDownCentered.js.map +1 -0
  328. package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +27 -0
  329. package/es/components/_Icon/Icon.assets/DisclosureRightCentered.js.map +1 -0
  330. package/es/components/_Icon/Icons/IconDisclosureDownCentered.js +19 -0
  331. package/es/components/_Icon/Icons/IconDisclosureDownCentered.js.map +1 -0
  332. package/es/components/_Icon/Icons/IconDisclosureRightCentered.js +19 -0
  333. package/es/components/_Icon/Icons/IconDisclosureRightCentered.js.map +1 -0
  334. package/es/engines/common.js.map +1 -1
  335. package/es/index.css +42 -27
  336. package/es/index.js +2 -7
  337. package/es/index.js.map +1 -1
  338. package/es/utils/index.js.map +1 -1
  339. package/es/utils/isEmpty.js +45 -0
  340. package/es/utils/isEmpty.js.map +1 -0
  341. package/package.json +4 -4
  342. package/styled-components/cjs/components/Button/Button.styles.js +2 -2
  343. package/styled-components/cjs/components/Chip/Chip.tokens.js +2 -0
  344. package/styled-components/cjs/components/Combobox/Combobox.js +6 -6
  345. package/styled-components/cjs/components/Combobox/hooks/index.js +14 -1
  346. package/styled-components/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +4 -5
  347. package/styled-components/cjs/components/Combobox/utils/index.js +105 -1
  348. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +32 -18
  349. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  350. package/styled-components/cjs/components/Pagination/Pagination.js +12 -5
  351. package/styled-components/cjs/components/Pagination/Pagination.styles.js +2 -2
  352. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +9 -11
  353. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -35
  354. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
  355. package/styled-components/cjs/components/Select/Select.js +255 -187
  356. package/styled-components/cjs/components/Select/Select.styles.js +28 -23
  357. package/styled-components/cjs/components/Select/Select.tokens.js +80 -167
  358. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +355 -0
  359. package/styled-components/cjs/components/Select/hooks/usePathMaps.js +33 -0
  360. package/styled-components/cjs/components/Select/index.js +1 -25
  361. package/styled-components/cjs/components/Select/reducers/focusedChipIndexReducer.js +38 -0
  362. package/styled-components/cjs/components/Select/reducers/focusedPathReducer.js +40 -0
  363. package/styled-components/cjs/components/Select/reducers/index.js +38 -0
  364. package/styled-components/cjs/components/Select/reducers/pathReducer.js +44 -0
  365. package/styled-components/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.js +18 -0
  366. package/styled-components/cjs/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +24 -0
  367. package/styled-components/cjs/components/Select/ui/Inner/Inner.js +80 -0
  368. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +95 -0
  369. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +66 -0
  370. package/styled-components/cjs/components/Select/ui/Inner/ui/index.js +16 -0
  371. package/styled-components/cjs/components/Select/ui/Target/Target.js +61 -0
  372. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.js +57 -0
  373. package/styled-components/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +30 -0
  374. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +111 -0
  375. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +63 -0
  376. package/{emotion/cjs/components/Select/ui/SelectChip/SelectChip.js → styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js} +24 -27
  377. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +21 -0
  378. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/ui/index.js +16 -0
  379. package/styled-components/cjs/components/Select/ui/Target/ui/index.js +27 -0
  380. package/styled-components/cjs/components/Select/ui/index.js +33 -72
  381. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +43 -0
  382. package/styled-components/cjs/components/Select/utils/getCorrectHeight.js +12 -0
  383. package/styled-components/cjs/components/Select/utils/index.js +44 -102
  384. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +18 -0
  385. package/styled-components/cjs/components/Select/utils/sizeToIconSize.js +10 -0
  386. package/styled-components/cjs/components/Select/utils/updateAncestors.js +33 -0
  387. package/styled-components/cjs/components/Select/utils/updateDescendants.js +17 -0
  388. package/styled-components/cjs/components/Select/utils/updateSingleAncestors.js +14 -0
  389. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureDownCentered.js +32 -0
  390. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRightCentered.js +30 -0
  391. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureDownCentered.js +22 -0
  392. package/styled-components/cjs/components/_Icon/Icons/IconDisclosureRightCentered.js +22 -0
  393. package/styled-components/cjs/components/_Icon/index.js +14 -0
  394. package/styled-components/cjs/examples/_helpers.js +1 -1
  395. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
  396. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  397. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +21 -11
  398. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.js +5 -15
  399. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
  400. package/styled-components/cjs/examples/plasma_b2c/components/Select/style.css +36 -0
  401. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
  402. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +21 -11
  403. package/styled-components/cjs/examples/plasma_web/components/Select/Select.js +5 -15
  404. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
  405. package/styled-components/cjs/examples/plasma_web/components/Select/style.css +37 -0
  406. package/styled-components/cjs/utils/index.js +9 -1
  407. package/styled-components/cjs/utils/isEmpty.js +47 -0
  408. package/styled-components/es/components/Button/Button.styles.js +2 -2
  409. package/styled-components/es/components/Chip/Chip.tokens.js +2 -0
  410. package/styled-components/es/components/Combobox/Combobox.js +2 -2
  411. package/styled-components/es/components/Combobox/hooks/index.js +2 -1
  412. package/styled-components/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.js +1 -2
  413. package/styled-components/es/components/Combobox/utils/index.js +105 -1
  414. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +32 -18
  415. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +63 -24
  416. package/styled-components/es/components/Pagination/Pagination.js +12 -5
  417. package/styled-components/es/components/Pagination/Pagination.styles.js +2 -2
  418. package/styled-components/es/components/Pagination/Pagination.tokens.js +9 -11
  419. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +22 -33
  420. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -8
  421. package/styled-components/es/components/Select/Select.js +252 -185
  422. package/styled-components/es/components/Select/Select.styles.js +25 -21
  423. package/styled-components/es/components/Select/Select.tokens.js +79 -166
  424. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +349 -0
  425. package/styled-components/es/components/Select/hooks/usePathMaps.js +27 -0
  426. package/styled-components/es/components/Select/index.js +1 -2
  427. package/styled-components/es/components/Select/reducers/focusedChipIndexReducer.js +32 -0
  428. package/styled-components/es/components/Select/reducers/focusedPathReducer.js +34 -0
  429. package/styled-components/es/components/Select/reducers/index.js +3 -0
  430. package/styled-components/es/components/Select/reducers/pathReducer.js +38 -0
  431. package/styled-components/es/components/Select/ui/InfiniteLoader/InfiniteLoader.js +11 -0
  432. package/styled-components/es/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.js +17 -0
  433. package/styled-components/es/components/Select/ui/Inner/Inner.js +73 -0
  434. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +86 -0
  435. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +59 -0
  436. package/styled-components/es/components/Select/ui/Inner/ui/index.js +1 -0
  437. package/styled-components/es/components/Select/ui/Target/Target.js +54 -0
  438. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.js +50 -0
  439. package/styled-components/es/components/Select/ui/Target/ui/Button/Button.styles.js +23 -0
  440. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +104 -0
  441. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +56 -0
  442. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.js +28 -0
  443. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +14 -0
  444. package/styled-components/es/components/Select/ui/Target/ui/Textfield/ui/index.js +1 -0
  445. package/styled-components/es/components/Select/ui/Target/ui/index.js +2 -0
  446. package/styled-components/es/components/Select/ui/index.js +3 -6
  447. package/styled-components/es/components/Select/utils/getButtonLabel.js +37 -0
  448. package/styled-components/es/components/Select/utils/getCorrectHeight.js +6 -0
  449. package/styled-components/es/components/Select/utils/index.js +7 -106
  450. package/styled-components/es/components/Select/utils/initialItemsTransform.js +12 -0
  451. package/styled-components/es/components/Select/utils/sizeToIconSize.js +4 -0
  452. package/styled-components/es/components/Select/utils/updateAncestors.js +27 -0
  453. package/styled-components/es/components/Select/utils/updateDescendants.js +11 -0
  454. package/styled-components/es/components/Select/utils/updateSingleAncestors.js +8 -0
  455. package/styled-components/es/components/_Icon/Icon.assets/DisclosureDownCentered.js +25 -0
  456. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRightCentered.js +23 -0
  457. package/styled-components/es/components/_Icon/Icons/IconDisclosureDownCentered.js +15 -0
  458. package/styled-components/es/components/_Icon/Icons/IconDisclosureRightCentered.js +15 -0
  459. package/styled-components/es/components/_Icon/index.js +2 -0
  460. package/styled-components/es/examples/_helpers.js +1 -1
  461. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +7 -7
  462. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -0
  463. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +21 -11
  464. package/styled-components/es/examples/plasma_b2c/components/Select/Select.js +3 -12
  465. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +753 -204
  466. package/styled-components/es/examples/plasma_b2c/components/Select/style.css +36 -0
  467. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +7 -7
  468. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +21 -11
  469. package/styled-components/es/examples/plasma_web/components/Select/Select.js +3 -12
  470. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +753 -200
  471. package/styled-components/es/examples/plasma_web/components/Select/style.css +37 -0
  472. package/styled-components/es/utils/index.js +1 -0
  473. package/styled-components/es/utils/isEmpty.js +42 -0
  474. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +2 -2
  475. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +1 -1
  476. package/types/components/Chip/Chip.tokens.d.ts +2 -0
  477. package/types/components/Chip/Chip.tokens.d.ts.map +1 -1
  478. package/types/components/Combobox/Combobox.types.d.ts +21 -0
  479. package/types/components/Combobox/Combobox.types.d.ts.map +1 -1
  480. package/types/components/Combobox/hooks/index.d.ts +1 -0
  481. package/types/components/Combobox/hooks/index.d.ts.map +1 -1
  482. package/types/components/{Select → Combobox}/hooks/useKeyNavigation.d.ts +1 -1
  483. package/types/components/Combobox/hooks/useKeyNavigation.d.ts.map +1 -0
  484. package/types/components/Combobox/ui/ComboboxTarget/ComboboxTarget.d.ts.map +1 -1
  485. package/types/components/Combobox/utils/index.d.ts +13 -1
  486. package/types/components/Combobox/utils/index.d.ts.map +1 -1
  487. package/types/components/Dropdown/Dropdown.tokens.d.ts +17 -17
  488. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  489. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +1 -1
  490. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  491. package/types/components/Pagination/Pagination.tokens.d.ts +9 -11
  492. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  493. package/types/components/Pagination/Pagination.types.d.ts +6 -1
  494. package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
  495. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.d.ts.map +1 -1
  496. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +53 -43
  497. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  498. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts +5 -2
  499. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts.map +1 -1
  500. package/types/components/Select/Select.d.ts +7 -8
  501. package/types/components/Select/Select.d.ts.map +1 -1
  502. package/types/components/Select/Select.styles.d.ts +11 -6
  503. package/types/components/Select/Select.styles.d.ts.map +1 -1
  504. package/types/components/Select/Select.tokens.d.ts +78 -165
  505. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  506. package/types/components/Select/Select.types.d.ts +104 -67
  507. package/types/components/Select/Select.types.d.ts.map +1 -1
  508. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +43 -0
  509. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -0
  510. package/types/components/Select/hooks/usePathMaps.d.ts +8 -0
  511. package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -0
  512. package/types/components/Select/index.d.ts +2 -3
  513. package/types/components/Select/index.d.ts.map +1 -1
  514. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts +11 -0
  515. package/types/components/Select/reducers/focusedChipIndexReducer.d.ts.map +1 -0
  516. package/types/components/Select/reducers/focusedPathReducer.d.ts +16 -0
  517. package/types/components/Select/reducers/focusedPathReducer.d.ts.map +1 -0
  518. package/types/components/Select/reducers/index.d.ts +4 -0
  519. package/types/components/Select/reducers/index.d.ts.map +1 -0
  520. package/types/components/Select/reducers/pathReducer.d.ts +20 -0
  521. package/types/components/Select/reducers/pathReducer.d.ts.map +1 -0
  522. package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.d.ts +6 -0
  523. package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.d.ts.map +1 -0
  524. package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.d.ts +29 -0
  525. package/types/components/Select/ui/InfiniteLoader/InfiniteLoader.styles.d.ts.map +1 -0
  526. package/types/components/Select/ui/Inner/Inner.d.ts +4 -0
  527. package/types/components/Select/ui/Inner/Inner.d.ts.map +1 -0
  528. package/types/components/Select/ui/Inner/Inner.type.d.ts +13 -0
  529. package/types/components/Select/ui/Inner/Inner.type.d.ts.map +1 -0
  530. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts +4 -0
  531. package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -0
  532. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +19 -0
  533. package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -0
  534. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +42 -0
  535. package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -0
  536. package/types/components/Select/ui/Inner/ui/index.d.ts +2 -0
  537. package/types/components/Select/ui/Inner/ui/index.d.ts.map +1 -0
  538. package/types/components/Select/ui/Target/Target.d.ts +4 -0
  539. package/types/components/Select/ui/Target/Target.d.ts.map +1 -0
  540. package/types/components/Select/ui/Target/Target.types.d.ts +15 -0
  541. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -0
  542. package/types/components/Select/ui/Target/ui/Button/Button.d.ts +4 -0
  543. package/types/components/Select/ui/Target/ui/Button/Button.d.ts.map +1 -0
  544. package/types/components/Select/ui/{SelectTarget/SelectTarget.styles.d.ts → Target/ui/Button/Button.styles.d.ts} +8 -13
  545. package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts.map +1 -0
  546. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +4 -0
  547. package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -0
  548. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts +4 -0
  549. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -0
  550. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +60 -0
  551. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -0
  552. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +4 -0
  553. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -0
  554. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts +9 -0
  555. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.d.ts.map +1 -0
  556. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts +3 -0
  557. package/types/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.d.ts.map +1 -0
  558. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts +2 -0
  559. package/types/components/Select/ui/Target/ui/Textfield/ui/index.d.ts.map +1 -0
  560. package/types/components/Select/ui/Target/ui/index.d.ts +3 -0
  561. package/types/components/Select/ui/Target/ui/index.d.ts.map +1 -0
  562. package/types/components/Select/ui/index.d.ts +3 -6
  563. package/types/components/Select/ui/index.d.ts.map +1 -1
  564. package/types/components/Select/utils/getButtonLabel.d.ts +3 -0
  565. package/types/components/Select/utils/getButtonLabel.d.ts.map +1 -0
  566. package/types/components/Select/utils/getCorrectHeight.d.ts +3 -0
  567. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -0
  568. package/types/components/Select/utils/index.d.ts +7 -13
  569. package/types/components/Select/utils/index.d.ts.map +1 -1
  570. package/types/components/Select/utils/initialItemsTransform.d.ts +3 -0
  571. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -0
  572. package/types/components/Select/utils/sizeToIconSize.d.ts +3 -0
  573. package/types/components/Select/utils/sizeToIconSize.d.ts.map +1 -0
  574. package/types/components/Select/utils/updateAncestors.d.ts +4 -0
  575. package/types/components/Select/utils/updateAncestors.d.ts.map +1 -0
  576. package/types/components/Select/utils/updateDescendants.d.ts +4 -0
  577. package/types/components/Select/utils/updateDescendants.d.ts.map +1 -0
  578. package/types/components/Select/utils/updateSingleAncestors.d.ts +4 -0
  579. package/types/components/Select/utils/updateSingleAncestors.d.ts.map +1 -0
  580. package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts +4 -0
  581. package/types/components/_Icon/Icon.assets/DisclosureDownCentered.d.ts.map +1 -0
  582. package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts +4 -0
  583. package/types/components/_Icon/Icon.assets/DisclosureRightCentered.d.ts.map +1 -0
  584. package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts +4 -0
  585. package/types/components/_Icon/Icons/IconDisclosureDownCentered.d.ts.map +1 -0
  586. package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts +4 -0
  587. package/types/components/_Icon/Icons/IconDisclosureRightCentered.d.ts.map +1 -0
  588. package/types/components/_Icon/index.d.ts +2 -0
  589. package/types/components/_Icon/index.d.ts.map +1 -1
  590. package/types/engines/common.d.ts +3 -3
  591. package/types/engines/common.d.ts.map +1 -1
  592. package/types/engines/types.d.ts +3 -3
  593. package/types/engines/types.d.ts.map +1 -1
  594. package/types/examples/_helpers.d.ts +2 -2
  595. package/types/examples/_helpers.d.ts.map +1 -1
  596. package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts +1 -1
  597. package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts.map +1 -1
  598. package/types/examples/plasma_b2c/components/Pagination/Pagination.d.ts +1 -1
  599. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts +15 -5
  600. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  601. package/types/examples/plasma_b2c/components/Select/Select.d.ts +69 -55
  602. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  603. package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts +1 -1
  604. package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts.map +1 -1
  605. package/types/examples/plasma_web/components/Pagination/Pagination.d.ts +1 -1
  606. package/types/examples/plasma_web/components/Select/Select.config.d.ts +15 -5
  607. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  608. package/types/examples/plasma_web/components/Select/Select.d.ts +69 -55
  609. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  610. package/types/utils/index.d.ts +1 -0
  611. package/types/utils/index.d.ts.map +1 -1
  612. package/types/utils/isEmpty.d.ts +3 -0
  613. package/types/utils/isEmpty.d.ts.map +1 -0
  614. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
  615. package/cjs/components/Select/Select.styles_1q3i6gw.css +0 -4
  616. package/cjs/components/Select/hooks/useKeyNavigation.js.map +0 -1
  617. package/cjs/components/Select/ui/SelectChip/SelectChip.js +0 -39
  618. package/cjs/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
  619. package/cjs/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
  620. package/cjs/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
  621. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
  622. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -41
  623. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  624. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  625. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  626. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  627. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
  628. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  629. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  630. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
  631. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  632. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  633. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
  634. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -41
  635. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  636. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  637. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  638. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  639. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
  640. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  641. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  642. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
  643. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  644. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  645. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
  646. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -41
  647. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  648. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  649. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  650. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  651. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
  652. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  653. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  654. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
  655. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  656. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  657. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
  658. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -41
  659. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  660. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  661. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  662. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  663. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
  664. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  665. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  666. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
  667. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  668. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  669. package/cjs/components/Select/ui/SelectItem/SelectItem.css +0 -35
  670. package/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -40
  671. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
  672. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -19
  673. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
  674. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
  675. package/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -9
  676. package/cjs/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
  677. package/cjs/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
  678. package/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -9
  679. package/cjs/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
  680. package/cjs/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
  681. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
  682. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
  683. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -112
  684. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
  685. package/cjs/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
  686. package/cjs/components/Select/utils/index.js +0 -112
  687. package/cjs/components/Select/utils/index.js.map +0 -1
  688. package/cjs/components/Select/variations/_target/base.js +0 -9
  689. package/cjs/components/Select/variations/_target/base.js.map +0 -1
  690. package/cjs/components/Select/variations/_target/base_x642ct.css +0 -1
  691. package/emotion/cjs/components/Select/Select.template-doc.mdx +0 -115
  692. package/emotion/cjs/components/Select/hooks/index.js +0 -12
  693. package/emotion/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -26
  694. package/emotion/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -29
  695. package/emotion/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  696. package/emotion/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -8
  697. package/emotion/cjs/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  698. package/emotion/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -8
  699. package/emotion/cjs/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  700. package/emotion/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -29
  701. package/emotion/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  702. package/emotion/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -8
  703. package/emotion/cjs/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  704. package/emotion/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -8
  705. package/emotion/cjs/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  706. package/emotion/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -29
  707. package/emotion/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  708. package/emotion/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -8
  709. package/emotion/cjs/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  710. package/emotion/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -8
  711. package/emotion/cjs/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  712. package/emotion/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -29
  713. package/emotion/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  714. package/emotion/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -8
  715. package/emotion/cjs/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  716. package/emotion/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -8
  717. package/emotion/cjs/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  718. package/emotion/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -29
  719. package/emotion/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -13
  720. package/emotion/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -8
  721. package/emotion/cjs/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  722. package/emotion/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -8
  723. package/emotion/cjs/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  724. package/emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -157
  725. package/emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -75
  726. package/emotion/cjs/components/Select/variations/_target/base.js +0 -8
  727. package/emotion/cjs/components/Select/variations/_target/tokens.json +0 -1
  728. package/emotion/es/components/Select/Select.template-doc.mdx +0 -115
  729. package/emotion/es/components/Select/hooks/index.js +0 -1
  730. package/emotion/es/components/Select/ui/SelectChip/SelectChip.js +0 -31
  731. package/emotion/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -20
  732. package/emotion/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -23
  733. package/emotion/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  734. package/emotion/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -2
  735. package/emotion/es/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  736. package/emotion/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -2
  737. package/emotion/es/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  738. package/emotion/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -23
  739. package/emotion/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  740. package/emotion/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -2
  741. package/emotion/es/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  742. package/emotion/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -2
  743. package/emotion/es/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  744. package/emotion/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -23
  745. package/emotion/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  746. package/emotion/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -2
  747. package/emotion/es/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  748. package/emotion/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -2
  749. package/emotion/es/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  750. package/emotion/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -23
  751. package/emotion/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  752. package/emotion/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -2
  753. package/emotion/es/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  754. package/emotion/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -2
  755. package/emotion/es/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  756. package/emotion/es/components/Select/ui/SelectItem/SelectItem.js +0 -23
  757. package/emotion/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -8
  758. package/emotion/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -2
  759. package/emotion/es/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  760. package/emotion/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -2
  761. package/emotion/es/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  762. package/emotion/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
  763. package/emotion/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -68
  764. package/emotion/es/components/Select/variations/_target/base.js +0 -2
  765. package/emotion/es/components/Select/variations/_target/tokens.json +0 -1
  766. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles_rtehle.css +0 -4
  767. package/es/components/Select/Select.styles_1q3i6gw.css +0 -4
  768. package/es/components/Select/hooks/useKeyNavigation.js.map +0 -1
  769. package/es/components/Select/ui/SelectChip/SelectChip.js +0 -35
  770. package/es/components/Select/ui/SelectChip/SelectChip.js.map +0 -1
  771. package/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -22
  772. package/es/components/Select/ui/SelectChip/SelectChip.styles.js.map +0 -1
  773. package/es/components/Select/ui/SelectChip/SelectChip.styles_1u4uw04.css +0 -1
  774. package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -35
  775. package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -36
  776. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  777. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  778. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  779. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  780. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
  781. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  782. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  783. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
  784. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  785. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  786. package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -35
  787. package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -36
  788. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  789. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  790. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  791. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  792. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
  793. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  794. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  795. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
  796. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  797. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  798. package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -35
  799. package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -36
  800. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  801. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  802. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  803. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  804. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
  805. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  806. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  807. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
  808. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  809. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  810. package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -35
  811. package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -36
  812. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  813. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  814. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  815. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  816. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
  817. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  818. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  819. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
  820. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  821. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  822. package/es/components/Select/ui/SelectItem/SelectItem.css +0 -35
  823. package/es/components/Select/ui/SelectItem/SelectItem.js +0 -35
  824. package/es/components/Select/ui/SelectItem/SelectItem.js.map +0 -1
  825. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -15
  826. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +0 -1
  827. package/es/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +0 -1
  828. package/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -5
  829. package/es/components/Select/ui/SelectItem/variations/_size/base.js.map +0 -1
  830. package/es/components/Select/ui/SelectItem/variations/_size/base_x642ct.css +0 -1
  831. package/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -5
  832. package/es/components/Select/ui/SelectItem/variations/_view/base.js.map +0 -1
  833. package/es/components/Select/ui/SelectItem/variations/_view/base_x642ct.css +0 -1
  834. package/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -144
  835. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +0 -1
  836. package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -103
  837. package/es/components/Select/ui/SelectTarget/SelectTarget.styles.js.map +0 -1
  838. package/es/components/Select/ui/SelectTarget/SelectTarget.styles_hb1tns.css +0 -6
  839. package/es/components/Select/utils/index.js +0 -105
  840. package/es/components/Select/utils/index.js.map +0 -1
  841. package/es/components/Select/variations/_target/base.js +0 -5
  842. package/es/components/Select/variations/_target/base.js.map +0 -1
  843. package/es/components/Select/variations/_target/base_x642ct.css +0 -1
  844. package/styled-components/cjs/components/Select/Select.template-doc.mdx +0 -115
  845. package/styled-components/cjs/components/Select/hooks/index.js +0 -12
  846. package/styled-components/cjs/components/Select/ui/SelectChip/SelectChip.styles.js +0 -25
  847. package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -29
  848. package/styled-components/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  849. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -8
  850. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  851. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -8
  852. package/styled-components/cjs/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  853. package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -29
  854. package/styled-components/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  855. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -8
  856. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  857. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -8
  858. package/styled-components/cjs/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  859. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -29
  860. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  861. package/styled-components/cjs/components/Select/ui/SelectGroup/SelectGroup.type.js +0 -5
  862. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -8
  863. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  864. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -8
  865. package/styled-components/cjs/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  866. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -29
  867. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  868. package/styled-components/cjs/components/Select/ui/SelectHeader/SelectHeader.type.js +0 -5
  869. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -8
  870. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  871. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -8
  872. package/styled-components/cjs/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  873. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +0 -29
  874. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +0 -13
  875. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.type.js +0 -5
  876. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/base.js +0 -8
  877. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  878. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/base.js +0 -8
  879. package/styled-components/cjs/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  880. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +0 -157
  881. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -69
  882. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.types.js +0 -5
  883. package/styled-components/cjs/components/Select/variations/_target/base.js +0 -8
  884. package/styled-components/cjs/components/Select/variations/_target/tokens.json +0 -1
  885. package/styled-components/es/components/Select/Select.template-doc.mdx +0 -115
  886. package/styled-components/es/components/Select/hooks/index.js +0 -1
  887. package/styled-components/es/components/Select/ui/SelectChip/SelectChip.js +0 -31
  888. package/styled-components/es/components/Select/ui/SelectChip/SelectChip.styles.js +0 -19
  889. package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -23
  890. package/styled-components/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  891. package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -2
  892. package/styled-components/es/components/Select/ui/SelectDivider/variations/_size/tokens.json +0 -8
  893. package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -2
  894. package/styled-components/es/components/Select/ui/SelectDivider/variations/_view/tokens.json +0 -1
  895. package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -23
  896. package/styled-components/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  897. package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -2
  898. package/styled-components/es/components/Select/ui/SelectFooter/variations/_size/tokens.json +0 -12
  899. package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -2
  900. package/styled-components/es/components/Select/ui/SelectFooter/variations/_view/tokens.json +0 -9
  901. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -23
  902. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  903. package/styled-components/es/components/Select/ui/SelectGroup/SelectGroup.type.js +0 -1
  904. package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -2
  905. package/styled-components/es/components/Select/ui/SelectGroup/variations/_size/tokens.json +0 -20
  906. package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -2
  907. package/styled-components/es/components/Select/ui/SelectGroup/variations/_view/tokens.json +0 -10
  908. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -23
  909. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  910. package/styled-components/es/components/Select/ui/SelectHeader/SelectHeader.type.js +0 -1
  911. package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -2
  912. package/styled-components/es/components/Select/ui/SelectHeader/variations/_size/tokens.json +0 -12
  913. package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -2
  914. package/styled-components/es/components/Select/ui/SelectHeader/variations/_view/tokens.json +0 -9
  915. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +0 -23
  916. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +0 -8
  917. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.type.js +0 -1
  918. package/styled-components/es/components/Select/ui/SelectItem/variations/_size/base.js +0 -2
  919. package/styled-components/es/components/Select/ui/SelectItem/variations/_size/tokens.json +0 -19
  920. package/styled-components/es/components/Select/ui/SelectItem/variations/_view/base.js +0 -2
  921. package/styled-components/es/components/Select/ui/SelectItem/variations/_view/tokens.json +0 -9
  922. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +0 -148
  923. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.styles.js +0 -62
  924. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.types.js +0 -1
  925. package/styled-components/es/components/Select/variations/_target/base.js +0 -2
  926. package/styled-components/es/components/Select/variations/_target/tokens.json +0 -1
  927. package/types/components/Select/hooks/index.d.ts +0 -2
  928. package/types/components/Select/hooks/index.d.ts.map +0 -1
  929. package/types/components/Select/hooks/useKeyNavigation.d.ts.map +0 -1
  930. package/types/components/Select/ui/SelectChip/SelectChip.d.ts +0 -7
  931. package/types/components/Select/ui/SelectChip/SelectChip.d.ts.map +0 -1
  932. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts +0 -3
  933. package/types/components/Select/ui/SelectChip/SelectChip.styles.d.ts.map +0 -1
  934. package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts +0 -37
  935. package/types/components/Select/ui/SelectChip/SelectChip.types.d.ts.map +0 -1
  936. package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts +0 -29
  937. package/types/components/Select/ui/SelectDivider/SelectDivider.d.ts.map +0 -1
  938. package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts +0 -3
  939. package/types/components/Select/ui/SelectDivider/SelectDivider.styles.d.ts.map +0 -1
  940. package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts +0 -3
  941. package/types/components/Select/ui/SelectDivider/SelectDivider.types.d.ts.map +0 -1
  942. package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts +0 -2
  943. package/types/components/Select/ui/SelectDivider/variations/_size/base.d.ts.map +0 -1
  944. package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts +0 -2
  945. package/types/components/Select/ui/SelectDivider/variations/_view/base.d.ts.map +0 -1
  946. package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts +0 -29
  947. package/types/components/Select/ui/SelectFooter/SelectFooter.d.ts.map +0 -1
  948. package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts +0 -3
  949. package/types/components/Select/ui/SelectFooter/SelectFooter.styles.d.ts.map +0 -1
  950. package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts +0 -3
  951. package/types/components/Select/ui/SelectFooter/SelectFooter.type.d.ts.map +0 -1
  952. package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts +0 -2
  953. package/types/components/Select/ui/SelectFooter/variations/_size/base.d.ts.map +0 -1
  954. package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts +0 -2
  955. package/types/components/Select/ui/SelectFooter/variations/_view/base.d.ts.map +0 -1
  956. package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts +0 -37
  957. package/types/components/Select/ui/SelectGroup/SelectGroup.d.ts.map +0 -1
  958. package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts +0 -3
  959. package/types/components/Select/ui/SelectGroup/SelectGroup.styles.d.ts.map +0 -1
  960. package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts +0 -3
  961. package/types/components/Select/ui/SelectGroup/SelectGroup.type.d.ts.map +0 -1
  962. package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts +0 -2
  963. package/types/components/Select/ui/SelectGroup/variations/_size/base.d.ts.map +0 -1
  964. package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts +0 -2
  965. package/types/components/Select/ui/SelectGroup/variations/_view/base.d.ts.map +0 -1
  966. package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts +0 -29
  967. package/types/components/Select/ui/SelectHeader/SelectHeader.d.ts.map +0 -1
  968. package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts +0 -3
  969. package/types/components/Select/ui/SelectHeader/SelectHeader.styles.d.ts.map +0 -1
  970. package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts +0 -3
  971. package/types/components/Select/ui/SelectHeader/SelectHeader.type.d.ts.map +0 -1
  972. package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts +0 -2
  973. package/types/components/Select/ui/SelectHeader/variations/_size/base.d.ts.map +0 -1
  974. package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts +0 -2
  975. package/types/components/Select/ui/SelectHeader/variations/_view/base.d.ts.map +0 -1
  976. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +0 -53
  977. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +0 -1
  978. package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts +0 -3
  979. package/types/components/Select/ui/SelectItem/SelectItem.styles.d.ts.map +0 -1
  980. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +0 -3
  981. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts.map +0 -1
  982. package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts +0 -2
  983. package/types/components/Select/ui/SelectItem/variations/_size/base.d.ts.map +0 -1
  984. package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts +0 -2
  985. package/types/components/Select/ui/SelectItem/variations/_view/base.d.ts.map +0 -1
  986. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts +0 -7
  987. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +0 -1
  988. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +0 -1
  989. package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts +0 -60
  990. package/types/components/Select/ui/SelectTarget/SelectTarget.types.d.ts.map +0 -1
  991. package/types/components/Select/variations/_target/base.d.ts +0 -2
  992. package/types/components/Select/variations/_target/base.d.ts.map +0 -1
  993. /package/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  994. /package/emotion/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  995. /package/emotion/cjs/components/Select/ui/{SelectChip/SelectChip.types.js → Inner/Inner.type.js} +0 -0
  996. /package/emotion/cjs/components/Select/ui/{SelectDivider/SelectDivider.types.js → Inner/ui/Item/Item.types.js} +0 -0
  997. /package/emotion/cjs/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/Target.types.js} +0 -0
  998. /package/emotion/cjs/components/Select/ui/{SelectGroup/SelectGroup.type.js → Target/ui/Button/Button.types.js} +0 -0
  999. /package/emotion/cjs/components/Select/ui/{SelectHeader/SelectHeader.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
  1000. /package/emotion/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1001. /package/emotion/es/components/Select/ui/{SelectChip/SelectChip.types.js → Inner/Inner.type.js} +0 -0
  1002. /package/emotion/es/components/Select/ui/{SelectDivider/SelectDivider.types.js → Inner/ui/Item/Item.types.js} +0 -0
  1003. /package/emotion/es/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/Target.types.js} +0 -0
  1004. /package/emotion/es/components/Select/ui/{SelectGroup/SelectGroup.type.js → Target/ui/Button/Button.types.js} +0 -0
  1005. /package/emotion/es/components/Select/ui/{SelectHeader/SelectHeader.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
  1006. /package/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1007. /package/styled-components/cjs/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1008. /package/{emotion/cjs/components/Select/ui/SelectItem/SelectItem.type.js → styled-components/cjs/components/Select/ui/Inner/Inner.type.js} +0 -0
  1009. /package/{emotion/cjs/components/Select/ui/SelectTarget/SelectTarget.types.js → styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.types.js} +0 -0
  1010. /package/styled-components/cjs/components/Select/ui/{SelectChip/SelectChip.types.js → Target/Target.types.js} +0 -0
  1011. /package/styled-components/cjs/components/Select/ui/{SelectDivider/SelectDivider.types.js → Target/ui/Button/Button.types.js} +0 -0
  1012. /package/styled-components/cjs/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
  1013. /package/styled-components/es/components/{Select → Combobox}/hooks/useKeyNavigation.js +0 -0
  1014. /package/{emotion/es/components/Select/ui/SelectItem/SelectItem.type.js → styled-components/es/components/Select/ui/Inner/Inner.type.js} +0 -0
  1015. /package/{emotion/es/components/Select/ui/SelectTarget/SelectTarget.types.js → styled-components/es/components/Select/ui/Inner/ui/Item/Item.types.js} +0 -0
  1016. /package/styled-components/es/components/Select/ui/{SelectChip/SelectChip.types.js → Target/Target.types.js} +0 -0
  1017. /package/styled-components/es/components/Select/ui/{SelectDivider/SelectDivider.types.js → Target/ui/Button/Button.types.js} +0 -0
  1018. /package/styled-components/es/components/Select/ui/{SelectFooter/SelectFooter.type.js → Target/ui/Textfield/Textfield.types.js} +0 -0
@@ -1,232 +1,302 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useState, useRef, useEffect, useCallback, useMemo, Children } from 'react';
3
- import { safeUseId, useForkRef } from '@salutejs/plasma-core';
4
- import { cx } from '../../utils/index.js';
5
- import { useForceUpdate } from '../../hooks/useForceUpdate.js';
6
- import { useDidMountEffect } from '../../hooks/useDidMountEffect.js';
7
- import { base } from './variations/_target/base.js';
8
- import { base as base$1 } from './variations/_view/base.js';
9
- import { base as base$2 } from './variations/_size/base.js';
2
+ import React, { forwardRef, useState, useMemo, useReducer, useLayoutEffect, createContext } from 'react';
3
+ import '../../utils/react.js';
4
+ import { isEmpty } from '../../utils/isEmpty.js';
5
+ import { getPlacements } from '../../utils/getPopoverPlacement.js';
6
+ import { useOutsideClick } from '../../hooks/useOutsideClick.js';
7
+ import { useKeyNavigation } from './hooks/useKeyboardNavigation.js';
8
+ import { initialItemsTransform } from './utils/initialItemsTransform.js';
9
+ import { updateDescendants } from './utils/updateDescendants.js';
10
+ import { updateAncestors } from './utils/updateAncestors.js';
11
+ import { updateSingleAncestors } from './utils/updateSingleAncestors.js';
10
12
  import '@linaria/react';
11
13
  import '@linaria/core';
12
14
  import 'focus-visible';
13
- import 'react-popper';
14
- import 'react-dom';
15
- import 'styled-components';
16
- import { classes } from './Select.tokens.js';
17
- import { SelectTarget } from './ui/SelectTarget/SelectTarget.js';
18
- import { getNewSelected, getChildren, getValues } from './utils/index.js';
19
- import { StyledRoot, StyledNativeSelect, StyledPopover, StyledSelect } from './Select.styles.js';
20
- import { useKeyNavigation } from './hooks/useKeyNavigation.js';
21
- import { getPlacements } from '../../utils/getPopoverPlacement.js';
15
+ import '@salutejs/plasma-core';
16
+ import { Inner } from './ui/Inner/Inner.js';
17
+ import { Target } from './ui/Target/Target.js';
18
+ import { pathReducer } from './reducers/pathReducer.js';
19
+ import { focusedPathReducer } from './reducers/focusedPathReducer.js';
20
+ import { focusedChipIndexReducer } from './reducers/focusedChipIndexReducer.js';
21
+ import { usePathMaps } from './hooks/usePathMaps.js';
22
+ import { OuterLabel, StyledPopover, Ul, HelperText, base } from './Select.styles.js';
23
+ import { base as base$1 } from './variations/_view/base.js';
24
+ import { base as base$2 } from './variations/_size/base.js';
22
25
 
23
- var _excluded = ["name", "form", "readOnly", "disabled", "label", "id", "children", "role", "target", "view", "size", "frame", "usePortal", "enumerationType", "opened", "placement", "onToggle"];
26
+ var _excluded = ["multiselect", "value", "onChange", "target", "items", "placement", "label", "labelPlacement", "placeholder", "helperText", "isTargetAmount", "disabled", "view", "size", "listOverflow", "listHeight", "listWidth", "contentLeft", "onScrollBottom", "chipView", "variant", "portal", "renderValue", "renderItem"];
27
+ var Context = /*#__PURE__*/createContext({});
24
28
 
25
29
  /**
26
- * Выпадающий список без внешнего контроля видимости.
30
+ * Выпадающий список. Поддерживает выбор одного или нескольких значений.
27
31
  */
28
32
  var selectRoot = function selectRoot(Root) {
29
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
30
- var _targetRef$current;
31
- var name = _ref.name,
32
- form = _ref.form,
33
- readOnly = _ref.readOnly,
34
- disabled = _ref.disabled,
35
- label = _ref.label,
36
- id = _ref.id,
37
- children = _ref.children,
38
- role = _ref.role,
39
- target = _ref.target,
40
- view = _ref.view,
41
- size = _ref.size,
42
- frame = _ref.frame,
43
- usePortal = _ref.usePortal,
44
- _ref$enumerationType = _ref.enumerationType,
45
- enumerationType = _ref$enumerationType === void 0 ? 'comma' : _ref$enumerationType,
46
- _ref$opened = _ref.opened,
47
- opened = _ref$opened === void 0 ? false : _ref$opened,
48
- _ref$placement = _ref.placement,
49
- placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
50
- onToggle = _ref.onToggle,
51
- rest = _objectWithoutProperties(_ref, _excluded);
52
- var forceUpdate = useForceUpdate();
53
- var uniqId = safeUseId();
54
- var innerId = id || uniqId;
55
- var _rest$valueType = rest.valueType,
56
- valueType = _rest$valueType === void 0 ? 'single' : _rest$valueType,
57
- value = rest.value;
58
- var offset = [0, 4];
59
- var _useState = useState(null),
33
+ return /*#__PURE__*/forwardRef(function (props, ref) {
34
+ var _props$multiselect = props.multiselect,
35
+ multiselect = _props$multiselect === void 0 ? false : _props$multiselect,
36
+ outerValue = props.value,
37
+ outerOnChange = props.onChange,
38
+ _props$target = props.target,
39
+ target = _props$target === void 0 ? 'textfield-like' : _props$target,
40
+ items = props.items,
41
+ _props$placement = props.placement,
42
+ placement = _props$placement === void 0 ? 'bottom' : _props$placement,
43
+ label = props.label,
44
+ _props$labelPlacement = props.labelPlacement,
45
+ labelPlacement = _props$labelPlacement === void 0 ? 'outer' : _props$labelPlacement,
46
+ placeholder = props.placeholder,
47
+ helperText = props.helperText,
48
+ _props$isTargetAmount = props.isTargetAmount,
49
+ isTargetAmount = _props$isTargetAmount === void 0 ? false : _props$isTargetAmount,
50
+ _props$disabled = props.disabled,
51
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
52
+ view = props.view,
53
+ size = props.size,
54
+ listOverflow = props.listOverflow,
55
+ listHeight = props.listHeight,
56
+ listWidth = props.listWidth,
57
+ contentLeft = props.contentLeft,
58
+ onScrollBottom = props.onScrollBottom,
59
+ chipView = props.chipView,
60
+ _props$variant = props.variant,
61
+ variant = _props$variant === void 0 ? 'normal' : _props$variant,
62
+ portal = props.portal,
63
+ renderValue = props.renderValue,
64
+ renderItem = props.renderItem,
65
+ rest = _objectWithoutProperties(props, _excluded);
66
+ var _useState = useState(outerValue || multiselect ? [] : ''),
60
67
  _useState2 = _slicedToArray(_useState, 2),
61
- ref = _useState2[0],
62
- setRef = _useState2[1];
63
- var rootRef = useRef(null);
64
- var handleRef = useForkRef(rootRef, outerRootRef);
65
- var targetRef = useRef(null);
66
- var chipsRefs = useRef([]);
67
- var selectRef = useRef(null);
68
- var itemsRefs = useRef([]);
69
- var controlledRefs = {
70
- targetRef: targetRef,
71
- chipsRefs: chipsRefs,
72
- selectRef: selectRef,
73
- itemsRefs: itemsRefs
68
+ internalValue = _useState2[0],
69
+ setInternalValue = _useState2[1];
70
+ var value = outerValue || internalValue;
71
+ var onChange = function onChange(e) {
72
+ if (outerOnChange) {
73
+ outerOnChange(e);
74
+ }
75
+ setInternalValue(e);
74
76
  };
75
- var _useState3 = useState(opened),
77
+ var transformedItems = useMemo(function () {
78
+ return initialItemsTransform(items);
79
+ }, [items]);
80
+ var _usePathMaps = usePathMaps(transformedItems),
81
+ _usePathMaps2 = _slicedToArray(_usePathMaps, 4),
82
+ pathMap = _usePathMaps2[0],
83
+ focusedToValueMap = _usePathMaps2[1],
84
+ valueToCheckedMap = _usePathMaps2[2],
85
+ valueToItemMap = _usePathMaps2[3];
86
+ var _useReducer = useReducer(pathReducer, []),
87
+ _useReducer2 = _slicedToArray(_useReducer, 2),
88
+ path = _useReducer2[0],
89
+ dispatchPath = _useReducer2[1];
90
+ var _useReducer3 = useReducer(focusedPathReducer, []),
91
+ _useReducer4 = _slicedToArray(_useReducer3, 2),
92
+ focusedPath = _useReducer4[0],
93
+ dispatchFocusedPath = _useReducer4[1];
94
+ var _useReducer5 = useReducer(focusedChipIndexReducer, null),
95
+ _useReducer6 = _slicedToArray(_useReducer5, 2),
96
+ focusedChipIndex = _useReducer6[0],
97
+ dispatchFocusedChipIndex = _useReducer6[1];
98
+ var _useState3 = useState(valueToCheckedMap),
76
99
  _useState4 = _slicedToArray(_useState3, 2),
77
- innerOpened = _useState4[0],
78
- setOpened = _useState4[1];
79
-
80
- // INFO: нужно высчитывать для корректной работы портала
81
- var dynamicTargetWidth = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.offsetWidth;
82
- var withNativeSelectVisible = valueType === 'native' ? classes.nativeSelectVisible : undefined;
83
-
84
- // INFO: Из-за того, что классы передаются через ref,
85
- // состояние пропсов после изменения view, size, target
86
- // всегда предыдущее, поэтому нужно делать форс-ререндер
87
- useDidMountEffect(function () {
88
- forceUpdate();
89
- }, [view, size, target]);
90
- useEffect(function () {
91
- if (disabled || readOnly) {
92
- return;
100
+ checked = _useState4[0],
101
+ setChecked = _useState4[1];
102
+ var targetRef = useOutsideClick(function () {
103
+ if (focusedChipIndex != null) {
104
+ dispatchFocusedChipIndex({
105
+ type: 'reset'
106
+ });
93
107
  }
94
- setOpened(opened);
95
- }, [opened, disabled, readOnly]);
96
- var onInnerToggle = useCallback(function (openValue, event) {
97
- if (disabled || readOnly) {
98
- return;
108
+ });
109
+ var handleToggle = function handleToggle(opened) {
110
+ if (opened) {
111
+ dispatchPath({
112
+ type: 'opened_first_level'
113
+ });
114
+ } else {
115
+ dispatchFocusedPath({
116
+ type: 'reset'
117
+ });
118
+ dispatchPath({
119
+ type: 'reset'
120
+ });
121
+ dispatchFocusedChipIndex({
122
+ type: 'reset'
123
+ });
99
124
  }
100
- if (onToggle) {
101
- onToggle(openValue, event);
102
- return;
125
+ };
126
+ var handleCheckboxChange = function handleCheckboxChange(item) {
127
+ var checkedCopy = new Map(checked);
128
+ if (!checkedCopy.get(item.value.toString())) {
129
+ checkedCopy.set(item.value.toString(), true);
130
+ updateDescendants(item, checkedCopy, true);
131
+ } else {
132
+ checkedCopy.set(item.value.toString(), false);
133
+ updateDescendants(item, checkedCopy, false);
103
134
  }
104
- setOpened(openValue);
105
- }, [disabled, readOnly, onToggle]);
106
- var updateValue = useCallback(function (item, event) {
107
- var _rest$onChangeValue2;
108
- var newValue = item.dataset.value;
109
- if (rest.valueType === 'multiple') {
110
- var _rest$onChangeValue;
111
- var _newSelected = getNewSelected(rest.value, newValue, rest.valueType);
112
- (_rest$onChangeValue = rest.onChangeValue) === null || _rest$onChangeValue === void 0 || _rest$onChangeValue.call(rest, _newSelected);
113
- return;
135
+ updateAncestors(item, checkedCopy);
136
+ var newValues = [];
137
+ valueToItemMap.forEach(function (item, key) {
138
+ if (checkedCopy.get(key)) {
139
+ newValues.push(item.value.toString());
140
+ }
141
+ });
142
+ if (onChange) {
143
+ onChange(newValues);
114
144
  }
115
- var newSelected = getNewSelected(rest.value, newValue, 'single');
116
- (_rest$onChangeValue2 = rest.onChangeValue) === null || _rest$onChangeValue2 === void 0 || _rest$onChangeValue2.call(rest, newSelected);
117
- onInnerToggle === null || onInnerToggle === void 0 || onInnerToggle(false, event);
118
- }, [rest.value, rest.valueType, rest.onChangeValue, onToggle, onInnerToggle]);
119
- var onClickChildrenItem = useCallback(function (event) {
120
- // INFO: Для корректной работы компонента Popper
121
- event.stopPropagation();
122
- var item = event.currentTarget;
123
- updateValue(item, event);
124
- }, [updateValue]);
125
- var onNativeSelectChange = useCallback(function (event) {
126
- var _rest$onChangeValue3;
127
- if (rest.valueType === 'multiple') {
145
+ };
146
+ var handleItemClick = function handleItemClick(item, e) {
147
+ if (!isEmpty(item === null || item === void 0 ? void 0 : item.items)) {
128
148
  return;
129
149
  }
130
- var newValue = event.target.value;
131
- var newSelected = getNewSelected(rest.value, newValue, 'native');
132
- (_rest$onChangeValue3 = rest.onChangeValue) === null || _rest$onChangeValue3 === void 0 || _rest$onChangeValue3.call(rest, newSelected);
133
- }, [rest.value, rest.valueType, rest.onChangeValue]);
134
- var onChangeChipValue = useCallback(function (newValue) {
135
- var _rest$onChangeValue4;
136
- if (rest.valueType !== 'multiple') {
137
- return;
150
+ if (multiselect) {
151
+ handleCheckboxChange(item);
152
+ } else {
153
+ if (e) {
154
+ e.stopPropagation();
155
+ }
156
+ var checkedCopy = new Map(checked);
157
+ var isCurrentChecked = checkedCopy.get(item.value);
158
+ checkedCopy.forEach(function (_, key) {
159
+ checkedCopy.set(key, false);
160
+ });
161
+ if (!isCurrentChecked) {
162
+ checkedCopy.set(item.value, 'done');
163
+ updateSingleAncestors(item, checkedCopy, 'dot');
164
+ }
165
+ if (onChange) {
166
+ onChange(isCurrentChecked ? '' : item.value);
167
+ }
168
+ }
169
+ };
170
+ var handleChipClick = function handleChipClick(currentValue) {
171
+ handleCheckboxChange(valueToItemMap.get(currentValue));
172
+ };
173
+ var handlePressDown = function handlePressDown(item, e) {
174
+ if (isEmpty(item.items)) {
175
+ handleItemClick(item, e);
176
+ } else if (multiselect) {
177
+ handleCheckboxChange(item);
178
+ }
179
+ };
180
+ var handleScroll = function handleScroll(e) {
181
+ if (!onScrollBottom) return;
182
+ var target = e.target;
183
+ if (target.scrollHeight - target.scrollTop === target.clientHeight) {
184
+ onScrollBottom(e);
138
185
  }
139
- (_rest$onChangeValue4 = rest.onChangeValue) === null || _rest$onChangeValue4 === void 0 || _rest$onChangeValue4.call(rest, newValue);
140
- }, [rest.valueType]);
186
+ };
141
187
  var _useKeyNavigation = useKeyNavigation({
142
- controlledRefs: controlledRefs,
143
- opened: innerOpened,
144
- enumerationType: enumerationType,
145
- valueType: valueType,
188
+ focusedPath: focusedPath,
189
+ dispatchFocusedPath: dispatchFocusedPath,
190
+ path: path,
191
+ dispatchPath: dispatchPath,
192
+ pathMap: pathMap,
193
+ focusedToValueMap: focusedToValueMap,
194
+ handleToggle: handleToggle,
195
+ handlePressDown: handlePressDown,
196
+ focusedChipIndex: focusedChipIndex,
197
+ dispatchFocusedChipIndex: dispatchFocusedChipIndex,
146
198
  value: value,
147
- updateOpened: onInnerToggle,
148
- updateValue: updateValue
199
+ valueToItemMap: valueToItemMap,
200
+ multiselect: multiselect,
201
+ isTargetAmount: isTargetAmount
149
202
  }),
150
- onKeyDownTarget = _useKeyNavigation.onKeyDownTarget,
151
- onKeyDownSelect = _useKeyNavigation.onKeyDownSelect;
152
- var childrenArray = useMemo(function () {
153
- return Children.toArray(children);
154
- }, [children]);
155
- var childrenMemo = useMemo(function () {
156
- return getChildren(childrenArray, {
157
- onClick: onClickChildrenItem,
158
- childrenRefs: itemsRefs
159
- }, value);
160
- }, [childrenArray, value, innerOpened]);
161
- var values = useMemo(function () {
162
- return getValues(childrenArray, value);
163
- }, [childrenArray, value]);
164
- return /*#__PURE__*/React.createElement(StyledRoot, {
165
- ref: selectRef
166
- }, /*#__PURE__*/React.createElement(StyledNativeSelect, {
167
- "aria-invalid": "false",
168
- "aria-hidden": "true",
169
- "aria-readonly": readOnly,
170
- tabIndex: valueType === 'native' ? 0 : -1,
171
- form: form,
172
- name: name,
173
- ref: handleRef,
174
- value: "".concat(value),
175
- disabled: disabled || readOnly,
176
- onChange: onNativeSelectChange,
177
- className: cx(ref === null || ref === void 0 ? void 0 : ref.classList.toString(), withNativeSelectVisible)
178
- }, valueType === 'native' && childrenMemo), /*#__PURE__*/React.createElement(StyledPopover, {
179
- role: role,
180
- isOpen: innerOpened,
181
- onToggle: onInnerToggle,
182
- target: /*#__PURE__*/React.createElement(SelectTarget, {
183
- tabIndex: valueType === 'native' ? -1 : 0,
184
- opened: innerOpened,
203
+ onKeyDown = _useKeyNavigation.onKeyDown;
204
+ var isCurrentListOpen = Boolean(path[0]);
205
+
206
+ // В данном эффекте мы следим за изменениями value и вносим коррективы в дерево чекбоксов.
207
+ useLayoutEffect(function () {
208
+ var checkedCopy = new Map(checked);
209
+ checkedCopy.forEach(function (_, key) {
210
+ checkedCopy.set(key, false);
211
+ });
212
+ if (!isEmpty(value)) {
213
+ if (Array.isArray(value)) {
214
+ value.forEach(function (val) {
215
+ checkedCopy.set(val, true);
216
+ updateDescendants(valueToItemMap.get(val), checkedCopy, true);
217
+ updateAncestors(valueToItemMap.get(val), checkedCopy);
218
+ });
219
+ } else {
220
+ checkedCopy.set(value, 'done');
221
+ updateSingleAncestors(valueToItemMap.get(value), checkedCopy, 'dot');
222
+ }
223
+ }
224
+ setChecked(checkedCopy);
225
+ }, [value]);
226
+ return /*#__PURE__*/React.createElement(Root, _extends({
227
+ ref: ref,
228
+ size: size,
229
+ view: view,
230
+ chipView: chipView
231
+ }, rest), label && labelPlacement === 'outer' && target !== 'button-like' && /*#__PURE__*/React.createElement(OuterLabel, null, label), /*#__PURE__*/React.createElement(Context.Provider, {
232
+ value: {
233
+ focusedPath: focusedPath,
234
+ checked: checked,
235
+ multiselect: multiselect,
236
+ size: size,
237
+ handleCheckboxChange: handleCheckboxChange,
238
+ handleItemClick: handleItemClick,
239
+ variant: variant,
240
+ renderItem: renderItem
241
+ }
242
+ }, /*#__PURE__*/React.createElement(StyledPopover, {
243
+ ref: targetRef,
244
+ isOpen: isCurrentListOpen,
245
+ placement: getPlacements(placement),
246
+ usePortal: Boolean(portal),
247
+ frame: portal,
248
+ onToggle: handleToggle,
249
+ trigger: "click",
250
+ target: /*#__PURE__*/React.createElement(Target, {
251
+ opened: isCurrentListOpen,
185
252
  target: target,
186
- values: values,
253
+ value: value,
254
+ isTargetAmount: isTargetAmount,
255
+ multiselect: multiselect,
256
+ valueToItemMap: valueToItemMap,
257
+ focusedPath: focusedPath,
258
+ focusedToValueMap: focusedToValueMap,
259
+ onChipClick: handleChipClick,
187
260
  label: label,
188
- enumerationType: enumerationType,
189
- readOnly: readOnly,
190
- disabled: disabled,
261
+ placeholder: placeholder,
262
+ onKeyDown: onKeyDown,
263
+ focusedChipIndex: focusedChipIndex,
264
+ labelPlacement: labelPlacement,
191
265
  size: size,
192
- ref: targetRef,
193
- chipsRefs: chipsRefs,
194
- id: innerId,
195
- onChange: onChangeChipValue,
196
- onKeyDown: onKeyDownTarget
266
+ contentLeft: contentLeft,
267
+ disabled: disabled,
268
+ renderValue: renderValue
197
269
  }),
198
- className: cx(ref === null || ref === void 0 ? void 0 : ref.classList.toString()) // INFO: Прокидываем стили для Popover
199
- ,
200
- id: innerId,
201
- offset: offset,
202
- frame: frame,
203
- placement: getPlacements(placement),
204
- trigger: "click",
205
- usePortal: usePortal,
206
- selectWidth: dynamicTargetWidth,
207
- isFocusTrapped: false,
208
270
  preventOverflow: false,
209
- closeOnEsc: false,
210
271
  closeOnOverlayClick: true
211
272
  }, /*#__PURE__*/React.createElement(Root, _extends({
212
- ref: setRef,
213
- target: target,
214
- view: view,
215
273
  size: size
216
- }, rest), valueType !== 'native' && /*#__PURE__*/React.createElement(StyledSelect, {
217
- onKeyDown: onKeyDownSelect
218
- }, childrenMemo))));
274
+ }, rest), /*#__PURE__*/React.createElement(Ul, {
275
+ role: "tree",
276
+ id: "tree_level_1",
277
+ listHeight: listHeight,
278
+ listOverflow: listOverflow,
279
+ onScroll: handleScroll,
280
+ listWidth: listWidth
281
+ }, transformedItems.map(function (item, index) {
282
+ return /*#__PURE__*/React.createElement(Inner, {
283
+ key: "".concat(index, "/0"),
284
+ item: item,
285
+ currentLevel: 0,
286
+ path: path,
287
+ dispatchPath: dispatchPath,
288
+ index: index,
289
+ listWidth: listWidth
290
+ });
291
+ }))))), helperText && target === 'textfield-like' && /*#__PURE__*/React.createElement(HelperText, null, helperText));
219
292
  });
220
293
  };
221
294
  var selectConfig = {
222
295
  name: 'Select',
223
296
  tag: 'div',
224
297
  layout: selectRoot,
225
- base: '',
298
+ base: base,
226
299
  variations: {
227
- target: {
228
- css: base
229
- },
230
300
  view: {
231
301
  css: base$1
232
302
  },
@@ -236,9 +306,10 @@ var selectConfig = {
236
306
  },
237
307
  defaults: {
238
308
  view: 'default',
309
+ chipView: 'default',
239
310
  size: 'm'
240
311
  }
241
312
  };
242
313
 
243
- export { selectConfig, selectRoot };
314
+ export { Context, selectConfig, selectRoot };
244
315
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import React, { Children, forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { safeUseId, useForkRef } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../engines';\nimport { cx, getPlacements } from '../../utils';\nimport { useDidMountEffect, useForceUpdate } from '../../hooks';\n\nimport { base as targetCSS } from './variations/_target/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { SelectTarget } from './ui';\nimport { getChildren, getNewSelected, getValues } from './utils';\nimport { classes } from './Select.tokens';\nimport { StyledNativeSelect, StyledPopover, StyledRoot, StyledSelect } from './Select.styles';\nimport type { SelectPrimitiveValue, SelectProps } from './Select.types';\nimport { useKeyNavigation } from './hooks';\n\n/**\n * Выпадающий список без внешнего контроля видимости.\n */\nexport const selectRoot = (Root: RootProps<HTMLSelectElement, SelectProps>) =>\n forwardRef<HTMLSelectElement, SelectProps>(\n (\n {\n name,\n form,\n readOnly,\n disabled,\n label,\n id,\n children,\n role,\n target,\n view,\n size,\n frame,\n usePortal,\n enumerationType = 'comma',\n opened = false,\n placement = 'bottom',\n onToggle,\n ...rest\n },\n outerRootRef,\n ) => {\n const forceUpdate = useForceUpdate();\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const { valueType = 'single', value } = rest;\n const offset = [0, 4] as [number, number];\n\n const [ref, setRef] = useState<HTMLSelectElement | null>(null);\n const rootRef = useRef<HTMLSelectElement | null>(null);\n const handleRef = useForkRef<HTMLSelectElement>(rootRef, outerRootRef);\n\n const targetRef = useRef<HTMLButtonElement>(null);\n const chipsRefs = useRef<Array<HTMLButtonElement>>([]);\n const selectRef = useRef<HTMLDivElement>(null);\n const itemsRefs = useRef<Array<HTMLDivElement>>([]);\n const controlledRefs = { targetRef, chipsRefs, selectRef, itemsRefs };\n\n const [innerOpened, setOpened] = useState(opened);\n\n // INFO: нужно высчитывать для корректной работы портала\n const dynamicTargetWidth = targetRef.current?.offsetWidth;\n const withNativeSelectVisible = valueType === 'native' ? classes.nativeSelectVisible : undefined;\n\n // INFO: Из-за того, что классы передаются через ref,\n // состояние пропсов после изменения view, size, target\n // всегда предыдущее, поэтому нужно делать форс-ререндер\n useDidMountEffect(() => {\n forceUpdate();\n }, [view, size, target]);\n\n useEffect(() => {\n if (disabled || readOnly) {\n return;\n }\n\n setOpened(opened);\n }, [opened, disabled, readOnly]);\n\n const onInnerToggle = useCallback(\n (openValue: boolean, event: React.SyntheticEvent | Event) => {\n if (disabled || readOnly) {\n return;\n }\n\n if (onToggle) {\n onToggle(openValue, event);\n return;\n }\n\n setOpened(openValue);\n },\n [disabled, readOnly, onToggle],\n );\n\n const updateValue = useCallback(\n (item: HTMLElement, event: React.SyntheticEvent | Event) => {\n const {\n dataset: { value: newValue },\n } = item;\n\n if (rest.valueType === 'multiple') {\n const newSelected = getNewSelected(rest.value, newValue, rest.valueType);\n rest.onChangeValue?.(newSelected);\n\n return;\n }\n\n const newSelected = getNewSelected(rest.value, newValue, 'single');\n\n rest.onChangeValue?.(newSelected);\n\n onInnerToggle?.(false, event);\n },\n [rest.value, rest.valueType, rest.onChangeValue, onToggle, onInnerToggle],\n );\n\n const onClickChildrenItem = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n // INFO: Для корректной работы компонента Popper\n event.stopPropagation();\n\n const item = event.currentTarget as HTMLElement;\n\n updateValue(item, event);\n },\n [updateValue],\n );\n\n const onNativeSelectChange = useCallback(\n (event: React.ChangeEvent<HTMLSelectElement>) => {\n if (rest.valueType === 'multiple') {\n return;\n }\n\n const { value: newValue } = event.target;\n const newSelected = getNewSelected(rest.value, newValue, 'native');\n\n rest.onChangeValue?.(newSelected);\n },\n [rest.value, rest.valueType, rest.onChangeValue],\n );\n\n const onChangeChipValue = useCallback(\n (newValue?: Array<SelectPrimitiveValue>) => {\n if (rest.valueType !== 'multiple') {\n return;\n }\n\n rest.onChangeValue?.(newValue);\n },\n [rest.valueType],\n );\n\n const { onKeyDownTarget, onKeyDownSelect } = useKeyNavigation({\n controlledRefs,\n opened: innerOpened,\n enumerationType,\n valueType,\n value,\n updateOpened: onInnerToggle,\n updateValue,\n });\n\n const childrenArray = useMemo(() => Children.toArray(children), [children]) as React.ReactElement[];\n\n const childrenMemo = useMemo(\n () => getChildren(childrenArray, { onClick: onClickChildrenItem, childrenRefs: itemsRefs }, value),\n [childrenArray, value, innerOpened],\n );\n\n const values = useMemo(() => getValues(childrenArray, value), [childrenArray, value]);\n\n return (\n <StyledRoot ref={selectRef}>\n <StyledNativeSelect\n aria-invalid=\"false\"\n aria-hidden=\"true\"\n aria-readonly={readOnly}\n tabIndex={valueType === 'native' ? 0 : -1}\n form={form}\n name={name}\n ref={handleRef}\n value={`${value}`}\n disabled={disabled || readOnly}\n onChange={onNativeSelectChange}\n className={cx(ref?.classList.toString(), withNativeSelectVisible)}\n >\n {valueType === 'native' && childrenMemo}\n </StyledNativeSelect>\n <StyledPopover\n role={role}\n isOpen={innerOpened}\n onToggle={onInnerToggle}\n target={\n <SelectTarget\n tabIndex={valueType === 'native' ? -1 : 0}\n opened={innerOpened}\n target={target}\n values={values}\n label={label}\n enumerationType={enumerationType}\n readOnly={readOnly}\n disabled={disabled}\n size={size}\n ref={targetRef}\n chipsRefs={chipsRefs}\n id={innerId}\n onChange={onChangeChipValue}\n onKeyDown={onKeyDownTarget}\n />\n }\n className={cx(ref?.classList.toString())} // INFO: Прокидываем стили для Popover\n id={innerId}\n offset={offset}\n frame={frame}\n placement={getPlacements(placement)}\n trigger=\"click\"\n usePortal={usePortal}\n selectWidth={dynamicTargetWidth}\n isFocusTrapped={false}\n preventOverflow={false}\n closeOnEsc={false}\n closeOnOverlayClick\n >\n <Root ref={setRef} target={target} view={view} size={size} {...rest}>\n {valueType !== 'native' && (\n <StyledSelect onKeyDown={onKeyDownSelect}>{childrenMemo}</StyledSelect>\n )}\n </Root>\n </StyledPopover>\n </StyledRoot>\n );\n },\n );\n\nexport const selectConfig = {\n name: 'Select',\n tag: 'div',\n layout: selectRoot,\n base: '',\n variations: {\n target: {\n css: targetCSS,\n },\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["selectRoot","Root","forwardRef","_ref","outerRootRef","_targetRef$current","name","form","readOnly","disabled","label","id","children","role","target","view","size","frame","usePortal","_ref$enumerationType","enumerationType","_ref$opened","opened","_ref$placement","placement","onToggle","rest","_objectWithoutProperties","_excluded","forceUpdate","useForceUpdate","uniqId","safeUseId","innerId","_rest$valueType","valueType","value","offset","_useState","useState","_useState2","_slicedToArray","ref","setRef","rootRef","useRef","handleRef","useForkRef","targetRef","chipsRefs","selectRef","itemsRefs","controlledRefs","_useState3","_useState4","innerOpened","setOpened","dynamicTargetWidth","current","offsetWidth","withNativeSelectVisible","classes","nativeSelectVisible","undefined","useDidMountEffect","useEffect","onInnerToggle","useCallback","openValue","event","updateValue","item","_rest$onChangeValue2","newValue","dataset","_rest$onChangeValue","newSelected","getNewSelected","onChangeValue","call","onClickChildrenItem","stopPropagation","currentTarget","onNativeSelectChange","_rest$onChangeValue3","onChangeChipValue","_rest$onChangeValue4","_useKeyNavigation","useKeyNavigation","updateOpened","onKeyDownTarget","onKeyDownSelect","childrenArray","useMemo","Children","toArray","childrenMemo","getChildren","onClick","childrenRefs","values","getValues","React","createElement","StyledRoot","StyledNativeSelect","tabIndex","concat","onChange","className","cx","classList","toString","StyledPopover","isOpen","SelectTarget","onKeyDown","getPlacements","trigger","selectWidth","isFocusTrapped","preventOverflow","closeOnEsc","closeOnOverlayClick","_extends","StyledSelect","selectConfig","tag","layout","base","variations","css","targetCSS","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;IACaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACtEC,UAAU,CACN,UAAAC,IAAA,EAqBIC,YAAY,EACX;AAAA,IAAA,IAAAC,kBAAA,CAAA;AAAA,IAAA,IApBGC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MACJC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;MACJC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;MACRC,KAAK,GAAAP,IAAA,CAALO,KAAK;MACLC,EAAE,GAAAR,IAAA,CAAFQ,EAAE;MACFC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;MACRC,IAAI,GAAAV,IAAA,CAAJU,IAAI;MACJC,MAAM,GAAAX,IAAA,CAANW,MAAM;MACNC,IAAI,GAAAZ,IAAA,CAAJY,IAAI;MACJC,IAAI,GAAAb,IAAA,CAAJa,IAAI;MACJC,KAAK,GAAAd,IAAA,CAALc,KAAK;MACLC,SAAS,GAAAf,IAAA,CAATe,SAAS;MAAAC,oBAAA,GAAAhB,IAAA,CACTiB,eAAe;AAAfA,MAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,OAAO,GAAAA,oBAAA;MAAAE,WAAA,GAAAlB,IAAA,CACzBmB,MAAM;AAAN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AAAC,aAAA,CAACsB,YAAY,EAAA;AAACT,MAAAA,SAAS,EAAEzB,eAAAA;AAAgB,KAAA,EAAEK,YAA2B,CAExE,CACK,CACP,CAAC,CAAA;AAErB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM8B,YAAY,GAAG;AACxBxH,EAAAA,IAAI,EAAE,QAAQ;AACdyH,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEhI,UAAU;AAClBiI,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRpH,IAAAA,MAAM,EAAE;AACJqH,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACDrH,IAAAA,IAAI,EAAE;AACFoH,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDrH,IAAAA,IAAI,EAAE;AACFmH,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNxH,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer, useMemo, createContext, useLayoutEffect } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { isEmpty, getPlacements } from '../../utils';\nimport { useOutsideClick } from '../../hooks';\n\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\nimport { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors } from './utils';\nimport { Inner, Target } from './ui';\nimport { pathReducer, focusedPathReducer, focusedChipIndexReducer } from './reducers';\nimport { usePathMaps } from './hooks/usePathMaps';\nimport { StyledPopover, Ul, base, OuterLabel, HelperText } from './Select.styles';\nimport type { SelectProps, ItemContext } from './Select.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport type { ItemOptionTransformed } from './ui/Inner/ui/Item/Item.types';\n\nexport const Context = createContext<ItemContext>({} as ItemContext);\n\n/**\n * Выпадающий список. Поддерживает выбор одного или нескольких значений.\n */\nexport const selectRoot = (Root: RootProps<HTMLButtonElement, Omit<SelectProps, 'items'>>) =>\n forwardRef<HTMLButtonElement, SelectProps>((props, ref) => {\n const {\n multiselect = false,\n value: outerValue,\n onChange: outerOnChange,\n target = 'textfield-like',\n items,\n placement = 'bottom',\n label,\n labelPlacement = 'outer',\n placeholder,\n helperText,\n isTargetAmount = false,\n disabled = false,\n view,\n size,\n listOverflow,\n listHeight,\n listWidth,\n contentLeft,\n onScrollBottom,\n chipView,\n variant = 'normal',\n portal,\n renderValue,\n renderItem,\n ...rest\n } = props;\n\n const [internalValue, setInternalValue] = useState<string | string[]>(outerValue || multiselect ? [] : '');\n\n const value = outerValue || internalValue;\n\n const onChange = (e: string | string[]) => {\n if (outerOnChange) {\n outerOnChange(e as any);\n }\n\n setInternalValue(e);\n };\n\n const transformedItems = useMemo(() => initialItemsTransform(items), [items]);\n\n const [pathMap, focusedToValueMap, valueToCheckedMap, valueToItemMap] = usePathMaps(transformedItems);\n\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n const [focusedChipIndex, dispatchFocusedChipIndex] = useReducer(focusedChipIndexReducer, null);\n const [checked, setChecked] = useState(valueToCheckedMap);\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n if (focusedChipIndex != null) {\n dispatchFocusedChipIndex({ type: 'reset' });\n }\n });\n\n const handleToggle = (opened: boolean) => {\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n dispatchFocusedChipIndex({ type: 'reset' });\n }\n };\n\n const handleCheckboxChange = (item: ItemOptionTransformed) => {\n const checkedCopy = new Map(checked);\n\n if (!checkedCopy.get(item.value.toString())) {\n checkedCopy.set(item.value.toString(), true);\n updateDescendants(item, checkedCopy, true);\n } else {\n checkedCopy.set(item.value.toString(), false);\n updateDescendants(item, checkedCopy, false);\n }\n\n updateAncestors(item, checkedCopy);\n\n const newValues: Array<string> = [];\n\n valueToItemMap.forEach((item, key) => {\n if (checkedCopy.get(key)) {\n newValues.push(item.value.toString());\n }\n });\n\n if (onChange) {\n onChange(newValues as any);\n }\n };\n\n const handleItemClick = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (!isEmpty(item?.items)) {\n return;\n }\n\n if (multiselect) {\n handleCheckboxChange(item);\n } else {\n if (e) {\n e.stopPropagation();\n }\n\n const checkedCopy = new Map(checked);\n\n const isCurrentChecked = checkedCopy.get(item.value);\n\n checkedCopy.forEach((_, key) => {\n checkedCopy.set(key, false);\n });\n\n if (!isCurrentChecked) {\n checkedCopy.set(item.value, 'done');\n updateSingleAncestors(item, checkedCopy, 'dot');\n }\n\n if (onChange) {\n onChange((isCurrentChecked ? '' : item.value) as any);\n }\n }\n };\n\n const handleChipClick = (currentValue: string) => {\n handleCheckboxChange(valueToItemMap.get(currentValue)!);\n };\n\n const handlePressDown = (item: ItemOptionTransformed, e?: React.MouseEvent<HTMLElement>) => {\n if (isEmpty(item.items)) {\n handleItemClick(item, e);\n } else if (multiselect) {\n handleCheckboxChange(item);\n }\n };\n\n const handleScroll = (e: React.UIEvent<HTMLUListElement>) => {\n if (!onScrollBottom) return;\n\n const { target } = e;\n\n if (\n (target as HTMLElement).scrollHeight - (target as HTMLElement).scrollTop ===\n (target as HTMLElement).clientHeight\n ) {\n onScrollBottom(e);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleToggle,\n handlePressDown,\n focusedChipIndex,\n dispatchFocusedChipIndex,\n value,\n valueToItemMap,\n multiselect,\n isTargetAmount,\n });\n\n const isCurrentListOpen = Boolean(path[0]);\n\n // В данном эффекте мы следим за изменениями value и вносим коррективы в дерево чекбоксов.\n useLayoutEffect(() => {\n const checkedCopy = new Map(checked);\n\n checkedCopy.forEach((_, key) => {\n checkedCopy.set(key, false);\n });\n\n if (!isEmpty(value)) {\n if (Array.isArray(value)) {\n value.forEach((val) => {\n checkedCopy.set(val, true);\n updateDescendants(valueToItemMap.get(val)!, checkedCopy, true);\n updateAncestors(valueToItemMap.get(val)!, checkedCopy);\n });\n } else {\n checkedCopy.set(value as string, 'done');\n updateSingleAncestors(valueToItemMap.get(value as string)!, checkedCopy, 'dot');\n }\n }\n\n setChecked(checkedCopy);\n }, [value]);\n\n return (\n <Root ref={ref} size={size} view={view} chipView={chipView} {...(rest as any)}>\n {label && labelPlacement === 'outer' && target !== 'button-like' && <OuterLabel>{label}</OuterLabel>}\n <Context.Provider\n value={{\n focusedPath,\n checked,\n multiselect,\n size,\n handleCheckboxChange,\n handleItemClick,\n variant,\n renderItem,\n }}\n >\n <StyledPopover\n ref={targetRef}\n isOpen={isCurrentListOpen}\n placement={getPlacements(placement)}\n usePortal={Boolean(portal)}\n frame={portal}\n onToggle={handleToggle}\n trigger=\"click\"\n target={\n <Target\n opened={isCurrentListOpen}\n target={target}\n value={value}\n isTargetAmount={isTargetAmount}\n multiselect={multiselect}\n valueToItemMap={valueToItemMap}\n focusedPath={focusedPath}\n focusedToValueMap={focusedToValueMap}\n onChipClick={handleChipClick}\n label={label}\n placeholder={placeholder}\n onKeyDown={onKeyDown}\n focusedChipIndex={focusedChipIndex}\n labelPlacement={labelPlacement}\n size={size}\n contentLeft={contentLeft}\n disabled={disabled}\n renderValue={renderValue}\n />\n }\n preventOverflow={false}\n closeOnOverlayClick\n >\n <Root size={size} {...(rest as any)}>\n <Ul\n role=\"tree\"\n id=\"tree_level_1\"\n listHeight={listHeight}\n listOverflow={listOverflow}\n onScroll={handleScroll}\n listWidth={listWidth}\n >\n {transformedItems.map((item, index) => (\n <Inner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n listWidth={listWidth}\n />\n ))}\n </Ul>\n </Root>\n </StyledPopover>\n </Context.Provider>\n {helperText && target === 'textfield-like' && <HelperText>{helperText}</HelperText>}\n </Root>\n );\n });\n\nexport const selectConfig = {\n name: 'Select',\n tag: 'div',\n layout: selectRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n chipView: 'default',\n size: 'm',\n },\n};\n"],"names":["Context","createContext","selectRoot","Root","forwardRef","props","ref","_props$multiselect","multiselect","outerValue","value","outerOnChange","onChange","_props$target","target","items","_props$placement","placement","label","_props$labelPlacement","labelPlacement","placeholder","helperText","_props$isTargetAmount","isTargetAmount","_props$disabled","disabled","view","size","listOverflow","listHeight","listWidth","contentLeft","onScrollBottom","chipView","_props$variant","variant","portal","renderValue","renderItem","rest","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","internalValue","setInternalValue","e","transformedItems","useMemo","initialItemsTransform","_usePathMaps","usePathMaps","_usePathMaps2","pathMap","focusedToValueMap","valueToCheckedMap","valueToItemMap","_useReducer","useReducer","pathReducer","_useReducer2","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useReducer5","focusedChipIndexReducer","_useReducer6","focusedChipIndex","dispatchFocusedChipIndex","_useState3","_useState4","checked","setChecked","targetRef","useOutsideClick","type","handleToggle","opened","handleCheckboxChange","item","checkedCopy","Map","get","toString","set","updateDescendants","updateAncestors","newValues","forEach","key","push","handleItemClick","isEmpty","stopPropagation","isCurrentChecked","_","updateSingleAncestors","handleChipClick","currentValue","handlePressDown","handleScroll","scrollHeight","scrollTop","clientHeight","_useKeyNavigation","useKeyNavigation","onKeyDown","isCurrentListOpen","Boolean","useLayoutEffect","Array","isArray","val","React","createElement","_extends","OuterLabel","Provider","StyledPopover","isOpen","getPlacements","usePortal","frame","onToggle","trigger","Target","onChipClick","preventOverflow","closeOnOverlayClick","Ul","role","id","onScroll","map","index","Inner","concat","currentLevel","HelperText","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