@salutejs/plasma-new-hope 0.78.0-canary.1185.8913944828.0 → 0.78.0-canary.1195.8913931601.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (423) hide show
  1. package/cjs/components/Combobox/Combobox.css +7 -12
  2. package/cjs/components/Combobox/Combobox.js +1 -1
  3. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -10
  4. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +3 -3
  5. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -10
  6. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +3 -3
  7. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -10
  8. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +3 -3
  9. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -10
  10. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +3 -3
  11. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  12. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +10 -81
  13. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  14. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +9 -21
  15. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  16. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  17. package/cjs/components/Dropdown/Dropdown.css +2 -20
  18. package/cjs/components/Dropdown/Dropdown.js +54 -138
  19. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  20. package/cjs/components/Dropdown/Dropdown.styles.js +7 -40
  21. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  22. package/cjs/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  23. package/cjs/components/Dropdown/Dropdown.tokens.js +24 -12
  24. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  25. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  26. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -79
  27. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  28. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +4 -31
  29. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  30. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  31. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js +9 -0
  32. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  33. package/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base_x642ct.css +1 -0
  34. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js +9 -0
  35. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  36. package/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base_x642ct.css +1 -0
  37. package/cjs/components/Dropdown/utils/index.js +13 -14
  38. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  39. package/cjs/components/IconButton/IconButton.css +25 -0
  40. package/cjs/components/IconButton/IconButton.js +84 -0
  41. package/cjs/components/IconButton/IconButton.js.map +1 -0
  42. package/cjs/components/IconButton/IconButton.styles.js +25 -0
  43. package/cjs/components/IconButton/IconButton.styles.js.map +1 -0
  44. package/cjs/components/IconButton/IconButton.styles_12iyaye.css +2 -0
  45. package/cjs/components/IconButton/IconButton.tokens.js +36 -0
  46. package/cjs/components/IconButton/IconButton.tokens.js.map +1 -0
  47. package/cjs/components/IconButton/variations/_disabled/base.js +9 -0
  48. package/cjs/components/IconButton/variations/_disabled/base.js.map +1 -0
  49. package/cjs/components/IconButton/variations/_disabled/base_x642ct.css +1 -0
  50. package/cjs/components/IconButton/variations/_focused/base.js +9 -0
  51. package/cjs/components/IconButton/variations/_focused/base.js.map +1 -0
  52. package/cjs/components/IconButton/variations/_focused/base_x642ct.css +1 -0
  53. package/cjs/components/IconButton/variations/_size/base.js +9 -0
  54. package/cjs/components/IconButton/variations/_size/base.js.map +1 -0
  55. package/cjs/components/IconButton/variations/_size/base_x642ct.css +1 -0
  56. package/cjs/components/IconButton/variations/_view/base.js +9 -0
  57. package/cjs/components/IconButton/variations/_view/base.js.map +1 -0
  58. package/cjs/components/IconButton/variations/_view/base_x642ct.css +1 -0
  59. package/cjs/components/Pagination/Pagination.css +7 -39
  60. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -39
  61. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -2
  62. package/cjs/components/Select/Select.css +7 -39
  63. package/cjs/components/Select/Select.js +3 -3
  64. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +6 -10
  65. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +3 -3
  66. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +6 -10
  67. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +3 -3
  68. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +6 -10
  69. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +3 -3
  70. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +6 -10
  71. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +3 -3
  72. package/cjs/components/Select/ui/SelectItem/SelectItem.css +7 -59
  73. package/cjs/components/Select/ui/SelectItem/SelectItem.js +4 -4
  74. package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  75. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
  76. package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  77. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_6h17aw.css +1 -0
  78. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  79. package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  80. package/cjs/index.css +11 -13
  81. package/cjs/index.js +8 -5
  82. package/cjs/index.js.map +1 -1
  83. package/es/components/Combobox/Combobox.css +7 -12
  84. package/es/components/Combobox/Combobox.js +1 -1
  85. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +6 -10
  86. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +3 -3
  87. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +6 -10
  88. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +3 -3
  89. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +6 -10
  90. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +3 -3
  91. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +6 -10
  92. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +3 -3
  93. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +23 -4
  94. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +11 -82
  95. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js.map +1 -1
  96. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +10 -19
  97. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  98. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_936wgl.css +1 -0
  99. package/es/components/Dropdown/Dropdown.css +2 -20
  100. package/es/components/Dropdown/Dropdown.js +60 -144
  101. package/es/components/Dropdown/Dropdown.js.map +1 -1
  102. package/es/components/Dropdown/Dropdown.styles.js +7 -39
  103. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  104. package/es/components/Dropdown/Dropdown.styles_1daxhqh.css +2 -0
  105. package/es/components/Dropdown/Dropdown.tokens.js +24 -12
  106. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  107. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -7
  108. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +100 -80
  109. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  110. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +4 -30
  111. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  112. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1juhjtq.css +4 -0
  113. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js +5 -0
  114. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js.map +1 -0
  115. package/es/components/Dropdown/ui/DropdownItem/variations/_size/base_x642ct.css +1 -0
  116. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js +5 -0
  117. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js.map +1 -0
  118. package/es/components/Dropdown/ui/DropdownItem/variations/_view/base_x642ct.css +1 -0
  119. package/es/components/Dropdown/utils/index.js +14 -14
  120. package/es/components/Dropdown/utils/index.js.map +1 -1
  121. package/es/components/IconButton/IconButton.css +25 -0
  122. package/es/components/IconButton/IconButton.js +79 -0
  123. package/es/components/IconButton/IconButton.js.map +1 -0
  124. package/es/components/IconButton/IconButton.styles.js +20 -0
  125. package/es/components/IconButton/IconButton.styles.js.map +1 -0
  126. package/es/components/IconButton/IconButton.styles_12iyaye.css +2 -0
  127. package/es/components/IconButton/IconButton.tokens.js +31 -0
  128. package/es/components/IconButton/IconButton.tokens.js.map +1 -0
  129. package/es/components/IconButton/variations/_disabled/base.js +5 -0
  130. package/es/components/IconButton/variations/_disabled/base.js.map +1 -0
  131. package/es/components/IconButton/variations/_disabled/base_x642ct.css +1 -0
  132. package/es/components/IconButton/variations/_focused/base.js +5 -0
  133. package/es/components/IconButton/variations/_focused/base.js.map +1 -0
  134. package/es/components/IconButton/variations/_focused/base_x642ct.css +1 -0
  135. package/es/components/IconButton/variations/_size/base.js +5 -0
  136. package/es/components/IconButton/variations/_size/base.js.map +1 -0
  137. package/es/components/IconButton/variations/_size/base_x642ct.css +1 -0
  138. package/es/components/IconButton/variations/_view/base.js +5 -0
  139. package/es/components/IconButton/variations/_view/base.js.map +1 -0
  140. package/es/components/IconButton/variations/_view/base_x642ct.css +1 -0
  141. package/es/components/Pagination/Pagination.css +7 -39
  142. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +7 -39
  143. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +2 -2
  144. package/es/components/Select/Select.css +7 -39
  145. package/es/components/Select/Select.js +3 -3
  146. package/es/components/Select/ui/SelectDivider/SelectDivider.css +6 -10
  147. package/es/components/Select/ui/SelectDivider/SelectDivider.js +3 -3
  148. package/es/components/Select/ui/SelectFooter/SelectFooter.css +6 -10
  149. package/es/components/Select/ui/SelectFooter/SelectFooter.js +3 -3
  150. package/es/components/Select/ui/SelectGroup/SelectGroup.css +6 -10
  151. package/es/components/Select/ui/SelectGroup/SelectGroup.js +3 -3
  152. package/es/components/Select/ui/SelectHeader/SelectHeader.css +6 -10
  153. package/es/components/Select/ui/SelectHeader/SelectHeader.js +3 -3
  154. package/es/components/Select/ui/SelectItem/SelectItem.css +7 -59
  155. package/es/components/Select/ui/SelectItem/SelectItem.js +4 -4
  156. package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
  157. package/es/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
  158. package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
  159. package/es/components/Select/ui/SelectItem/SelectItem.styles_6h17aw.css +1 -0
  160. package/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  161. package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
  162. package/es/index.css +11 -13
  163. package/es/index.js +3 -3
  164. package/package.json +2 -2
  165. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.js +2 -91
  166. package/styled-components/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +7 -27
  167. package/styled-components/cjs/components/Dropdown/Dropdown.js +54 -140
  168. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +7 -22
  169. package/styled-components/cjs/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  170. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +24 -12
  171. package/styled-components/cjs/components/Dropdown/index.js +1 -9
  172. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +105 -77
  173. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +15 -30
  174. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/base.js +8 -0
  175. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  176. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/base.js +8 -0
  177. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  178. package/styled-components/cjs/components/Dropdown/ui/index.js +13 -14
  179. package/styled-components/cjs/components/Dropdown/utils/index.js +13 -14
  180. package/styled-components/cjs/components/Dropdown/variations/_size/tokens.json +9 -1
  181. package/styled-components/cjs/components/Dropdown/variations/_view/tokens.json +1 -1
  182. package/styled-components/cjs/components/IconButton/IconButton.js +86 -0
  183. package/styled-components/cjs/components/IconButton/IconButton.styles.js +19 -0
  184. package/styled-components/cjs/components/IconButton/IconButton.tokens.js +34 -0
  185. package/styled-components/cjs/components/IconButton/index.js +31 -0
  186. package/styled-components/cjs/components/IconButton/variations/_disabled/base.js +8 -0
  187. package/styled-components/cjs/components/IconButton/variations/_disabled/tokens.json +1 -0
  188. package/styled-components/cjs/components/IconButton/variations/_focused/base.js +8 -0
  189. package/styled-components/cjs/components/IconButton/variations/_focused/tokens.json +1 -0
  190. package/styled-components/cjs/components/IconButton/variations/_size/base.js +8 -0
  191. package/styled-components/cjs/components/IconButton/variations/_size/tokens.json +1 -0
  192. package/styled-components/cjs/components/IconButton/variations/_view/base.js +8 -0
  193. package/styled-components/cjs/components/IconButton/variations/_view/tokens.json +1 -0
  194. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +2 -2
  195. package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  196. package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  197. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +27 -0
  198. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +13 -0
  199. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  200. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +27 -0
  201. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +13 -0
  202. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  203. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.config.js +46 -0
  204. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.js +11 -0
  205. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +65 -0
  206. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +27 -0
  207. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +13 -0
  208. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  209. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +27 -0
  210. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +13 -0
  211. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  212. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.config.js +46 -0
  213. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.js +11 -0
  214. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +65 -0
  215. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.config.js +22 -0
  216. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.js +21 -0
  217. package/styled-components/cjs/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  218. package/styled-components/cjs/index.js +11 -0
  219. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.js +3 -90
  220. package/styled-components/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.js +6 -23
  221. package/styled-components/es/components/Dropdown/Dropdown.js +55 -142
  222. package/styled-components/es/components/Dropdown/Dropdown.styles.js +5 -18
  223. package/styled-components/es/components/Dropdown/Dropdown.template-doc.mdx +80 -0
  224. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +24 -12
  225. package/styled-components/es/components/Dropdown/index.js +0 -1
  226. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +107 -78
  227. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +11 -27
  228. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/base.js +2 -0
  229. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_size/tokens.json +19 -0
  230. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/base.js +2 -0
  231. package/styled-components/es/components/Dropdown/ui/DropdownItem/variations/_view/tokens.json +9 -0
  232. package/styled-components/es/components/Dropdown/ui/index.js +1 -2
  233. package/styled-components/es/components/Dropdown/utils/index.js +13 -13
  234. package/styled-components/es/components/Dropdown/variations/_size/tokens.json +9 -1
  235. package/styled-components/es/components/Dropdown/variations/_view/tokens.json +1 -1
  236. package/styled-components/es/components/IconButton/IconButton.js +77 -0
  237. package/styled-components/es/components/IconButton/IconButton.styles.js +11 -0
  238. package/styled-components/es/components/IconButton/IconButton.tokens.js +28 -0
  239. package/styled-components/es/components/IconButton/index.js +2 -0
  240. package/styled-components/es/components/IconButton/variations/_disabled/base.js +2 -0
  241. package/styled-components/es/components/IconButton/variations/_disabled/tokens.json +1 -0
  242. package/styled-components/es/components/IconButton/variations/_focused/base.js +2 -0
  243. package/styled-components/es/components/IconButton/variations/_focused/tokens.json +1 -0
  244. package/styled-components/es/components/IconButton/variations/_size/base.js +2 -0
  245. package/styled-components/es/components/IconButton/variations/_size/tokens.json +1 -0
  246. package/styled-components/es/components/IconButton/variations/_view/base.js +2 -0
  247. package/styled-components/es/components/IconButton/variations/_view/tokens.json +1 -0
  248. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
  249. package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +2 -2
  250. package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +2 -1
  251. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.js +21 -0
  252. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.js +7 -0
  253. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +194 -0
  254. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.js +21 -0
  255. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.js +7 -0
  256. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  257. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.config.js +40 -0
  258. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.js +5 -0
  259. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +65 -0
  260. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.js +21 -0
  261. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.js +7 -0
  262. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +195 -0
  263. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.js +21 -0
  264. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.js +7 -0
  265. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +195 -0
  266. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.config.js +40 -0
  267. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.js +5 -0
  268. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +65 -0
  269. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.config.js +16 -0
  270. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.js +15 -0
  271. package/styled-components/es/examples/sds_engineer/components/Dropdown/Dropdown.stories.tsx +277 -0
  272. package/styled-components/es/index.js +1 -0
  273. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts +13 -15
  274. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
  275. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts +1 -5
  276. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
  277. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts +2 -59
  278. package/types/components/Combobox/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
  279. package/types/components/Dropdown/Dropdown.d.ts +4 -4
  280. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  281. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -8
  282. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  283. package/types/components/Dropdown/Dropdown.tokens.d.ts +22 -9
  284. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  285. package/types/components/Dropdown/Dropdown.types.d.ts +40 -64
  286. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  287. package/types/components/Dropdown/index.d.ts +1 -3
  288. package/types/components/Dropdown/index.d.ts.map +1 -1
  289. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts +56 -2
  290. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  291. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +1 -5
  292. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  293. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +38 -44
  294. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  295. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts +2 -0
  296. package/types/components/Dropdown/ui/DropdownItem/variations/_size/base.d.ts.map +1 -0
  297. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts +2 -0
  298. package/types/components/Dropdown/ui/DropdownItem/variations/_view/base.d.ts.map +1 -0
  299. package/types/components/Dropdown/ui/index.d.ts +1 -2
  300. package/types/components/Dropdown/ui/index.d.ts.map +1 -1
  301. package/types/components/Dropdown/utils/index.d.ts +3 -5
  302. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  303. package/types/components/IconButton/IconButton.d.ts +30 -0
  304. package/types/components/IconButton/IconButton.d.ts.map +1 -0
  305. package/types/components/IconButton/IconButton.styles.d.ts +4 -0
  306. package/types/components/IconButton/IconButton.styles.d.ts.map +1 -0
  307. package/types/components/IconButton/IconButton.tokens.d.ts +29 -0
  308. package/types/components/IconButton/IconButton.tokens.d.ts.map +1 -0
  309. package/types/components/IconButton/IconButton.types.d.ts +13 -0
  310. package/types/components/IconButton/IconButton.types.d.ts.map +1 -0
  311. package/types/components/IconButton/index.d.ts +4 -0
  312. package/types/components/IconButton/index.d.ts.map +1 -0
  313. package/types/components/IconButton/variations/_disabled/base.d.ts +2 -0
  314. package/types/components/IconButton/variations/_disabled/base.d.ts.map +1 -0
  315. package/types/components/IconButton/variations/_focused/base.d.ts +2 -0
  316. package/types/components/IconButton/variations/_focused/base.d.ts.map +1 -0
  317. package/types/components/IconButton/variations/_size/base.d.ts +2 -0
  318. package/types/components/IconButton/variations/_size/base.d.ts.map +1 -0
  319. package/types/components/IconButton/variations/_view/base.d.ts +2 -0
  320. package/types/components/IconButton/variations/_view/base.d.ts.map +1 -0
  321. package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
  322. package/types/components/Select/ui/SelectItem/SelectItem.type.d.ts +2 -2
  323. package/types/components/Select/utils/index.d.ts +1 -1
  324. package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
  325. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  326. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  327. package/types/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  328. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  329. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  330. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  331. package/types/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  332. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts +39 -0
  333. package/types/examples/plasma_b2c/components/IconButton/IconButton.config.d.ts.map +1 -0
  334. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +33 -0
  335. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -0
  336. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts +18 -0
  337. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.config.d.ts.map +1 -0
  338. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts +30 -0
  339. package/types/examples/plasma_web/components/Dropdown/Normal/Dropdown.d.ts.map +1 -0
  340. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts +18 -0
  341. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.config.d.ts.map +1 -0
  342. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts +30 -0
  343. package/types/examples/plasma_web/components/Dropdown/Tight/Dropdown.d.ts.map +1 -0
  344. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts +39 -0
  345. package/types/examples/plasma_web/components/IconButton/IconButton.config.d.ts.map +1 -0
  346. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +33 -0
  347. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -0
  348. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts +15 -0
  349. package/types/examples/sds_engineer/components/Dropdown/Dropdown.config.d.ts.map +1 -0
  350. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts +51 -0
  351. package/types/examples/sds_engineer/components/Dropdown/Dropdown.d.ts.map +1 -0
  352. package/types/index.d.ts +1 -0
  353. package/types/index.d.ts.map +1 -1
  354. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  355. package/cjs/components/Combobox/utils/index.js +0 -23
  356. package/cjs/components/Combobox/utils/index.js.map +0 -1
  357. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  358. package/cjs/components/Dropdown/hooks/useHashMaps.js +0 -31
  359. package/cjs/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  360. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -200
  361. package/cjs/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  362. package/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -37
  363. package/cjs/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  364. package/cjs/components/Dropdown/reducers/pathReducer.js +0 -41
  365. package/cjs/components/Dropdown/reducers/pathReducer.js.map +0 -1
  366. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -117
  367. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  368. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  369. package/cjs/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +0 -1
  370. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.styles_s4sk53.css +0 -4
  371. package/es/components/Combobox/utils/index.js +0 -19
  372. package/es/components/Combobox/utils/index.js.map +0 -1
  373. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  374. package/es/components/Dropdown/hooks/useHashMaps.js +0 -27
  375. package/es/components/Dropdown/hooks/useHashMaps.js.map +0 -1
  376. package/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -196
  377. package/es/components/Dropdown/hooks/useKeyboardNavigation.js.map +0 -1
  378. package/es/components/Dropdown/reducers/focusedPathReducer.js +0 -33
  379. package/es/components/Dropdown/reducers/focusedPathReducer.js.map +0 -1
  380. package/es/components/Dropdown/reducers/pathReducer.js +0 -37
  381. package/es/components/Dropdown/reducers/pathReducer.js.map +0 -1
  382. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -113
  383. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +0 -1
  384. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_1o4szyu.css +0 -5
  385. package/es/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +0 -1
  386. package/styled-components/cjs/components/Combobox/utils/index.js +0 -23
  387. package/styled-components/cjs/components/Dropdown/hooks/useHashMaps.js +0 -29
  388. package/styled-components/cjs/components/Dropdown/hooks/useKeyboardNavigation.js +0 -199
  389. package/styled-components/cjs/components/Dropdown/reducers/focusedPathReducer.js +0 -40
  390. package/styled-components/cjs/components/Dropdown/reducers/pathReducer.js +0 -44
  391. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -114
  392. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -25
  393. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -11
  394. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -294
  395. package/styled-components/es/components/Combobox/utils/index.js +0 -15
  396. package/styled-components/es/components/Dropdown/hooks/useHashMaps.js +0 -23
  397. package/styled-components/es/components/Dropdown/hooks/useKeyboardNavigation.js +0 -193
  398. package/styled-components/es/components/Dropdown/reducers/focusedPathReducer.js +0 -34
  399. package/styled-components/es/components/Dropdown/reducers/pathReducer.js +0 -38
  400. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +0 -108
  401. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +0 -19
  402. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.js +0 -5
  403. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +0 -294
  404. package/types/components/Combobox/utils/index.d.ts +0 -4
  405. package/types/components/Combobox/utils/index.d.ts.map +0 -1
  406. package/types/components/Dropdown/hooks/useHashMaps.d.ts +0 -6
  407. package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +0 -1
  408. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts +0 -23
  409. package/types/components/Dropdown/hooks/useKeyboardNavigation.d.ts.map +0 -1
  410. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +0 -16
  411. package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +0 -1
  412. package/types/components/Dropdown/reducers/pathReducer.d.ts +0 -20
  413. package/types/components/Dropdown/reducers/pathReducer.d.ts.map +0 -1
  414. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts +0 -5
  415. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +0 -1
  416. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +0 -26
  417. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +0 -1
  418. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +0 -1
  419. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +0 -13
  420. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +0 -1
  421. /package/styled-components/cjs/components/{Dropdown/ui/DropdownInner/DropdownInner.type.js → IconButton/IconButton.types.js} +0 -0
  422. /package/styled-components/es/components/{Dropdown/ui/DropdownInner/DropdownInner.type.js → IconButton/IconButton.types.js} +0 -0
  423. /package/types/examples/plasma_b2c/components/Dropdown/{Dropdown.config.d.ts → Normal/Dropdown.config.d.ts} +0 -0
@@ -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":"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"}
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":"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"}
@@ -1,6 +1,5 @@
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';
4
3
  import 'focus-visible';
5
4
 
6
5
  var StyledContentLeft = /*#__PURE__*/styled('div')({
@@ -13,37 +12,12 @@ var StyledContentRight = /*#__PURE__*/styled('div')({
13
12
  "class": "sz6s14y",
14
13
  propsAsIs: false
15
14
  });
16
- var DisclosureIconWrapper = /*#__PURE__*/styled('div')({
17
- name: "DisclosureIconWrapper",
18
- "class": "d1m97l2m",
19
- propsAsIs: false
20
- });
21
15
  var StyledText = /*#__PURE__*/styled('div')({
22
16
  name: "StyledText",
23
- "class": "soib72h",
17
+ "class": "s1m97l2m",
24
18
  propsAsIs: false
25
19
  });
26
- var _exp3 = function _exp3() {
27
- return function (_ref) {
28
- var variant = _ref.variant;
29
- return "var(".concat(variant === 'tight' ? tokens.itemPaddingTopTight : tokens.itemPaddingTop, ")");
30
- };
31
- };
32
- var _exp5 = function _exp5() {
33
- return function (_ref2) {
34
- var variant = _ref2.variant;
35
- return "var(".concat(variant === 'tight' ? tokens.itemPaddingBottomTight : tokens.itemPaddingBottom, ")");
36
- };
37
- };
38
- var Wrapper = /*#__PURE__*/styled('li')({
39
- name: "Wrapper",
40
- "class": "w6l2f0g",
41
- propsAsIs: false,
42
- vars: {
43
- "w6l2f0g-0": [/*#__PURE__*/_exp3()],
44
- "w6l2f0g-1": [/*#__PURE__*/_exp5()]
45
- }
46
- });
20
+ var base = "boib72h";
47
21
 
48
- export { DisclosureIconWrapper, StyledContentLeft, StyledContentRight, StyledText, Wrapper };
22
+ export { StyledContentLeft, StyledContentRight, StyledText, base };
49
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\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 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,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAG/B,EAAA;AA2DC,IAAAI,KAAA,GAjFgBA,SAiFhBA,KAAAA,GAAA;AAAA,EAAA,OAOiB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,OAAAA,GAAAA,IAAAA,CAAAA,OAAAA,CAAAA;AAAAA,IAAAA,OAAAA,MAAAA,CAAAA,MAAAA,CAAqBA,OAAO,KAAK,OAAO,GAAGC,MAAM,CAACC,mBAAmB,GAAGD,MAAM,CAACE,cAAe,EAAA,GAAA,CAAA,CAAA;GAAE,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GAxFpGA,SAwFoGA,KAAAA,GAAA;AAAA,EAAA,OAEhG,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGL,OAAAA,GAAAA,KAAAA,CAAAA,OAAAA,CAAAA;AAAAA,IAAAA,OAAAA,MAAAA,CAAAA,MAAAA,CACVA,OAAO,KAAK,OAAO,GAAGC,MAAM,CAACK,sBAAsB,GAAGL,MAAM,CAACM,iBAAkB,EAAA,GAAA,CAAA,CAAA;GAAE,CAAA;AAAA,CAAA,CAAA;AARzF,IAAMC,OAAO,gBAAGjB,MAAM,CAAA,IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,SAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAe,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAKVX,KAAmG,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAEhGM,KAC0E,EAAA,CAAA;AAAA,GAAA;AAAA,CA4C/F;;;;"}
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;;;;"}
@@ -0,0 +1,4 @@
1
+ .s1gkzlls{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
+ .sz6s14y{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
+ .s1m97l2m{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
4
+ .boib72h{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);}.boib72h:focus{outline:none;}.boib72h::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;}.boib72h.focus-visible:focus::before,.boib72h[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.boib72h:hover:not(.dropdown-item-is-disabled){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.boib72h.dropdown-item-is-selected{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.boib72h.dropdown-item-is-selected:hover:not(.dropdown-item-is-disabled){background:var(--plasma-dropdown-item-background-selected-hover);}.boib72h.dropdown-item-is-disabled{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "b1kixv7i";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Dropdown/ui/DropdownItem/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -0,0 +1,5 @@
1
+ import './base_x642ct.css';
2
+ var base = "bmznara";
3
+
4
+ export { base };
5
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../../../../../src/components/Dropdown/ui/DropdownItem/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,4 +1,5 @@
1
- import React, { Children } from 'react';
1
+ import { typeof as _typeof } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { isValidElement, cloneElement } from 'react';
2
3
 
3
4
  var getPlacement = function getPlacement(placement) {
4
5
  return "".concat(placement, "-start");
@@ -15,20 +16,19 @@ var getPlacements = function getPlacements(placements) {
15
16
  return getPlacement(placement);
16
17
  });
17
18
  };
18
- var getCorrectHeight = function getCorrectHeight(listHeight) {
19
- if (Number.isNaN(Number(listHeight))) {
20
- return listHeight.toString();
21
- }
22
- return "".concat(listHeight, "rem");
19
+ var isReactObject = function isReactObject(element) {
20
+ return _typeof(element) === 'object' || typeof element === 'function';
23
21
  };
24
- var childrenWithProps = function childrenWithProps(children, additionalProps) {
25
- return Children.map(children, function (child) {
26
- if ( /*#__PURE__*/React.isValidElement(child)) {
27
- return /*#__PURE__*/React.cloneElement(child, additionalProps);
28
- }
29
- return child;
30
- });
22
+ var getValidComponent = function getValidComponent(element, props) {
23
+ if ( /*#__PURE__*/isValidElement(element)) {
24
+ return /*#__PURE__*/cloneElement(element, props);
25
+ }
26
+ if (isReactObject(element)) {
27
+ var Component = element;
28
+ return /*#__PURE__*/React.createElement(Component, props);
29
+ }
30
+ return element;
31
31
  };
32
32
 
33
- export { childrenWithProps, getCorrectHeight, getPlacement, getPlacements };
33
+ export { getPlacement, getPlacements, getValidComponent };
34
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { Children, HTMLAttributes } from 'react';\n\nimport type { PopoverPlacementBasic } from '../../Popover';\nimport type { DropdownPlacement, DropdownPlacementBasic, DropdownProps } from '../Dropdown.types';\n\nexport const getPlacement = (placement: DropdownPlacement) => {\n return `${placement}-start` as PopoverPlacementBasic;\n};\n\nexport const getPlacements = (placements?: DropdownPlacement | DropdownPlacementBasic[]) => {\n if (!placements) {\n return;\n }\n const isArray = Array.isArray(placements);\n\n if (!isArray) {\n return getPlacement(placements as DropdownPlacement);\n }\n return ((placements || []) as DropdownPlacementBasic[]).map((placement) => getPlacement(placement));\n};\n\nexport const getCorrectHeight = (listHeight: Required<DropdownProps>['listHeight']): string => {\n if (Number.isNaN(Number(listHeight))) {\n return listHeight.toString();\n }\n return `${listHeight}rem`;\n};\n\nexport const childrenWithProps = (children: ReactNode, additionalProps: HTMLAttributes<HTMLLIElement>) =>\n Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, additionalProps);\n }\n return child;\n });\n"],"names":["getPlacement","placement","concat","getPlacements","placements","isArray","Array","map","getCorrectHeight","listHeight","Number","isNaN","toString","childrenWithProps","children","additionalProps","Children","child","React","isValidElement","cloneElement"],"mappings":";;IAMaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,SAA4B,EAAK;EAC1D,OAAAC,EAAAA,CAAAA,MAAA,CAAUD,SAAS,EAAA,QAAA,CAAA,CAAA;AACvB,EAAC;IAEYE,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,UAAyD,EAAK;EACxF,IAAI,CAACA,UAAU,EAAE;AACb,IAAA,OAAA;AACJ,GAAA;AACA,EAAA,IAAMC,OAAO,GAAGC,KAAK,CAACD,OAAO,CAACD,UAAU,CAAC,CAAA;EAEzC,IAAI,CAACC,OAAO,EAAE;IACV,OAAOL,YAAY,CAACI,UAA+B,CAAC,CAAA;AACxD,GAAA;EACA,OAAO,CAAEA,UAAU,IAAI,EAAE,EAA+BG,GAAG,CAAC,UAACN,SAAS,EAAA;IAAA,OAAKD,YAAY,CAACC,SAAS,CAAC,CAAA;GAAC,CAAA,CAAA;AACvG,EAAC;IAEYO,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,UAAiD,EAAa;EAC3F,IAAIC,MAAM,CAACC,KAAK,CAACD,MAAM,CAACD,UAAU,CAAC,CAAC,EAAE;AAClC,IAAA,OAAOA,UAAU,CAACG,QAAQ,EAAE,CAAA;AAChC,GAAA;EACA,OAAAV,EAAAA,CAAAA,MAAA,CAAUO,UAAU,EAAA,KAAA,CAAA,CAAA;AACxB,EAAC;AAEM,IAAMI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,QAAmB,EAAEC,eAA8C,EAAA;EAAA,OACjGC,QAAQ,CAACT,GAAG,CAACO,QAAQ,EAAE,UAACG,KAAK,EAAK;AAC9B,IAAA,kBAAIC,KAAK,CAACC,cAAc,CAACF,KAAK,CAAC,EAAE;AAC7B,MAAA,oBAAOC,KAAK,CAACE,YAAY,CAACH,KAAK,EAAEF,eAAe,CAAC,CAAA;AACrD,KAAA;AACA,IAAA,OAAOE,KAAK,CAAA;AAChB,GAAC,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Dropdown/utils/index.tsx"],"sourcesContent":["import React, { ElementType, ReactNode, cloneElement, isValidElement } from 'react';\n\nimport type { PopoverPlacementBasic } from '../../Popover';\nimport type { DropdownPlacement, DropdownPlacementBasic } from '../Dropdown.types';\n\nexport const getPlacement = (placement: DropdownPlacement) => {\n return `${placement}-start` as PopoverPlacementBasic;\n};\n\nexport const getPlacements = (placements?: DropdownPlacement | DropdownPlacementBasic[]) => {\n if (!placements) {\n return;\n }\n const isArray = Array.isArray(placements);\n\n if (!isArray) {\n return getPlacement(placements as DropdownPlacement);\n }\n return ((placements || []) as DropdownPlacementBasic[]).map((placement) => getPlacement(placement));\n};\n\nconst isReactObject = (element: any): element is ElementType => {\n return typeof element === 'object' || typeof element === 'function';\n};\n\nexport const getValidComponent = (element: ElementType | ReactNode, props: object) => {\n if (isValidElement(element)) {\n return cloneElement(element, props);\n }\n\n if (isReactObject(element)) {\n const Component = element;\n\n return <Component {...props} />;\n }\n\n return element;\n};\n"],"names":["getPlacement","placement","concat","getPlacements","placements","isArray","Array","map","isReactObject","element","_typeof","getValidComponent","props","isValidElement","cloneElement","Component","React","createElement"],"mappings":";;;IAKaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,SAA4B,EAAK;EAC1D,OAAAC,EAAAA,CAAAA,MAAA,CAAUD,SAAS,EAAA,QAAA,CAAA,CAAA;AACvB,EAAC;IAEYE,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,UAAyD,EAAK;EACxF,IAAI,CAACA,UAAU,EAAE;AACb,IAAA,OAAA;AACJ,GAAA;AACA,EAAA,IAAMC,OAAO,GAAGC,KAAK,CAACD,OAAO,CAACD,UAAU,CAAC,CAAA;EAEzC,IAAI,CAACC,OAAO,EAAE;IACV,OAAOL,YAAY,CAACI,UAA+B,CAAC,CAAA;AACxD,GAAA;EACA,OAAO,CAAEA,UAAU,IAAI,EAAE,EAA+BG,GAAG,CAAC,UAACN,SAAS,EAAA;IAAA,OAAKD,YAAY,CAACC,SAAS,CAAC,CAAA;GAAC,CAAA,CAAA;AACvG,EAAC;AAED,IAAMO,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,OAAY,EAA6B;EAC5D,OAAOC,OAAA,CAAOD,OAAO,CAAA,KAAK,QAAQ,IAAI,OAAOA,OAAO,KAAK,UAAU,CAAA;AACvE,CAAC,CAAA;AAEM,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIF,OAAgC,EAAEG,KAAa,EAAK;AAClF,EAAA,kBAAIC,cAAc,CAACJ,OAAO,CAAC,EAAE;AACzB,IAAA,oBAAOK,YAAY,CAACL,OAAO,EAAEG,KAAK,CAAC,CAAA;AACvC,GAAA;AAEA,EAAA,IAAIJ,aAAa,CAACC,OAAO,CAAC,EAAE;IACxB,IAAMM,SAAS,GAAGN,OAAO,CAAA;AAEzB,IAAA,oBAAOO,KAAA,CAAAC,aAAA,CAACF,SAAS,EAAKH,KAAQ,CAAC,CAAA;AACnC,GAAA;AAEA,EAAA,OAAOH,OAAO,CAAA;AAClB;;;;"}
@@ -0,0 +1,25 @@
1
+ .base_x95x4p_b1ty39ru__349bf40b{color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}.base_x95x4p_b1ty39ru__349bf40b:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background-color:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}.base_x95x4p_b1ty39ru__349bf40b:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background-color:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}
2
+
3
+ .base_1alzrso_be0ha5g__cdc67255{height:var(--plasma-button-height);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);}
4
+
5
+ .base_1t3ywu_b169l30m__aba40ddd[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.base_1t3ywu_b169l30m__aba40ddd[disabled]:hover,.base_1t3ywu_b169l30m__aba40ddd[disabled]:active{scale:none;color:var(--plasma-button-color);background-color:var(--plasma-button-background-color);}
6
+
7
+ .base_1kq737e_b187cmzt__d829f64a{position:relative;}.base_1kq737e_b187cmzt__d829f64a:focus{outline:none;}.base_1kq737e_b187cmzt__d829f64a::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_1kq737e_b187cmzt__d829f64a.base_1kq737e_focusVisible__d829f64a:focus::before,.base_1kq737e_b187cmzt__d829f64a[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}
8
+
9
+ .base_1lx0ute_bdz31nb__16e78f09.base_1lx0ute_buttonStretchingFixed__16e78f09{width:var(--plasma-button-width);}.base_1lx0ute_bdz31nb__16e78f09.base_1lx0ute_buttonStretchingFilled__16e78f09{width:100%;}.base_1lx0ute_bdz31nb__16e78f09.base_1lx0ute_buttonStretchingAuto__16e78f09{width:auto;}
10
+
11
+ .base_1gusher_b1chvyq8__76b641f5{color:var(--plasma-spinner-color);}
12
+
13
+ .base_ova69f_bw56nfh__55225c7f{width:var(--plasma-spinner-size);height:var(--plasma-spinner-size);}
14
+
15
+ .Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
16
+ .Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
17
+
18
+ .Button_styles_uqvh6u_bzw1898__b7cda4d5{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_uqvh6u_bzw1898__b7cda4d5{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_uqvh6u_bzw1898__b7cda4d5.Button_styles_uqvh6u_bzw1898__b7cda4d5.Button_styles_uqvh6u_buttonSquare__b7cda4d5{width:var(--plasma-button-height);padding:0;}
19
+ .Button_styles_uqvh6u_bdfuqwe__b7cda4d5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Button_styles_uqvh6u_bdfuqwe__b7cda4d5:not(:last-child){margin-right:0.375rem;}.Button_styles_uqvh6u_bdfuqwe__b7cda4d5:not(:first-child){margin-left:0.375rem;}
20
+ .Button_styles_uqvh6u_l9ypozh__b7cda4d5{opacity:var(--l9ypozh-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;height:100%;}
21
+ .Button_styles_uqvh6u_l4dfhbg__b7cda4d5{position:absolute;}
22
+ .Button_styles_uqvh6u_srdlazt__b7cda4d5{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
23
+
24
+ .IconButton_styles_12iyaye_b1ua728l__f373d2de.IconButton_styles_12iyaye_b1ua728l__f373d2de.IconButton_styles_12iyaye_iconButtonItem__f373d2de{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
25
+ .IconButton_styles_12iyaye_i5roq7j__f373d2de{--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}
@@ -0,0 +1,79 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { forwardRef } from 'react';
3
+ import { cx } from '../../utils/index.js';
4
+ import { IconButtonStyled, base } from './IconButton.styles.js';
5
+ import { classes } from './IconButton.tokens.js';
6
+ import { base as base$1 } from './variations/_view/base.js';
7
+ import { base as base$2 } from './variations/_size/base.js';
8
+ import { base as base$3 } from './variations/_disabled/base.js';
9
+ import { base as base$4 } from './variations/_focused/base.js';
10
+
11
+ var _excluded = ["children", "view", "size", "icon", "isLoading", "loader", "pin", "disabled", "focused", "outlined", "className", "style"];
12
+ var iconButtonRoot = function iconButtonRoot(Root) {
13
+ return /*#__PURE__*/forwardRef(function (props, ref) {
14
+ var children = props.children,
15
+ view = props.view,
16
+ size = props.size,
17
+ icon = props.icon,
18
+ isLoading = props.isLoading,
19
+ loader = props.loader,
20
+ pin = props.pin,
21
+ disabled = props.disabled,
22
+ focused = props.focused,
23
+ outlined = props.outlined,
24
+ className = props.className,
25
+ style = props.style,
26
+ rest = _objectWithoutProperties(props, _excluded);
27
+ return /*#__PURE__*/React.createElement(Root, {
28
+ view: view,
29
+ size: size,
30
+ focused: focused,
31
+ disabled: disabled,
32
+ className: classes.iconButtonItem
33
+ }, /*#__PURE__*/React.createElement(IconButtonStyled, _extends({
34
+ view: view,
35
+ size: size,
36
+ loader: loader,
37
+ isLoading: isLoading,
38
+ pin: pin,
39
+ disabled: disabled,
40
+ focused: focused,
41
+ outlined: outlined,
42
+ ref: ref,
43
+ square: true // Временное решение
44
+ ,
45
+ stretching: "fixed" // Не работает не понятное почему
46
+ ,
47
+ className: cx(className),
48
+ style: style
49
+ }, rest), icon || children));
50
+ });
51
+ };
52
+ var iconButtonConfig = {
53
+ name: 'Button',
54
+ tag: 'div',
55
+ layout: iconButtonRoot,
56
+ base: base,
57
+ variations: {
58
+ view: {
59
+ css: base$1
60
+ },
61
+ size: {
62
+ css: base$2
63
+ },
64
+ disabled: {
65
+ css: base$3,
66
+ attrs: true
67
+ },
68
+ focused: {
69
+ css: base$4
70
+ }
71
+ },
72
+ defaults: {
73
+ view: 'secondary',
74
+ size: 'm'
75
+ }
76
+ };
77
+
78
+ export { iconButtonConfig, iconButtonRoot };
79
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.js","sources":["../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { base, IconButtonStyled } from './IconButton.styles';\nimport type { IconButtonProps } from './IconButton.types';\nimport { classes } from './IconButton.tokens';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport { base as focusedCSS } from './variations/_focused/base';\n\nexport const iconButtonRoot = (Root: RootProps<HTMLButtonElement, IconButtonProps>) =>\n forwardRef<HTMLButtonElement, IconButtonProps>((props, ref) => {\n const {\n children,\n view,\n size,\n icon,\n isLoading,\n loader,\n pin,\n disabled,\n focused,\n outlined,\n className,\n style,\n ...rest\n } = props;\n\n return (\n <Root view={view} size={size} focused={focused} disabled={disabled} className={classes.iconButtonItem}>\n <IconButtonStyled\n view={view}\n size={size}\n loader={loader}\n isLoading={isLoading}\n pin={pin}\n disabled={disabled}\n focused={focused}\n outlined={outlined}\n ref={ref}\n square // Временное решение\n stretching=\"fixed\" // Не работает не понятное почему\n className={cx(className)}\n style={style}\n {...rest}\n >\n {icon || children}\n </IconButtonStyled>\n </Root>\n );\n });\n\nexport const iconButtonConfig = {\n name: 'Button',\n tag: 'div',\n layout: iconButtonRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n focused: {\n css: focusedCSS,\n },\n },\n defaults: {\n view: 'secondary',\n size: 'm',\n },\n};\n"],"names":["iconButtonRoot","Root","forwardRef","props","ref","children","view","size","icon","isLoading","loader","pin","disabled","focused","outlined","className","style","rest","_objectWithoutProperties","_excluded","React","createElement","classes","iconButtonItem","IconButtonStyled","_extends","square","stretching","cx","iconButtonConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","focusedCSS","defaults"],"mappings":";;;;;;;;;;;IAaaA,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,IAAmD,EAAA;AAAA,EAAA,oBAC9EC,UAAU,CAAqC,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC3D,IAAA,IACIC,QAAQ,GAaRF,KAAK,CAbLE,QAAQ;MACRC,IAAI,GAYJH,KAAK,CAZLG,IAAI;MACJC,IAAI,GAWJJ,KAAK,CAXLI,IAAI;MACJC,IAAI,GAUJL,KAAK,CAVLK,IAAI;MACJC,SAAS,GASTN,KAAK,CATLM,SAAS;MACTC,MAAM,GAQNP,KAAK,CARLO,MAAM;MACNC,GAAG,GAOHR,KAAK,CAPLQ,GAAG;MACHC,QAAQ,GAMRT,KAAK,CANLS,QAAQ;MACRC,OAAO,GAKPV,KAAK,CALLU,OAAO;MACPC,QAAQ,GAIRX,KAAK,CAJLW,QAAQ;MACRC,SAAS,GAGTZ,KAAK,CAHLY,SAAS;MACTC,KAAK,GAELb,KAAK,CAFLa,KAAK;AACFC,MAAAA,IAAI,GAAAC,wBAAA,CACPf,KAAK,EAAAgB,SAAA,CAAA,CAAA;AAET,IAAA,oBACIC,KAAA,CAAAC,aAAA,CAACpB,IAAI,EAAA;AAACK,MAAAA,IAAI,EAAEA,IAAK;AAACC,MAAAA,IAAI,EAAEA,IAAK;AAACM,MAAAA,OAAO,EAAEA,OAAQ;AAACD,MAAAA,QAAQ,EAAEA,QAAS;MAACG,SAAS,EAAEO,OAAO,CAACC,cAAAA;AAAe,KAAA,eAClGH,KAAA,CAAAC,aAAA,CAACG,gBAAgB,EAAAC,QAAA,CAAA;AACbnB,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,IAAI,EAAEA,IAAK;AACXG,MAAAA,MAAM,EAAEA,MAAO;AACfD,MAAAA,SAAS,EAAEA,SAAU;AACrBE,MAAAA,GAAG,EAAEA,GAAI;AACTC,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,OAAO,EAAEA,OAAQ;AACjBC,MAAAA,QAAQ,EAAEA,QAAS;AACnBV,MAAAA,GAAG,EAAEA,GAAI;AACTsB,MAAAA,MAAM,EAAC,IAAA;AAAA;MACPC,UAAU,EAAC,OAAO;AAAC;AACnBZ,MAAAA,SAAS,EAAEa,EAAE,CAACb,SAAS,CAAE;AACzBC,MAAAA,KAAK,EAAEA,KAAAA;AAAM,KAAA,EACTC,IAAI,CAEPT,EAAAA,IAAI,IAAIH,QACK,CAChB,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMwB,gBAAgB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEhC,cAAc;AACtBiC,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACR5B,IAAAA,IAAI,EAAE;AACF6B,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACD7B,IAAAA,IAAI,EAAE;AACF4B,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDzB,IAAAA,QAAQ,EAAE;AACNuB,MAAAA,GAAG,EAAEG,MAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD1B,IAAAA,OAAO,EAAE;AACLsB,MAAAA,GAAG,EAAEK,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNnC,IAAAA,IAAI,EAAE,WAAW;AACjBC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -0,0 +1,20 @@
1
+ import './IconButton.styles_12iyaye.css';
2
+ import { styled } from '@linaria/react';
3
+ import '@linaria/core';
4
+ import { component, mergeConfig } from '../../engines/common.js';
5
+ import { buttonConfig } from '../Button/Button.js';
6
+
7
+ var mergedConfig = /*#__PURE__*/mergeConfig(buttonConfig);
8
+ var Button = /*#__PURE__*/component(mergedConfig);
9
+ var base = "b1ua728l";
10
+ var _exp2 = function _exp2() {
11
+ return Button;
12
+ };
13
+ var IconButtonStyled = /*#__PURE__*/styled(_exp2())({
14
+ name: "IconButtonStyled",
15
+ "class": "i5roq7j",
16
+ propsAsIs: true
17
+ });
18
+
19
+ export { IconButtonStyled, base };
20
+ //# sourceMappingURL=IconButton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.styles.js","sources":["../../../src/components/IconButton/IconButton.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component, mergeConfig } from '../../engines';\nimport { buttonConfig, buttonTokens } from '../Button';\n\nimport { tokens, classes } from './IconButton.tokens';\n\nconst mergedConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedConfig);\n\nexport const base = css`\n &&.${classes.iconButtonItem} {\n display: inline-flex;\n }\n`;\n\nexport const IconButtonStyled = styled(Button)`\n ${buttonTokens.buttonColor}: var(${tokens.iconButtonColor});\n ${buttonTokens.buttonBackgroundColor}: var(${tokens.iconButtonBackgroundColor});\n\n ${buttonTokens.buttonColorHover}: var(${tokens.iconButtonColorHover});\n ${buttonTokens.buttonBackgroundColorHover}: var(${tokens.iconButtonBackgroundColorHover});\n\n ${buttonTokens.buttonColorActive}: var(${tokens.iconButtonColorActive});\n ${buttonTokens.buttonBackgroundColorActive}: var(${tokens.iconButtonBackgroundColorActive});\n\n\n ${buttonTokens.buttonFontFamily}: var(${tokens.iconButtonFontFamily});\n ${buttonTokens.buttonFontSize}: var(${tokens.iconButtonFontSize});\n ${buttonTokens.buttonFontStyle}: var(${tokens.iconButtonFontStyle});\n ${buttonTokens.buttonFontWeight}:var(${tokens.iconButtonFontWeight});\n ${buttonTokens.buttonLetterSpacing}: var(${tokens.iconButtonLetterSpacing});\n ${buttonTokens.buttonLineHeight}: var(${tokens.iconButtonLineHeight});\n\n ${buttonTokens.buttonWidth}: var(${tokens.iconButtonWidth});\n ${buttonTokens.buttonHeight}: var(${tokens.iconButtonHeight});\n ${buttonTokens.buttonRadius}: var(${tokens.iconButtonRadius});\n\n ${buttonTokens.buttonDisabledOpacity}: var(${tokens.iconButtonDisabledOpacity});\n ${buttonTokens.buttonFocusColor}: var(${tokens.iconButtonFocusColor});\n\n ${buttonTokens.buttonSpinnerSize}: var(${tokens.iconButtonSpinnerSize});\n ${buttonTokens.buttonSpinnerColor}: var(${tokens.iconButtonSpinnerColor});\n`;\n"],"names":["mergedConfig","mergeConfig","buttonConfig","Button","component","base","_exp2","IconButtonStyled","styled","name","class","propsAsIs"],"mappings":";;;;;AAQA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,YAAY,CAAC,CAAA;AAC9C,IAAMC,MAAM,gBAAGC,SAAS,CAACJ,YAAY,CAAC,CAAA;AAE/B,IAAMK,IAAI,GAIhB,WAAA;AAAC,IAAAC,KAAA,GAdgBA,SAchBA,KAAAA,GAAA;AAAA,EAAA,OAEqCH,MAAM,CAAA;AAAA,CAAA,CAAA;AAAtC,IAAMI,gBAAgB,gBAAGC,MAAM,CAAAF,KAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CA2BrC;;;;"}
@@ -0,0 +1,2 @@
1
+ .b1ua728l.b1ua728l.icon-button-item{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
2
+ .i5roq7j{--plasma-button-color:var(--plasma-icon-button-color);--plasma-button-background-color:var(--plasma-icon-button-background-color);--plasma-button-color-hover:var(--plasma-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-icon-button-background-color-active);--plasma-button-font-family:var(--plasma-icon-button-font-family);--plasma-button-font-size:var(--plasma-icon-button-font-size);--plasma-button-font-style:var(--plasma-icon-button-font-style);--plasma-button-font-weight:var(--plasma-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-icon-button-line-height);--plasma-button-width:var(--plasma-icon-button-width);--plasma-button-height:var(--plasma-icon-button-height);--plasma-button-radius:var(--plasma-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-icon-button-spinner-color);}