@salutejs/plasma-new-hope 0.77.1-canary.1199.8844794649.0 → 0.78.0-canary.1185.8884845022.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. package/cjs/components/Combobox/Combobox.css +12 -7
  2. package/cjs/components/Combobox/Combobox.js +1 -1
  3. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +10 -6
  4. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +3 -3
  5. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +10 -6
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +3 -3
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +10 -6
  8. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +3 -3
  9. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +10 -6
  10. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +3 -3
  11. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  12. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +81 -10
  13. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  14. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +21 -9
  15. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  16. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  17. package/cjs/components/Combobox/utils/index.js +23 -0
  18. package/cjs/components/Combobox/utils/index.js.map +1 -0
  19. package/cjs/components/Dropdown/Dropdown.css +20 -2
  20. package/cjs/components/Dropdown/Dropdown.js +136 -53
  21. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  22. package/cjs/components/Dropdown/Dropdown.styles.js +40 -7
  23. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  24. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  25. package/cjs/components/Dropdown/Dropdown.tokens.js +12 -24
  26. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  27. package/cjs/components/Dropdown/hooks/useHashMaps.js +31 -0
  28. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  29. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +200 -0
  30. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  31. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +37 -0
  32. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  33. package/cjs/components/Dropdown/reducers/pathReducer.js +41 -0
  34. package/cjs/components/Dropdown/reducers/pathReducer.js.map +1 -0
  35. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +116 -0
  36. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  37. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  38. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +79 -100
  39. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  40. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +31 -4
  41. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  42. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  43. package/cjs/components/Dropdown/utils/index.js +14 -13
  44. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  45. package/cjs/components/Pagination/Pagination.css +39 -7
  46. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +39 -7
  47. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -2
  48. package/cjs/components/Select/Select.css +39 -7
  49. package/cjs/components/Select/Select.js +3 -3
  50. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +10 -6
  51. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +3 -3
  52. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +10 -6
  53. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +3 -3
  54. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +10 -6
  55. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +3 -3
  56. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +10 -6
  57. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +3 -3
  58. package/cjs/components/Select/ui/SelectItem/SelectItem.css +59 -7
  59. package/cjs/components/Select/ui/SelectItem/SelectItem.js +4 -4
  60. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  61. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
  62. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  63. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +1 -0
  64. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  65. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  66. package/cjs/index.css +13 -8
  67. package/cjs/index.js +5 -2
  68. package/cjs/index.js.map +1 -1
  69. package/es/components/Combobox/Combobox.css +12 -7
  70. package/es/components/Combobox/Combobox.js +1 -1
  71. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +10 -6
  72. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +3 -3
  73. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +10 -6
  74. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +3 -3
  75. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +10 -6
  76. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +3 -3
  77. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +10 -6
  78. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +3 -3
  79. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  80. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +82 -11
  81. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  82. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +19 -10
  83. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  84. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  85. package/es/components/Combobox/utils/index.js +19 -0
  86. package/es/components/Combobox/utils/index.js.map +1 -0
  87. package/es/components/Dropdown/Dropdown.css +20 -2
  88. package/es/components/Dropdown/Dropdown.js +142 -59
  89. package/es/components/Dropdown/Dropdown.js.map +1 -1
  90. package/es/components/Dropdown/Dropdown.styles.js +39 -7
  91. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  92. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  93. package/es/components/Dropdown/Dropdown.tokens.js +12 -24
  94. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  95. package/es/components/Dropdown/hooks/useHashMaps.js +27 -0
  96. package/es/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  97. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +196 -0
  98. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  99. package/es/components/Dropdown/reducers/focusedPathReducer.js +33 -0
  100. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  101. package/es/components/Dropdown/reducers/pathReducer.js +37 -0
  102. package/es/components/Dropdown/reducers/pathReducer.js.map +1 -0
  103. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +112 -0
  104. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  105. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  106. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +80 -100
  107. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  108. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +30 -4
  109. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  110. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  111. package/es/components/Dropdown/utils/index.js +14 -14
  112. package/es/components/Dropdown/utils/index.js.map +1 -1
  113. package/es/components/Pagination/Pagination.css +39 -7
  114. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +39 -7
  115. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -2
  116. package/es/components/Select/Select.css +39 -7
  117. package/es/components/Select/Select.js +3 -3
  118. package/es/components/Select/ui/SelectDivider/SelectDivider.css +10 -6
  119. package/es/components/Select/ui/SelectDivider/SelectDivider.js +3 -3
  120. package/es/components/Select/ui/SelectFooter/SelectFooter.css +10 -6
  121. package/es/components/Select/ui/SelectFooter/SelectFooter.js +3 -3
  122. package/es/components/Select/ui/SelectGroup/SelectGroup.css +10 -6
  123. package/es/components/Select/ui/SelectGroup/SelectGroup.js +3 -3
  124. package/es/components/Select/ui/SelectHeader/SelectHeader.css +10 -6
  125. package/es/components/Select/ui/SelectHeader/SelectHeader.js +3 -3
  126. package/es/components/Select/ui/SelectItem/SelectItem.css +59 -7
  127. package/es/components/Select/ui/SelectItem/SelectItem.js +4 -4
  128. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  129. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
  130. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  131. package/es/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +1 -0
  132. package/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  133. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  134. package/es/index.css +13 -8
  135. package/es/index.js +3 -1
  136. package/es/index.js.map +1 -1
  137. package/package.json +2 -2
  138. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +91 -2
  139. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +27 -7
  140. package/styled-components/cjs/components/Combobox/utils/index.js +23 -0
  141. package/styled-components/cjs/components/Dropdown/Dropdown.js +138 -53
  142. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +22 -7
  143. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +12 -24
  144. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +29 -0
  145. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +199 -0
  146. package/styled-components/cjs/components/Dropdown/index.js +9 -1
  147. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +40 -0
  148. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +44 -0
  149. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +113 -0
  150. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +5 -0
  151. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +77 -105
  152. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +30 -15
  153. package/styled-components/cjs/components/Dropdown/ui/index.js +14 -13
  154. package/styled-components/cjs/components/Dropdown/utils/index.js +14 -13
  155. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +1 -9
  156. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  157. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +2 -2
  158. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  159. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  160. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +25 -0
  161. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +11 -0
  162. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +295 -0
  163. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +90 -3
  164. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +23 -6
  165. package/styled-components/es/components/Combobox/utils/index.js +15 -0
  166. package/styled-components/es/components/Dropdown/Dropdown.js +140 -54
  167. package/styled-components/es/components/Dropdown/Dropdown.styles.js +18 -5
  168. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +12 -24
  169. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +23 -0
  170. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +193 -0
  171. package/styled-components/es/components/Dropdown/index.js +1 -0
  172. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +34 -0
  173. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +38 -0
  174. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +107 -0
  175. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +1 -0
  176. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +78 -107
  177. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +27 -11
  178. package/styled-components/es/components/Dropdown/ui/index.js +2 -1
  179. package/styled-components/es/components/Dropdown/utils/index.js +13 -13
  180. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +1 -9
  181. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  182. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  183. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  184. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  185. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +19 -0
  186. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +5 -0
  187. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +295 -0
  188. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +15 -13
  189. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  190. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +5 -1
  191. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  192. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +59 -2
  193. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  194. package/types/components/Combobox/utils/index.d.ts +4 -0
  195. package/types/components/Combobox/utils/index.d.ts.map +1 -0
  196. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  197. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  198. package/types/components/Dropdown/Dropdown.styles.d.ts +8 -1
  199. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  200. package/types/components/Dropdown/Dropdown.tokens.d.ts +9 -22
  201. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  202. package/types/components/Dropdown/Dropdown.types.d.ts +64 -40
  203. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  204. package/types/components/Dropdown/hooks/useHashMaps.d.ts +6 -0
  205. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +1 -0
  206. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +23 -0
  207. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +1 -0
  208. package/types/components/Dropdown/index.d.ts +3 -1
  209. package/types/components/Dropdown/index.d.ts.map +1 -1
  210. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +16 -0
  211. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +1 -0
  212. package/types/components/Dropdown/reducers/pathReducer.d.ts +20 -0
  213. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +1 -0
  214. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +5 -0
  215. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -0
  216. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +26 -0
  217. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -0
  218. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +2 -56
  219. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  220. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +5 -1
  221. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  222. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +44 -38
  223. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  224. package/types/components/Dropdown/ui/index.d.ts +2 -1
  225. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  226. package/types/components/Dropdown/utils/index.d.ts +5 -3
  227. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  228. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  229. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  230. package/types/components/Select/utils/index.d.ts +1 -1
  231. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  232. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  233. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +13 -0
  234. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -0
  235. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  236. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  237. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  238. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js +0 -9
  239. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  240. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base_x642ct.css +0 -1
  241. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js +0 -9
  242. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  243. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base_x642ct.css +0 -1
  244. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_6h17aw.css +0 -1
  245. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  246. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  247. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  248. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js +0 -5
  249. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  250. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base_x642ct.css +0 -1
  251. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js +0 -5
  252. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  253. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base_x642ct.css +0 -1
  254. package/es/components/Select/ui/SelectItem/SelectItem.styles_6h17aw.css +0 -1
  255. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +0 -80
  256. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js +0 -8
  257. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  258. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js +0 -8
  259. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  260. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -27
  261. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -13
  262. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  263. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -27
  264. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -13
  265. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  266. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -27
  267. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -13
  268. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  269. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -27
  270. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -13
  271. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  272. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -22
  273. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -21
  274. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  275. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +0 -80
  276. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js +0 -2
  277. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  278. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js +0 -2
  279. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  280. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -21
  281. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -7
  282. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  283. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -21
  284. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -7
  285. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  286. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -21
  287. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -7
  288. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  289. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -21
  290. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -7
  291. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  292. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -16
  293. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -15
  294. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  295. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts +0 -2
  296. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +0 -1
  297. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts +0 -2
  298. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +0 -1
  299. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  300. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  301. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  302. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +0 -18
  303. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  304. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  305. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  306. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +0 -18
  307. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  308. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  309. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  310. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +0 -18
  311. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  312. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  313. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  314. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +0 -15
  315. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  316. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +0 -51
  317. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +0 -1
  318. /package/types/examples/plasma_b2c/components/Dropdown/{Normal/Dropdown.config.d.ts → Dropdown.config.d.ts} +0 -0
@@ -1,45 +1,34 @@
1
1
  export declare const classes: {
2
- dropdownItemIsSelected: string;
2
+ dropdownRoot: string;
3
+ dropdownItemIsFocused: string;
3
4
  dropdownItemIsDisabled: string;
5
+ dropdownItemIsActive: string;
4
6
  };
5
7
  export declare const tokens: {
6
8
  background: string;
7
9
  boxShadow: string;
8
10
  width: string;
9
- height: string;
10
11
  borderRadius: string;
11
- paddingTop: string;
12
- paddingRight: string;
13
- paddingBottom: string;
14
- paddingLeft: string;
12
+ padding: string;
13
+ disclosureIconColor: string;
15
14
  itemBackground: string;
16
15
  itemColor: string;
17
16
  itemBackgroundHover: string;
18
- itemBackgroundSelected: string;
19
- itemColorSelected: string;
20
- itemBackgroundSelectedHover: string;
21
- itemColorSelectedHover: string;
22
- itemWidth: string;
23
- itemHeight: string;
24
17
  itemBorderRadius: string;
25
18
  itemPaddingTop: string;
19
+ itemPaddingTopTight: string;
26
20
  itemPaddingRight: string;
27
21
  itemPaddingBottom: string;
22
+ itemPaddingBottomTight: string;
28
23
  itemPaddingLeft: string;
29
- itemMarginTop: string;
30
- itemMarginRight: string;
31
- itemMarginBottom: string;
32
- itemMarginLeft: string;
33
24
  itemFontFamily: string;
34
25
  itemFontSize: string;
35
26
  itemFontStyle: string;
36
27
  itemFontWeightBold: string;
37
28
  itemFontLetterSpacing: string;
38
29
  itemFontLineHeight: string;
39
- itemContentLeftColor: string;
40
- itemContentRightColor: string;
41
- itemContentLeftWidth: string;
42
- itemContentRightWidth: string;
30
+ disabledOpacity: string;
31
+ focusColor: string;
43
32
  footerBackground: string;
44
33
  footerWidth: string;
45
34
  footerHeight: string;
@@ -107,7 +96,5 @@ export declare const tokens: {
107
96
  groupLabelMarginRight: string;
108
97
  groupLabelMarginBottom: string;
109
98
  groupLabelMarginLeft: string;
110
- disabledOpacity: string;
111
- focusColor: string;
112
99
  };
113
100
  //# sourceMappingURL=Dropdown.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHlB,CAAC"}
1
+ {"version":3,"file":"Dropdown.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGlB,CAAC"}
@@ -1,76 +1,100 @@
1
- import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
1
+ import type { CSSProperties, HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
2
+ import { DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
2
3
  export declare type DropdownPlacementBasic = 'top' | 'bottom' | 'right' | 'left';
3
4
  export declare type DropdownPlacement = DropdownPlacementBasic | 'auto';
4
5
  export declare type DropdownTrigger = 'hover' | 'click';
5
- export declare type CustomDropdownProps = {
6
+ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
6
7
  /**
7
- * Дропдаун открыт или нет.
8
- * @default
9
- * false
8
+ * Список элементов.
10
9
  */
11
- isOpen?: boolean;
10
+ items: Array<DropdownItemOption>;
11
+ /**
12
+ * Target для открытия.
13
+ */
14
+ children?: ReactNode;
15
+ /**
16
+ * WAI-ARIA role элемента меню.
17
+ * @default option
18
+ */
19
+ itemRole?: string;
20
+ /**
21
+ * Обработчик наведения на item.
22
+ */
23
+ onHover?: (index: number) => void;
24
+ /**
25
+ * Обработчик выбора item.
26
+ */
27
+ onItemSelect?: (item: DropdownItemOption, event: SyntheticEvent) => void;
12
28
  /**
13
29
  * Способ открытия дропдауна окна - наведение или клик мышью.
14
- * @default
15
- * click
30
+ * @default click
16
31
  */
17
32
  trigger?: DropdownTrigger;
18
33
  /**
19
34
  * Сторона открытия дропдауна относительно target элемента.
20
- * @default
21
- * auto
35
+ * @default auto
22
36
  */
23
37
  placement?: DropdownPlacement | Array<DropdownPlacementBasic>;
24
38
  /**
25
39
  * Отступ дропдауна относительно элемента, у которого оно вызвано.
26
- * @default
27
- * [0, 0]
40
+ * @default [0, 0]
28
41
  */
29
42
  offset?: [number, number];
30
43
  /**
31
- * Предотвратить автоматическое изменение положения при ресайзе.
44
+ * Значение css width для выпадающего списка.
45
+ * @example width="200px"
32
46
  */
33
- preventOverflow?: boolean;
47
+ listWidth?: CSSProperties['width'];
34
48
  /**
35
- * Элемент, рядом с которым произойдет вызов дропдауна.
49
+ * Стрелка у выпадающего списка.
50
+ * @default true
36
51
  */
37
- target?: ReactNode;
52
+ hasArrow?: boolean;
38
53
  /**
39
- * Стрелка над элементом.
54
+ * Закрыть выпадающий список после выбора.
55
+ * @default true
40
56
  */
41
- hasArrow?: boolean;
57
+ closeOnSelect?: boolean;
42
58
  /**
43
- * Контент всплывающего окна.
59
+ * Закрывать окно при нажатии вне области дропдауна.
60
+ * @default true
44
61
  */
45
- children?: ReactNode;
62
+ closeOnOverlayClick?: boolean;
46
63
  /**
47
- * Блокировать ли фокус на дропдауне.
48
- * @default
49
- * true
64
+ * Событие сворачивания/разворачивания дропдауна.
50
65
  */
51
- isFocusTrapped?: boolean;
66
+ onToggle?: (isOpen: boolean, event: SyntheticEvent | Event) => void;
67
+ size?: string;
68
+ view?: string;
52
69
  /**
53
- * Закрывать окно при нажатии вне области дропдауна.
54
- * @default
55
- * true
70
+ * Вариант: обычный или сжатый
71
+ * @default normal
56
72
  */
57
- closeOnOverlayClick?: boolean;
73
+ variant?: 'normal' | 'tight';
58
74
  /**
59
- * Закрывать окно при нажатии ESC.
60
- * @default
61
- * true
75
+ * Обработчик клика по item.
76
+ * @deprecated использовать onItemSelect.
62
77
  */
63
- closeOnEsc?: boolean;
78
+ onItemClick?: (item: DropdownItemOption, event: SyntheticEvent) => void;
64
79
  /**
65
- * Событие сворачивания/разворачивания дропдауна.
80
+ * Значение css overflow для выпадающего меню.
81
+ * @default initial
82
+ * @deprecated
83
+ * @example listOverflow="scroll"
66
84
  */
67
- onToggle?: (isOpen: boolean, event: SyntheticEvent | Event) => void;
85
+ listOverflow?: CSSProperties['overflow'];
68
86
  /**
69
- * В каком контейнере позиционируется(по умолчанию document), можно также указать id элемента или ref для него.
87
+ * Значение css height для выпадающего меню.
88
+ * @default initial
89
+ * @deprecated
90
+ * @example listHeight="11", listHeight="auto", listHeight={11}
70
91
  */
71
- frame?: 'document' | string | React.RefObject<HTMLElement>;
72
- size?: string;
73
- view?: string;
74
- };
75
- export declare type DropdownProps = HTMLAttributes<HTMLDivElement> & CustomDropdownProps;
92
+ listHeight?: number | CSSProperties['height'];
93
+ /**
94
+ * Индекс элемента при наведении
95
+ * @deprecated использовать onHover
96
+ */
97
+ hoverIndex?: number;
98
+ }
99
+ export declare type HandleGlobalToggleType = (opened: boolean, event: Event | SyntheticEvent<Element, Event>) => void;
76
100
  //# sourceMappingURL=Dropdown.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,oBAAY,sBAAsB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACzE,oBAAY,iBAAiB,GAAG,sBAAsB,GAAG,MAAM,CAAC;AAEhE,oBAAY,eAAe,GAAG,OAAO,GAAG,OAAO,CAAC;AAEhD,oBAAY,mBAAmB,GAAG;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC9D;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"Dropdown.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,oBAAY,sBAAsB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACzE,oBAAY,iBAAiB,GAAG,sBAAsB,GAAG,MAAM,CAAC;AAEhE,oBAAY,eAAe,GAAG,OAAO,GAAG,OAAO,CAAC;AAEhD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACzE;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACxE;;;;;OAKG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,sBAAsB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DropdownProps } from '../Dropdown.types';
2
+ import { DropdownItemOption } from '../ui/DropdownItem/DropdownItem.type';
3
+ export declare type PathMapType = Map<string | number, number>;
4
+ export declare type FocusedToValueMapType = Map<string, DropdownItemOption>;
5
+ export declare const useHashMaps: (items: DropdownProps['items']) => [PathMapType, FocusedToValueMapType];
6
+ //# sourceMappingURL=useHashMaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHashMaps.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useHashMaps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,oBAAY,WAAW,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,UAAW,aAAa,CAAC,OAAO,CAAC,yCAwBxD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { Dispatch } from 'react';
2
+ import { PathAction, PathState } from '../reducers/pathReducer';
3
+ import { FocusedPathAction, FocusedPathState } from '../reducers/focusedPathReducer';
4
+ import { HandleGlobalToggleType, DropdownProps } from '../Dropdown.types';
5
+ import { PathMapType, FocusedToValueMapType } from './useHashMaps';
6
+ interface Props {
7
+ focusedPath: FocusedPathState;
8
+ dispatchFocusedPath: Dispatch<FocusedPathAction>;
9
+ path: PathState;
10
+ dispatchPath: Dispatch<PathAction>;
11
+ pathMap: PathMapType;
12
+ focusedToValueMap: FocusedToValueMapType;
13
+ handleGlobalToggle: HandleGlobalToggleType;
14
+ closeOnSelect: DropdownProps['closeOnSelect'];
15
+ onItemSelect: DropdownProps['onItemSelect'];
16
+ onItemClick: DropdownProps['onItemClick'];
17
+ }
18
+ interface ReturnedProps {
19
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
20
+ }
21
+ export declare const useKeyNavigation: ({ focusedPath, dispatchFocusedPath, path, dispatchPath, pathMap, focusedToValueMap, handleGlobalToggle, closeOnSelect, onItemSelect, onItemClick, }: Props) => ReturnedProps;
22
+ export {};
23
+ //# sourceMappingURL=useKeyboardNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyboardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/hooks/useKeyboardNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAQnE,UAAU,KAAK;IACX,WAAW,EAAE,gBAAgB,CAAC;IAC9B,mBAAmB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC;IACrB,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC7C;AAED,UAAU,aAAa;IACnB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,gBAAgB,wJAW1B,KAAK,KAAG,aAoIV,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export { dropdownRoot, dropdownConfig } from './Dropdown';
2
2
  export { classes as dropdownClasses, tokens as dropdownTokens } from './Dropdown.tokens';
3
- export * from './ui';
3
+ export { useKeyNavigation as useDropdownKeyNavigation } from './hooks/useKeyboardNavigation';
4
4
  export type { DropdownProps, DropdownPlacementBasic, DropdownPlacement, DropdownTrigger } from './Dropdown.types';
5
+ export type { DropdownItemProps, DropdownItemOption } from './ui/DropdownItem/DropdownItem.type';
6
+ export * from './ui';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,cAAc,MAAM,CAAC;AACrB,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClH,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACjG,cAAc,MAAM,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare type FocusedPathState = Array<number>;
2
+ export declare type FocusedPathAction = {
3
+ type: 'reset';
4
+ } | {
5
+ type: 'set_initial_focus';
6
+ } | {
7
+ type: 'change_last_focus';
8
+ value: number;
9
+ } | {
10
+ type: 'add_focus';
11
+ value: number;
12
+ } | {
13
+ type: 'return_prev_focus';
14
+ };
15
+ export declare function focusedPathReducer(state: FocusedPathState, action: FocusedPathAction): FocusedPathState;
16
+ //# sourceMappingURL=focusedPathReducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusedPathReducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/reducers/focusedPathReducer.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,oBAAY,iBAAiB,GACvB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEpC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,iBAAiB,GAAG,gBAAgB,CA0BvG"}
@@ -0,0 +1,20 @@
1
+ export declare type PathState = Array<string>;
2
+ export declare type PathAction = {
3
+ type: 'reset';
4
+ } | {
5
+ type: 'opened_first_level';
6
+ } | {
7
+ type: 'added_next_level';
8
+ value: string;
9
+ } | {
10
+ type: 'removed_last_level';
11
+ } | {
12
+ type: 'changed_on_level';
13
+ value: string;
14
+ level: number;
15
+ } | {
16
+ type: 'cut_by_level';
17
+ level: number;
18
+ };
19
+ export declare function pathReducer(state: PathState, action: PathAction): PathState;
20
+ //# sourceMappingURL=pathReducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathReducer.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/reducers/pathReducer.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEtC,oBAAY,UAAU,GAChB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,CA8B3E"}
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import { DropdownInnerProps } from './DropdownInner.type';
3
+ declare const DropdownInner: FC<DropdownInnerProps>;
4
+ export { DropdownInner };
5
+ //# sourceMappingURL=DropdownInner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownInner.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownInner/DropdownInner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6GzC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { SyntheticEvent, Dispatch } from 'react';
2
+ import type { DropdownItemOption } from '../DropdownItem/DropdownItem.type';
3
+ import type { DropdownProps } from '../../Dropdown.types';
4
+ import type { FocusedPathState } from '../../reducers/focusedPathReducer';
5
+ import type { PathState, PathAction } from '../../reducers/pathReducer';
6
+ export interface DropdownInnerProps {
7
+ item: DropdownItemOption;
8
+ currentLevel: number;
9
+ focusedPath: FocusedPathState;
10
+ path: PathState;
11
+ dispatchPath: Dispatch<PathAction>;
12
+ index: number;
13
+ trigger: DropdownProps['trigger'];
14
+ itemRole: string;
15
+ listHeight: DropdownProps['listHeight'];
16
+ listOverflow: DropdownProps['listOverflow'];
17
+ handleGlobalToggle: (opened: boolean, event: Event | SyntheticEvent<Element, Event>) => void;
18
+ closeOnSelect: DropdownProps['closeOnSelect'];
19
+ onHover: DropdownProps['onHover'];
20
+ onItemSelect: DropdownProps['onItemSelect'];
21
+ onItemClick: DropdownProps['onItemClick'];
22
+ listWidth: DropdownProps['listWidth'];
23
+ variant: DropdownProps['variant'];
24
+ hasArrow: DropdownProps['hasArrow'];
25
+ }
26
+ //# sourceMappingURL=DropdownInner.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownInner.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownInner/DropdownInner.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,kBAAkB,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,kBAAkB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7F,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1C,SAAS,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACtC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACvC"}
@@ -1,58 +1,4 @@
1
- import React from 'react';
2
- import { RootProps } from '../../../../engines';
1
+ import { FC } from 'react';
3
2
  import type { DropdownItemProps } from './DropdownItem.type';
4
- /**
5
- * Элемент выпадающего списка
6
- */
7
- export declare const dropdownItemRoot: (Root: RootProps<HTMLDivElement, DropdownItemProps>) => React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> & {
8
- id?: string | undefined;
9
- disabled?: boolean | undefined;
10
- label?: React.ReactNode;
11
- role?: string | undefined;
12
- contentLeft?: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | React.ComponentClass<any, any> | React.FunctionComponent<any> | null | undefined;
13
- contentRight?: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | React.ComponentClass<any, any> | React.FunctionComponent<any> | null | undefined;
14
- name?: string | undefined;
15
- checked?: boolean | undefined;
16
- text?: string | undefined;
17
- value?: string | number | boolean | undefined;
18
- isSelected?: boolean | undefined;
19
- onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
20
- onSelect?: ((value?: any, text?: any) => void) | undefined;
21
- size?: string | undefined;
22
- view?: string | undefined;
23
- } & React.RefAttributes<HTMLDivElement>>;
24
- export declare const dropdownItemConfig: {
25
- name: string;
26
- tag: string;
27
- layout: (Root: RootProps<HTMLDivElement, DropdownItemProps>) => React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> & {
28
- id?: string | undefined;
29
- disabled?: boolean | undefined;
30
- label?: React.ReactNode;
31
- role?: string | undefined;
32
- contentLeft?: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | React.ComponentClass<any, any> | React.FunctionComponent<any> | null | undefined;
33
- contentRight?: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | React.ComponentClass<any, any> | React.FunctionComponent<any> | null | undefined;
34
- name?: string | undefined;
35
- checked?: boolean | undefined;
36
- text?: string | undefined;
37
- value?: string | number | boolean | undefined;
38
- isSelected?: boolean | undefined;
39
- onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
40
- onSelect?: ((value?: any, text?: any) => void) | undefined;
41
- size?: string | undefined;
42
- view?: string | undefined;
43
- } & React.RefAttributes<HTMLDivElement>>;
44
- base: import("@linaria/core").LinariaClassName;
45
- variations: {
46
- view: {
47
- css: import("@linaria/core").LinariaClassName;
48
- };
49
- size: {
50
- css: import("@linaria/core").LinariaClassName;
51
- };
52
- };
53
- defaults: {
54
- view: string;
55
- size: string;
56
- };
57
- };
3
+ export declare const DropdownItem: FC<DropdownItemProps>;
58
4
  //# sourceMappingURL=DropdownItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAQhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;wCA2G9E,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBA7GQ,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HlF,CAAC"}
1
+ {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAqB,EAAE,EAAE,MAAM,OAAO,CAAC;AAarD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4F9C,CAAC"}
@@ -1,7 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { DropdownProps } from '../../Dropdown.types';
2
3
  export declare const StyledContentLeft: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
4
  export declare const StyledContentRight: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
+ export declare const DisclosureIconWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
6
  export declare const StyledText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
7
  export declare const baseContent: string;
6
- export declare const base: import("@linaria/core").LinariaClassName;
8
+ export declare const Wrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & {
9
+ variant: DropdownProps['variant'];
10
+ }>;
7
11
  //# sourceMappingURL=DropdownItem.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,iBAAiB,qKAK7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAM9B,CAAC;AAEF,eAAO,MAAM,UAAU,qKAEtB,CAAC;AAGF,eAAO,MAAM,WAAW,QA0DvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC"}
1
+ {"version":3,"file":"DropdownItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAG9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,qKAGjC,CAAC;AAEF,eAAO,MAAM,UAAU,qKAGtB,CAAC;AAGF,eAAO,MAAM,WAAW,QAwDvB,CAAC;AAEF,eAAO,MAAM,OAAO;aAAwB,aAAa,CAAC,SAAS,CAAC;EAoDnE,CAAC"}
@@ -1,60 +1,66 @@
1
- import type { HTMLAttributes, ReactNode, MouseEvent, ElementType } from 'react';
2
- declare type DropdownItemCustomProps = {
1
+ import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
2
+ import { DropdownProps } from '../../Dropdown.types';
3
+ import type { FocusedPathState } from '../../reducers/focusedPathReducer';
4
+ import type { PathState } from '../../reducers/pathReducer';
5
+ export declare type DropdownItemOption = {
3
6
  /**
4
- * Уникальный идентификатор элемента
7
+ * Значение у item
5
8
  */
6
- id?: string;
9
+ value: string | number;
7
10
  /**
8
- * Компонент не активен
11
+ * Метка-подпись к item
9
12
  */
10
- disabled?: boolean;
13
+ label: string;
11
14
  /**
12
- * Метка-подпись к элементу
15
+ * Список дочерних items.
13
16
  */
14
- label?: ReactNode;
17
+ items?: Array<DropdownItemOption>;
15
18
  /**
16
- * WAI-ARIA role элемента меню
19
+ * Item не активен
17
20
  */
18
- role?: string;
21
+ disabled?: boolean;
19
22
  /**
20
23
  * Слот для контента слева
21
24
  */
22
- contentLeft?: ElementType | ReactNode;
25
+ contentLeft?: ReactNode;
23
26
  /**
24
27
  * Слот для контента справа
25
28
  */
26
- contentRight?: ElementType | ReactNode;
27
- /**
28
- * Название слота контента
29
- */
30
- name?: string;
31
- /**
32
- * Отмечен ли данный элемент
33
- */
34
- checked?: boolean;
35
- /**
36
- * Содержимое контента
37
- */
38
- text?: string;
39
- /**
40
- * Значение контента
41
- */
42
- value?: string | number | boolean;
29
+ contentRight?: ReactNode;
43
30
  /**
44
- * Значение контента
31
+ * Выбранный item.
32
+ * @deprecated использовать ContentLeft || ContentRight
45
33
  */
46
- isSelected?: boolean;
34
+ isActive?: boolean;
47
35
  /**
48
- * Коллбек при клике на элемент
36
+ * Кастомный цвет текста
37
+ * @deprecated
49
38
  */
50
- onClick?: (event: MouseEvent<HTMLDivElement>) => void;
39
+ color?: string;
51
40
  /**
52
- * Коллбек при выборе элемента
41
+ * Айтем не активен
42
+ * @deprecated использовать disabled
53
43
  */
54
- onSelect?: (value?: any, text?: any) => void;
55
- size?: string;
56
- view?: string;
44
+ isDisabled?: boolean;
57
45
  };
58
- export declare type DropdownItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> & DropdownItemCustomProps;
59
- export {};
46
+ export interface DropdownItemProps extends HTMLAttributes<HTMLLIElement> {
47
+ item: DropdownItemOption;
48
+ focusedPath: FocusedPathState;
49
+ currentLevel: number;
50
+ index: number;
51
+ variant: DropdownProps['variant'];
52
+ path?: PathState;
53
+ itemRole?: DropdownProps['itemRole'];
54
+ closeOnSelect?: DropdownProps['closeOnSelect'];
55
+ handleGlobalToggle?: (opened: boolean, event: Event | SyntheticEvent<Element, Event>) => void;
56
+ onHover?: DropdownProps['onHover'];
57
+ onItemSelect?: DropdownProps['onItemSelect'];
58
+ onItemClick?: DropdownProps['onItemClick'];
59
+ hasArrow?: DropdownProps['hasArrow'];
60
+ ariaControls?: string;
61
+ ariaExpanded?: boolean;
62
+ ariaHasPopup?: React.AriaAttributes['aria-haspopup'];
63
+ ariaLevel?: React.AriaAttributes['aria-level'];
64
+ ariaLabel?: React.AriaAttributes['aria-label'];
65
+ }
60
66
  //# sourceMappingURL=DropdownItem.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEhF,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"DropdownItem.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,aAAa,CAAC;IACpE,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;IAC9F,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;CAClD"}
@@ -2,5 +2,6 @@ export { dropdownDividerRoot, dropdownDividerConfig } from './DropdownDivider/Dr
2
2
  export { dropdownFooterRoot, dropdownFooterConfig } from './DropdownFooter/DropdownFooter';
3
3
  export { dropdownGroupRoot, dropdownGroupConfig } from './DropdownGroup/DropdownGroup';
4
4
  export { dropdownHeaderRoot, dropdownHeaderConfig } from './DropdownHeader/DropdownHeader';
5
- export { dropdownItemRoot, dropdownItemConfig } from './DropdownItem/DropdownItem';
5
+ export { DropdownItem } from './DropdownItem/DropdownItem';
6
+ export { DropdownInner } from './DropdownInner/DropdownInner';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,6 +1,8 @@
1
- import React, { ElementType, ReactNode } from 'react';
2
- import type { DropdownPlacement, DropdownPlacementBasic } from '../Dropdown.types';
1
+ import type { ReactNode } from 'react';
2
+ import React, { HTMLAttributes } from 'react';
3
+ import type { DropdownPlacement, DropdownPlacementBasic, DropdownProps } from '../Dropdown.types';
3
4
  export declare const getPlacement: (placement: DropdownPlacement) => import("@popperjs/core").ComputedPlacement;
4
5
  export declare const getPlacements: (placements?: DropdownPlacement | DropdownPlacementBasic[] | undefined) => import("@popperjs/core").ComputedPlacement | import("@popperjs/core").ComputedPlacement[] | undefined;
5
- export declare const getValidComponent: (element: ElementType | ReactNode, props: object) => string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
6
+ export declare const getCorrectHeight: (listHeight: Required<DropdownProps>['listHeight']) => string;
7
+ export declare const childrenWithProps: (children: ReactNode, additionalProps: HTMLAttributes<HTMLLIElement>) => (string | number | React.ReactFragment | React.ReactElement<any, string | React.JSXElementConstructor<any>>)[] | null | undefined;
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAGpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEnF,eAAO,MAAM,YAAY,cAAe,iBAAiB,+CAExD,CAAC;AAEF,eAAO,MAAM,aAAa,kLAUzB,CAAC;AAMF,eAAO,MAAM,iBAAiB,YAAa,WAAW,GAAG,SAAS,SAAS,MAAM,qFAYhF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,EAAY,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElG,eAAO,MAAM,YAAY,cAAe,iBAAiB,+CAExD,CAAC;AAEF,eAAO,MAAM,aAAa,kLAUzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAgB,SAAS,aAAa,CAAC,CAAC,YAAY,CAAC,KAAG,MAKpF,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAAc,SAAS,mBAAmB,eAAe,aAAa,CAAC,sIAM/F,CAAC"}