@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
@@ -16,24 +16,52 @@ var tokens = {
16
16
  borderRadius: '--plasma-dropdown-border-radius',
17
17
  padding: '--plasma-dropdown-padding',
18
18
  disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',
19
+ disabledOpacity: '--plasma-dropdown-disabled-opacity',
20
+ focusColor: '--plasma-dropdown-focus-color',
19
21
  itemBackground: '--plasma-dropdown-item-background',
20
- itemColor: '--plasma-dropdown-item-color',
21
22
  itemBackgroundHover: '--plasma-dropdown-item-background-hover',
23
+ itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
24
+ // Old
25
+ itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
26
+ // Old
27
+ itemColor: '--plasma-dropdown-item-color',
28
+ itemColorSelected: '--plasma-dropdown-item-color-selected',
29
+ // Old
30
+ itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
31
+ // Old
22
32
  itemBorderRadius: '--plasma-dropdown-item-border-radius',
33
+ itemWidth: '--plasma-dropdown-item-width',
34
+ // Old
35
+ itemHeight: '--plasma-dropdown-item-height',
36
+ // Old
37
+ itemMarginTop: '--plasma-dropdown-item-margin-top',
38
+ // Old
39
+ itemMarginRight: '--plasma-dropdown-item-margin-right',
40
+ // Old
41
+ itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
42
+ // Old
43
+ itemMarginLeft: '--plasma-dropdown-item-margin-left',
44
+ // Old
23
45
  itemPaddingTop: '--plasma-dropdown-item-padding-top',
24
46
  itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
25
47
  itemPaddingRight: '--plasma-dropdown-item-padding-right',
26
48
  itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
27
49
  itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
28
50
  itemPaddingLeft: '--plasma-dropdown-item-padding-left',
51
+ itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
52
+ // Old
53
+ itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
54
+ // Old
55
+ itemContentRightWidth: '--plasma-dropdown-item-content-right-width',
56
+ // Old
57
+ itemContentRightColor: '--plasma-dropdown-item-content-right-color',
58
+ // Old
29
59
  itemFontFamily: '--plasma-dropdown-item-font-family',
30
60
  itemFontSize: '--plasma-dropdown-item-font-size',
31
61
  itemFontStyle: '--plasma-dropdown-item-font-style',
32
62
  itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
33
63
  itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
34
64
  itemFontLineHeight: '--plasma-dropdown-item-font-weight',
35
- disabledOpacity: '--plasma-dropdown-disabled-opacity',
36
- focusColor: '--plasma-dropdown-focus-color',
37
65
  // TODO: Remove below tokens as soon as they are no longer needed
38
66
  footerBackground: '--plasma-dropdown-footer-background',
39
67
  footerWidth: '--plasma-dropdown-footer-width',
@@ -101,21 +129,7 @@ var tokens = {
101
129
  groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',
102
130
  groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
103
131
  groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
104
- groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',
105
- itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
106
- itemColorSelected: '--plasma-dropdown-item-color-selected',
107
- itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
108
- itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
109
- itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
110
- itemContentRightColor: '--plasma-dropdown-item-content-right-color',
111
- itemWidth: '--plasma-dropdown-item-width',
112
- itemHeight: '--plasma-dropdown-item-height',
113
- itemMarginTop: '--plasma-dropdown-item-margin-top',
114
- itemMarginRight: '--plasma-dropdown-item-margin-right',
115
- itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
116
- itemMarginLeft: '--plasma-dropdown-item-margin-left',
117
- itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
118
- itemContentRightWidth: '--plasma-dropdown-item-content-right-width'
132
+ groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left'
119
133
  };
120
134
 
121
135
  exports.classes = classes;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.tokens.js","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownRoot: 'dropdown-root',\n dropdownItemIsFocused: 'dropdown-item-is-focused',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n dropdownItemIsActive: 'dropdown-item-is-active',\n dropdownItemIsSelected: 'dropdownItemIsSelected',\n};\n\nexport const tokens = {\n background: '--plasma-dropdown-background',\n boxShadow: '--plasma-dropdown-box-shadow',\n width: '--plasma-dropdown-width',\n borderRadius: '--plasma-dropdown-border-radius',\n padding: '--plasma-dropdown-padding',\n disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',\n\n itemBackground: '--plasma-dropdown-item-background',\n itemColor: '--plasma-dropdown-item-color',\n itemBackgroundHover: '--plasma-dropdown-item-background-hover',\n itemBorderRadius: '--plasma-dropdown-item-border-radius',\n itemPaddingTop: '--plasma-dropdown-item-padding-top',\n itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',\n itemPaddingRight: '--plasma-dropdown-item-padding-right',\n itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',\n itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',\n itemPaddingLeft: '--plasma-dropdown-item-padding-left',\n\n itemFontFamily: '--plasma-dropdown-item-font-family',\n itemFontSize: '--plasma-dropdown-item-font-size',\n itemFontStyle: '--plasma-dropdown-item-font-style',\n itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',\n itemFontLetterSpacing: '--plasma-dropdown-item-line-height',\n itemFontLineHeight: '--plasma-dropdown-item-font-weight',\n\n disabledOpacity: '--plasma-dropdown-disabled-opacity',\n focusColor: '--plasma-dropdown-focus-color',\n\n // TODO: Remove below tokens as soon as they are no longer needed\n footerBackground: '--plasma-dropdown-footer-background',\n footerWidth: '--plasma-dropdown-footer-width',\n footerHeight: '--plasma-dropdown-footer-height',\n footerPaddingTop: '--plasma-dropdown-footer-padding-top',\n footerPaddingRight: '--plasma-dropdown-footer-padding-right',\n footerPaddingBottom: '--plasma-dropdown-footer-padding-bottom',\n footerPaddingLeft: '--plasma-dropdown-footer-padding-left',\n footerMarginTop: '--plasma-dropdown-footer-margin-top',\n footerMarginRight: '--plasma-dropdown-footer-margin-right',\n footerMarginBottom: '--plasma-dropdown-footer-margin-bottom',\n footerMarginLeft: '--plasma-dropdown-footer-margin-left',\n footerFontFamily: '--plasma-dropdown-footer-font-family',\n footerFontSize: '--plasma-dropdown-footer-font-size',\n footerFontStyle: '--plasma-dropdown-footer-font-style',\n footerFontWeightBold: '--plasma-dropdown-footer-letter-spacing',\n footerFontLetterSpacing: '--plasma-dropdown-footer-line-height',\n footerFontLineHeight: '--plasma-dropdown-footer-font-weight',\n\n headerBackground: '--plasma-dropdown-header-background',\n headerWidth: '--plasma-dropdown-header-width',\n headerHeight: '--plasma-dropdown-header-height',\n headerPaddingTop: '--plasma-dropdown-header-padding-top',\n headerPaddingRight: '--plasma-dropdown-header-padding-right',\n headerPaddingBottom: '--plasma-dropdown-header-padding-bottom',\n headerPaddingLeft: '--plasma-dropdown-header-padding-left',\n headerMarginTop: '--plasma-dropdown-header-margin-top',\n headerMarginRight: '--plasma-dropdown-header-margin-right',\n headerMarginBottom: '--plasma-dropdown-header-margin-bottom',\n headerMarginLeft: '--plasma-dropdown-header-margin-left',\n headerFontFamily: '--plasma-dropdown-header-font-family',\n headerFontSize: '--plasma-dropdown-header-font-size',\n headerFontStyle: '--plasma-dropdown-header-font-style',\n headerFontWeightBold: '--plasma-dropdown-header-letter-spacing',\n headerFontLetterSpacing: '--plasma-dropdown-header-line-height',\n headerFontLineHeight: '--plasma-dropdown-header-font-weight',\n\n dividerColor: '--plasma-dropdown-divider-color',\n dividerWidth: '--plasma-dropdown-divider-width',\n dividerHeight: '--plasma-dropdown-divider-height',\n dividerMarginTop: '--plasma-dropdown-divider-margin-top',\n dividerMarginRight: '--plasma-dropdown-divider-margin-right',\n dividerMarginBottom: '--plasma-dropdown-divider-margin-bottom',\n dividerMarginLeft: '--plasma-dropdown-divider-margin-left',\n\n groupBackground: '--plasma-dropdown-group-background',\n groupWidth: '--plasma-dropdown-group-width',\n groupHeight: '--plasma-dropdown-group-height',\n groupPaddingTop: '--plasma-dropdown-group-padding-top',\n groupPaddingRight: '--plasma-dropdown-group-padding-right',\n groupPaddingBottom: '--plasma-dropdown-group-padding-bottom',\n groupPaddingLeft: '--plasma-dropdown-group-padding-left',\n groupMarginTop: '--plasma-dropdown-group-margin-top',\n groupMarginRight: '--plasma-dropdown-group-margin-right',\n groupMarginBottom: '--plasma-dropdown-group-margin-bottom',\n groupMarginLeft: '--plasma-dropdown-group-margin-left',\n groupLabelColor: '--plasma-dropdown-group-label-color',\n groupLabelFontFamily: '--plasma-dropdown-group-label-font-family',\n groupLabelFontSize: '--plasma-dropdown-group-label-font-size',\n groupLabelFontStyle: '--plasma-dropdown-group-label-font-style',\n groupLabelFontWeight: '--plasma-dropdown-group-label-font-weight',\n groupLabelLetterSpacing: '--plasma-dropdown-group-label-letter-spacing',\n groupLabelLineHeight: '--plasma-dropdown-group-label-line-height',\n groupLabelPaddingTop: '--plasma-dropdown-group-label-padding-top',\n groupLabelPaddingRight: '--plasma-dropdown-group-label-padding-right',\n groupLabelPaddingBottom: '--plasma-dropdown-group-label-padding-bottom',\n groupLabelPaddingLeft: '--plasma-dropdown-group-label-padding-left',\n groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',\n groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',\n groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',\n groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',\n\n itemBackgroundSelected: '--plasma-dropdown-item-background-selected',\n itemColorSelected: '--plasma-dropdown-item-color-selected',\n itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',\n itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',\n itemContentLeftColor: '--plasma-dropdown-item-content-left-color',\n itemContentRightColor: '--plasma-dropdown-item-content-right-color',\n itemWidth: '--plasma-dropdown-item-width',\n itemHeight: '--plasma-dropdown-item-height',\n itemMarginTop: '--plasma-dropdown-item-margin-top',\n itemMarginRight: '--plasma-dropdown-item-margin-right',\n itemMarginBottom: '--plasma-dropdown-item-margin-bottom',\n itemMarginLeft: '--plasma-dropdown-item-margin-left',\n itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',\n itemContentRightWidth: '--plasma-dropdown-item-content-right-width',\n};\n"],"names":["classes","dropdownRoot","dropdownItemIsFocused","dropdownItemIsDisabled","dropdownItemIsActive","dropdownItemIsSelected","tokens","background","boxShadow","width","borderRadius","padding","disclosureIconColor","itemBackground","itemColor","itemBackgroundHover","itemBorderRadius","itemPaddingTop","itemPaddingTopTight","itemPaddingRight","itemPaddingBottom","itemPaddingBottomTight","itemPaddingLeft","itemFontFamily","itemFontSize","itemFontStyle","itemFontWeightBold","itemFontLetterSpacing","itemFontLineHeight","disabledOpacity","focusColor","footerBackground","footerWidth","footerHeight","footerPaddingTop","footerPaddingRight","footerPaddingBottom","footerPaddingLeft","footerMarginTop","footerMarginRight","footerMarginBottom","footerMarginLeft","footerFontFamily","footerFontSize","footerFontStyle","footerFontWeightBold","footerFontLetterSpacing","footerFontLineHeight","headerBackground","headerWidth","headerHeight","headerPaddingTop","headerPaddingRight","headerPaddingBottom","headerPaddingLeft","headerMarginTop","headerMarginRight","headerMarginBottom","headerMarginLeft","headerFontFamily","headerFontSize","headerFontStyle","headerFontWeightBold","headerFontLetterSpacing","headerFontLineHeight","dividerColor","dividerWidth","dividerHeight","dividerMarginTop","dividerMarginRight","dividerMarginBottom","dividerMarginLeft","groupBackground","groupWidth","groupHeight","groupPaddingTop","groupPaddingRight","groupPaddingBottom","groupPaddingLeft","groupMarginTop","groupMarginRight","groupMarginBottom","groupMarginLeft","groupLabelColor","groupLabelFontFamily","groupLabelFontSize","groupLabelFontStyle","groupLabelFontWeight","groupLabelLetterSpacing","groupLabelLineHeight","groupLabelPaddingTop","groupLabelPaddingRight","groupLabelPaddingBottom","groupLabelPaddingLeft","groupLabelMarginTop","groupLabelMarginRight","groupLabelMarginBottom","groupLabelMarginLeft","itemBackgroundSelected","itemColorSelected","itemBackgroundSelectedHover","itemColorSelectedHover","itemContentLeftColor","itemContentRightColor","itemWidth","itemHeight","itemMarginTop","itemMarginRight","itemMarginBottom","itemMarginLeft","itemContentLeftWidth","itemContentRightWidth"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,YAAY,EAAE,eAAe;AAC7BC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA,sBAAsB,EAAE,2BAA2B;AACnDC,EAAAA,oBAAoB,EAAE,yBAAyB;AAC/CC,EAAAA,sBAAsB,EAAE,wBAAA;AAC5B,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,KAAK,EAAE,yBAAyB;AAChCC,EAAAA,YAAY,EAAE,iCAAiC;AAC/CC,EAAAA,OAAO,EAAE,2BAA2B;AACpCC,EAAAA,mBAAmB,EAAE,yCAAyC;AAE9DC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,eAAe,EAAE,qCAAqC;AAEtDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,YAAY,EAAE,kCAAkC;AAChDC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,kBAAkB,EAAE,uCAAuC;AAC3DC,EAAAA,qBAAqB,EAAE,oCAAoC;AAC3DC,EAAAA,kBAAkB,EAAE,oCAAoC;AAExDC,EAAAA,eAAe,EAAE,oCAAoC;AACrDC,EAAAA,UAAU,EAAE,+BAA+B;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C,EAAAA,oBAAoB,EAAE,2CAA2C;AAEjEC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,2BAA2B,EAAE,kDAAkD;AAC/EC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,UAAU,EAAE,+BAA+B;AAC3CC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,qBAAqB,EAAE,4CAAA;AAC3B;;;;;"}
1
+ {"version":3,"file":"Dropdown.tokens.js","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownRoot: 'dropdown-root',\n dropdownItemIsFocused: 'dropdown-item-is-focused',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n dropdownItemIsActive: 'dropdown-item-is-active',\n dropdownItemIsSelected: 'dropdownItemIsSelected',\n};\n\nexport const tokens = {\n background: '--plasma-dropdown-background',\n boxShadow: '--plasma-dropdown-box-shadow',\n width: '--plasma-dropdown-width',\n borderRadius: '--plasma-dropdown-border-radius',\n padding: '--plasma-dropdown-padding',\n disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',\n disabledOpacity: '--plasma-dropdown-disabled-opacity',\n focusColor: '--plasma-dropdown-focus-color',\n\n itemBackground: '--plasma-dropdown-item-background',\n itemBackgroundHover: '--plasma-dropdown-item-background-hover',\n itemBackgroundSelected: '--plasma-dropdown-item-background-selected', // Old\n itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover', // Old\n itemColor: '--plasma-dropdown-item-color',\n itemColorSelected: '--plasma-dropdown-item-color-selected', // Old\n itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover', // Old\n itemBorderRadius: '--plasma-dropdown-item-border-radius',\n itemWidth: '--plasma-dropdown-item-width', // Old\n itemHeight: '--plasma-dropdown-item-height', // Old\n itemMarginTop: '--plasma-dropdown-item-margin-top', // Old\n itemMarginRight: '--plasma-dropdown-item-margin-right', // Old\n itemMarginBottom: '--plasma-dropdown-item-margin-bottom', // Old\n itemMarginLeft: '--plasma-dropdown-item-margin-left', // Old\n itemPaddingTop: '--plasma-dropdown-item-padding-top',\n itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',\n itemPaddingRight: '--plasma-dropdown-item-padding-right',\n itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',\n itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',\n itemPaddingLeft: '--plasma-dropdown-item-padding-left',\n itemContentLeftWidth: '--plasma-dropdown-item-content-left-width', // Old\n itemContentLeftColor: '--plasma-dropdown-item-content-left-color', // Old\n itemContentRightWidth: '--plasma-dropdown-item-content-right-width', // Old\n itemContentRightColor: '--plasma-dropdown-item-content-right-color', // Old\n itemFontFamily: '--plasma-dropdown-item-font-family',\n itemFontSize: '--plasma-dropdown-item-font-size',\n itemFontStyle: '--plasma-dropdown-item-font-style',\n itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',\n itemFontLetterSpacing: '--plasma-dropdown-item-line-height',\n itemFontLineHeight: '--plasma-dropdown-item-font-weight',\n\n // TODO: Remove below tokens as soon as they are no longer needed\n footerBackground: '--plasma-dropdown-footer-background',\n footerWidth: '--plasma-dropdown-footer-width',\n footerHeight: '--plasma-dropdown-footer-height',\n footerPaddingTop: '--plasma-dropdown-footer-padding-top',\n footerPaddingRight: '--plasma-dropdown-footer-padding-right',\n footerPaddingBottom: '--plasma-dropdown-footer-padding-bottom',\n footerPaddingLeft: '--plasma-dropdown-footer-padding-left',\n footerMarginTop: '--plasma-dropdown-footer-margin-top',\n footerMarginRight: '--plasma-dropdown-footer-margin-right',\n footerMarginBottom: '--plasma-dropdown-footer-margin-bottom',\n footerMarginLeft: '--plasma-dropdown-footer-margin-left',\n footerFontFamily: '--plasma-dropdown-footer-font-family',\n footerFontSize: '--plasma-dropdown-footer-font-size',\n footerFontStyle: '--plasma-dropdown-footer-font-style',\n footerFontWeightBold: '--plasma-dropdown-footer-letter-spacing',\n footerFontLetterSpacing: '--plasma-dropdown-footer-line-height',\n footerFontLineHeight: '--plasma-dropdown-footer-font-weight',\n\n headerBackground: '--plasma-dropdown-header-background',\n headerWidth: '--plasma-dropdown-header-width',\n headerHeight: '--plasma-dropdown-header-height',\n headerPaddingTop: '--plasma-dropdown-header-padding-top',\n headerPaddingRight: '--plasma-dropdown-header-padding-right',\n headerPaddingBottom: '--plasma-dropdown-header-padding-bottom',\n headerPaddingLeft: '--plasma-dropdown-header-padding-left',\n headerMarginTop: '--plasma-dropdown-header-margin-top',\n headerMarginRight: '--plasma-dropdown-header-margin-right',\n headerMarginBottom: '--plasma-dropdown-header-margin-bottom',\n headerMarginLeft: '--plasma-dropdown-header-margin-left',\n headerFontFamily: '--plasma-dropdown-header-font-family',\n headerFontSize: '--plasma-dropdown-header-font-size',\n headerFontStyle: '--plasma-dropdown-header-font-style',\n headerFontWeightBold: '--plasma-dropdown-header-letter-spacing',\n headerFontLetterSpacing: '--plasma-dropdown-header-line-height',\n headerFontLineHeight: '--plasma-dropdown-header-font-weight',\n\n dividerColor: '--plasma-dropdown-divider-color',\n dividerWidth: '--plasma-dropdown-divider-width',\n dividerHeight: '--plasma-dropdown-divider-height',\n dividerMarginTop: '--plasma-dropdown-divider-margin-top',\n dividerMarginRight: '--plasma-dropdown-divider-margin-right',\n dividerMarginBottom: '--plasma-dropdown-divider-margin-bottom',\n dividerMarginLeft: '--plasma-dropdown-divider-margin-left',\n\n groupBackground: '--plasma-dropdown-group-background',\n groupWidth: '--plasma-dropdown-group-width',\n groupHeight: '--plasma-dropdown-group-height',\n groupPaddingTop: '--plasma-dropdown-group-padding-top',\n groupPaddingRight: '--plasma-dropdown-group-padding-right',\n groupPaddingBottom: '--plasma-dropdown-group-padding-bottom',\n groupPaddingLeft: '--plasma-dropdown-group-padding-left',\n groupMarginTop: '--plasma-dropdown-group-margin-top',\n groupMarginRight: '--plasma-dropdown-group-margin-right',\n groupMarginBottom: '--plasma-dropdown-group-margin-bottom',\n groupMarginLeft: '--plasma-dropdown-group-margin-left',\n groupLabelColor: '--plasma-dropdown-group-label-color',\n groupLabelFontFamily: '--plasma-dropdown-group-label-font-family',\n groupLabelFontSize: '--plasma-dropdown-group-label-font-size',\n groupLabelFontStyle: '--plasma-dropdown-group-label-font-style',\n groupLabelFontWeight: '--plasma-dropdown-group-label-font-weight',\n groupLabelLetterSpacing: '--plasma-dropdown-group-label-letter-spacing',\n groupLabelLineHeight: '--plasma-dropdown-group-label-line-height',\n groupLabelPaddingTop: '--plasma-dropdown-group-label-padding-top',\n groupLabelPaddingRight: '--plasma-dropdown-group-label-padding-right',\n groupLabelPaddingBottom: '--plasma-dropdown-group-label-padding-bottom',\n groupLabelPaddingLeft: '--plasma-dropdown-group-label-padding-left',\n groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',\n groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',\n groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',\n groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',\n};\n"],"names":["classes","dropdownRoot","dropdownItemIsFocused","dropdownItemIsDisabled","dropdownItemIsActive","dropdownItemIsSelected","tokens","background","boxShadow","width","borderRadius","padding","disclosureIconColor","disabledOpacity","focusColor","itemBackground","itemBackgroundHover","itemBackgroundSelected","itemBackgroundSelectedHover","itemColor","itemColorSelected","itemColorSelectedHover","itemBorderRadius","itemWidth","itemHeight","itemMarginTop","itemMarginRight","itemMarginBottom","itemMarginLeft","itemPaddingTop","itemPaddingTopTight","itemPaddingRight","itemPaddingBottom","itemPaddingBottomTight","itemPaddingLeft","itemContentLeftWidth","itemContentLeftColor","itemContentRightWidth","itemContentRightColor","itemFontFamily","itemFontSize","itemFontStyle","itemFontWeightBold","itemFontLetterSpacing","itemFontLineHeight","footerBackground","footerWidth","footerHeight","footerPaddingTop","footerPaddingRight","footerPaddingBottom","footerPaddingLeft","footerMarginTop","footerMarginRight","footerMarginBottom","footerMarginLeft","footerFontFamily","footerFontSize","footerFontStyle","footerFontWeightBold","footerFontLetterSpacing","footerFontLineHeight","headerBackground","headerWidth","headerHeight","headerPaddingTop","headerPaddingRight","headerPaddingBottom","headerPaddingLeft","headerMarginTop","headerMarginRight","headerMarginBottom","headerMarginLeft","headerFontFamily","headerFontSize","headerFontStyle","headerFontWeightBold","headerFontLetterSpacing","headerFontLineHeight","dividerColor","dividerWidth","dividerHeight","dividerMarginTop","dividerMarginRight","dividerMarginBottom","dividerMarginLeft","groupBackground","groupWidth","groupHeight","groupPaddingTop","groupPaddingRight","groupPaddingBottom","groupPaddingLeft","groupMarginTop","groupMarginRight","groupMarginBottom","groupMarginLeft","groupLabelColor","groupLabelFontFamily","groupLabelFontSize","groupLabelFontStyle","groupLabelFontWeight","groupLabelLetterSpacing","groupLabelLineHeight","groupLabelPaddingTop","groupLabelPaddingRight","groupLabelPaddingBottom","groupLabelPaddingLeft","groupLabelMarginTop","groupLabelMarginRight","groupLabelMarginBottom","groupLabelMarginLeft"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,YAAY,EAAE,eAAe;AAC7BC,EAAAA,qBAAqB,EAAE,0BAA0B;AACjDC,EAAAA,sBAAsB,EAAE,2BAA2B;AACnDC,EAAAA,oBAAoB,EAAE,yBAAyB;AAC/CC,EAAAA,sBAAsB,EAAE,wBAAA;AAC5B,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,KAAK,EAAE,yBAAyB;AAChCC,EAA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4C;AACnEC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,oBAAoB,EAAE,2CAAA;AAC1B;;;;;"}
@@ -34,14 +34,19 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
34
34
  closeOnSelect = _ref.closeOnSelect,
35
35
  onItemSelect = _ref.onItemSelect,
36
36
  onItemClick = _ref.onItemClick;
37
- var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[path.length - 1]) || 0;
38
37
  var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
38
+ var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[focusedPath.length - 1]) || 0;
39
39
  var onKeyDown = function onKeyDown(event) {
40
40
  switch (event.code) {
41
41
  case keys.ArrowUp:
42
42
  {
43
43
  if (focusedPath.length) {
44
44
  if (currentIndex > 0) {
45
+ if (path.length > focusedPath.length) {
46
+ dispatchPath({
47
+ type: 'removed_last_level'
48
+ });
49
+ }
45
50
  dispatchFocusedPath({
46
51
  type: 'change_last_focus',
47
52
  value: currentIndex - 1
@@ -62,6 +67,11 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
62
67
  {
63
68
  if (focusedPath.length) {
64
69
  if (currentIndex + 1 < currentLength) {
70
+ if (path.length > focusedPath.length) {
71
+ dispatchPath({
72
+ type: 'removed_last_level'
73
+ });
74
+ }
65
75
  dispatchFocusedPath({
66
76
  type: 'change_last_focus',
67
77
  value: currentIndex + 1
@@ -81,14 +91,17 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
81
91
  case keys.ArrowLeft:
82
92
  {
83
93
  if (focusedPath.length) {
84
- dispatchPath({
85
- type: 'removed_last_level'
86
- });
87
- dispatchFocusedPath({
88
- type: 'return_prev_focus'
89
- });
94
+ if (path.length > focusedPath.length) {
95
+ dispatchPath({
96
+ type: 'removed_last_level'
97
+ });
98
+ } else {
99
+ dispatchFocusedPath({
100
+ type: 'return_prev_focus'
101
+ });
102
+ }
90
103
  }
91
- if (focusedPath.length === 1) {
104
+ if (path.length === 1) {
92
105
  handleGlobalToggle(false, event);
93
106
  }
94
107
  break;
@@ -100,14 +113,17 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
100
113
  }
101
114
  var currentItem = getFurtherPath(focusedPath, focusedToValueMap);
102
115
  if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
103
- dispatchPath({
104
- type: 'added_next_level',
105
- value: currentItem.value.toString()
106
- });
107
- dispatchFocusedPath({
108
- type: 'add_focus',
109
- value: 0
110
- });
116
+ if (path.length > focusedPath.length) {
117
+ dispatchFocusedPath({
118
+ type: 'add_focus',
119
+ value: 0
120
+ });
121
+ } else {
122
+ dispatchPath({
123
+ type: 'added_next_level',
124
+ value: currentItem.value.toString()
125
+ });
126
+ }
111
127
  }
112
128
  break;
113
129
  }
@@ -129,14 +145,17 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
129
145
  break;
130
146
  }
131
147
  if (_currentItem !== null && _currentItem !== void 0 && _currentItem.items) {
132
- dispatchPath({
133
- type: 'added_next_level',
134
- value: _currentItem.value.toString()
135
- });
136
- dispatchFocusedPath({
137
- type: 'add_focus',
138
- value: 0
139
- });
148
+ if (path.length > focusedPath.length) {
149
+ dispatchFocusedPath({
150
+ type: 'add_focus',
151
+ value: 0
152
+ });
153
+ } else {
154
+ dispatchPath({
155
+ type: 'added_next_level',
156
+ value: _currentItem.value.toString()
157
+ });
158
+ }
140
159
  } else {
141
160
  if (closeOnSelect) {
142
161
  handleGlobalToggle(false, event);
@@ -165,6 +184,11 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
165
184
  case keys.Home:
166
185
  {
167
186
  if (path[0]) {
187
+ if (path.length > focusedPath.length) {
188
+ dispatchPath({
189
+ type: 'removed_last_level'
190
+ });
191
+ }
168
192
  dispatchFocusedPath({
169
193
  type: 'change_last_focus',
170
194
  value: 0
@@ -183,6 +207,11 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
183
207
  case keys.End:
184
208
  {
185
209
  if (path[0]) {
210
+ if (path.length > focusedPath.length) {
211
+ dispatchPath({
212
+ type: 'removed_last_level'
213
+ });
214
+ }
186
215
  dispatchFocusedPath({
187
216
  type: 'change_last_focus',
188
217
  value: currentLength - 1
@@ -204,6 +233,11 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
204
233
  if (!path[0]) {
205
234
  break;
206
235
  }
236
+ if (path.length > focusedPath.length) {
237
+ dispatchPath({
238
+ type: 'removed_last_level'
239
+ });
240
+ }
207
241
  if (currentIndex <= JUMP_SIZE) {
208
242
  dispatchFocusedPath({
209
243
  type: 'change_last_focus',
@@ -222,6 +256,11 @@ var useKeyNavigation = function useKeyNavigation(_ref) {
222
256
  if (!path[0]) {
223
257
  break;
224
258
  }
259
+ if (path.length > focusedPath.length) {
260
+ dispatchPath({
261
+ type: 'removed_last_level'
262
+ });
263
+ }
225
264
  if (currentLength - currentIndex <= JUMP_SIZE) {
226
265
  dispatchFocusedPath({
227
266
  type: 'change_last_focus',
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardNavigation.js","sources":["../../../../src/components/Dropdown/hooks/useKeyboardNavigation.ts"],"sourcesContent":["import { KeyboardEvent } from 'react';\nimport type { Dispatch } from 'react';\n\nimport { PathAction, PathState } from '../reducers/pathReducer';\nimport { FocusedPathAction, FocusedPathState } from '../reducers/focusedPathReducer';\nimport { HandleGlobalToggleType, DropdownProps } from '../Dropdown.types';\n\nimport { PathMapType, FocusedToValueMapType } from './useHashMaps';\n\nconst JUMP_SIZE = 10;\n\nexport const keys = {\n Enter: 'Enter',\n Space: 'Space',\n Tab: 'Tab',\n Escape: 'Escape',\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Home: 'Home',\n End: 'End',\n PageUp: 'PageUp',\n PageDown: 'PageDown',\n};\n\nconst getFurtherPath = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n\ninterface Props {\n focusedPath: FocusedPathState;\n dispatchFocusedPath: Dispatch<FocusedPathAction>;\n path: PathState;\n dispatchPath: Dispatch<PathAction>;\n pathMap: PathMapType;\n focusedToValueMap: FocusedToValueMapType;\n handleGlobalToggle: HandleGlobalToggleType;\n closeOnSelect: DropdownProps['closeOnSelect'];\n onItemSelect: DropdownProps['onItemSelect'];\n onItemClick: DropdownProps['onItemClick'];\n}\n\ninterface ReturnedProps {\n onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;\n}\n\nexport const useKeyNavigation = ({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n}: Props): ReturnedProps => {\n const currentLength: number = pathMap.get(path?.[path.length - 1]) || 0;\n const currentIndex: number = focusedPath?.[focusedPath.length - 1] || 0;\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n switch (event.code) {\n case keys.ArrowUp: {\n if (focusedPath.length) {\n if (currentIndex > 0) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.ArrowDown: {\n if (focusedPath.length) {\n if (currentIndex + 1 < currentLength) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.ArrowLeft: {\n if (focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n dispatchFocusedPath({ type: 'return_prev_focus' });\n }\n\n if (focusedPath.length === 1) {\n handleGlobalToggle(false, event);\n }\n\n break;\n }\n\n case keys.ArrowRight: {\n if (!focusedPath.length) {\n break;\n }\n\n const currentItem = getFurtherPath(focusedPath, focusedToValueMap);\n\n if (currentItem?.items) {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n }\n\n break;\n }\n\n case keys.Enter:\n case keys.Space: {\n event.preventDefault();\n\n if (!path[0]) {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n break;\n }\n\n const currentItem = getFurtherPath(focusedPath, focusedToValueMap);\n\n if (currentItem?.disabled || currentItem?.isDisabled) {\n break;\n }\n\n if (currentItem?.items) {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n } else {\n if (closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n\n if (onItemSelect && currentItem) {\n onItemSelect(currentItem, event);\n }\n\n if (onItemClick && currentItem) {\n onItemClick(currentItem, event);\n }\n }\n\n break;\n }\n\n case keys.Tab:\n case keys.Escape: {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n handleGlobalToggle(false, event);\n\n break;\n }\n\n case keys.Home: {\n if (path[0]) {\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.End: {\n if (path[0]) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'change_last_focus', value: (pathMap.get('root') || 0) - 1 });\n\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.PageUp: {\n if (!path[0]) {\n break;\n }\n\n if (currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - JUMP_SIZE });\n }\n\n break;\n }\n\n case keys.PageDown: {\n if (!path[0]) {\n break;\n }\n\n if (currentLength - currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + JUMP_SIZE });\n }\n\n break;\n }\n\n default: {\n break;\n }\n }\n };\n\n return { onKeyDown };\n};\n"],"names":["JUMP_SIZE","keys","Enter","Space","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","getFurtherPath","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get","useKeyNavigation","_ref","dispatchFocusedPath","path","dispatchPath","pathMap","handleGlobalToggle","closeOnSelect","onItemSelect","onItemClick","currentLength","length","currentIndex","onKeyDown","event","code","type","value","currentItem","items","toString","preventDefault","disabled","isDisabled"],"mappings":";;;;AASA,IAAMA,SAAS,GAAG,EAAE,CAAA;AAEb,IAAMC,IAAI,GAAG;AAChBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAA;AACd,EAAC;AAED,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,WAA6B,EAAEC,iBAAwC,EAAK;EAChG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A;GAAW,CAAA;AACxB;;;;;"}
1
+ {"version":3,"file":"useKeyboardNavigation.js","sources":["../../../../src/components/Dropdown/hooks/useKeyboardNavigation.ts"],"sourcesContent":["import { KeyboardEvent } from 'react';\nimport type { Dispatch } from 'react';\n\nimport { PathAction, PathState } from '../reducers/pathReducer';\nimport { FocusedPathAction, FocusedPathState } from '../reducers/focusedPathReducer';\nimport { HandleGlobalToggleType, DropdownProps } from '../Dropdown.types';\n\nimport { PathMapType, FocusedToValueMapType } from './useHashMaps';\n\nconst JUMP_SIZE = 10;\n\nexport const keys = {\n Enter: 'Enter',\n Space: 'Space',\n Tab: 'Tab',\n Escape: 'Escape',\n ArrowLeft: 'ArrowLeft',\n ArrowRight: 'ArrowRight',\n ArrowUp: 'ArrowUp',\n ArrowDown: 'ArrowDown',\n Home: 'Home',\n End: 'End',\n PageUp: 'PageUp',\n PageDown: 'PageDown',\n};\n\nconst getFurtherPath = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n\ninterface Props {\n focusedPath: FocusedPathState;\n dispatchFocusedPath: Dispatch<FocusedPathAction>;\n path: PathState;\n dispatchPath: Dispatch<PathAction>;\n pathMap: PathMapType;\n focusedToValueMap: FocusedToValueMapType;\n handleGlobalToggle: HandleGlobalToggleType;\n closeOnSelect: DropdownProps['closeOnSelect'];\n onItemSelect: DropdownProps['onItemSelect'];\n onItemClick: DropdownProps['onItemClick'];\n}\n\ninterface ReturnedProps {\n onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;\n}\n\nexport const useKeyNavigation = ({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n}: Props): ReturnedProps => {\n const currentIndex: number = focusedPath?.[focusedPath.length - 1] || 0;\n const currentLength: number = pathMap.get(path?.[focusedPath.length - 1]) || 0;\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => {\n switch (event.code) {\n case keys.ArrowUp: {\n if (focusedPath.length) {\n if (currentIndex > 0) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.ArrowDown: {\n if (focusedPath.length) {\n if (currentIndex + 1 < currentLength) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + 1 });\n }\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.ArrowLeft: {\n if (focusedPath.length) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n } else {\n dispatchFocusedPath({ type: 'return_prev_focus' });\n }\n }\n\n if (path.length === 1) {\n handleGlobalToggle(false, event);\n }\n\n break;\n }\n\n case keys.ArrowRight: {\n if (!focusedPath.length) {\n break;\n }\n\n const currentItem = getFurtherPath(focusedPath, focusedToValueMap);\n\n if (currentItem?.items) {\n if (path.length > focusedPath.length) {\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n } else {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n }\n }\n\n break;\n }\n\n case keys.Enter:\n case keys.Space: {\n event.preventDefault();\n\n if (!path[0]) {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n break;\n }\n\n const currentItem = getFurtherPath(focusedPath, focusedToValueMap);\n\n if (currentItem?.disabled || currentItem?.isDisabled) {\n break;\n }\n\n if (currentItem?.items) {\n if (path.length > focusedPath.length) {\n dispatchFocusedPath({ type: 'add_focus', value: 0 });\n } else {\n dispatchPath({ type: 'added_next_level', value: currentItem.value.toString() });\n }\n } else {\n if (closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n\n if (onItemSelect && currentItem) {\n onItemSelect(currentItem, event);\n }\n\n if (onItemClick && currentItem) {\n onItemClick(currentItem, event);\n }\n }\n\n break;\n }\n\n case keys.Tab:\n case keys.Escape: {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n handleGlobalToggle(false, event);\n\n break;\n }\n\n case keys.Home: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'set_initial_focus' });\n\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.End: {\n if (path[0]) {\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchPath({ type: 'opened_first_level' });\n dispatchFocusedPath({ type: 'change_last_focus', value: (pathMap.get('root') || 0) - 1 });\n\n handleGlobalToggle(true, event);\n }\n\n break;\n }\n\n case keys.PageUp: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: 0 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex - JUMP_SIZE });\n }\n\n break;\n }\n\n case keys.PageDown: {\n if (!path[0]) {\n break;\n }\n\n if (path.length > focusedPath.length) {\n dispatchPath({ type: 'removed_last_level' });\n }\n\n if (currentLength - currentIndex <= JUMP_SIZE) {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentLength - 1 });\n } else {\n dispatchFocusedPath({ type: 'change_last_focus', value: currentIndex + JUMP_SIZE });\n }\n\n break;\n }\n\n default: {\n break;\n }\n }\n };\n\n return { onKeyDown };\n};\n"],"names":["JUMP_SIZE","keys","Enter","Space","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","getFurtherPath","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get","useKeyNavigation","_ref","dispatchFocusedPath","path","dispatchPath","pathMap","handleGlobalToggle","closeOnSelect","onItemSelect","onItemClick","currentIndex","length","currentLength","onKeyDown","event","code","type","value","currentItem","items","toString","preventDefault","disabled","isDisabled"],"mappings":";;;;AASA,IAAMA,SAAS,GAAG,EAAE,CAAA;AAEb,IAAMC,IAAI,GAAG;AAChBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,SAAS,EAAE,WAAW;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAA;AACd,EAAC;AAED,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,WAA6B,EAAEC,iBAAwC,EAAK;EAChG,IAAMC,mBAAmB,GAAGF,WAAW,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,CAAC,EAAA;AAAA,IAAA,OAAA,EAAA,CAAAC,MAAA,CAAQF,GAAG,EAAAE,GAAAA,CAAAA,CAAAA,MAAA,CAAID,CAAC,CAAA,CAAA;GAAE,EAAE,EAAE,CAAC,CAACE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAElG,EAAA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