@salutejs/plasma-new-hope 0.78.0-canary.1203.8970261959.0 → 0.79.0-canary.1195.9053577477.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (518) hide show
  1. package/cjs/components/Button/Button.styles.js +1 -0
  2. package/cjs/components/Button/Button.styles.js.map +1 -1
  3. package/cjs/components/Calendar/Calendar.types.js.map +1 -1
  4. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -3
  5. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  6. package/cjs/components/Calendar/hooks/useDays.js +3 -6
  7. package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
  8. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +1 -2
  9. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  10. package/cjs/components/Combobox/Combobox.css +20 -7
  11. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +18 -6
  12. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  13. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +18 -6
  14. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  15. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +18 -6
  16. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  17. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +18 -6
  18. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  19. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  20. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +81 -10
  21. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  22. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +21 -9
  23. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  24. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  25. package/cjs/components/Combobox/utils/index.js +23 -0
  26. package/cjs/components/Combobox/utils/index.js.map +1 -0
  27. package/cjs/components/Drawer/Drawer.js +1 -0
  28. package/cjs/components/Drawer/Drawer.js.map +1 -1
  29. package/cjs/components/Dropdown/Dropdown.css +28 -2
  30. package/cjs/components/Dropdown/Dropdown.js +141 -54
  31. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  32. package/cjs/components/Dropdown/Dropdown.styles.js +40 -7
  33. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  34. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  35. package/cjs/components/Dropdown/Dropdown.tokens.js +26 -23
  36. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  37. package/cjs/components/Dropdown/hooks/useHashMaps.js +34 -0
  38. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  39. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +247 -0
  40. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  41. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +37 -0
  42. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  43. package/cjs/components/Dropdown/reducers/pathReducer.js +41 -0
  44. package/cjs/components/Dropdown/reducers/pathReducer.js.map +1 -0
  45. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +125 -0
  46. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  47. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  48. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +79 -100
  49. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  50. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +31 -5
  51. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  52. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  53. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +30 -0
  54. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
  55. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
  56. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
  57. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +112 -0
  58. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
  59. package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +1 -1
  60. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
  61. package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +1 -1
  62. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
  63. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +29 -0
  64. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -0
  65. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles_3w3l45.css +2 -0
  66. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.css +7 -0
  67. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +99 -0
  68. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -0
  69. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js +115 -0
  70. package/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js.map +1 -0
  71. package/cjs/components/Dropdown/ui/DropdownOld/utils/index.js +23 -0
  72. package/cjs/components/Dropdown/ui/DropdownOld/utils/index.js.map +1 -0
  73. package/cjs/components/Dropdown/ui/DropdownOld/variations/_size/base.js +9 -0
  74. package/cjs/components/Dropdown/ui/DropdownOld/variations/_size/base.js.map +1 -0
  75. package/cjs/components/Dropdown/ui/DropdownOld/variations/_view/base.js +9 -0
  76. package/cjs/components/Dropdown/ui/DropdownOld/variations/_view/base.js.map +1 -0
  77. package/cjs/components/Dropdown/utils/index.js +16 -0
  78. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  79. package/cjs/components/IconButton/IconButton.css +24 -0
  80. package/cjs/components/IconButton/IconButton.js +50 -0
  81. package/cjs/components/IconButton/IconButton.js.map +1 -0
  82. package/cjs/components/IconButton/IconButton.styles.js +16 -0
  83. package/cjs/components/IconButton/IconButton.styles.js.map +1 -0
  84. package/cjs/components/IconButton/IconButton.styles_1hknr37.css +1 -0
  85. package/cjs/components/IconButton/IconButton.tokens.js +32 -0
  86. package/cjs/components/IconButton/IconButton.tokens.js.map +1 -0
  87. package/cjs/components/Pagination/Pagination.css +17 -7
  88. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -7
  89. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  90. package/cjs/components/Select/Select.css +17 -7
  91. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +18 -6
  92. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  93. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +18 -6
  94. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  95. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +18 -6
  96. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  97. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +18 -6
  98. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  99. package/cjs/components/Select/ui/SelectItem/SelectItem.css +19 -7
  100. package/cjs/components/Select/ui/SelectItem/SelectItem.js +3 -3
  101. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  102. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  103. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  104. package/cjs/components/Select/ui/SelectItem/{SelectItem.styles_6h17aw.css → SelectItem.styles_vk39mp.css} +1 -1
  105. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  106. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  107. package/cjs/index.css +23 -8
  108. package/cjs/index.js +18 -2
  109. package/cjs/index.js.map +1 -1
  110. package/es/components/Button/Button.styles.js +1 -0
  111. package/es/components/Button/Button.styles.js.map +1 -1
  112. package/es/components/Calendar/Calendar.types.js.map +1 -1
  113. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -3
  114. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  115. package/es/components/Calendar/hooks/useDays.js +3 -6
  116. package/es/components/Calendar/hooks/useDays.js.map +1 -1
  117. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +1 -2
  118. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  119. package/es/components/Combobox/Combobox.css +20 -7
  120. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +18 -6
  121. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  122. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +18 -6
  123. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  124. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +18 -6
  125. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  126. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +18 -6
  127. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  128. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  129. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +82 -11
  130. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  131. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +19 -10
  132. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  133. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  134. package/es/components/Combobox/utils/index.js +19 -0
  135. package/es/components/Combobox/utils/index.js.map +1 -0
  136. package/es/components/Drawer/Drawer.js +1 -0
  137. package/es/components/Drawer/Drawer.js.map +1 -1
  138. package/es/components/Dropdown/Dropdown.css +28 -2
  139. package/es/components/Dropdown/Dropdown.js +147 -60
  140. package/es/components/Dropdown/Dropdown.js.map +1 -1
  141. package/es/components/Dropdown/Dropdown.styles.js +39 -7
  142. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  143. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  144. package/es/components/Dropdown/Dropdown.tokens.js +26 -23
  145. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  146. package/es/components/Dropdown/hooks/useHashMaps.js +30 -0
  147. package/es/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  148. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +242 -0
  149. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  150. package/es/components/Dropdown/reducers/focusedPathReducer.js +33 -0
  151. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  152. package/es/components/Dropdown/reducers/pathReducer.js +37 -0
  153. package/es/components/Dropdown/reducers/pathReducer.js.map +1 -0
  154. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +121 -0
  155. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  156. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  157. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +80 -100
  158. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  159. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +30 -5
  160. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  161. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  162. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +23 -0
  163. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
  164. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
  165. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
  166. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +107 -0
  167. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
  168. package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +1 -1
  169. package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
  170. package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base_x642ct.css +1 -0
  171. package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +1 -1
  172. package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
  173. package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base_x642ct.css +1 -0
  174. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +24 -0
  175. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -0
  176. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles_3w3l45.css +2 -0
  177. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.css +7 -0
  178. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +94 -0
  179. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.js.map +1 -0
  180. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js +111 -0
  181. package/es/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js.map +1 -0
  182. package/es/components/Dropdown/ui/DropdownOld/utils/index.js +18 -0
  183. package/es/components/Dropdown/ui/DropdownOld/utils/index.js.map +1 -0
  184. package/es/components/Dropdown/ui/DropdownOld/variations/_size/base.js +5 -0
  185. package/es/components/Dropdown/ui/DropdownOld/variations/_size/base.js.map +1 -0
  186. package/es/components/Dropdown/ui/DropdownOld/variations/_size/base_x642ct.css +1 -0
  187. package/es/components/Dropdown/ui/DropdownOld/variations/_view/base.js +5 -0
  188. package/es/components/Dropdown/ui/DropdownOld/variations/_view/base.js.map +1 -0
  189. package/es/components/Dropdown/ui/DropdownOld/variations/_view/base_x642ct.css +1 -0
  190. package/es/components/Dropdown/utils/index.js +16 -2
  191. package/es/components/Dropdown/utils/index.js.map +1 -1
  192. package/es/components/IconButton/IconButton.css +24 -0
  193. package/es/components/IconButton/IconButton.js +45 -0
  194. package/es/components/IconButton/IconButton.js.map +1 -0
  195. package/es/components/IconButton/IconButton.styles.js +12 -0
  196. package/es/components/IconButton/IconButton.styles.js.map +1 -0
  197. package/es/components/IconButton/IconButton.styles_1hknr37.css +1 -0
  198. package/es/components/IconButton/IconButton.tokens.js +28 -0
  199. package/es/components/IconButton/IconButton.tokens.js.map +1 -0
  200. package/es/components/Pagination/Pagination.css +17 -7
  201. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +17 -7
  202. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  203. package/es/components/Select/Select.css +17 -7
  204. package/es/components/Select/ui/SelectDivider/SelectDivider.css +18 -6
  205. package/es/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  206. package/es/components/Select/ui/SelectFooter/SelectFooter.css +18 -6
  207. package/es/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  208. package/es/components/Select/ui/SelectGroup/SelectGroup.css +18 -6
  209. package/es/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  210. package/es/components/Select/ui/SelectHeader/SelectHeader.css +18 -6
  211. package/es/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  212. package/es/components/Select/ui/SelectItem/SelectItem.css +19 -7
  213. package/es/components/Select/ui/SelectItem/SelectItem.js +3 -3
  214. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  215. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  216. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  217. package/es/components/Select/ui/SelectItem/{SelectItem.styles_6h17aw.css → SelectItem.styles_vk39mp.css} +1 -1
  218. package/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  219. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  220. package/es/index.css +23 -8
  221. package/es/index.js +8 -1
  222. package/es/index.js.map +1 -1
  223. package/package.json +2 -2
  224. package/styled-components/cjs/components/Button/Button.styles.js +10 -2
  225. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -3
  226. package/styled-components/cjs/components/Calendar/hooks/useDays.js +3 -6
  227. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +1 -2
  228. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +91 -2
  229. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +27 -7
  230. package/styled-components/cjs/components/Combobox/utils/index.js +23 -0
  231. package/styled-components/cjs/components/Dropdown/Dropdown.js +140 -54
  232. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +22 -7
  233. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +325 -66
  234. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +26 -23
  235. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +32 -0
  236. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +249 -0
  237. package/styled-components/cjs/components/Dropdown/index.js +9 -1
  238. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +40 -0
  239. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +44 -0
  240. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +117 -0
  241. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +5 -0
  242. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +77 -105
  243. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +24 -19
  244. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +33 -0
  245. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +5 -0
  246. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +119 -0
  247. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +19 -0
  248. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/Dropdown.types.js +5 -0
  249. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.js +101 -0
  250. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js +118 -0
  251. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/utils/index.js +21 -0
  252. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/variations/_size/base.js +8 -0
  253. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/variations/_size/tokens.json +1 -0
  254. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/variations/_view/base.js +8 -0
  255. package/styled-components/cjs/components/Dropdown/ui/DropdownOld/variations/_view/tokens.json +1 -0
  256. package/styled-components/cjs/components/Dropdown/ui/index.js +39 -5
  257. package/styled-components/cjs/components/Dropdown/utils/index.js +15 -1
  258. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +1 -9
  259. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  260. package/styled-components/cjs/components/IconButton/IconButton.js +47 -0
  261. package/styled-components/cjs/components/IconButton/IconButton.styles.js +13 -0
  262. package/styled-components/cjs/components/IconButton/IconButton.tokens.js +31 -0
  263. package/styled-components/cjs/components/IconButton/index.js +25 -0
  264. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +1 -1
  265. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  266. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  267. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -18
  268. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +25 -0
  269. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +11 -0
  270. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +292 -0
  271. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.config.js +45 -0
  272. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.js +11 -0
  273. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +71 -0
  274. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -18
  275. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +25 -0
  276. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.js +11 -0
  277. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +292 -0
  278. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.config.js +45 -0
  279. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.js +11 -0
  280. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +71 -0
  281. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -18
  282. package/styled-components/cjs/index.js +11 -0
  283. package/styled-components/es/components/Button/Button.styles.js +10 -2
  284. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -3
  285. package/styled-components/es/components/Calendar/hooks/useDays.js +3 -6
  286. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +1 -2
  287. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +90 -3
  288. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +23 -6
  289. package/styled-components/es/components/Combobox/utils/index.js +15 -0
  290. package/styled-components/es/components/Dropdown/Dropdown.js +142 -55
  291. package/styled-components/es/components/Dropdown/Dropdown.styles.js +18 -5
  292. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +325 -66
  293. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +26 -23
  294. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +26 -0
  295. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +243 -0
  296. package/styled-components/es/components/Dropdown/index.js +1 -0
  297. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +34 -0
  298. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +38 -0
  299. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +111 -0
  300. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +1 -0
  301. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +78 -107
  302. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +21 -15
  303. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +25 -0
  304. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +1 -0
  305. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +111 -0
  306. package/styled-components/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +13 -0
  307. package/styled-components/es/components/Dropdown/ui/DropdownOld/Dropdown.types.js +1 -0
  308. package/styled-components/es/components/Dropdown/ui/DropdownOld/DropdownOld.js +92 -0
  309. package/styled-components/es/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.js +112 -0
  310. package/styled-components/es/components/Dropdown/ui/DropdownOld/utils/index.js +15 -0
  311. package/styled-components/es/components/Dropdown/ui/DropdownOld/variations/_size/base.js +2 -0
  312. package/styled-components/es/components/Dropdown/ui/DropdownOld/variations/_size/tokens.json +1 -0
  313. package/styled-components/es/components/Dropdown/ui/DropdownOld/variations/_view/base.js +2 -0
  314. package/styled-components/es/components/Dropdown/ui/DropdownOld/variations/_view/tokens.json +1 -0
  315. package/styled-components/es/components/Dropdown/ui/index.js +5 -1
  316. package/styled-components/es/components/Dropdown/utils/index.js +15 -1
  317. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +1 -9
  318. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  319. package/styled-components/es/components/IconButton/IconButton.js +41 -0
  320. package/styled-components/es/components/IconButton/IconButton.styles.js +8 -0
  321. package/styled-components/es/components/IconButton/IconButton.tokens.js +25 -0
  322. package/styled-components/es/components/IconButton/index.js +2 -0
  323. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  324. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  325. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  326. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +6 -18
  327. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +19 -0
  328. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +5 -0
  329. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +292 -0
  330. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.config.js +39 -0
  331. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.js +5 -0
  332. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +71 -0
  333. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +6 -18
  334. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +19 -0
  335. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.js +5 -0
  336. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +292 -0
  337. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.config.js +39 -0
  338. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.js +5 -0
  339. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +71 -0
  340. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +6 -18
  341. package/styled-components/es/index.js +1 -0
  342. package/types/components/Button/Button.styles.d.ts +1 -0
  343. package/types/components/Button/Button.styles.d.ts.map +1 -1
  344. package/types/components/Calendar/Calendar.types.d.ts +0 -4
  345. package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
  346. package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
  347. package/types/components/Calendar/hooks/useDays.d.ts +1 -1
  348. package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
  349. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  350. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts +0 -1
  351. package/types/components/Calendar/ui/CalendarDays/CalendarDays.types.d.ts.map +1 -1
  352. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +15 -13
  353. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  354. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +5 -1
  355. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  356. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +59 -2
  357. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  358. package/types/components/Combobox/utils/index.d.ts +4 -0
  359. package/types/components/Combobox/utils/index.d.ts.map +1 -0
  360. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  361. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  362. package/types/components/Dropdown/Dropdown.styles.d.ts +8 -1
  363. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  364. package/types/components/Dropdown/Dropdown.tokens.d.ts +24 -22
  365. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  366. package/types/components/Dropdown/Dropdown.types.d.ts +64 -40
  367. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  368. package/types/components/Dropdown/hooks/useHashMaps.d.ts +6 -0
  369. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +1 -0
  370. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +37 -0
  371. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +1 -0
  372. package/types/components/Dropdown/index.d.ts +3 -1
  373. package/types/components/Dropdown/index.d.ts.map +1 -1
  374. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +16 -0
  375. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +1 -0
  376. package/types/components/Dropdown/reducers/pathReducer.d.ts +20 -0
  377. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +1 -0
  378. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +5 -0
  379. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -0
  380. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +26 -0
  381. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -0
  382. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +2 -56
  383. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  384. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +5 -2
  385. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  386. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +44 -38
  387. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  388. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +7 -0
  389. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +1 -0
  390. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +60 -0
  391. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +1 -0
  392. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +58 -0
  393. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +1 -0
  394. package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +1 -0
  395. package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +1 -0
  396. package/types/components/Dropdown/ui/DropdownOld/Dropdown.styles.d.ts +8 -0
  397. package/types/components/Dropdown/ui/DropdownOld/Dropdown.styles.d.ts.map +1 -0
  398. package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts +76 -0
  399. package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts.map +1 -0
  400. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts +26 -0
  401. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts.map +1 -0
  402. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.d.ts +113 -0
  403. package/types/components/Dropdown/ui/DropdownOld/DropdownOld.tokens.d.ts.map +1 -0
  404. package/types/components/Dropdown/ui/DropdownOld/utils/index.d.ts +4 -0
  405. package/types/components/Dropdown/ui/DropdownOld/utils/index.d.ts.map +1 -0
  406. package/types/components/Dropdown/ui/DropdownOld/variations/_size/base.d.ts +2 -0
  407. package/types/components/Dropdown/ui/DropdownOld/variations/_size/base.d.ts.map +1 -0
  408. package/types/components/Dropdown/ui/DropdownOld/variations/_view/base.d.ts +2 -0
  409. package/types/components/Dropdown/ui/DropdownOld/variations/_view/base.d.ts.map +1 -0
  410. package/types/components/Dropdown/ui/index.d.ts +5 -1
  411. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  412. package/types/components/Dropdown/utils/index.d.ts +5 -2
  413. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  414. package/types/components/IconButton/IconButton.d.ts +35 -0
  415. package/types/components/IconButton/IconButton.d.ts.map +1 -0
  416. package/types/components/IconButton/IconButton.styles.d.ts +3 -0
  417. package/types/components/IconButton/IconButton.styles.d.ts.map +1 -0
  418. package/types/components/IconButton/IconButton.tokens.d.ts +26 -0
  419. package/types/components/IconButton/IconButton.tokens.d.ts.map +1 -0
  420. package/types/components/IconButton/index.d.ts +3 -0
  421. package/types/components/IconButton/index.d.ts.map +1 -0
  422. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  423. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
  424. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  425. package/types/components/Select/utils/index.d.ts +1 -1
  426. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  427. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  428. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +13 -0
  429. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -0
  430. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts +38 -0
  431. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts.map +1 -0
  432. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +32 -0
  433. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -0
  434. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  435. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +13 -0
  436. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -0
  437. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts +38 -0
  438. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts.map +1 -0
  439. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +32 -0
  440. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -0
  441. package/types/index.d.ts +1 -0
  442. package/types/index.d.ts.map +1 -1
  443. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  444. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  445. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  446. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  447. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  448. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  449. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  450. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  451. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  452. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  453. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  454. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  455. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -27
  456. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -13
  457. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  458. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -27
  459. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -13
  460. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  461. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -27
  462. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -13
  463. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  464. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -27
  465. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -13
  466. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  467. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -22
  468. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -21
  469. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  470. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  471. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  472. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -21
  473. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -7
  474. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  475. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -21
  476. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -7
  477. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  478. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -21
  479. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -7
  480. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  481. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -21
  482. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -7
  483. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  484. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -16
  485. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -15
  486. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  487. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +0 -1
  488. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +0 -1
  489. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  490. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  491. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  492. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  493. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  494. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  495. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +0 -18
  496. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  497. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  498. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  499. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +0 -18
  500. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  501. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  502. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  503. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +0 -15
  504. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  505. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +0 -51
  506. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +0 -1
  507. /package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base_x642ct.css +0 -0
  508. /package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base_x642ct.css +0 -0
  509. /package/{es/components/Dropdown/ui/DropdownItem → cjs/components/Dropdown/ui/DropdownOld}/variations/_size/base_x642ct.css +0 -0
  510. /package/{es/components/Dropdown/ui/DropdownItem → cjs/components/Dropdown/ui/DropdownOld}/variations/_view/base_x642ct.css +0 -0
  511. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +0 -0
  512. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +0 -0
  513. /package/styled-components/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +0 -0
  514. /package/styled-components/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +0 -0
  515. /package/types/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.d.ts +0 -0
  516. /package/types/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.d.ts +0 -0
  517. /package/types/examples/plasma_b2c/components/Dropdown/{Normal/Dropdown.config.d.ts → Dropdown.config.d.ts} +0 -0
  518. /package/types/examples/{plasma_b2c/components/Dropdown/Tight → plasma_web/components/Dropdown}/Dropdown.config.d.ts +0 -0
@@ -0,0 +1,242 @@
1
+ var JUMP_SIZE = 10;
2
+ var keys = {
3
+ Enter: 'Enter',
4
+ Space: 'Space',
5
+ Tab: 'Tab',
6
+ Escape: 'Escape',
7
+ ArrowLeft: 'ArrowLeft',
8
+ ArrowRight: 'ArrowRight',
9
+ ArrowUp: 'ArrowUp',
10
+ ArrowDown: 'ArrowDown',
11
+ Home: 'Home',
12
+ End: 'End',
13
+ PageUp: 'PageUp',
14
+ PageDown: 'PageDown'
15
+ };
16
+ var getFurtherPath = function getFurtherPath(focusedPath, focusedToValueMap) {
17
+ var focusedPathAsString = focusedPath.reduce(function (acc, n) {
18
+ return "".concat(acc, "/").concat(n);
19
+ }, '').replace(/^(\/)/, '');
20
+ return focusedToValueMap.get(focusedPathAsString);
21
+ };
22
+ var useKeyNavigation = function useKeyNavigation(_ref) {
23
+ var focusedPath = _ref.focusedPath,
24
+ dispatchFocusedPath = _ref.dispatchFocusedPath,
25
+ path = _ref.path,
26
+ dispatchPath = _ref.dispatchPath,
27
+ pathMap = _ref.pathMap,
28
+ focusedToValueMap = _ref.focusedToValueMap,
29
+ handleGlobalToggle = _ref.handleGlobalToggle,
30
+ closeOnSelect = _ref.closeOnSelect,
31
+ onItemSelect = _ref.onItemSelect,
32
+ onItemClick = _ref.onItemClick;
33
+ var currentLength = pathMap.get(path === null || path === void 0 ? void 0 : path[path.length - 1]) || 0;
34
+ var currentIndex = (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[focusedPath.length - 1]) || 0;
35
+ var onKeyDown = function onKeyDown(event) {
36
+ switch (event.code) {
37
+ case keys.ArrowUp:
38
+ {
39
+ if (focusedPath.length) {
40
+ if (currentIndex > 0) {
41
+ dispatchFocusedPath({
42
+ type: 'change_last_focus',
43
+ value: currentIndex - 1
44
+ });
45
+ }
46
+ } else {
47
+ dispatchPath({
48
+ type: 'opened_first_level'
49
+ });
50
+ dispatchFocusedPath({
51
+ type: 'set_initial_focus'
52
+ });
53
+ handleGlobalToggle(true, event);
54
+ }
55
+ break;
56
+ }
57
+ case keys.ArrowDown:
58
+ {
59
+ if (focusedPath.length) {
60
+ if (currentIndex + 1 < currentLength) {
61
+ dispatchFocusedPath({
62
+ type: 'change_last_focus',
63
+ value: currentIndex + 1
64
+ });
65
+ }
66
+ } else {
67
+ dispatchPath({
68
+ type: 'opened_first_level'
69
+ });
70
+ dispatchFocusedPath({
71
+ type: 'set_initial_focus'
72
+ });
73
+ handleGlobalToggle(true, event);
74
+ }
75
+ break;
76
+ }
77
+ case keys.ArrowLeft:
78
+ {
79
+ if (focusedPath.length) {
80
+ dispatchPath({
81
+ type: 'removed_last_level'
82
+ });
83
+ dispatchFocusedPath({
84
+ type: 'return_prev_focus'
85
+ });
86
+ }
87
+ if (focusedPath.length === 1) {
88
+ handleGlobalToggle(false, event);
89
+ }
90
+ break;
91
+ }
92
+ case keys.ArrowRight:
93
+ {
94
+ if (!focusedPath.length) {
95
+ break;
96
+ }
97
+ var currentItem = getFurtherPath(focusedPath, focusedToValueMap);
98
+ if (currentItem !== null && currentItem !== void 0 && currentItem.items) {
99
+ dispatchPath({
100
+ type: 'added_next_level',
101
+ value: currentItem.value.toString()
102
+ });
103
+ dispatchFocusedPath({
104
+ type: 'add_focus',
105
+ value: 0
106
+ });
107
+ }
108
+ break;
109
+ }
110
+ case keys.Enter:
111
+ case keys.Space:
112
+ {
113
+ event.preventDefault();
114
+ if (!path[0]) {
115
+ dispatchPath({
116
+ type: 'opened_first_level'
117
+ });
118
+ dispatchFocusedPath({
119
+ type: 'set_initial_focus'
120
+ });
121
+ break;
122
+ }
123
+ var _currentItem = getFurtherPath(focusedPath, focusedToValueMap);
124
+ if (_currentItem !== null && _currentItem !== void 0 && _currentItem.disabled || _currentItem !== null && _currentItem !== void 0 && _currentItem.isDisabled) {
125
+ break;
126
+ }
127
+ if (_currentItem !== null && _currentItem !== void 0 && _currentItem.items) {
128
+ dispatchPath({
129
+ type: 'added_next_level',
130
+ value: _currentItem.value.toString()
131
+ });
132
+ dispatchFocusedPath({
133
+ type: 'add_focus',
134
+ value: 0
135
+ });
136
+ } else {
137
+ if (closeOnSelect) {
138
+ handleGlobalToggle(false, event);
139
+ }
140
+ if (onItemSelect && _currentItem) {
141
+ onItemSelect(_currentItem, event);
142
+ }
143
+ if (onItemClick && _currentItem) {
144
+ onItemClick(_currentItem, event);
145
+ }
146
+ }
147
+ break;
148
+ }
149
+ case keys.Tab:
150
+ case keys.Escape:
151
+ {
152
+ dispatchFocusedPath({
153
+ type: 'reset'
154
+ });
155
+ dispatchPath({
156
+ type: 'reset'
157
+ });
158
+ handleGlobalToggle(false, event);
159
+ break;
160
+ }
161
+ case keys.Home:
162
+ {
163
+ if (path[0]) {
164
+ dispatchFocusedPath({
165
+ type: 'change_last_focus',
166
+ value: 0
167
+ });
168
+ } else {
169
+ dispatchPath({
170
+ type: 'opened_first_level'
171
+ });
172
+ dispatchFocusedPath({
173
+ type: 'set_initial_focus'
174
+ });
175
+ handleGlobalToggle(true, event);
176
+ }
177
+ break;
178
+ }
179
+ case keys.End:
180
+ {
181
+ if (path[0]) {
182
+ dispatchFocusedPath({
183
+ type: 'change_last_focus',
184
+ value: currentLength - 1
185
+ });
186
+ } else {
187
+ dispatchPath({
188
+ type: 'opened_first_level'
189
+ });
190
+ dispatchFocusedPath({
191
+ type: 'change_last_focus',
192
+ value: (pathMap.get('root') || 0) - 1
193
+ });
194
+ handleGlobalToggle(true, event);
195
+ }
196
+ break;
197
+ }
198
+ case keys.PageUp:
199
+ {
200
+ if (!path[0]) {
201
+ break;
202
+ }
203
+ if (currentIndex <= JUMP_SIZE) {
204
+ dispatchFocusedPath({
205
+ type: 'change_last_focus',
206
+ value: 0
207
+ });
208
+ } else {
209
+ dispatchFocusedPath({
210
+ type: 'change_last_focus',
211
+ value: currentIndex - JUMP_SIZE
212
+ });
213
+ }
214
+ break;
215
+ }
216
+ case keys.PageDown:
217
+ {
218
+ if (!path[0]) {
219
+ break;
220
+ }
221
+ if (currentLength - currentIndex <= JUMP_SIZE) {
222
+ dispatchFocusedPath({
223
+ type: 'change_last_focus',
224
+ value: currentLength - 1
225
+ });
226
+ } else {
227
+ dispatchFocusedPath({
228
+ type: 'change_last_focus',
229
+ value: currentIndex + JUMP_SIZE
230
+ });
231
+ }
232
+ break;
233
+ }
234
+ }
235
+ };
236
+ return {
237
+ onKeyDown: onKeyDown
238
+ };
239
+ };
240
+
241
+ export { keys, useKeyNavigation };
242
+ //# sourceMappingURL=useKeyboardNavigation.js.map
@@ -0,0 +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;AA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AAI,CAAC,CAAC,CAAC,EAAE;AACV,YAAA,MAAA;AACJ,WAAA;AAEA,UAAA,IAAIO,aAAa,GAAGE,YAAY,IAAIpC,SAAS,EAAE;AAC3C0B,YAAAA,mBAAmB,CAAC;AAAEc,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEP,aAAa,GAAG,CAAA;AAAE,aAAC,CAAC,CAAA;AAChF,WAAC,MAAM;AACHR,YAAAA,mBAAmB,CAAC;AAAEc,cAAAA,IAAI,EAAE,mBAAmB;cAAEC,KAAK,EAAEL,YAAY,GAAGpC,SAAAA;AAAU,aAAC,CAAC,CAAA;AACvF,WAAA;AAEA,UAAA,MAAA;AACJ,SAAA;AAKJ,KAAA;GACH,CAAA;EAED,OAAO;AAAEqC,IAAAA,SAAS,EAATA,SAAAA;GAAW,CAAA;AACxB;;;;"}
@@ -0,0 +1,33 @@
1
+ import { toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+
3
+ function focusedPathReducer(state, action) {
4
+ switch (action.type) {
5
+ case 'reset':
6
+ {
7
+ return [];
8
+ }
9
+ case 'set_initial_focus':
10
+ {
11
+ return [0];
12
+ }
13
+ case 'change_last_focus':
14
+ {
15
+ return [].concat(_toConsumableArray(state.slice(0, -1)), [action.value]);
16
+ }
17
+ case 'add_focus':
18
+ {
19
+ return [].concat(_toConsumableArray(state), [action.value]);
20
+ }
21
+ case 'return_prev_focus':
22
+ {
23
+ return _toConsumableArray(state.slice(0, -1));
24
+ }
25
+ default:
26
+ {
27
+ return state;
28
+ }
29
+ }
30
+ }
31
+
32
+ export { focusedPathReducer };
33
+ //# sourceMappingURL=focusedPathReducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusedPathReducer.js","sources":["../../../../src/components/Dropdown/reducers/focusedPathReducer.ts"],"sourcesContent":["export type FocusedPathState = Array<number>;\n\nexport type FocusedPathAction =\n | { type: 'reset' }\n | { type: 'set_initial_focus' }\n | { type: 'change_last_focus'; value: number }\n | { type: 'add_focus'; value: number }\n | { type: 'return_prev_focus' };\n\nexport function focusedPathReducer(state: FocusedPathState, action: FocusedPathAction): FocusedPathState {\n switch (action.type) {\n case 'reset': {\n return [];\n }\n\n case 'set_initial_focus': {\n return [0];\n }\n\n case 'change_last_focus': {\n return [...state.slice(0, -1), action.value];\n }\n\n case 'add_focus': {\n return [...state, action.value];\n }\n\n case 'return_prev_focus': {\n return [...state.slice(0, -1)];\n }\n\n default: {\n return state;\n }\n }\n}\n"],"names":["focusedPathReducer","state","action","type","concat","_toConsumableArray","slice","value"],"mappings":";;AASO,SAASA,kBAAkBA,CAACC,KAAuB,EAAEC,MAAyB,EAAoB;EACrG,QAAQA,MAAM,CAACC,IAAI;AACf,IAAA,KAAK,OAAO;AAAE,MAAA;AACV,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AAEA,IAAA,KAAK,mBAAmB;AAAE,MAAA;QACtB,OAAO,CAAC,CAAC,CAAC,CAAA;AACd,OAAA;AAEA,IAAA,KAAK,mBAAmB;AAAE,MAAA;AACtB,QAAA,OAAA,EAAA,CAAAC,MAAA,CAAAC,kBAAA,CAAWJ,KAAK,CAACK,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAEJ,EAAAA,CAAAA,MAAM,CAACK,KAAK,CAAA,CAAA,CAAA;AAC/C,OAAA;AAEA,IAAA,KAAK,WAAW;AAAE,MAAA;QACd,OAAAH,EAAAA,CAAAA,MAAA,CAAAC,kBAAA,CAAWJ,KAAK,CAAEC,EAAAA,CAAAA,MAAM,CAACK,KAAK,CAAA,CAAA,CAAA;AAClC,OAAA;AAEA,IAAA,KAAK,mBAAmB;AAAE,MAAA;QACtB,OAAAF,kBAAA,CAAWJ,KAAK,CAACK,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA,CAAA;AACjC,OAAA;AAEA,IAAA;AAAS,MAAA;AACL,QAAA,OAAOL,KAAK,CAAA;AAChB,OAAA;AACJ,GAAA;AACJ;;;;"}
@@ -0,0 +1,37 @@
1
+ import { toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+
3
+ function pathReducer(state, action) {
4
+ switch (action.type) {
5
+ case 'reset':
6
+ {
7
+ return [];
8
+ }
9
+ case 'opened_first_level':
10
+ {
11
+ return ['root'];
12
+ }
13
+ case 'added_next_level':
14
+ {
15
+ return [].concat(_toConsumableArray(state), [action.value]);
16
+ }
17
+ case 'removed_last_level':
18
+ {
19
+ return _toConsumableArray(state.slice(0, -1));
20
+ }
21
+ case 'changed_on_level':
22
+ {
23
+ return [].concat(_toConsumableArray(state.slice(0, action.level)), [action.value]);
24
+ }
25
+ case 'cut_by_level':
26
+ {
27
+ return state.slice(0, action.level);
28
+ }
29
+ default:
30
+ {
31
+ return state;
32
+ }
33
+ }
34
+ }
35
+
36
+ export { pathReducer };
37
+ //# sourceMappingURL=pathReducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathReducer.js","sources":["../../../../src/components/Dropdown/reducers/pathReducer.ts"],"sourcesContent":["export type PathState = Array<string>;\n\nexport type PathAction =\n | { type: 'reset' }\n | { type: 'opened_first_level' }\n | { type: 'added_next_level'; value: string }\n | { type: 'removed_last_level' }\n | { type: 'changed_on_level'; value: string; level: number }\n | { type: 'cut_by_level'; level: number };\n\nexport function pathReducer(state: PathState, action: PathAction): PathState {\n switch (action.type) {\n case 'reset': {\n return [];\n }\n\n case 'opened_first_level': {\n return ['root'];\n }\n\n case 'added_next_level': {\n return [...state, action.value];\n }\n\n case 'removed_last_level': {\n return [...state.slice(0, -1)];\n }\n\n case 'changed_on_level': {\n return [...state.slice(0, action.level), action.value];\n }\n\n case 'cut_by_level': {\n return state.slice(0, action.level);\n }\n\n default: {\n return state;\n }\n }\n}\n"],"names":["pathReducer","state","action","type","concat","_toConsumableArray","value","slice","level"],"mappings":";;AAUO,SAASA,WAAWA,CAACC,KAAgB,EAAEC,MAAkB,EAAa;EACzE,QAAQA,MAAM,CAACC,IAAI;AACf,IAAA,KAAK,OAAO;AAAE,MAAA;AACV,QAAA,OAAO,EAAE,CAAA;AACb,OAAA;AAEA,IAAA,KAAK,oBAAoB;AAAE,MAAA;QACvB,OAAO,CAAC,MAAM,CAAC,CAAA;AACnB,OAAA;AAEA,IAAA,KAAK,kBAAkB;AAAE,MAAA;QACrB,OAAAC,EAAAA,CAAAA,MAAA,CAAAC,kBAAA,CAAWJ,KAAK,CAAEC,EAAAA,CAAAA,MAAM,CAACI,KAAK,CAAA,CAAA,CAAA;AAClC,OAAA;AAEA,IAAA,KAAK,oBAAoB;AAAE,MAAA;QACvB,OAAAD,kBAAA,CAAWJ,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA,CAAA;AACjC,OAAA;AAEA,IAAA,KAAK,kBAAkB;AAAE,MAAA;AACrB,QAAA,OAAA,EAAA,CAAAH,MAAA,CAAAC,kBAAA,CAAWJ,KAAK,CAACM,KAAK,CAAC,CAAC,EAAEL,MAAM,CAACM,KAAK,CAAC,CAAEN,EAAAA,CAAAA,MAAM,CAACI,KAAK,CAAA,CAAA,CAAA;AACzD,OAAA;AAEA,IAAA,KAAK,cAAc;AAAE,MAAA;QACjB,OAAOL,KAAK,CAACM,KAAK,CAAC,CAAC,EAAEL,MAAM,CAACM,KAAK,CAAC,CAAA;AACvC,OAAA;AAEA,IAAA;AAAS,MAAA;AACL,QAAA,OAAOP,KAAK,CAAA;AAChB,OAAA;AACJ,GAAA;AACJ;;;;"}
@@ -0,0 +1,121 @@
1
+ import React from 'react';
2
+ import '@salutejs/plasma-core';
3
+ import '@linaria/react';
4
+ import { DropdownItem } from '../DropdownItem/DropdownItem.js';
5
+ import { StyledPopover, Ul } from '../../Dropdown.styles.js';
6
+ import '../../../../utils/react.js';
7
+ import 'focus-visible';
8
+ import '@linaria/core';
9
+ import 'react-dom';
10
+ import 'react-popper';
11
+
12
+ var DropdownInner = function DropdownInner(_ref) {
13
+ var item = _ref.item,
14
+ currentLevel = _ref.currentLevel,
15
+ focusedPath = _ref.focusedPath,
16
+ path = _ref.path,
17
+ dispatchPath = _ref.dispatchPath,
18
+ index = _ref.index,
19
+ trigger = _ref.trigger,
20
+ itemRole = _ref.itemRole,
21
+ listHeight = _ref.listHeight,
22
+ listOverflow = _ref.listOverflow,
23
+ handleGlobalToggle = _ref.handleGlobalToggle,
24
+ closeOnSelect = _ref.closeOnSelect,
25
+ onHover = _ref.onHover,
26
+ onItemSelect = _ref.onItemSelect,
27
+ onItemClick = _ref.onItemClick,
28
+ listWidth = _ref.listWidth,
29
+ variant = _ref.variant,
30
+ hasArrow = _ref.hasArrow;
31
+ var handleToggle = function handleToggle(opened) {
32
+ if (opened) {
33
+ dispatchPath({
34
+ type: 'changed_on_level',
35
+ value: item.value.toString(),
36
+ level: currentLevel + 1
37
+ });
38
+ } else {
39
+ dispatchPath({
40
+ type: 'cut_by_level',
41
+ level: currentLevel + 1
42
+ });
43
+ }
44
+ };
45
+ var isCurrentListOpen = path[currentLevel + 1] === item.value.toString();
46
+ var listId = "tree_level_".concat(currentLevel + 2);
47
+ var nextLevel = currentLevel + 1;
48
+ if (item !== null && item !== void 0 && item.items) {
49
+ return /*#__PURE__*/React.createElement(StyledPopover, {
50
+ isOpen: isCurrentListOpen,
51
+ usePortal: false,
52
+ placement: "right-start",
53
+ trigger: trigger,
54
+ target: /*#__PURE__*/React.createElement(DropdownItem, {
55
+ item: item,
56
+ index: index,
57
+ path: path,
58
+ focusedPath: focusedPath,
59
+ currentLevel: currentLevel,
60
+ itemRole: itemRole,
61
+ onHover: onHover,
62
+ onItemSelect: onItemSelect,
63
+ onItemClick: onItemClick,
64
+ variant: variant,
65
+ hasArrow: hasArrow,
66
+ ariaControls: listId,
67
+ ariaExpanded: isCurrentListOpen,
68
+ ariaLevel: nextLevel,
69
+ ariaLabel: item.label
70
+ }),
71
+ onToggle: handleToggle,
72
+ isFocusTrapped: false,
73
+ preventOverflow: false
74
+ }, /*#__PURE__*/React.createElement(Ul, {
75
+ listHeight: listHeight,
76
+ listOverflow: listOverflow,
77
+ role: "group",
78
+ id: listId,
79
+ listWidth: listWidth,
80
+ isInnerUl: true
81
+ }, item.items.map(function (innerItem, innerIndex) {
82
+ return /*#__PURE__*/React.createElement(DropdownInner, {
83
+ key: "".concat(innerIndex, "/").concat(currentLevel),
84
+ item: innerItem,
85
+ currentLevel: nextLevel,
86
+ focusedPath: focusedPath,
87
+ path: path,
88
+ dispatchPath: dispatchPath,
89
+ index: innerIndex,
90
+ trigger: trigger,
91
+ itemRole: itemRole,
92
+ listHeight: listHeight,
93
+ listOverflow: listOverflow,
94
+ handleGlobalToggle: handleGlobalToggle,
95
+ closeOnSelect: closeOnSelect,
96
+ onHover: onHover,
97
+ onItemSelect: onItemSelect,
98
+ onItemClick: onItemClick,
99
+ listWidth: listWidth,
100
+ variant: variant,
101
+ hasArrow: hasArrow
102
+ });
103
+ })));
104
+ }
105
+ return /*#__PURE__*/React.createElement(DropdownItem, {
106
+ item: item,
107
+ index: index,
108
+ focusedPath: focusedPath,
109
+ currentLevel: currentLevel,
110
+ itemRole: itemRole,
111
+ handleGlobalToggle: handleGlobalToggle,
112
+ closeOnSelect: closeOnSelect,
113
+ onHover: onHover,
114
+ onItemSelect: onItemSelect,
115
+ onItemClick: onItemClick,
116
+ variant: variant
117
+ });
118
+ };
119
+
120
+ export { DropdownInner };
121
+ //# sourceMappingURL=DropdownInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownInner.js","sources":["../../../../../src/components/Dropdown/ui/DropdownInner/DropdownInner.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\n\nimport { DropdownItem } from '..';\nimport { Ul, StyledPopover } from '../../Dropdown.styles';\n\nimport { DropdownInnerProps } from './DropdownInner.type';\n\nconst DropdownInner: FC<DropdownInnerProps> = ({\n item,\n currentLevel,\n focusedPath,\n path,\n dispatchPath,\n index,\n trigger,\n itemRole,\n listHeight,\n listOverflow,\n handleGlobalToggle,\n closeOnSelect,\n onHover,\n onItemSelect,\n onItemClick,\n listWidth,\n variant,\n hasArrow,\n}) => {\n const handleToggle = (opened: boolean): void => {\n if (opened) {\n dispatchPath({ type: 'changed_on_level', value: item.value.toString(), level: currentLevel + 1 });\n } else {\n dispatchPath({ type: 'cut_by_level', level: currentLevel + 1 });\n }\n };\n\n const isCurrentListOpen = path[currentLevel + 1] === item.value.toString();\n\n const listId = `tree_level_${currentLevel + 2}`;\n const nextLevel = currentLevel + 1;\n\n if (item?.items) {\n return (\n <StyledPopover\n isOpen={isCurrentListOpen}\n usePortal={false}\n placement=\"right-start\"\n trigger={trigger}\n target={\n <DropdownItem\n item={item}\n index={index}\n path={path}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n hasArrow={hasArrow}\n ariaControls={listId}\n ariaExpanded={isCurrentListOpen}\n ariaLevel={nextLevel}\n ariaLabel={item.label}\n />\n }\n onToggle={handleToggle}\n isFocusTrapped={false}\n preventOverflow={false}\n >\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"group\"\n id={listId}\n listWidth={listWidth}\n isInnerUl\n >\n {item.items.map((innerItem, innerIndex) => (\n <DropdownInner\n key={`${innerIndex}/${currentLevel}`}\n item={innerItem}\n currentLevel={nextLevel}\n focusedPath={focusedPath}\n path={path}\n dispatchPath={dispatchPath}\n index={innerIndex}\n trigger={trigger}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n />\n ))}\n </Ul>\n </StyledPopover>\n );\n }\n\n return (\n <DropdownItem\n item={item}\n index={index}\n focusedPath={focusedPath}\n currentLevel={currentLevel}\n itemRole={itemRole}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n variant={variant}\n />\n );\n};\n\nexport { DropdownInner };\n"],"names":["DropdownInner","_ref","item","currentLevel","focusedPath","path","dispatchPath","index","trigger","itemRole","listHeight","listOverflow","handleGlobalToggle","closeOnSelect","onHover","onItemSelect","onItemClick","listWidth","variant","hasArrow","handleToggle","opened","type","value","toString","level","isCurrentListOpen","listId","concat","nextLevel","items","React","createElement","StyledPopover","isOpen","usePortal","placement","target","DropdownItem","ariaControls","ariaExpanded","ariaLevel","ariaLabel","label","onToggle","isFocusTrapped","preventOverflow","Ul","role","id","isInnerUl","map","innerItem","innerIndex","key"],"mappings":";;;;;;;;;;;AAQA,IAAMA,aAAqC,GAAG,SAAxCA,aAAqCA,CAAAC,IAAA,EAmBrC;AAAA,EAAA,IAlBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;IACJC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,KAAK,GAAAN,IAAA,CAALM,KAAK;IACLC,OAAO,GAAAP,IAAA,CAAPO,OAAO;IACPC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,UAAU,GAAAT,IAAA,CAAVS,UAAU;IACVC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,kBAAkB,GAAAX,IAAA,CAAlBW,kBAAkB;IAClBC,aAAa,GAAAZ,IAAA,CAAbY,aAAa;IACbC,OAAO,GAAAb,IAAA,CAAPa,OAAO;IACPC,YAAY,GAAAd,IAAA,CAAZc,YAAY;IACZC,WAAW,GAAAf,IAAA,CAAXe,WAAW;IACXC,SAAS,GAAAhB,IAAA,CAATgB,SAAS;IACTC,OAAO,GAAAjB,IAAA,CAAPiB,OAAO;I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AA,OAAO,EAAEA,OAAQ;AACjBC,QAAAA,QAAQ,EAAEA,QAAS;AACnBC,QAAAA,UAAU,EAAEA,UAAW;AACvBC,QAAAA,YAAY,EAAEA,YAAa;AAC3BC,QAAAA,kBAAkB,EAAEA,kBAAmB;AACvCC,QAAAA,aAAa,EAAEA,aAAc;AAC7BC,QAAAA,OAAO,EAAEA,OAAQ;AACjBC,QAAAA,YAAY,EAAEA,YAAa;AAC3BC,QAAAA,WAAW,EAAEA,WAAY;AACzBC,QAAAA,SAAS,EAAEA,SAAU;AACrBC,QAAAA,OAAO,EAAEA,OAAQ;AACjBC,QAAAA,QAAQ,EAAEA,QAAAA;AAAS,OACtB,CAAC,CAAA;KACL,CACD,CACO,CAAC,CAAA;AAExB,GAAA;AAEA,EAAA,oBACIY,KAAA,CAAAC,aAAA,CAACM,YAAY,EAAA;AACTpC,IAAAA,IAAI,EAAEA,IAAK;AACXK,IAAAA,KAAK,EAAEA,KAAM;AACbH,IAAAA,WAAW,EAAEA,WAAY;AACzBD,IAAAA,YAAY,EAAEA,YAAa;AAC3BM,IAAAA,QAAQ,EAAEA,QAAS;AACnBG,IAAAA,kBAAkB,EAAEA,kBAAmB;AACvCC,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,YAAY,EAAEA,YAAa;AAC3BC,IAAAA,WAAW,EAAEA,WAAY;AACzBE,IAAAA,OAAO,EAAEA,OAAAA;AAAQ,GACpB,CAAC,CAAA;AAEV;;;;"}
@@ -1,4 +1,7 @@
1
- .DropdownItem_styles_1juhjtq_s1gkzlls__cab27d09{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
2
- .DropdownItem_styles_1juhjtq_sz6s14y__cab27d09{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
3
- .DropdownItem_styles_1juhjtq_s1m97l2m__cab27d09{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
- .DropdownItem_styles_1juhjtq_boib72h__cab27d09{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:100%;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:focus{outline:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_focusVisible__cab27d09:focus::before,.DropdownItem_styles_1juhjtq_boib72h__cab27d09[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
1
+ .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
+
3
+ .DropdownItem_styles_1o4szyu_s1gkzlls__6703745b{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
4
+ .DropdownItem_styles_1o4szyu_sz6s14y__6703745b{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
5
+ .DropdownItem_styles_1o4szyu_d1m97l2m__6703745b{line-height:0;color:var(--plasma-dropdown-disclosure-icon-color);}
6
+ .DropdownItem_styles_1o4szyu_soib72h__6703745b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
7
+ .DropdownItem_styles_1o4szyu_w6l2f0g__6703745b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;box-sizing:content-box;padding-top:var(--w6l2f0g-0);padding-right:var(--plasma-dropdown-item-padding-right);padding-bottom:var(--w6l2f0g-1);padding-left:var(--plasma-dropdown-item-padding-left);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:hover:not(.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsActive__6703745b{background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:focus{outline:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsFocused__6703745b:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}