@salutejs/plasma-new-hope 0.78.0-canary.1195.8924860991.0 → 0.78.0-canary.1201.8967294034.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (425) hide show
  1. package/cjs/components/Button/Button.styles.js +0 -1
  2. package/cjs/components/Button/Button.styles.js.map +1 -1
  3. package/cjs/components/Combobox/Combobox.css +17 -7
  4. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +15 -6
  5. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +15 -6
  7. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  8. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +15 -6
  9. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  10. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +15 -6
  11. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  12. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  13. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +81 -10
  14. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  15. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +21 -9
  16. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  17. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  18. package/cjs/components/Combobox/utils/index.js +23 -0
  19. package/cjs/components/Combobox/utils/index.js.map +1 -0
  20. package/cjs/components/Drawer/Drawer.js +0 -1
  21. package/cjs/components/Drawer/Drawer.js.map +1 -1
  22. package/cjs/components/Dropdown/Dropdown.css +25 -2
  23. package/cjs/components/Dropdown/Dropdown.js +138 -54
  24. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  25. package/cjs/components/Dropdown/Dropdown.styles.js +40 -7
  26. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  27. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  28. package/cjs/components/Dropdown/Dropdown.tokens.js +26 -23
  29. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  30. package/cjs/components/Dropdown/hooks/useHashMaps.js +31 -0
  31. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  32. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +200 -0
  33. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  34. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +37 -0
  35. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  36. package/cjs/components/Dropdown/reducers/pathReducer.js +41 -0
  37. package/cjs/components/Dropdown/reducers/pathReducer.js.map +1 -0
  38. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +120 -0
  39. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  40. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  41. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +79 -100
  42. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  43. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +90 -5
  44. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  45. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  46. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +30 -0
  47. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
  48. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
  49. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
  50. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +112 -0
  51. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
  52. package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +1 -1
  53. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
  54. package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +1 -1
  55. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
  56. package/cjs/components/Dropdown/utils/index.js +16 -0
  57. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  58. package/cjs/components/Pagination/Pagination.css +14 -7
  59. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +14 -7
  60. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  61. package/cjs/components/Select/Select.css +14 -7
  62. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +15 -6
  63. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  64. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +15 -6
  65. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  66. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +15 -6
  67. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  68. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +15 -6
  69. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  70. package/cjs/components/Select/ui/SelectItem/SelectItem.css +16 -7
  71. package/cjs/components/Select/ui/SelectItem/SelectItem.js +3 -3
  72. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  73. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  74. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  75. package/cjs/components/Select/ui/SelectItem/{SelectItem.styles_6h17aw.css → SelectItem.styles_vk39mp.css} +1 -1
  76. package/cjs/components/TextField/TextField.js +2 -2
  77. package/cjs/components/TextField/TextField.js.map +1 -1
  78. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  79. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  80. package/cjs/index.css +18 -10
  81. package/cjs/index.js +8 -7
  82. package/cjs/index.js.map +1 -1
  83. package/es/components/Button/Button.styles.js +0 -1
  84. package/es/components/Button/Button.styles.js.map +1 -1
  85. package/es/components/Combobox/Combobox.css +17 -7
  86. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +15 -6
  87. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  88. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +15 -6
  89. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  90. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +15 -6
  91. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  92. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +15 -6
  93. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  94. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -23
  95. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +82 -11
  96. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  97. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +19 -10
  98. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  99. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +4 -0
  100. package/es/components/Combobox/utils/index.js +19 -0
  101. package/es/components/Combobox/utils/index.js.map +1 -0
  102. package/es/components/Drawer/Drawer.js +0 -1
  103. package/es/components/Drawer/Drawer.js.map +1 -1
  104. package/es/components/Dropdown/Dropdown.css +25 -2
  105. package/es/components/Dropdown/Dropdown.js +144 -60
  106. package/es/components/Dropdown/Dropdown.js.map +1 -1
  107. package/es/components/Dropdown/Dropdown.styles.js +39 -7
  108. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  109. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  110. package/es/components/Dropdown/Dropdown.tokens.js +26 -23
  111. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  112. package/es/components/Dropdown/hooks/useHashMaps.js +27 -0
  113. package/es/components/Dropdown/hooks/useHashMaps.js.map +1 -0
  114. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +196 -0
  115. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +1 -0
  116. package/es/components/Dropdown/reducers/focusedPathReducer.js +33 -0
  117. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +1 -0
  118. package/es/components/Dropdown/reducers/pathReducer.js +37 -0
  119. package/es/components/Dropdown/reducers/pathReducer.js.map +1 -0
  120. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +116 -0
  121. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -0
  122. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +7 -4
  123. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +80 -100
  124. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  125. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +89 -5
  126. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  127. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +5 -0
  128. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +23 -0
  129. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
  130. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
  131. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
  132. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +107 -0
  133. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
  134. package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +1 -1
  135. package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
  136. package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +1 -1
  137. package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
  138. package/es/components/Dropdown/utils/index.js +16 -2
  139. package/es/components/Dropdown/utils/index.js.map +1 -1
  140. package/es/components/Pagination/Pagination.css +14 -7
  141. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +14 -7
  142. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  143. package/es/components/Select/Select.css +14 -7
  144. package/es/components/Select/ui/SelectDivider/SelectDivider.css +15 -6
  145. package/es/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  146. package/es/components/Select/ui/SelectFooter/SelectFooter.css +15 -6
  147. package/es/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  148. package/es/components/Select/ui/SelectGroup/SelectGroup.css +15 -6
  149. package/es/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  150. package/es/components/Select/ui/SelectHeader/SelectHeader.css +15 -6
  151. package/es/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  152. package/es/components/Select/ui/SelectItem/SelectItem.css +16 -7
  153. package/es/components/Select/ui/SelectItem/SelectItem.js +3 -3
  154. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  155. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  156. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  157. package/es/components/Select/ui/SelectItem/{SelectItem.styles_6h17aw.css → SelectItem.styles_vk39mp.css} +1 -1
  158. package/es/components/TextField/TextField.js +3 -3
  159. package/es/components/TextField/TextField.js.map +1 -1
  160. package/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  161. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  162. package/es/index.css +18 -10
  163. package/es/index.js +4 -3
  164. package/es/index.js.map +1 -1
  165. package/package.json +2 -2
  166. package/styled-components/cjs/components/Button/Button.styles.js +2 -10
  167. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +91 -2
  168. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +27 -7
  169. package/styled-components/cjs/components/Combobox/utils/index.js +23 -0
  170. package/styled-components/cjs/components/Dropdown/Dropdown.js +140 -54
  171. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +22 -7
  172. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +26 -23
  173. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +29 -0
  174. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +199 -0
  175. package/styled-components/cjs/components/Dropdown/index.js +9 -1
  176. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +40 -0
  177. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +44 -0
  178. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +115 -0
  179. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +5 -0
  180. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +77 -105
  181. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +83 -18
  182. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +33 -0
  183. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +5 -0
  184. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +119 -0
  185. package/styled-components/cjs/components/Dropdown/ui/index.js +19 -5
  186. package/styled-components/cjs/components/Dropdown/utils/index.js +15 -1
  187. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +1 -9
  188. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  189. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +1 -1
  190. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  191. package/styled-components/cjs/components/TextField/TextField.js +4 -4
  192. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  193. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +25 -0
  194. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +11 -0
  195. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +292 -0
  196. package/styled-components/cjs/index.js +0 -11
  197. package/styled-components/es/components/Button/Button.styles.js +2 -10
  198. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +90 -3
  199. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +23 -6
  200. package/styled-components/es/components/Combobox/utils/index.js +15 -0
  201. package/styled-components/es/components/Dropdown/Dropdown.js +142 -55
  202. package/styled-components/es/components/Dropdown/Dropdown.styles.js +18 -5
  203. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +26 -23
  204. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +23 -0
  205. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +193 -0
  206. package/styled-components/es/components/Dropdown/index.js +1 -0
  207. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +34 -0
  208. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +38 -0
  209. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +109 -0
  210. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +1 -0
  211. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +78 -107
  212. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +80 -14
  213. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +25 -0
  214. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +1 -0
  215. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +111 -0
  216. package/styled-components/es/components/Dropdown/ui/index.js +3 -1
  217. package/styled-components/es/components/Dropdown/utils/index.js +15 -1
  218. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +1 -9
  219. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  220. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  221. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  222. package/styled-components/es/components/TextField/TextField.js +4 -4
  223. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +1 -2
  224. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +19 -0
  225. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +5 -0
  226. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +292 -0
  227. package/styled-components/es/index.js +0 -1
  228. package/types/components/Button/Button.styles.d.ts +0 -1
  229. package/types/components/Button/Button.styles.d.ts.map +1 -1
  230. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +15 -13
  231. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  232. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +5 -1
  233. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  234. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +59 -2
  235. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  236. package/types/components/Combobox/utils/index.d.ts +4 -0
  237. package/types/components/Combobox/utils/index.d.ts.map +1 -0
  238. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  239. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  240. package/types/components/Dropdown/Dropdown.styles.d.ts +8 -1
  241. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  242. package/types/components/Dropdown/Dropdown.tokens.d.ts +24 -22
  243. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  244. package/types/components/Dropdown/Dropdown.types.d.ts +64 -40
  245. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  246. package/types/components/Dropdown/hooks/useHashMaps.d.ts +6 -0
  247. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +1 -0
  248. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +23 -0
  249. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +1 -0
  250. package/types/components/Dropdown/index.d.ts +3 -1
  251. package/types/components/Dropdown/index.d.ts.map +1 -1
  252. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +16 -0
  253. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +1 -0
  254. package/types/components/Dropdown/reducers/pathReducer.d.ts +20 -0
  255. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +1 -0
  256. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +5 -0
  257. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -0
  258. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +26 -0
  259. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -0
  260. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +2 -56
  261. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  262. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +5 -2
  263. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  264. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +44 -38
  265. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  266. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +7 -0
  267. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +1 -0
  268. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +60 -0
  269. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +1 -0
  270. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +58 -0
  271. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +1 -0
  272. package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +1 -0
  273. package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +1 -0
  274. package/types/components/Dropdown/ui/index.d.ts +3 -1
  275. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  276. package/types/components/Dropdown/utils/index.d.ts +5 -2
  277. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  278. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  279. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
  280. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  281. package/types/components/Select/utils/index.d.ts +1 -1
  282. package/types/components/TextField/TextField.d.ts +2 -2
  283. package/types/components/TextField/TextField.d.ts.map +1 -1
  284. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  285. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  286. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +13 -0
  287. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -0
  288. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +2 -2
  289. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  290. package/types/examples/plasma_web/components/TextField/TextField.d.ts +2 -2
  291. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  292. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +2 -2
  293. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -1
  294. package/types/index.d.ts +0 -1
  295. package/types/index.d.ts.map +1 -1
  296. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  297. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  298. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  299. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  300. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  301. package/cjs/components/IconButton/IconButton.css +0 -24
  302. package/cjs/components/IconButton/IconButton.js +0 -50
  303. package/cjs/components/IconButton/IconButton.js.map +0 -1
  304. package/cjs/components/IconButton/IconButton.styles.js +0 -16
  305. package/cjs/components/IconButton/IconButton.styles.js.map +0 -1
  306. package/cjs/components/IconButton/IconButton.styles_1hknr37.css +0 -1
  307. package/cjs/components/IconButton/IconButton.tokens.js +0 -32
  308. package/cjs/components/IconButton/IconButton.tokens.js.map +0 -1
  309. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +0 -1
  310. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +0 -2
  311. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +0 -4
  312. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +0 -1
  313. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +0 -1
  314. package/es/components/IconButton/IconButton.css +0 -24
  315. package/es/components/IconButton/IconButton.js +0 -45
  316. package/es/components/IconButton/IconButton.js.map +0 -1
  317. package/es/components/IconButton/IconButton.styles.js +0 -12
  318. package/es/components/IconButton/IconButton.styles.js.map +0 -1
  319. package/es/components/IconButton/IconButton.styles_1hknr37.css +0 -1
  320. package/es/components/IconButton/IconButton.tokens.js +0 -28
  321. package/es/components/IconButton/IconButton.tokens.js.map +0 -1
  322. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +0 -80
  323. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  324. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  325. package/styled-components/cjs/components/IconButton/IconButton.js +0 -47
  326. package/styled-components/cjs/components/IconButton/IconButton.styles.js +0 -12
  327. package/styled-components/cjs/components/IconButton/IconButton.tokens.js +0 -31
  328. package/styled-components/cjs/components/IconButton/index.js +0 -25
  329. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -27
  330. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -13
  331. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  332. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -27
  333. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -13
  334. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  335. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.config.js +0 -46
  336. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.js +0 -11
  337. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +0 -69
  338. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -27
  339. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -13
  340. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  341. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -27
  342. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -13
  343. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  344. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.config.js +0 -46
  345. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.js +0 -11
  346. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +0 -69
  347. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -22
  348. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -21
  349. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  350. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +0 -80
  351. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +0 -19
  352. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +0 -9
  353. package/styled-components/es/components/IconButton/IconButton.js +0 -41
  354. package/styled-components/es/components/IconButton/IconButton.styles.js +0 -6
  355. package/styled-components/es/components/IconButton/IconButton.tokens.js +0 -25
  356. package/styled-components/es/components/IconButton/index.js +0 -2
  357. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +0 -21
  358. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +0 -7
  359. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +0 -194
  360. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +0 -21
  361. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +0 -7
  362. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  363. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.config.js +0 -40
  364. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.js +0 -5
  365. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +0 -69
  366. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +0 -21
  367. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +0 -7
  368. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +0 -195
  369. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +0 -21
  370. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +0 -7
  371. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +0 -195
  372. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.config.js +0 -40
  373. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.js +0 -5
  374. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +0 -69
  375. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +0 -16
  376. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +0 -15
  377. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +0 -277
  378. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +0 -1
  379. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +0 -1
  380. package/types/components/IconButton/IconButton.d.ts +0 -35
  381. package/types/components/IconButton/IconButton.d.ts.map +0 -1
  382. package/types/components/IconButton/IconButton.styles.d.ts +0 -3
  383. package/types/components/IconButton/IconButton.styles.d.ts.map +0 -1
  384. package/types/components/IconButton/IconButton.tokens.d.ts +0 -26
  385. package/types/components/IconButton/IconButton.tokens.d.ts.map +0 -1
  386. package/types/components/IconButton/index.d.ts +0 -3
  387. package/types/components/IconButton/index.d.ts.map +0 -1
  388. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  389. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  390. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  391. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +0 -18
  392. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  393. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  394. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  395. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts +0 -39
  396. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts.map +0 -1
  397. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +0 -33
  398. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +0 -1
  399. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +0 -18
  400. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +0 -1
  401. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +0 -30
  402. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +0 -1
  403. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +0 -18
  404. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +0 -1
  405. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +0 -30
  406. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +0 -1
  407. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts +0 -39
  408. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts.map +0 -1
  409. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +0 -33
  410. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +0 -1
  411. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +0 -15
  412. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  413. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +0 -51
  414. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +0 -1
  415. /package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base_x642ct.css +0 -0
  416. /package/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base_x642ct.css +0 -0
  417. /package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base_x642ct.css +0 -0
  418. /package/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base_x642ct.css +0 -0
  419. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +0 -0
  420. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +0 -0
  421. /package/styled-components/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.js +0 -0
  422. /package/styled-components/es/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.js +0 -0
  423. /package/types/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_size/base.d.ts +0 -0
  424. /package/types/components/Dropdown/ui/{DropdownItem → DropdownItemOld}/variations/_view/base.d.ts +0 -0
  425. /package/types/examples/plasma_b2c/components/Dropdown/{Normal/Dropdown.config.d.ts → Dropdown.config.d.ts} +0 -0
@@ -1,107 +1,87 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useCallback, useMemo } from 'react';
3
- import { safeUseId } from '@salutejs/plasma-core';
1
+ import React, { useRef, useEffect } from 'react';
4
2
  import { classes } from '../../Dropdown.tokens.js';
5
3
  import { cx } from '../../../../utils/index.js';
6
- import { getValidComponent } from '../../utils/index.js';
7
- import { base as base$1 } from './variations/_view/base.js';
8
- import { base as base$2 } from './variations/_size/base.js';
9
- import { StyledContentLeft, StyledText, StyledContentRight, base } from './DropdownItem.styles.js';
4
+ import '@linaria/react';
5
+ import { IconDisclosureRight } from '../../../_Icon/Icons/IconDisclosureRight.js';
6
+ import { Wrapper, StyledContentLeft, StyledText, StyledContentRight, DisclosureIconWrapper } from './DropdownItem.styles.js';
10
7
 
11
- var _excluded = ["id", "className", "children", "text", "isSelected", "name", "checked", "value", "role", "view", "size", "disabled", "contentLeft", "contentRight", "onSelect", "onClick", "onChange"];
12
- /**
13
- * Элемент выпадающего списка
14
- */
15
- var dropdownItemRoot = function dropdownItemRoot(Root) {
16
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
17
- var id = _ref.id,
18
- className = _ref.className,
19
- children = _ref.children,
20
- text = _ref.text,
21
- isSelected = _ref.isSelected,
22
- name = _ref.name,
23
- checked = _ref.checked,
24
- value = _ref.value,
25
- role = _ref.role,
26
- view = _ref.view,
27
- size = _ref.size,
28
- disabled = _ref.disabled,
29
- ContentLeftComponent = _ref.contentLeft,
30
- ContentRightComponent = _ref.contentRight,
31
- onSelect = _ref.onSelect,
32
- onClick = _ref.onClick,
33
- onChange = _ref.onChange,
34
- rest = _objectWithoutProperties(_ref, _excluded);
35
- var uniqId = safeUseId();
36
- var innerId = id || uniqId;
37
- var withDropdownItemIsSelected = checked || isSelected ? classes.dropdownItemIsSelected : undefined;
38
- var withDropdownItemIsDisabled = disabled ? classes.dropdownItemIsDisabled : undefined;
39
- var handleOnClick = useCallback(function (event) {
40
- if (disabled) {
41
- return;
42
- }
43
- onClick === null || onClick === void 0 || onClick(event);
44
- if (onSelect && !ContentLeftComponent) {
45
- onSelect(value, text);
46
- }
47
- }, [onSelect, disabled]);
48
- var handleOnChange = useCallback(function (event) {
49
- if (disabled) {
50
- return;
51
- }
52
- onChange === null || onChange === void 0 || onChange(event);
53
- if (onSelect && ContentLeftComponent) {
54
- onSelect(value, text);
55
- }
56
- }, [onSelect, disabled]);
57
- var contentProps = _objectSpread2({
58
- name: name,
59
- value: value,
60
- checked: checked || isSelected,
61
- disabled: disabled,
62
- tabIndex: 0
63
- }, !disabled && {
64
- onChange: handleOnChange
65
- });
66
- var ContentLeft = useMemo(function () {
67
- return getValidComponent(ContentLeftComponent, contentProps);
68
- }, [ContentRightComponent, contentProps]);
69
- var ContentRight = useMemo(function () {
70
- return getValidComponent(ContentRightComponent, contentProps);
71
- }, [ContentRightComponent, contentProps]);
72
- return /*#__PURE__*/React.createElement(Root, _extends({
73
- className: cx(withDropdownItemIsSelected, withDropdownItemIsDisabled, className),
74
- view: view,
75
- size: size,
76
- id: innerId,
77
- isSelected: isSelected,
78
- role: role,
79
- ref: outerRootRef,
80
- tabIndex: 0,
81
- "aria-disabled": disabled,
82
- onClick: handleOnClick,
83
- "data-value": value
84
- }, rest), text ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledContentLeft, null, ContentLeftComponent && ContentLeft), /*#__PURE__*/React.createElement(StyledText, null, text), /*#__PURE__*/React.createElement(StyledContentRight, null, ContentRightComponent && ContentRight)) : children);
85
- });
86
- };
87
- var dropdownItemConfig = {
88
- name: 'DropdownItem',
89
- tag: 'div',
90
- layout: dropdownItemRoot,
91
- base: base,
92
- variations: {
93
- view: {
94
- css: base$1
95
- },
96
- size: {
97
- css: base$2
8
+ var _DisclosureIconWrappe;
9
+ var DropdownItem = function DropdownItem(_ref) {
10
+ var item = _ref.item,
11
+ path = _ref.path,
12
+ focusedPath = _ref.focusedPath,
13
+ currentLevel = _ref.currentLevel,
14
+ index = _ref.index,
15
+ itemRole = _ref.itemRole,
16
+ closeOnSelect = _ref.closeOnSelect,
17
+ handleGlobalToggle = _ref.handleGlobalToggle,
18
+ onHover = _ref.onHover,
19
+ onItemSelect = _ref.onItemSelect,
20
+ onItemClick = _ref.onItemClick,
21
+ ariaControls = _ref.ariaControls,
22
+ ariaExpanded = _ref.ariaExpanded,
23
+ ariaHasPopup = _ref.ariaHasPopup,
24
+ ariaLevel = _ref.ariaLevel,
25
+ ariaLabel = _ref.ariaLabel,
26
+ variant = _ref.variant,
27
+ hasArrow = _ref.hasArrow;
28
+ var value = item.value,
29
+ label = item.label,
30
+ disabled = item.disabled,
31
+ isDisabled = item.isDisabled,
32
+ contentLeft = item.contentLeft,
33
+ contentRight = item.contentRight;
34
+ var ref = useRef(null);
35
+ var isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;
36
+ var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? classes.dropdownItemIsFocused : undefined;
37
+ var activeClass = value === (path === null || path === void 0 ? void 0 : path[currentLevel + 1]) ? classes.dropdownItemIsActive : undefined;
38
+ useEffect(function () {
39
+ if (focusedClass && ref !== null && ref !== void 0 && ref.current) {
40
+ ref.current.scrollIntoView({
41
+ behavior: 'smooth',
42
+ block: 'center',
43
+ inline: 'center'
44
+ });
45
+ }
46
+ }, [focusedClass]);
47
+ var handleClick = function handleClick(event) {
48
+ if (disabled || isDisabled) {
49
+ return;
50
+ }
51
+ if (onItemSelect) {
52
+ onItemSelect(item, event);
53
+ }
54
+ if (onItemClick) {
55
+ onItemClick(item, event);
56
+ }
57
+ if (handleGlobalToggle && closeOnSelect) {
58
+ handleGlobalToggle(false, event);
59
+ }
60
+ };
61
+ var handleHover = function handleHover() {
62
+ if (onHover) {
63
+ onHover(index);
98
64
  }
99
- },
100
- defaults: {
101
- view: 'primary',
102
- size: 'm'
103
- }
65
+ };
66
+ return /*#__PURE__*/React.createElement(Wrapper, {
67
+ className: cx(isDisabledClassName, focusedClass, activeClass),
68
+ id: value.toString(),
69
+ role: itemRole,
70
+ ref: ref,
71
+ "aria-disabled": disabled || isDisabled,
72
+ onClick: handleClick,
73
+ onMouseEnter: handleHover,
74
+ variant: variant,
75
+ "aria-controls": ariaControls,
76
+ "aria-expanded": ariaExpanded,
77
+ "aria-haspopup": ariaHasPopup,
78
+ "aria-level": ariaLevel,
79
+ "aria-label": ariaLabel
80
+ }, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(StyledText, null, label), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight), item.items && hasArrow && (_DisclosureIconWrappe || (_DisclosureIconWrappe = /*#__PURE__*/React.createElement(DisclosureIconWrapper, null, /*#__PURE__*/React.createElement(IconDisclosureRight, {
81
+ size: "xs",
82
+ color: "inherit"
83
+ })))));
104
84
  };
105
85
 
106
- export { dropdownItemConfig, dropdownItemRoot };
86
+ export { DropdownItem };
107
87
  //# sourceMappingURL=DropdownItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useMemo } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../engines';\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { getValidComponent } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { StyledContentLeft, StyledContentRight, StyledText, base } from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\n/**\n * Элемент выпадающего списка\n */\nexport const dropdownItemRoot = (Root: RootProps<HTMLDivElement, DropdownItemProps>) =>\n forwardRef<HTMLDivElement, DropdownItemProps>(\n (\n {\n id,\n className,\n children,\n text,\n isSelected,\n name,\n checked,\n value,\n role,\n view,\n size,\n disabled,\n contentLeft: ContentLeftComponent,\n contentRight: ContentRightComponent,\n onSelect,\n onClick,\n onChange,\n ...rest\n },\n outerRootRef,\n ) => {\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n\n const withDropdownItemIsSelected = checked || isSelected ? classes.dropdownItemIsSelected : undefined;\n const withDropdownItemIsDisabled = disabled ? classes.dropdownItemIsDisabled : undefined;\n\n const handleOnClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n onClick?.(event);\n\n if (onSelect && !ContentLeftComponent) {\n onSelect(value, text);\n }\n },\n [onSelect, disabled],\n );\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLInputElement>) => {\n if (disabled) {\n return;\n }\n\n onChange?.(event);\n\n if (onSelect && ContentLeftComponent) {\n onSelect(value, text);\n }\n },\n [onSelect, disabled],\n );\n\n const contentProps = {\n name,\n value,\n checked: checked || isSelected,\n disabled,\n tabIndex: 0,\n ...(!disabled && { onChange: handleOnChange }),\n };\n\n const ContentLeft = useMemo(() => getValidComponent(ContentLeftComponent, contentProps), [\n ContentRightComponent,\n contentProps,\n ]);\n\n const ContentRight = useMemo(() => getValidComponent(ContentRightComponent, contentProps), [\n ContentRightComponent,\n contentProps,\n ]);\n\n return (\n <Root\n className={cx(withDropdownItemIsSelected, withDropdownItemIsDisabled, className)}\n view={view}\n size={size}\n id={innerId}\n isSelected={isSelected}\n role={role}\n ref={outerRootRef}\n tabIndex={0}\n aria-disabled={disabled}\n onClick={handleOnClick}\n data-value={value}\n {...rest}\n >\n {text ? (\n <>\n <StyledContentLeft>{ContentLeftComponent && ContentLeft}</StyledContentLeft>\n <StyledText>{text}</StyledText>\n <StyledContentRight>{ContentRightComponent && ContentRight}</StyledContentRight>\n </>\n ) : (\n children\n )}\n </Root>\n );\n },\n );\n\nexport const dropdownItemConfig = {\n name: 'DropdownItem',\n tag: 'div',\n layout: dropdownItemRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["dropdownItemRoot","Root","forwardRef","_ref","outerRootRef","id","className","children","text","isSelected","name","checked","value","role","view","size","disabled","ContentLeftComponent","contentLeft","ContentRightComponent","contentRight","onSelect","onClick","onChange","rest","_objectWithoutProperties","_excluded","uniqId","safeUseId","innerId","withDropdownItemIsSelected","classes","dropdownItemIsSelected","undefined","withDropdownItemIsDisabled","dropdownItemIsDisabled","handleOnClick","useCallback","event","handleOnChange","contentProps","_objectSpread","tabIndex","ContentLeft","useMemo","getValidComponent","ContentRight","React","createElement","_extends","cx","ref","Fragment","StyledContentLeft","StyledText","StyledContentRight","dropdownItemConfig","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAkD,EAAA;AAAA,EAAA,oBAC/EC,UAAU,CACN,UAAAC,IAAA,EAqBIC,YAAY,EACX;AAAA,IAAA,IApBGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,SAAS,GAAAH,IAAA,CAATG,SAAS;MACTC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,IAAI,GAAAL,IAAA,CAAJK,IAAI;MACJC,UAAU,GAAAN,IAAA,CAAVM,UAAU;MACVC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,OAAO,GAAAR,IAAA,CAAPQ,OAAO;MACPC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,IAAI,GAAAV,IAAA,CAAJU,IAAI;MACJC,IAAI,GAAAX,IAAA,CAAJW,IAAI;MACJC,IAAI,GAAAZ,IAAA,CAAJY,IAAI;MACJC,QAAQ,GAAAb,IAAA,CAARa,QAAQ;MACKC,oBAAoB,GAAAd,IAAA,CAAjCe,WAAW;MACGC,qBAAqB,GAAAhB,IAAA,CAAnCiB,YAAY;MACZC,QAAQ,GAAAlB,IAAA,CAARkB,QAAQ;MACRC,OAAO,GAAAnB,IAAA,CAAPmB,OAAO;MACPC,QAAQ,GAAApB,IAAA,CAARoB,QAAQ;AACLC,MAAAA,IAAI,GAAAC,wBAAA,CAAAtB,IAAA,EAAAuB,SAAA,CAAA,CAAA;AAIX,IAAA,IAAMC,MAAM,GAAGC,SAAS,EAAE,CAAA;AAC1B,IAAA,IAAMC,OAAO,GAAGxB,EAAE,IAAIsB,MAAM,CAAA;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AAI2B,YAAiC,CACjF,CAAC,GAEHvC,QAEF,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMiD,kBAAkB,GAAG;AAC9B9C,EAAAA,IAAI,EAAE,cAAc;AACpB+C,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE1D,gBAAgB;AACxB2D,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACR9C,IAAAA,IAAI,EAAE;AACF+C,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACD/C,IAAAA,IAAI,EAAE;AACF8C,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNlD,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"DropdownItem.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.tsx"],"sourcesContent":["import React, { useEffect, useRef, FC } from 'react';\n\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { IconDisclosureRight } from '../../../_Icon';\n\nimport {\n StyledContentLeft,\n StyledContentRight,\n StyledText,\n Wrapper,\n DisclosureIconWrapper,\n} from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\nexport const DropdownItem: FC<DropdownItemProps> = ({\n item,\n path,\n focusedPath,\n currentLevel,\n index,\n itemRole,\n closeOnSelect,\n handleGlobalToggle,\n onHover,\n onItemSelect,\n onItemClick,\n ariaControls,\n ariaExpanded,\n ariaHasPopup,\n ariaLevel,\n ariaLabel,\n variant,\n hasArrow,\n}) => {\n const { value, label, disabled, isDisabled, contentLeft, contentRight } = item;\n\n const ref = useRef<HTMLLIElement | null>(null);\n\n const isDisabledClassName = disabled || isDisabled ? classes.dropdownItemIsDisabled : undefined;\n const focusedClass =\n currentLevel === focusedPath.length - 1 && index === focusedPath?.[currentLevel]\n ? classes.dropdownItemIsFocused\n : undefined;\n const activeClass = value === path?.[currentLevel + 1] ? classes.dropdownItemIsActive : undefined;\n\n useEffect(() => {\n if (focusedClass && ref?.current) {\n ref.current.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n inline: 'center',\n });\n }\n }, [focusedClass]);\n\n const handleClick = (event: React.MouseEvent<HTMLLIElement>): void => {\n if (disabled || isDisabled) {\n return;\n }\n\n if (onItemSelect) {\n onItemSelect(item, event);\n }\n\n if (onItemClick) {\n onItemClick(item, event);\n }\n\n if (handleGlobalToggle && closeOnSelect) {\n handleGlobalToggle(false, event);\n }\n };\n\n const handleHover = () => {\n if (onHover) {\n onHover(index);\n }\n };\n\n return (\n <Wrapper\n className={cx(isDisabledClassName, focusedClass, activeClass)}\n id={value.toString()}\n role={itemRole}\n ref={ref}\n aria-disabled={disabled || isDisabled}\n onClick={handleClick}\n onMouseEnter={handleHover}\n variant={variant}\n aria-controls={ariaControls}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-level={ariaLevel}\n aria-label={ariaLabel}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n <StyledText>{label}</StyledText>\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n\n {item.items && hasArrow && (\n <DisclosureIconWrapper>\n <IconDisclosureRight size=\"xs\" color=\"inherit\" />\n </DisclosureIconWrapper>\n )}\n </Wrapper>\n );\n};\n"],"names":["DropdownItem","_ref","item","path","focusedPath","currentLevel","index","itemRole","closeOnSelect","handleGlobalToggle","onHover","onItemSelect","onItemClick","ariaControls","ariaExpanded","ariaHasPopup","ariaLevel","ariaLabel","variant","hasArrow","value","label","disabled","isDisabled","contentLeft","contentRight","ref","useRef","isDisabledClassName","classes","dropdownItemIsDisabled","undefined","focusedClass","length","dropdownItemIsFocused","activeClass","dropdownItemIsActive","useEffect","current","scrollIntoView","behavior","block","inline","handleClick","event","handleHover","React","createElement","Wrapper","className","cx","id","toString","role","onClick","onMouseEnter","StyledContentLeft","StyledText","StyledContentRight","items","_DisclosureIconWrappe","DisclosureIconWrapper","IconDisclosureRight","size","color"],"mappings":";;;;;;;;IAeaA,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAmB1C;AAAA,EAAA,IAlBFC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IACRC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,kBAAkB,GAAAR,IAAA,CAAlBQ,kBAAkB;IAClBC,OAAO,GAAAT,IAAA,CAAPS,OAAO;IACPC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,WAAW,GAAAX,IAAA,CAAXW,WAAW;IACXC,YAAY,GAAAZ,IAAA,CAAZY,YAAY;IACZC,YAAY,GAAAb,IAAA,CAAZa,YAAY;IACZC,YAAY,GAAAd,IAAA,CAAZc,YAAY;IACZC,SAAS,GAAAf,IAAA,CAATe,SAAS;IACTC,SAAS,GAAAhB,IAAA,CAATgB,SAAS;IACTC,OAAO,GAAAjB,IAAA,CAAPiB,OAAO;IACPC,QAAQ,GAAAlB,IAAA,CAARkB,QAAQ,CAAA;AAER,EAAA,IAAQC,KAAK,GAA6DlB,IAAI,CAAtEkB,KAAK;IAAEC,KAAK,GAAsDnB,IAAI,CAA/DmB,KAAK;IAAEC,QAAQ,GAA4CpB,IAAI,CAAxDoB,QAAQ;IAAEC,UAAU,GAAgCrB,IAAI,CAA9CqB,UAAU;IAAEC,WAAW,GAAmBtB,IAAI,CAAlCsB,WAAW;IAAEC,YAAY,GAAKvB,IAAI,CAArBuB,YAAY,CAAA;AAErE,EAAA,IAAMC,GAAG,GAAGC,MAAM,CAAuB,I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,qBAAA,KAAAA,qBAAA,gBACnBd,KAAA,CAAAC,aAAA,CAACc,qBAAqB,qBAClBf,KAAA,CAAAC,aAAA,CAACe,mBAAmB,EAAA;AAACC,IAAAA,IAAI,EAAC,IAAI;AAACC,IAAAA,KAAK,EAAC,SAAA;GAAW,CAC7B,CAAC,CAAA,CAEvB,CAAC,CAAA;AAElB;;;;"}
@@ -1,6 +1,6 @@
1
- import './DropdownItem.styles_1juhjtq.css';
1
+ import './DropdownItem.styles_1o4szyu.css';
2
2
  import { styled } from '@linaria/react';
3
- import 'focus-visible';
3
+ import { tokens } from '../../Dropdown.tokens.js';
4
4
 
5
5
  var StyledContentLeft = /*#__PURE__*/styled('div')({
6
6
  name: "StyledContentLeft",
@@ -12,12 +12,96 @@ var StyledContentRight = /*#__PURE__*/styled('div')({
12
12
  "class": "sz6s14y",
13
13
  propsAsIs: false
14
14
  });
15
+ var DisclosureIconWrapper = /*#__PURE__*/styled('div')({
16
+ name: "DisclosureIconWrapper",
17
+ "class": "d1m97l2m",
18
+ propsAsIs: false
19
+ });
15
20
  var StyledText = /*#__PURE__*/styled('div')({
16
21
  name: "StyledText",
17
- "class": "s1m97l2m",
22
+ "class": "soib72h",
18
23
  propsAsIs: false
19
24
  });
20
- var base = "boib72h";
21
25
 
22
- export { StyledContentLeft, StyledContentRight, StyledText, base };
26
+ // TODO: Remove baseContent after refactoring a Select component
27
+ // export const baseContent = `
28
+ // box-sizing: content-box;
29
+ // display: flex;
30
+ // align-items: center;
31
+ // user-select: none;
32
+ //
33
+ // :focus {
34
+ // outline: none;
35
+ // }
36
+ //
37
+ // ${addFocus({
38
+ // outlineSize: '0.0625rem',
39
+ // outlineOffset: '0',
40
+ // outlineColor: `var(${tokens.focusColor})`,
41
+ // outlineRadius: `var(${tokens.itemBorderRadius})`,
42
+ // hasTransition: false,
43
+ // customFocusRules: `
44
+ // &.${classes.dropdownItemIsFocused}:before {
45
+ // outline: none;
46
+ // box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});
47
+ // }
48
+ // `,
49
+ // })};
50
+ //
51
+ // width: 100%;
52
+ //
53
+ // font-family: var(${tokens.itemFontFamily});
54
+ // font-size: var(${tokens.itemFontSize});
55
+ // font-style: var(${tokens.itemFontStyle});
56
+ // font-weight: var(${tokens.itemFontWeightBold});
57
+ // letter-spacing: var(${tokens.itemFontLetterSpacing});
58
+ // line-height: var(${tokens.itemFontLineHeight});
59
+ //
60
+ // background: var(${tokens.itemBackground});
61
+ // color: var(${tokens.itemColor});
62
+ // border-radius: var(${tokens.itemBorderRadius});
63
+ //
64
+ // padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom}) var(${
65
+ // tokens.itemPaddingLeft
66
+ // });
67
+ //
68
+ // margin: 0;
69
+ //
70
+ // &:hover:not(.${classes.dropdownItemIsDisabled}) {
71
+ // cursor: pointer;
72
+ // background: var(${tokens.itemBackgroundHover});
73
+ // }
74
+ //
75
+ // &.${classes.dropdownItemIsActive} {
76
+ // background: var(${tokens.itemBackgroundHover});
77
+ // }
78
+ //
79
+ // &.${classes.dropdownItemIsDisabled} {
80
+ // opacity: var(${tokens.disabledOpacity});
81
+ // cursor: not-allowed;
82
+ // }
83
+ // `;
84
+ var _exp3 = function _exp3() {
85
+ return function (_ref) {
86
+ var variant = _ref.variant;
87
+ return "var(".concat(variant === 'tight' ? tokens.itemPaddingTopTight : tokens.itemPaddingTop, ")");
88
+ };
89
+ };
90
+ var _exp5 = function _exp5() {
91
+ return function (_ref2) {
92
+ var variant = _ref2.variant;
93
+ return "var(".concat(variant === 'tight' ? tokens.itemPaddingBottomTight : tokens.itemPaddingBottom, ")");
94
+ };
95
+ };
96
+ var Wrapper = /*#__PURE__*/styled('li')({
97
+ name: "Wrapper",
98
+ "class": "w6l2f0g",
99
+ propsAsIs: false,
100
+ vars: {
101
+ "w6l2f0g-0": [/*#__PURE__*/_exp3()],
102
+ "w6l2f0g-1": [/*#__PURE__*/_exp5()]
103
+ }
104
+ });
105
+
106
+ export { DisclosureIconWrapper, StyledContentLeft, StyledContentRight, StyledText, Wrapper };
23
107
  //# sourceMappingURL=DropdownItem.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.styles.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Dropdown.tokens';\nimport { addFocus, applyEllipsis } from '../../../../mixins';\n\nexport const StyledContentLeft = styled.div`\n display: inline-flex;\n\n min-width: var(${tokens.itemContentLeftWidth});\n color: var(${tokens.itemContentLeftColor});\n`;\n\nexport const StyledContentRight = styled.div`\n margin-left: auto;\n display: inline-flex;\n\n min-width: var(${tokens.itemContentRightWidth});\n color: var(${tokens.itemContentRightColor});\n`;\n\nexport const StyledText = styled.div`\n ${applyEllipsis()};\n`;\n\n// INFO: Для возможности переиспользования стилей в других компонентах\nexport const baseContent = `\n box-sizing: content-box;\n display: flex;\n align-items: center;\n user-select: none;\n\n :focus {\n outline: none;\n }\n\n ${addFocus({\n outlineSize: '0.0625rem',\n outlineOffset: '0',\n outlineColor: `var(${tokens.focusColor})`,\n outlineRadius: `var(${tokens.itemBorderRadius})`,\n hasTransition: false,\n })};\n\n width: 100%;\n\n font-family: var(${tokens.itemFontFamily});\n font-size: var(${tokens.itemFontSize});\n font-style: var(${tokens.itemFontStyle});\n font-weight: var(${tokens.itemFontWeightBold});\n letter-spacing: var(${tokens.itemFontLetterSpacing});\n line-height: var(${tokens.itemFontLineHeight});\n\n background: var(${tokens.itemBackground});\n color: var(${tokens.itemColor});\n border-radius: var(${tokens.itemBorderRadius});\n\n width: var(${tokens.itemWidth});\n height: var(${tokens.itemHeight});\n\n padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom})\n var(${tokens.itemPaddingLeft});\n\n margin: var(${tokens.itemMarginTop}) var(${tokens.itemMarginRight}) var(${tokens.itemMarginBottom})\n var(${tokens.itemMarginLeft});\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n cursor: pointer;\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${String(classes.dropdownItemIsSelected)} {\n color: var(${tokens.itemColorSelected});\n background: var(${tokens.itemBackgroundSelected});\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n background: var(${tokens.itemBackgroundSelectedHover});\n }\n }\n\n &.${classes.dropdownItemIsDisabled} {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n`;\n\nexport const base = css`\n ${baseContent};\n`;\n"],"names":["StyledContentLeft","styled","name","class","propsAsIs","StyledContentRight","StyledText","base"],"mappings":";;;AAMO,IAAMA,iBAAiB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKtC,EAAA;AAEM,IAAMC,kBAAkB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAMvC,EAAA;AAEM,IAAME,UAAU,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AA+DM,IAAMG,IAAI,GAEhB;;;;"}
1
+ {"version":3,"file":"DropdownItem.styles.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItem/DropdownItem.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Dropdown.tokens';\nimport { addFocus, applyEllipsis } from '../../../../mixins';\nimport { DropdownProps } from '../../Dropdown.types';\n\nexport const StyledContentLeft = styled.div`\n display: inline-flex;\n`;\n\nexport const StyledContentRight = styled.div`\n margin-left: auto;\n display: inline-flex;\n`;\n\nexport const DisclosureIconWrapper = styled.div`\n line-height: 0;\n color: var(${tokens.disclosureIconColor});\n`;\n\nexport const StyledText = styled.div`\n ${applyEllipsis()};\n flex: 1;\n`;\n\n// TODO: Remove baseContent after refactoring a Select component\n// export const baseContent = `\n// box-sizing: content-box;\n// display: flex;\n// align-items: center;\n// user-select: none;\n//\n// :focus {\n// outline: none;\n// }\n//\n// ${addFocus({\n// outlineSize: '0.0625rem',\n// outlineOffset: '0',\n// outlineColor: `var(${tokens.focusColor})`,\n// outlineRadius: `var(${tokens.itemBorderRadius})`,\n// hasTransition: false,\n// customFocusRules: `\n// &.${classes.dropdownItemIsFocused}:before {\n// outline: none;\n// box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});\n// }\n// `,\n// })};\n//\n// width: 100%;\n//\n// font-family: var(${tokens.itemFontFamily});\n// font-size: var(${tokens.itemFontSize});\n// font-style: var(${tokens.itemFontStyle});\n// font-weight: var(${tokens.itemFontWeightBold});\n// letter-spacing: var(${tokens.itemFontLetterSpacing});\n// line-height: var(${tokens.itemFontLineHeight});\n//\n// background: var(${tokens.itemBackground});\n// color: var(${tokens.itemColor});\n// border-radius: var(${tokens.itemBorderRadius});\n//\n// padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom}) var(${\n// tokens.itemPaddingLeft\n// });\n//\n// margin: 0;\n//\n// &:hover:not(.${classes.dropdownItemIsDisabled}) {\n// cursor: pointer;\n// background: var(${tokens.itemBackgroundHover});\n// }\n//\n// &.${classes.dropdownItemIsActive} {\n// background: var(${tokens.itemBackgroundHover});\n// }\n//\n// &.${classes.dropdownItemIsDisabled} {\n// opacity: var(${tokens.disabledOpacity});\n// cursor: not-allowed;\n// }\n// `;\n\nexport const Wrapper = styled.li<{ variant: DropdownProps['variant'] }>`\n display: flex;\n align-items: center;\n margin: 0;\n box-sizing: content-box;\n padding-top: ${({ variant }) => `var(${variant === 'tight' ? tokens.itemPaddingTopTight : tokens.itemPaddingTop})`};\n padding-right: var(${tokens.itemPaddingRight});\n padding-bottom: ${({ variant }) =>\n `var(${variant === 'tight' ? tokens.itemPaddingBottomTight : tokens.itemPaddingBottom})`};\n padding-left: var(${tokens.itemPaddingLeft});\n font-family: var(${tokens.itemFontFamily});\n font-size: var(${tokens.itemFontSize});\n font-style: var(${tokens.itemFontStyle});\n font-weight: var(${tokens.itemFontWeightBold});\n letter-spacing: var(${tokens.itemFontLetterSpacing});\n line-height: var(${tokens.itemFontLineHeight});\n background: var(${tokens.itemBackground});\n color: var(${tokens.itemColor});\n border-radius: var(${tokens.itemBorderRadius});\n user-select: none;\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n cursor: pointer;\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsActive} {\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${classes.dropdownItemIsDisabled} {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n\n :focus {\n outline: none;\n }\n\n ${addFocus({\n outlineSize: '0.0625rem',\n outlineOffset: '0',\n outlineColor: `var(${tokens.focusColor})`,\n outlineRadius: `var(${tokens.itemBorderRadius})`,\n hasTransition: false,\n customFocusRules: `\n &.${classes.dropdownItemIsFocused}:before {\n outline: none;\n box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});\n }\n `,\n })};\n`;\n"],"names":["StyledContentLeft","styled","name","class","propsAsIs","StyledContentRight","DisclosureIconWrapper","StyledText","_exp3","_ref","variant","tokens","itemPaddingTopTight","itemPaddingTop","_exp5","_ref2","itemPaddingBottomTight","itemPaddingBottom","Wrapper","vars"],"mappings":";;;AAMO,IAAMA,iBAAiB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,E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,GAAA;AAAA,EAAA,OAEhG,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGL,OAAAA,GAAAA,KAAAA,CAAAA,OAAAA,CAAAA;AAAAA,IAAAA,OAAAA,MAAAA,CAAAA,MAAAA,CACVA,OAAO,KAAK,OAAO,GAAGC,MAAM,CAACK,sBAAsB,GAAGL,MAAM,CAACM,iBAAkB,EAAA,GAAA,CAAA,CAAA;GAAE,CAAA;AAAA,CAAA,CAAA;AARzF,IAAMC,OAAO,gBAAGjB,MAAM,CAAA,IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,SAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAe,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAKVX,KAAmG,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAEhGM,KAC0E,EAAA,CAAA;AAAA,GAAA;AAAA,CA4C/F;;;;"}
@@ -0,0 +1,5 @@
1
+ .s1gkzlls{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
2
+ .sz6s14y{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
3
+ .d1m97l2m{line-height:0;color:var(--plasma-dropdown-disclosure-icon-color);}
4
+ .soib72h{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
5
+ .w6l2f0g{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;}.w6l2f0g:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.w6l2f0g.dropdown-item-is-active{background:var(--plasma-dropdown-item-background-hover);}.w6l2f0g.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.w6l2f0g:focus{outline:none;}.w6l2f0g::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;}.w6l2f0g.dropdown-item-is-focused:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}
@@ -0,0 +1,23 @@
1
+ import './DropdownItem.styles_12e50g5.css';
2
+ import { styled } from '@linaria/react';
3
+ import 'focus-visible';
4
+
5
+ var StyledContentLeft = /*#__PURE__*/styled('div')({
6
+ name: "StyledContentLeft",
7
+ "class": "s1iqs5in",
8
+ propsAsIs: false
9
+ });
10
+ var StyledContentRight = /*#__PURE__*/styled('div')({
11
+ name: "StyledContentRight",
12
+ "class": "sfg3dyd",
13
+ propsAsIs: false
14
+ });
15
+ var StyledText = /*#__PURE__*/styled('div')({
16
+ name: "StyledText",
17
+ "class": "s1dea6tl",
18
+ propsAsIs: false
19
+ });
20
+ var base = "b1b2nce8";
21
+
22
+ export { StyledContentLeft, StyledContentRight, StyledText, base };
23
+ //# sourceMappingURL=DropdownItem.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItem.styles.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Dropdown.tokens';\nimport { addFocus, applyEllipsis } from '../../../../mixins';\n\nexport const StyledContentLeft = styled.div`\n display: inline-flex;\n\n min-width: var(${tokens.itemContentLeftWidth});\n color: var(${tokens.itemContentLeftColor});\n`;\n\nexport const StyledContentRight = styled.div`\n margin-left: auto;\n display: inline-flex;\n\n min-width: var(${tokens.itemContentRightWidth});\n color: var(${tokens.itemContentRightColor});\n`;\n\nexport const StyledText = styled.div`\n ${applyEllipsis()};\n`;\n\n// INFO: Для возможности переиспользования стилей в других компонентах\nexport const baseContent = `\n box-sizing: content-box;\n display: flex;\n align-items: center;\n user-select: none;\n\n :focus {\n outline: none;\n }\n\n ${addFocus({\n outlineSize: '0.0625rem',\n outlineOffset: '0',\n outlineColor: `var(${tokens.focusColor})`,\n outlineRadius: `var(${tokens.itemBorderRadius})`,\n hasTransition: false,\n })};\n\n width: auto;\n\n font-family: var(${tokens.itemFontFamily});\n font-size: var(${tokens.itemFontSize});\n font-style: var(${tokens.itemFontStyle});\n font-weight: var(${tokens.itemFontWeightBold});\n letter-spacing: var(${tokens.itemFontLetterSpacing});\n line-height: var(${tokens.itemFontLineHeight});\n\n background: var(${tokens.itemBackground});\n color: var(${tokens.itemColor});\n border-radius: var(${tokens.itemBorderRadius});\n\n width: var(${tokens.itemWidth});\n height: var(${tokens.itemHeight});\n\n padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom})\n var(${tokens.itemPaddingLeft});\n\n margin: var(${tokens.itemMarginTop}) var(${tokens.itemMarginRight}) var(${tokens.itemMarginBottom})\n var(${tokens.itemMarginLeft});\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n cursor: pointer;\n background: var(${tokens.itemBackgroundHover});\n }\n\n &.${String(classes.dropdownItemIsSelected)} {\n color: var(${tokens.itemColorSelected});\n background: var(${tokens.itemBackgroundSelected});\n\n &:hover:not(.${classes.dropdownItemIsDisabled}) {\n background: var(${tokens.itemBackgroundSelectedHover});\n }\n }\n\n &.${classes.dropdownItemIsDisabled} {\n opacity: var(${tokens.disabledOpacity});\n cursor: not-allowed;\n }\n`;\n\nexport const base = css`\n ${baseContent};\n`;\n"],"names":["StyledContentLeft","styled","name","class","propsAsIs","StyledContentRight","StyledText","base"],"mappings":";;;AAMO,IAAMA,iBAAiB,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAKtC,EAAA;AAEM,IAAMC,kBAAkB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,oBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAMvC,EAAA;AAEM,IAAME,UAAU,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE/B,EAAA;AA+DM,IAAMG,IAAI,GAEhB;;;;"}
@@ -0,0 +1,4 @@
1
+ .s1iqs5in{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
+ .sfg3dyd{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
+ .s1dea6tl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
+ .b1b2nce8{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:auto;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);}.b1b2nce8:focus{outline:none;}.b1b2nce8::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;}.b1b2nce8.focus-visible:focus::before,.b1b2nce8[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.b1b2nce8:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.b1b2nce8.dropdownItemIsSelected{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.b1b2nce8.dropdownItemIsSelected:hover:not(.dropdown-item-is-disabled){background:var(--plasma-dropdown-item-background-selected-hover);}.b1b2nce8.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -0,0 +1,4 @@
1
+ .DropdownItem_styles_12e50g5_s1iqs5in__94ac8eef{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_12e50g5_sfg3dyd__94ac8eef{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_12e50g5_s1dea6tl__94ac8eef{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
+ .DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef{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:auto;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_12e50g5_b1b2nce8__94ac8eef:focus{outline:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef::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_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_focusVisible__94ac8eef:focus::before,.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -0,0 +1,107 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { forwardRef, useCallback, useMemo } from 'react';
3
+ import { safeUseId } from '@salutejs/plasma-core';
4
+ import { classes } from '../../Dropdown.tokens.js';
5
+ import { cx } from '../../../../utils/index.js';
6
+ import { getValidComponent } from '../../utils/index.js';
7
+ import { base as base$1 } from './variations/_view/base.js';
8
+ import { base as base$2 } from './variations/_size/base.js';
9
+ import { StyledContentLeft, StyledText, StyledContentRight, base } from './DropdownItem.styles.js';
10
+
11
+ var _excluded = ["id", "className", "children", "text", "isSelected", "name", "checked", "value", "role", "view", "size", "disabled", "contentLeft", "contentRight", "onSelect", "onClick", "onChange"];
12
+ /**
13
+ * Элемент выпадающего списка
14
+ */
15
+ var dropdownItemOldRoot = function dropdownItemOldRoot(Root) {
16
+ return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
17
+ var id = _ref.id,
18
+ className = _ref.className,
19
+ children = _ref.children,
20
+ text = _ref.text,
21
+ isSelected = _ref.isSelected,
22
+ name = _ref.name,
23
+ checked = _ref.checked,
24
+ value = _ref.value,
25
+ role = _ref.role,
26
+ view = _ref.view,
27
+ size = _ref.size,
28
+ disabled = _ref.disabled,
29
+ ContentLeftComponent = _ref.contentLeft,
30
+ ContentRightComponent = _ref.contentRight,
31
+ onSelect = _ref.onSelect,
32
+ onClick = _ref.onClick,
33
+ onChange = _ref.onChange,
34
+ rest = _objectWithoutProperties(_ref, _excluded);
35
+ var uniqId = safeUseId();
36
+ var innerId = id || uniqId;
37
+ var withDropdownItemIsSelected = checked || isSelected ? classes.dropdownItemIsSelected : undefined;
38
+ var withDropdownItemIsDisabled = disabled ? classes.dropdownItemIsDisabled : undefined;
39
+ var handleOnClick = useCallback(function (event) {
40
+ if (disabled) {
41
+ return;
42
+ }
43
+ onClick === null || onClick === void 0 || onClick(event);
44
+ if (onSelect && !ContentLeftComponent) {
45
+ onSelect(value, text);
46
+ }
47
+ }, [onSelect, disabled]);
48
+ var handleOnChange = useCallback(function (event) {
49
+ if (disabled) {
50
+ return;
51
+ }
52
+ onChange === null || onChange === void 0 || onChange(event);
53
+ if (onSelect && ContentLeftComponent) {
54
+ onSelect(value, text);
55
+ }
56
+ }, [onSelect, disabled]);
57
+ var contentProps = _objectSpread2({
58
+ name: name,
59
+ value: value,
60
+ checked: checked || isSelected,
61
+ disabled: disabled,
62
+ tabIndex: 0
63
+ }, !disabled && {
64
+ onChange: handleOnChange
65
+ });
66
+ var ContentLeft = useMemo(function () {
67
+ return getValidComponent(ContentLeftComponent, contentProps);
68
+ }, [ContentRightComponent, contentProps]);
69
+ var ContentRight = useMemo(function () {
70
+ return getValidComponent(ContentRightComponent, contentProps);
71
+ }, [ContentRightComponent, contentProps]);
72
+ return /*#__PURE__*/React.createElement(Root, _extends({
73
+ className: cx(withDropdownItemIsSelected, withDropdownItemIsDisabled, className),
74
+ view: view,
75
+ size: size,
76
+ id: innerId,
77
+ isSelected: isSelected,
78
+ role: role,
79
+ ref: outerRootRef,
80
+ tabIndex: 0,
81
+ "aria-disabled": disabled,
82
+ onClick: handleOnClick,
83
+ "data-value": value
84
+ }, rest), text ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledContentLeft, null, ContentLeftComponent && ContentLeft), /*#__PURE__*/React.createElement(StyledText, null, text), /*#__PURE__*/React.createElement(StyledContentRight, null, ContentRightComponent && ContentRight)) : children);
85
+ });
86
+ };
87
+ var dropdownItemOldConfig = {
88
+ name: 'DropdownItem',
89
+ tag: 'div',
90
+ layout: dropdownItemOldRoot,
91
+ base: base,
92
+ variations: {
93
+ view: {
94
+ css: base$1
95
+ },
96
+ size: {
97
+ css: base$2
98
+ }
99
+ },
100
+ defaults: {
101
+ view: 'primary',
102
+ size: 'm'
103
+ }
104
+ };
105
+
106
+ export { dropdownItemOldConfig, dropdownItemOldRoot };
107
+ //# sourceMappingURL=DropdownItemOld.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemOld.js","sources":["../../../../../src/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useMemo } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../../../engines';\nimport { classes } from '../../Dropdown.tokens';\nimport { cx } from '../../../../utils';\nimport { getValidComponent } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { StyledContentLeft, StyledContentRight, StyledText, base } from './DropdownItem.styles';\nimport type { DropdownItemProps } from './DropdownItem.type';\n\n/**\n * Элемент выпадающего списка\n */\nexport const dropdownItemOldRoot = (Root: RootProps<HTMLDivElement, DropdownItemProps>) =>\n forwardRef<HTMLDivElement, DropdownItemProps>(\n (\n {\n id,\n className,\n children,\n text,\n isSelected,\n name,\n checked,\n value,\n role,\n view,\n size,\n disabled,\n contentLeft: ContentLeftComponent,\n contentRight: ContentRightComponent,\n onSelect,\n onClick,\n onChange,\n ...rest\n },\n outerRootRef,\n ) => {\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n\n const withDropdownItemIsSelected = checked || isSelected ? classes.dropdownItemIsSelected : undefined;\n const withDropdownItemIsDisabled = disabled ? classes.dropdownItemIsDisabled : undefined;\n\n const handleOnClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n if (disabled) {\n return;\n }\n\n onClick?.(event);\n\n if (onSelect && !ContentLeftComponent) {\n onSelect(value, text);\n }\n },\n [onSelect, disabled],\n );\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLInputElement>) => {\n if (disabled) {\n return;\n }\n\n onChange?.(event);\n\n if (onSelect && ContentLeftComponent) {\n onSelect(value, text);\n }\n },\n [onSelect, disabled],\n );\n\n const contentProps = {\n name,\n value,\n checked: checked || isSelected,\n disabled,\n tabIndex: 0,\n ...(!disabled && { onChange: handleOnChange }),\n };\n\n const ContentLeft = useMemo(() => getValidComponent(ContentLeftComponent, contentProps), [\n ContentRightComponent,\n contentProps,\n ]);\n\n const ContentRight = useMemo(() => getValidComponent(ContentRightComponent, contentProps), [\n ContentRightComponent,\n contentProps,\n ]);\n\n return (\n <Root\n className={cx(withDropdownItemIsSelected, withDropdownItemIsDisabled, className)}\n view={view}\n size={size}\n id={innerId}\n isSelected={isSelected}\n role={role}\n ref={outerRootRef}\n tabIndex={0}\n aria-disabled={disabled}\n onClick={handleOnClick}\n data-value={value}\n {...rest}\n >\n {text ? (\n <>\n <StyledContentLeft>{ContentLeftComponent && ContentLeft}</StyledContentLeft>\n <StyledText>{text}</StyledText>\n <StyledContentRight>{ContentRightComponent && ContentRight}</StyledContentRight>\n </>\n ) : (\n children\n )}\n </Root>\n );\n },\n );\n\nexport const dropdownItemOldConfig = {\n name: 'DropdownItem',\n tag: 'div',\n layout: dropdownItemOldRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["dropdownItemOldRoot","Root","forwardRef","_ref","outerRootRef","id","className","children","text","isSelected","name","checked","value","role","view","size","disabled","ContentLeftComponent","contentLeft","ContentRightComponent","contentRight","onSelect","onClick","onChange","rest","_objectWithoutProperties","_excluded","uniqId","safeUseId","innerId","withDropdownItemIsSelected","classes","dropdownItemIsSelected","undefined","withDropdownItemIsDisabled","dropdownItemIsDisabled","handleOnClick","useCallback","event","handleOnChange","contentProps","_objectSpread","tabIndex","ContentLeft","useMemo","getValidComponent","ContentRight","React","createElement","_extends","cx","ref","Fragment","StyledContentLeft","StyledText","StyledContentRight","dropdownItemOldConfig","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;AAaA;AACA;AACA;IACaA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,IAAkD,EAAA;AAAA,EAAA,oBAClFC,UAAU,CACN,UAAAC,IAAA,EAqBIC,YAAY,EACX;AAAA,IAAA,IApBGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,SAAS,GAAAH,IAAA,CAATG,SAAS;MACTC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,IAAI,GAAAL,IAAA,CAAJK,IAAI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AA;AACJ;;;;"}
@@ -1,5 +1,5 @@
1
1
  import './base_x642ct.css';
2
- var base = "b1kixv7i";
2
+ var base = "b13l5751";
3
3
 
4
4
  export { base };
5
5
  //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Dropdown/ui/DropdownItemOld/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,5 +1,5 @@
1
1
  import './base_x642ct.css';
2
- var base = "bmznara";
2
+ var base = "brhph3v";
3
3
 
4
4
  export { base };
5
5
  //# sourceMappingURL=base.js.map