@salutejs/plasma-new-hope 0.77.1-canary.1201.8930079977.0 → 0.77.1-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/cjs/components/Combobox/Combobox.css +7 -17
  2. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
  3. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  4. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
  5. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  6. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  8. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
  9. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  10. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  11. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +10 -81
  12. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  13. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +9 -21
  14. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  15. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  16. package/cjs/components/Dropdown/Dropdown.css +2 -25
  17. package/cjs/components/Dropdown/Dropdown.js +54 -138
  18. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  19. package/cjs/components/Dropdown/Dropdown.styles.js +7 -40
  20. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  21. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  22. package/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
  23. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  24. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  25. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -79
  26. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  27. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -90
  28. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  29. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  30. package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
  31. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  32. package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
  33. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  34. package/cjs/components/Dropdown/utils/index.js +0 -16
  35. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  36. package/cjs/components/Pagination/Pagination.css +7 -14
  37. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
  38. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  39. package/cjs/components/Select/Select.css +7 -14
  40. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
  41. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  42. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
  43. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  44. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
  45. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  46. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
  47. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  48. package/cjs/components/Select/ui/SelectItem/SelectItem.css +7 -16
  49. package/cjs/components/Select/ui/SelectItem/SelectItem.js +3 -3
  50. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  51. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  52. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  53. package/cjs/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
  54. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  55. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  56. package/cjs/index.css +8 -18
  57. package/cjs/index.js +2 -8
  58. package/cjs/index.js.map +1 -1
  59. package/es/components/Combobox/Combobox.css +7 -17
  60. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -15
  61. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +2 -2
  62. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -15
  63. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +2 -2
  64. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -15
  65. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +2 -2
  66. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -15
  67. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +2 -2
  68. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  69. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +11 -82
  70. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  71. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +10 -19
  72. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  73. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  74. package/es/components/Dropdown/Dropdown.css +2 -25
  75. package/es/components/Dropdown/Dropdown.js +60 -144
  76. package/es/components/Dropdown/Dropdown.js.map +1 -1
  77. package/es/components/Dropdown/Dropdown.styles.js +7 -39
  78. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  79. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  80. package/es/components/Dropdown/Dropdown.tokens.js +23 -26
  81. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  82. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  83. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -80
  84. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  85. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +5 -89
  86. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  87. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  88. package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +1 -1
  89. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  90. package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +1 -1
  91. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  92. package/es/components/Dropdown/utils/index.js +2 -16
  93. package/es/components/Dropdown/utils/index.js.map +1 -1
  94. package/es/components/Pagination/Pagination.css +7 -14
  95. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -14
  96. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  97. package/es/components/Select/Select.css +7 -14
  98. package/es/components/Select/ui/SelectDivider/SelectDivider.css +6 -15
  99. package/es/components/Select/ui/SelectDivider/SelectDivider.js +2 -2
  100. package/es/components/Select/ui/SelectFooter/SelectFooter.css +6 -15
  101. package/es/components/Select/ui/SelectFooter/SelectFooter.js +2 -2
  102. package/es/components/Select/ui/SelectGroup/SelectGroup.css +6 -15
  103. package/es/components/Select/ui/SelectGroup/SelectGroup.js +2 -2
  104. package/es/components/Select/ui/SelectHeader/SelectHeader.css +6 -15
  105. package/es/components/Select/ui/SelectHeader/SelectHeader.js +2 -2
  106. package/es/components/Select/ui/SelectItem/SelectItem.css +7 -16
  107. package/es/components/Select/ui/SelectItem/SelectItem.js +3 -3
  108. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  109. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  110. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  111. package/es/components/Select/ui/SelectItem/{SelectItem.styles_vk39mp.css → SelectItem.styles_6h17aw.css} +1 -1
  112. package/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  113. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  114. package/es/index.css +8 -18
  115. package/es/index.js +1 -4
  116. package/es/index.js.map +1 -1
  117. package/package.json +2 -2
  118. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +2 -91
  119. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +7 -27
  120. package/styled-components/cjs/components/Dropdown/Dropdown.js +54 -140
  121. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +7 -22
  122. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  123. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +23 -26
  124. package/styled-components/cjs/components/Dropdown/index.js +1 -9
  125. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +105 -77
  126. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -83
  127. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  128. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  129. package/styled-components/cjs/components/Dropdown/ui/index.js +5 -19
  130. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -15
  131. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +9 -1
  132. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  133. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +1 -1
  134. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  135. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  136. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +27 -0
  137. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +13 -0
  138. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  139. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +27 -0
  140. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +13 -0
  141. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  142. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +27 -0
  143. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +13 -0
  144. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  145. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +27 -0
  146. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +13 -0
  147. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  148. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +22 -0
  149. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +21 -0
  150. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  151. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +3 -90
  152. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +6 -23
  153. package/styled-components/es/components/Dropdown/Dropdown.js +55 -142
  154. package/styled-components/es/components/Dropdown/Dropdown.styles.js +5 -18
  155. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  156. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +23 -26
  157. package/styled-components/es/components/Dropdown/index.js +0 -1
  158. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +107 -78
  159. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +14 -80
  160. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  161. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  162. package/styled-components/es/components/Dropdown/ui/index.js +1 -3
  163. package/styled-components/es/components/Dropdown/utils/index.js +1 -15
  164. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +9 -1
  165. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  166. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  167. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +1 -1
  168. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  169. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +21 -0
  170. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +7 -0
  171. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  172. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +21 -0
  173. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +7 -0
  174. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  175. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +21 -0
  176. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +7 -0
  177. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  178. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +21 -0
  179. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +7 -0
  180. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  181. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +16 -0
  182. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +15 -0
  183. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  184. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +13 -15
  185. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  186. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +1 -5
  187. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  188. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +2 -59
  189. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  190. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  191. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  192. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -8
  193. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  194. package/types/components/Dropdown/Dropdown.tokens.d.ts +22 -24
  195. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  196. package/types/components/Dropdown/Dropdown.types.d.ts +40 -64
  197. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  198. package/types/components/Dropdown/index.d.ts +1 -3
  199. package/types/components/Dropdown/index.d.ts.map +1 -1
  200. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +56 -2
  201. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  202. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +2 -5
  203. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  204. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +38 -44
  205. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  206. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +1 -0
  207. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +1 -0
  208. package/types/components/Dropdown/ui/index.d.ts +1 -3
  209. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  210. package/types/components/Dropdown/utils/index.d.ts +2 -5
  211. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  212. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  213. package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
  214. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  215. package/types/components/Select/utils/index.d.ts +1 -1
  216. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  217. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  218. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  219. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  220. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  221. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  222. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  223. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  224. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +18 -0
  225. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  226. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  227. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  228. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  229. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  230. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  231. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  232. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +15 -0
  233. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  234. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +51 -0
  235. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +1 -0
  236. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  237. package/cjs/components/Combobox/utils/index.js +0 -23
  238. package/cjs/components/Combobox/utils/index.js.map +0 -1
  239. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  240. package/cjs/components/Dropdown/hooks/useHashMaps.js +0 -31
  241. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  242. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -200
  243. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  244. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -37
  245. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  246. package/cjs/components/Dropdown/reducers/pathReducer.js +0 -41
  247. package/cjs/components/Dropdown/reducers/pathReducer.js.map +0 -1
  248. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -119
  249. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  250. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  251. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -30
  252. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
  253. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
  254. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
  255. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -112
  256. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
  257. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
  258. package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
  259. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  260. package/es/components/Combobox/utils/index.js +0 -19
  261. package/es/components/Combobox/utils/index.js.map +0 -1
  262. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  263. package/es/components/Dropdown/hooks/useHashMaps.js +0 -27
  264. package/es/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  265. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -196
  266. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  267. package/es/components/Dropdown/reducers/focusedPathReducer.js +0 -33
  268. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  269. package/es/components/Dropdown/reducers/pathReducer.js +0 -37
  270. package/es/components/Dropdown/reducers/pathReducer.js.map +0 -1
  271. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -115
  272. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  273. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  274. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -23
  275. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +0 -1
  276. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +0 -4
  277. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +0 -4
  278. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -107
  279. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +0 -1
  280. package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +0 -1
  281. package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +0 -1
  282. package/styled-components/cjs/components/Combobox/utils/index.js +0 -23
  283. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +0 -29
  284. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -199
  285. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -40
  286. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +0 -44
  287. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -114
  288. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -5
  289. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -33
  290. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -5
  291. package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -119
  292. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -25
  293. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -11
  294. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
  295. package/styled-components/es/components/Combobox/utils/index.js +0 -15
  296. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +0 -23
  297. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -193
  298. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +0 -34
  299. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +0 -38
  300. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -108
  301. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.type.js +0 -1
  302. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -25
  303. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +0 -1
  304. package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +0 -111
  305. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -19
  306. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -5
  307. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -292
  308. package/types/components/Combobox/utils/index.d.ts +0 -4
  309. package/types/components/Combobox/utils/index.d.ts.map +0 -1
  310. package/types/components/Dropdown/hooks/useHashMaps.d.ts +0 -6
  311. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +0 -1
  312. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +0 -23
  313. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +0 -1
  314. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +0 -16
  315. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +0 -1
  316. package/types/components/Dropdown/reducers/pathReducer.d.ts +0 -20
  317. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +0 -1
  318. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +0 -5
  319. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +0 -1
  320. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -26
  321. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +0 -1
  322. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +0 -7
  323. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +0 -1
  324. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +0 -60
  325. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +0 -1
  326. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +0 -58
  327. package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +0 -1
  328. package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +0 -1
  329. package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +0 -1
  330. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  331. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +0 -13
  332. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +0 -1
  333. /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
  334. /package/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
  335. /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base_x642ct.css +0 -0
  336. /package/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base_x642ct.css +0 -0
  337. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
  338. /package/styled-components/cjs/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
  339. /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.js +0 -0
  340. /package/styled-components/es/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.js +0 -0
  341. /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_size/base.d.ts +0 -0
  342. /package/types/components/Dropdown/ui/{DropdownItemOld → DropdownItem}/variations/_view/base.d.ts +0 -0
  343. /package/types/examples/plasma_b2c/components/Dropdown/{Dropdown.config.d.ts → Normal/Dropdown.config.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.styles.js","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component } from '../../engines';\nimport { popoverConfig, popoverClasses } from '../Popover';\n\nimport { getCorrectHeight } from './utils';\nimport { DropdownProps } from './Dropdown.types';\nimport { tokens } from './Dropdown.tokens';\n\nconst Popover = component(popoverConfig);\n\nexport const StyledPopover = styled(Popover)`\n .${String(popoverClasses.wrapper)}, .${String(popoverClasses.target)} {\n display: block;\n }\n`;\n\nexport const Ul = styled.ul<{\n listHeight: DropdownProps['listHeight'];\n listOverflow: DropdownProps['listOverflow'];\n isInnerUl?: boolean;\n listWidth?: DropdownProps['listWidth'];\n}>`\n box-sizing: border-box;\n\n background: var(${tokens.background});\n box-shadow: var(${tokens.boxShadow});\n\n border-radius: var(${tokens.borderRadius});\n width: ${({ listWidth }) => listWidth || `var(${tokens.width})`};\n height: ${({ listHeight }) => (listHeight ? getCorrectHeight(listHeight) : 'auto')};\n overflow: ${({ listOverflow }) => listOverflow || 'initial'};\n\n margin: ${({ isInnerUl }) => (isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 var(${tokens.padding})` : 0)};\n padding: var(${tokens.padding});\n`;\n\nexport const base = css`\n display: inline-block;\n`;\n"],"names":["Popover","component","popoverConfig","_exp","StyledPopover","styled","name","class","propsAsIs","_exp7","_ref","listWidth","concat","tokens","width","_exp8","_ref2","listHeight","getCorrectHeight","_exp9","_ref3","listOverflow","_exp10","_ref4","isInnerUl","padding","Ul","vars","base"],"mappings":";;;;;;;AAUA,IAAMA,OAAO,gBAAGC,SAAS,CAACC,aAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GATvBA,SASuBA,IAAAA,GAAA;AAAA,EAAA,OAELH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMI,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EA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AA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAhB1G,IAAMC,EAAE,gBAAGrB,MAAM,CAAA,IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,IAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAmB,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAYXlB,KAAsD,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cACrDM,KAAwE,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cACtEI,KAA+C,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAEjDG,MAAmG,EAAA,CAAA;AAAA,GAAA;AAAA,CAEhH,EAAA;AAEM,IAAMM,IAAI,GAEhB;;;;"}
1
+ {"version":3,"file":"Dropdown.styles.js","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { component } from '../../engines';\nimport { popoverConfig, popoverClasses } from '../Popover';\n\nimport { tokens } from './Dropdown.tokens';\n\n// issue #823\nconst Popover = component(popoverConfig);\n\nexport const StyledPopover = styled(Popover)`\n .${String(popoverClasses.target)} {\n display: block;\n }\n`;\n\nexport const StyledDropdown = styled.div`\n box-sizing: border-box;\n\n background: var(${tokens.background});\n box-shadow: var(${tokens.boxShadow});\n\n border-radius: var(${tokens.borderRadius});\n width: var(${tokens.width});\n height: var(${tokens.height});\n\n padding: var(${tokens.paddingTop}) var(${tokens.paddingRight}) var(${tokens.paddingBottom})\n var(${tokens.paddingLeft});\n`;\n"],"names":["Popover","component","popoverConfig","_exp","StyledPopover","styled","name","class","propsAsIs","StyledDropdown"],"mappings":";;;;;AAOA;AACA,IAAMA,OAAO,gBAAGC,SAAS,CAACC,aAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GAPvBA,SAOuBA,IAAAA,GAAA;AAAA,EAAA,OAELH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMI,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAIlC,EAAA;AAEM,IAAMC,cAAc,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,gBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAYnC;;;;"}
@@ -0,0 +1,2 @@
1
+ .sn7uamp .popover-target{display:block;}
2
+ .sjr7fmv{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
@@ -1,36 +1,45 @@
1
1
  var classes = {
2
- dropdownRoot: 'dropdown-root',
3
- dropdownItemIsFocused: 'dropdown-item-is-focused',
4
- dropdownItemIsDisabled: 'dropdown-item-is-disabled',
5
- dropdownItemIsActive: 'dropdown-item-is-active',
6
- dropdownItemIsSelected: 'dropdownItemIsSelected'
2
+ dropdownItemIsSelected: 'dropdown-item-is-selected',
3
+ dropdownItemIsDisabled: 'dropdown-item-is-disabled'
7
4
  };
8
5
  var tokens = {
9
6
  background: '--plasma-dropdown-background',
10
7
  boxShadow: '--plasma-dropdown-box-shadow',
11
8
  width: '--plasma-dropdown-width',
9
+ height: '--plasma-dropdown-height',
12
10
  borderRadius: '--plasma-dropdown-border-radius',
13
- padding: '--plasma-dropdown-padding',
14
- disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',
11
+ paddingTop: '--plasma-dropdown-padding-top',
12
+ paddingRight: '--plasma-dropdown-padding-right',
13
+ paddingBottom: '--plasma-dropdown-padding-bottom',
14
+ paddingLeft: '--plasma-dropdown-padding-left',
15
15
  itemBackground: '--plasma-dropdown-item-background',
16
16
  itemColor: '--plasma-dropdown-item-color',
17
17
  itemBackgroundHover: '--plasma-dropdown-item-background-hover',
18
+ itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
19
+ itemColorSelected: '--plasma-dropdown-item-color-selected',
20
+ itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
21
+ itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
22
+ itemWidth: '--plasma-dropdown-item-width',
23
+ itemHeight: '--plasma-dropdown-item-height',
18
24
  itemBorderRadius: '--plasma-dropdown-item-border-radius',
19
25
  itemPaddingTop: '--plasma-dropdown-item-padding-top',
20
- itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
21
26
  itemPaddingRight: '--plasma-dropdown-item-padding-right',
22
27
  itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
23
- itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
24
28
  itemPaddingLeft: '--plasma-dropdown-item-padding-left',
29
+ itemMarginTop: '--plasma-dropdown-item-margin-top',
30
+ itemMarginRight: '--plasma-dropdown-item-margin-right',
31
+ itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
32
+ itemMarginLeft: '--plasma-dropdown-item-margin-left',
25
33
  itemFontFamily: '--plasma-dropdown-item-font-family',
26
34
  itemFontSize: '--plasma-dropdown-item-font-size',
27
35
  itemFontStyle: '--plasma-dropdown-item-font-style',
28
36
  itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
29
37
  itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
30
38
  itemFontLineHeight: '--plasma-dropdown-item-font-weight',
31
- disabledOpacity: '--plasma-dropdown-disabled-opacity',
32
- focusColor: '--plasma-dropdown-focus-color',
33
- // TODO: Remove below tokens as soon as they are no longer needed
39
+ itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
40
+ itemContentRightColor: '--plasma-dropdown-item-content-right-color',
41
+ itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
42
+ itemContentRightWidth: '--plasma-dropdown-item-content-right-width',
34
43
  footerBackground: '--plasma-dropdown-footer-background',
35
44
  footerWidth: '--plasma-dropdown-footer-width',
36
45
  footerHeight: '--plasma-dropdown-footer-height',
@@ -98,20 +107,8 @@ var tokens = {
98
107
  groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
99
108
  groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
100
109
  groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',
101
- itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
102
- itemColorSelected: '--plasma-dropdown-item-color-selected',
103
- itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
104
- itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
105
- itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
106
- itemContentRightColor: '--plasma-dropdown-item-content-right-color',
107
- itemWidth: '--plasma-dropdown-item-width',
108
- itemHeight: '--plasma-dropdown-item-height',
109
- itemMarginTop: '--plasma-dropdown-item-margin-top',
110
- itemMarginRight: '--plasma-dropdown-item-margin-right',
111
- itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
112
- itemMarginLeft: '--plasma-dropdown-item-margin-left',
113
- itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
114
- itemContentRightWidth: '--plasma-dropdown-item-content-right-width'
110
+ disabledOpacity: '--plasma-dropdown-disabled-opacity',
111
+ focusColor: '--plasma-dropdown-focus-color'
115
112
  };
116
113
 
117
114
  export { classes, tokens };
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.tokens.js","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownRoot: 'dropdown-root',\n dropdownItemIsFocused: 'dropdown-item-is-focused',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n dropdownItemIsActive: 'dropdown-item-is-active',\n dropdownItemIsSelected: 'dropdownItemIsSelected',\n};\n\nexport const tokens = {\n background: '--plasma-dropdown-background',\n boxShadow: '--plasma-dropdown-box-shadow',\n width: '--plasma-dropdown-width',\n borderRadius: '--plasma-dropdown-border-radius',\n padding: '--plasma-dropdown-padding',\n disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',\n\n itemBackground: '--plasma-dropdown-item-background',\n itemColor: '--plasma-dropdown-item-color',\n itemBackgroundHover: '--plasma-dropdown-item-background-hover',\n itemBorderRadius: '--plasma-dropdown-item-border-radius',\n itemPaddingTop: '--plasma-dropdown-item-padding-top',\n itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',\n itemPaddingRight: '--plasma-dropdown-item-padding-right',\n itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',\n itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',\n itemPaddingLeft: '--plasma-dropdown-item-padding-left',\n\n itemFontFamily: '--plasma-dropdown-item-font-family',\n itemFontSize: '--plasma-dropdown-item-font-size',\n itemFontStyle: '--plasma-dropdown-item-font-style',\n itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',\n itemFontLetterSpacing: '--plasma-dropdown-item-line-height',\n itemFontLineHeight: '--plasma-dropdown-item-font-weight',\n\n disabledOpacity: '--plasma-dropdown-disabled-opacity',\n focusColor: '--plasma-dropdown-focus-color',\n\n // TODO: Remove below tokens as soon as they are no longer needed\n footerBackground: '--plasma-dropdown-footer-background',\n footerWidth: '--plasma-dropdown-footer-width',\n footerHeight: '--plasma-dropdown-footer-height',\n footerPaddingTop: '--plasma-dropdown-footer-padding-top',\n footerPaddingRight: '--plasma-dropdown-footer-padding-right',\n footerPaddingBottom: '--plasma-dropdown-footer-padding-bottom',\n footerPaddingLeft: '--plasma-dropdown-footer-padding-left',\n footerMarginTop: '--plasma-dropdown-footer-margin-top',\n footerMarginRight: '--plasma-dropdown-footer-margin-right',\n footerMarginBottom: '--plasma-dropdown-footer-margin-bottom',\n footerMarginLeft: '--plasma-dropdown-footer-margin-left',\n footerFontFamily: '--plasma-dropdown-footer-font-family',\n footerFontSize: '--plasma-dropdown-footer-font-size',\n footerFontStyle: '--plasma-dropdown-footer-font-style',\n footerFontWeightBold: '--plasma-dropdown-footer-letter-spacing',\n footerFontLetterSpacing: '--plasma-dropdown-footer-line-height',\n footerFontLineHeight: '--plasma-dropdown-footer-font-weight',\n\n headerBackground: '--plasma-dropdown-header-background',\n headerWidth: '--plasma-dropdown-header-width',\n headerHeight: '--plasma-dropdown-header-height',\n headerPaddingTop: '--plasma-dropdown-header-padding-top',\n headerPaddingRight: '--plasma-dropdown-header-padding-right',\n headerPaddingBottom: '--plasma-dropdown-header-padding-bottom',\n headerPaddingLeft: '--plasma-dropdown-header-padding-left',\n headerMarginTop: '--plasma-dropdown-header-margin-top',\n headerMarginRight: '--plasma-dropdown-header-margin-right',\n headerMarginBottom: '--plasma-dropdown-header-margin-bottom',\n headerMarginLeft: '--plasma-dropdown-header-margin-left',\n headerFontFamily: '--plasma-dropdown-header-font-family',\n headerFontSize: '--plasma-dropdown-header-font-size',\n headerFontStyle: '--plasma-dropdown-header-font-style',\n headerFontWeightBold: '--plasma-dropdown-header-letter-spacing',\n headerFontLetterSpacing: '--plasma-dropdown-header-line-height',\n headerFontLineHeight: '--plasma-dropdown-header-font-weight',\n\n dividerColor: '--plasma-dropdown-divider-color',\n dividerWidth: '--plasma-dropdown-divider-width',\n dividerHeight: '--plasma-dropdown-divider-height',\n dividerMarginTop: '--plasma-dropdown-divider-margin-top',\n dividerMarginRight: '--plasma-dropdown-divider-margin-right',\n dividerMarginBottom: '--plasma-dropdown-divider-margin-bottom',\n dividerMarginLeft: '--plasma-dropdown-divider-margin-left',\n\n groupBackground: '--plasma-dropdown-group-background',\n groupWidth: '--plasma-dropdown-group-width',\n groupHeight: '--plasma-dropdown-group-height',\n groupPaddingTop: '--plasma-dropdown-group-padding-top',\n groupPaddingRight: '--plasma-dropdown-group-padding-right',\n groupPaddingBottom: '--plasma-dropdown-group-padding-bottom',\n groupPaddingLeft: '--plasma-dropdown-group-padding-left',\n groupMarginTop: '--plasma-dropdown-group-margin-top',\n groupMarginRight: '--plasma-dropdown-group-margin-right',\n groupMarginBottom: '--plasma-dropdown-group-margin-bottom',\n groupMarginLeft: '--plasma-dropdown-group-margin-left',\n groupLabelColor: '--plasma-dropdown-group-label-color',\n groupLabelFontFamily: '--plasma-dropdown-group-label-font-family',\n groupLabelFontSize: '--plasma-dropdown-group-label-font-size',\n groupLabelFontStyle: '--plasma-dropdown-group-label-font-style',\n groupLabelFontWeight: '--plasma-dropdown-group-label-font-weight',\n groupLabelLetterSpacing: '--plasma-dropdown-group-label-letter-spacing',\n groupLabelLineHeight: '--plasma-dropdown-group-label-line-height',\n groupLabelPaddingTop: '--plasma-dropdown-group-label-padding-top',\n groupLabelPaddingRight: '--plasma-dropdown-group-label-padding-right',\n groupLabelPaddingBottom: '--plasma-dropdown-group-label-padding-bottom',\n groupLabelPaddingLeft: '--plasma-dropdown-group-label-padding-left',\n groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',\n groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',\n groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',\n groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',\n\n itemBackgroundSelected: '--plasma-dropdown-item-background-selected',\n itemColorSelected: '--plasma-dropdown-item-color-selected',\n itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',\n itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',\n itemContentLeftColor: '--plasma-dropdown-item-content-left-color',\n itemContentRightColor: '--plasma-dropdown-item-content-right-color',\n itemWidth: '--plasma-dropdown-item-width',\n itemHeight: '--plasma-dropdown-item-height',\n itemMarginTop: '--plasma-dropdown-item-margin-top',\n itemMarginRight: '--plasma-dropdown-item-margin-right',\n itemMarginBottom: '--plasma-dropdown-item-margin-bottom',\n itemMarginLeft: '--plasma-dropdown-item-margin-left',\n itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',\n itemContentRightWidth: '--plasma-dropdown-item-content-right-width',\n};\n"],"names":["classes","dropdownRoot","dropdownItemIsFocused","dropdownItemIsDisabled","dropdownItemIsActive","dropdownItemIsSelected","tokens","background","boxShadow","width","borderRadius","padding","disclosureIconColor","itemBackground","itemColor","itemBackgroundHover","itemBorderRadius","itemPaddingTop","itemPaddingTopTight","itemPaddingRight","itemPaddingBottom","itemPaddingBottomTight","itemPaddingLeft","itemFontFamily","itemFontSize","itemFontStyle","itemFontWeightBold","itemFontLetterSpacing","itemFontLineHeight","disabledOpacity","focusColor","footerBackground","footerWidth","footerHeight","footerPaddingTop","footerPaddingRight","footerPaddingBottom","footerPaddingLeft","footerMarginTop","footerMarginRight","footerMarginBottom","footerMarginLeft","footerFontFamily","footerFontSize","footerFontStyle","footerFontWeightBold","footerFontLetterSpacing","footerFontLineHeight","headerBackground","headerWidth","headerHeight","headerPaddingTop","headerPaddingRight","headerPaddingBottom","headerPaddingLeft","headerMarginTop","headerMarginRight","headerMarginBottom","headerMarginLeft","headerFontFamily","headerFontSize","headerFontStyle","headerFontWeightBold","headerFontLetterSpacing","headerFontLineHeight","dividerColor","dividerWidth","dividerHeight","dividerMarginTop","dividerMarginRight","dividerMarginBottom","dividerMarginLeft","groupBackground","groupWidth","groupHeight","groupPaddingTop","groupPaddingRight","groupPaddingBottom","groupPaddingLeft","groupMarginTop","groupMarginRight","groupMarginBottom","groupMarginLeft","groupLabelColor","groupLabelFontFamily","groupLabelFontSize","groupLabelFontStyle","groupLabelFontWeight","groupLabelLetterSpacing","groupLabelLineHeight","groupLabelPaddingTop","groupLabelPaddingRight","groupLabelPaddingBottom","groupLabelPaddingLeft","groupLabelMarginTop","groupLabelMarginRight","groupLabelMarginBottom","groupLabelMarginLeft","itemBackgroundSelected","itemColorSelected","itemBackgroundSelectedHover","itemColorSelectedHover","itemContentLeftColor","itemContentRightColor","itemWidth","itemHeight","itemMarginTop","itemMarginRight","itemMarginBottom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4C;AACpEC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,2BAA2B,EAAE,kDAAkD;AAC/EC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,UAAU,EAAE,+BAA+B;AAC3CC,EAAAA,aAAa,EAAE,mCAAmC;AAClDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,qBAAqB,EAAE,4CAAA;AAC3B;;;;"}
1
+ {"version":3,"file":"Dropdown.tokens.js","sources":["../../../src/components/Dropdown/Dropdown.tokens.ts"],"sourcesContent":["export const classes = {\n dropdownItemIsSelected: 'dropdown-item-is-selected',\n dropdownItemIsDisabled: 'dropdown-item-is-disabled',\n};\n\nexport const tokens = {\n background: '--plasma-dropdown-background',\n boxShadow: '--plasma-dropdown-box-shadow',\n width: '--plasma-dropdown-width',\n height: '--plasma-dropdown-height',\n borderRadius: '--plasma-dropdown-border-radius',\n paddingTop: '--plasma-dropdown-padding-top',\n paddingRight: '--plasma-dropdown-padding-right',\n paddingBottom: '--plasma-dropdown-padding-bottom',\n paddingLeft: '--plasma-dropdown-padding-left',\n\n itemBackground: '--plasma-dropdown-item-background',\n itemColor: '--plasma-dropdown-item-color',\n itemBackgroundHover: '--plasma-dropdown-item-background-hover',\n itemBackgroundSelected: '--plasma-dropdown-item-background-selected',\n itemColorSelected: '--plasma-dropdown-item-color-selected',\n itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',\n itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',\n itemWidth: '--plasma-dropdown-item-width',\n itemHeight: '--plasma-dropdown-item-height',\n itemBorderRadius: '--plasma-dropdown-item-border-radius',\n itemPaddingTop: '--plasma-dropdown-item-padding-top',\n itemPaddingRight: '--plasma-dropdown-item-padding-right',\n itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',\n itemPaddingLeft: '--plasma-dropdown-item-padding-left',\n itemMarginTop: '--plasma-dropdown-item-margin-top',\n itemMarginRight: '--plasma-dropdown-item-margin-right',\n itemMarginBottom: '--plasma-dropdown-item-margin-bottom',\n itemMarginLeft: '--plasma-dropdown-item-margin-left',\n itemFontFamily: '--plasma-dropdown-item-font-family',\n itemFontSize: '--plasma-dropdown-item-font-size',\n itemFontStyle: '--plasma-dropdown-item-font-style',\n itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',\n itemFontLetterSpacing: '--plasma-dropdown-item-line-height',\n itemFontLineHeight: '--plasma-dropdown-item-font-weight',\n itemContentLeftColor: '--plasma-dropdown-item-content-left-color',\n itemContentRightColor: '--plasma-dropdown-item-content-right-color',\n itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',\n itemContentRightWidth: '--plasma-dropdown-item-content-right-width',\n\n footerBackground: '--plasma-dropdown-footer-background',\n footerWidth: '--plasma-dropdown-footer-width',\n footerHeight: '--plasma-dropdown-footer-height',\n footerPaddingTop: '--plasma-dropdown-footer-padding-top',\n footerPaddingRight: '--plasma-dropdown-footer-padding-right',\n footerPaddingBottom: '--plasma-dropdown-footer-padding-bottom',\n footerPaddingLeft: '--plasma-dropdown-footer-padding-left',\n footerMarginTop: '--plasma-dropdown-footer-margin-top',\n footerMarginRight: '--plasma-dropdown-footer-margin-right',\n footerMarginBottom: '--plasma-dropdown-footer-margin-bottom',\n footerMarginLeft: '--plasma-dropdown-footer-margin-left',\n footerFontFamily: '--plasma-dropdown-footer-font-family',\n footerFontSize: '--plasma-dropdown-footer-font-size',\n footerFontStyle: '--plasma-dropdown-footer-font-style',\n footerFontWeightBold: '--plasma-dropdown-footer-letter-spacing',\n footerFontLetterSpacing: '--plasma-dropdown-footer-line-height',\n footerFontLineHeight: '--plasma-dropdown-footer-font-weight',\n\n headerBackground: '--plasma-dropdown-header-background',\n headerWidth: '--plasma-dropdown-header-width',\n headerHeight: '--plasma-dropdown-header-height',\n headerPaddingTop: '--plasma-dropdown-header-padding-top',\n headerPaddingRight: '--plasma-dropdown-header-padding-right',\n headerPaddingBottom: '--plasma-dropdown-header-padding-bottom',\n headerPaddingLeft: '--plasma-dropdown-header-padding-left',\n headerMarginTop: '--plasma-dropdown-header-margin-top',\n headerMarginRight: '--plasma-dropdown-header-margin-right',\n headerMarginBottom: '--plasma-dropdown-header-margin-bottom',\n headerMarginLeft: '--plasma-dropdown-header-margin-left',\n headerFontFamily: '--plasma-dropdown-header-font-family',\n headerFontSize: '--plasma-dropdown-header-font-size',\n headerFontStyle: '--plasma-dropdown-header-font-style',\n headerFontWeightBold: '--plasma-dropdown-header-letter-spacing',\n headerFontLetterSpacing: '--plasma-dropdown-header-line-height',\n headerFontLineHeight: '--plasma-dropdown-header-font-weight',\n\n dividerColor: '--plasma-dropdown-divider-color',\n dividerWidth: '--plasma-dropdown-divider-width',\n dividerHeight: '--plasma-dropdown-divider-height',\n dividerMarginTop: '--plasma-dropdown-divider-margin-top',\n dividerMarginRight: '--plasma-dropdown-divider-margin-right',\n dividerMarginBottom: '--plasma-dropdown-divider-margin-bottom',\n dividerMarginLeft: '--plasma-dropdown-divider-margin-left',\n\n groupBackground: '--plasma-dropdown-group-background',\n groupWidth: '--plasma-dropdown-group-width',\n groupHeight: '--plasma-dropdown-group-height',\n groupPaddingTop: '--plasma-dropdown-group-padding-top',\n groupPaddingRight: '--plasma-dropdown-group-padding-right',\n groupPaddingBottom: '--plasma-dropdown-group-padding-bottom',\n groupPaddingLeft: '--plasma-dropdown-group-padding-left',\n groupMarginTop: '--plasma-dropdown-group-margin-top',\n groupMarginRight: '--plasma-dropdown-group-margin-right',\n groupMarginBottom: '--plasma-dropdown-group-margin-bottom',\n groupMarginLeft: '--plasma-dropdown-group-margin-left',\n groupLabelColor: '--plasma-dropdown-group-label-color',\n groupLabelFontFamily: '--plasma-dropdown-group-label-font-family',\n groupLabelFontSize: '--plasma-dropdown-group-label-font-size',\n groupLabelFontStyle: '--plasma-dropdown-group-label-font-style',\n groupLabelFontWeight: '--plasma-dropdown-group-label-font-weight',\n groupLabelLetterSpacing: '--plasma-dropdown-group-label-letter-spacing',\n groupLabelLineHeight: '--plasma-dropdown-group-label-line-height',\n groupLabelPaddingTop: '--plasma-dropdown-group-label-padding-top',\n groupLabelPaddingRight: '--plasma-dropdown-group-label-padding-right',\n groupLabelPaddingBottom: '--plasma-dropdown-group-label-padding-bottom',\n groupLabelPaddingLeft: '--plasma-dropdown-group-label-padding-left',\n groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',\n groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',\n groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',\n groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',\n\n disabledOpacity: '--plasma-dropdown-disabled-opacity',\n focusColor: '--plasma-dropdown-focus-color',\n};\n"],"names":["classes","dropdownItemIsSelected","dropdownItemIsDisabled","tokens","background","boxShadow","width","height","borderRadius","paddingTop","paddingRight","paddingBottom","paddingLeft","itemBackground","itemColor","itemBackgroundHover","itemBackgroundSelected","itemColorSelected","itemBackgroundSelectedHover","itemColorSelectedHover","itemWidth","itemHeight","itemBorderRadius","itemPaddingTop","itemPaddingRight","itemPaddingBottom","itemPaddingLeft","itemMarginTop","itemMarginRight","itemMarginBottom","itemMarginLeft","itemFontFamily","itemFontSize","itemFontStyle","itemFontWeightBold","itemFontLetterSpacing","itemFontLineHeight","itemContentLeftColor","itemContentRightColor","itemContentLeftWidth","itemContentRightWidth","footerBackground","footerWidth","footerHeight","footerPaddingTop","footerPaddingRight","footerPaddingBottom","footerPaddingLeft","footerMarginTop","footerMarginRight","footerMarginBottom","footerMarginLeft","footerFontFamily","footerFontSize","footerFontStyle","footerFontWeightBold","footerFontLetterSpacing","footerFontLineHeight","headerBackground","headerWidth","headerHeight","headerPaddingTop","headerPaddingRight","headerPaddingBottom","headerPaddingLeft","headerMarginTop","headerMarginRight","headerMarginBottom","headerMarginLeft","headerFontFamily","headerFontSize","headerFontStyle","headerFontWeightBold","headerFontLetterSpacing","headerFontLineHeight","dividerColor","dividerWidth","dividerHeight","dividerMarginTop","dividerMarginRight","dividerMarginBottom","dividerMarginLeft","groupBackground","groupWidth","groupHeight","groupPaddingTop","groupPaddingRight","groupPaddingBottom","groupPaddingLeft","groupMarginTop","groupMarginRight","groupMarginBottom","groupMarginLeft","groupLabelColor","groupLabelFontFamily","groupLabelFontSize","groupLabelFontStyle","groupLabelFontWeight","groupLabelLetterSpacing","groupLabelLineHeight","groupLabelPaddingTop","groupLabelPaddingRight","groupLabelPaddingBottom","groupLabelPaddingLeft","groupLabelMarginTop","groupLabelMarginRight","groupLabelMarginBottom","groupLabelMarginLeft","disabledOpacity","focusColor"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,sBAAsB,EAAE,2BAA2B;AACnDC,EAAAA,sBAAsB,EAAE,2BAAA;AAC5B,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,8BAA8B;AAC1CC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,KAAK,EAAE,yBAAyB;AAChCC,EAAAA,MAAM,EAAE,0BAA0B;AAClCC,EAAAA,YAAY,EAAE,iCAAiC;AAC/CC,EAAAA,UAAU,EAAE,+BAA+B;AAC3CC,EAAAA,YAAY,EAAE,iCAAiC;AAC/CC,EAAAA,aAAa,EAAE,kCAAkC;AACjDC,EAAAA,WAAW,EAAE,gCAAgC;AAE7CC,EAAAA,cAAc,EAAE,mCAAmC;AACnDC,EAAAA,SAAS,EAAE,8BAA8B;AACzCC,EAAAA,mBAAmB,EAAE,yCAAyC;AAC9DC,EAAAA,sBAAsB,EAAE,4CAA4C;AACpEC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAA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AC7CC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,kBAAkB,EAAE,wCAAwC;AAC5DC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,cAAc,EAAE,oCAAoC;AACpDC,EAAAA,gBAAgB,EAAE,sCAAsC;AACxDC,EAAAA,iBAAiB,EAAE,uCAAuC;AAC1DC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,kBAAkB,EAAE,yCAAyC;AAC7DC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,uBAAuB,EAAE,8CAA8C;AACvEC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,uBAAuB,EAAE,8CAA8C;AACvEC,EAAAA,qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,mBAAmB,EAAE,0CAA0C;AAC/DC,EAAAA,qBAAqB,EAAE,4CAA4C;AACnEC,EAAAA,sBAAsB,EAAE,6CAA6C;AACrEC,EAAAA,oBAAoB,EAAE,2CAA2C;AAEjEC,EAAAA,eAAe,EAAE,oCAAoC;AACrDC,EAAAA,UAAU,EAAE,+BAAA;AAChB;;;;"}
@@ -1,7 +1,4 @@
1
- .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
2
-
3
- .DropdownItem_styles_1o4szyu_s1gkzlls__6703745b{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
4
- .DropdownItem_styles_1o4szyu_sz6s14y__6703745b{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
5
- .DropdownItem_styles_1o4szyu_d1m97l2m__6703745b{line-height:0;color:var(--plasma-dropdown-disclosure-icon-color);}
6
- .DropdownItem_styles_1o4szyu_soib72h__6703745b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
7
- .DropdownItem_styles_1o4szyu_w6l2f0g__6703745b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;box-sizing:content-box;padding-top:var(--w6l2f0g-0);padding-right:var(--plasma-dropdown-item-padding-right);padding-bottom:var(--w6l2f0g-1);padding-left:var(--plasma-dropdown-item-padding-left);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:hover:not(.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsActive__6703745b{background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:focus{outline:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsFocused__6703745b:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}
1
+ .DropdownItem_styles_1juhjtq_s1gkzlls__cab27d09{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
2
+ .DropdownItem_styles_1juhjtq_sz6s14y__cab27d09{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
3
+ .DropdownItem_styles_1juhjtq_s1m97l2m__cab27d09{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
+ .DropdownItem_styles_1juhjtq_boib72h__cab27d09{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:100%;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:focus{outline:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_focusVisible__cab27d09:focus::before,.DropdownItem_styles_1juhjtq_boib72h__cab27d09[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsSelected__cab27d09:hover:not(.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_1juhjtq_boib72h__cab27d09.DropdownItem_styles_1juhjtq_dropdownItemIsDisabled__cab27d09{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -1,87 +1,107 @@
1
- import React, { useRef, useEffect } from 'react';
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';
2
4
  import { classes } from '../../Dropdown.tokens.js';
3
5
  import { cx } from '../../../../utils/index.js';
4
- import '@linaria/react';
5
- import { IconDisclosureRight } from '../../../_Icon/Icons/IconDisclosureRight.js';
6
- import { Wrapper, StyledContentLeft, StyledText, StyledContentRight, DisclosureIconWrapper } from './DropdownItem.styles.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';
7
10
 
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);
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
64
98
  }
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
- })))));
99
+ },
100
+ defaults: {
101
+ view: 'primary',
102
+ size: 'm'
103
+ }
84
104
  };
85
105
 
86
- export { DropdownItem };
106
+ export { dropdownItemConfig, dropdownItemRoot };
87
107
  //# sourceMappingURL=DropdownItem.js.map
@@ -1 +1 @@
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;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AAA,SAAAA;GAEXO,EAAAA,WAAW,iBAAIsB,KAAA,CAAAC,aAAA,CAACS,iBAAiB,EAAEhC,IAAAA,EAAAA,WAA+B,CAAC,eACpEsB,KAAA,CAAAC,aAAA,CAACU,UAAU,EAAEpC,IAAAA,EAAAA,KAAkB,CAAC,EAC/BI,YAAY,iBAAIqB,KAAA,CAAAC,aAAA,CAACW,kBAAkB,EAAA,IAAA,EAAEjC,YAAiC,CAAC,EAEvEvB,IAAI,CAACyD,KAAK,IAAIxC,QAAQ,KAAAyC,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
+ {"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;AACL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BAAiB,EAAEpC,IAAAA,EAAAA,oBAAoB,IAAI0B,WAA+B,CAAC,eAC5EI,KAAA,CAAAC,aAAA,CAACM,UAAU,QAAE9C,IAAiB,CAAC,eAC/BuC,KAAA,CAAAC,aAAA,CAACO,kBAAkB,QAAEpC,qBAAqB,IAAI2B,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,6 +1,6 @@
1
- import './DropdownItem.styles_1o4szyu.css';
1
+ import './DropdownItem.styles_1juhjtq.css';
2
2
  import { styled } from '@linaria/react';
3
- import { tokens } from '../../Dropdown.tokens.js';
3
+ import 'focus-visible';
4
4
 
5
5
  var StyledContentLeft = /*#__PURE__*/styled('div')({
6
6
  name: "StyledContentLeft",
@@ -12,96 +12,12 @@ 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
- });
20
15
  var StyledText = /*#__PURE__*/styled('div')({
21
16
  name: "StyledText",
22
- "class": "soib72h",
17
+ "class": "s1m97l2m",
23
18
  propsAsIs: false
24
19
  });
20
+ var base = "boib72h";
25
21
 
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 };
22
+ export { StyledContentLeft, StyledContentRight, StyledText, base };
107
23
  //# 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 { 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,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEtC,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,CAGvC,EAAA;AAEM,IAAME,qBAAqB,gBAAGL,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAG1C,EAAA;AAEM,IAAMG,UAAU,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA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G,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAEhGM,KAC0E,EAAA,CAAA;AAAA,GAAA;AAAA,CA4C/F;;;;"}
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;;;;"}