@salutejs/plasma-new-hope 0.72.0-canary.1161.8615189669.0 → 0.72.0-canary.1170.8599819805.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. package/cjs/components/Cell/Cell.js +0 -2
  2. package/cjs/components/Cell/Cell.js.map +1 -1
  3. package/cjs/components/Combobox/Combobox.css +10 -10
  4. package/cjs/components/Combobox/Combobox.styles.js +5 -5
  5. package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
  6. package/cjs/components/Combobox/{Combobox.styles_dw6hnk.css → Combobox.styles_17ei5vn.css} +1 -1
  7. package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  8. package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  9. package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  10. package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  11. package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  12. package/cjs/components/Dropdown/Dropdown.css +4 -4
  13. package/cjs/components/Dropdown/Dropdown.js +1 -0
  14. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  15. package/cjs/components/Pagination/Pagination.css +4 -4
  16. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  17. package/cjs/components/Popover/Popover.css +4 -4
  18. package/cjs/components/Popover/Popover.js +43 -33
  19. package/cjs/components/Popover/Popover.js.map +1 -1
  20. package/cjs/components/Popover/Popover.styles.js +1 -1
  21. package/cjs/components/Popover/Popover.styles.js.map +1 -1
  22. package/cjs/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
  23. package/cjs/components/Select/Select.css +4 -4
  24. package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
  25. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  26. package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  27. package/cjs/index.css +33 -33
  28. package/cjs/index.js +4 -39
  29. package/cjs/index.js.map +1 -1
  30. package/cjs/utils/index.js +1 -13
  31. package/cjs/utils/index.js.map +1 -1
  32. package/cjs/utils/react.js +2 -12
  33. package/cjs/utils/react.js.map +1 -1
  34. package/es/components/Cell/Cell.js +0 -2
  35. package/es/components/Cell/Cell.js.map +1 -1
  36. package/es/components/Combobox/Combobox.css +10 -10
  37. package/es/components/Combobox/Combobox.styles.js +5 -5
  38. package/es/components/Combobox/Combobox.styles.js.map +1 -1
  39. package/es/components/Combobox/{Combobox.styles_dw6hnk.css → Combobox.styles_17ei5vn.css} +1 -1
  40. package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
  41. package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
  42. package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
  43. package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
  44. package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
  45. package/es/components/Dropdown/Dropdown.css +4 -4
  46. package/es/components/Dropdown/Dropdown.js +1 -0
  47. package/es/components/Dropdown/Dropdown.js.map +1 -1
  48. package/es/components/Pagination/Pagination.css +4 -4
  49. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
  50. package/es/components/Popover/Popover.css +4 -4
  51. package/es/components/Popover/Popover.js +43 -33
  52. package/es/components/Popover/Popover.js.map +1 -1
  53. package/es/components/Popover/Popover.styles.js +1 -1
  54. package/es/components/Popover/Popover.styles.js.map +1 -1
  55. package/es/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
  56. package/es/components/Select/Select.css +4 -4
  57. package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
  58. package/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  59. package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
  60. package/es/index.css +33 -33
  61. package/es/index.js +0 -13
  62. package/es/index.js.map +1 -1
  63. package/es/utils/index.js +2 -11
  64. package/es/utils/index.js.map +1 -1
  65. package/es/utils/react.js +2 -9
  66. package/es/utils/react.js.map +1 -1
  67. package/package.json +2 -2
  68. package/styled-components/cjs/components/Cell/Cell.js +0 -2
  69. package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
  70. package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -0
  71. package/styled-components/cjs/components/Popover/Popover.js +43 -33
  72. package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
  73. package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  74. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +2 -2
  75. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +2 -2
  76. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +8 -11
  77. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  78. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +2 -2
  79. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  80. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -2
  81. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -2
  82. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +1 -1
  83. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +2 -2
  84. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +2 -2
  85. package/styled-components/cjs/examples/plasma_b2c/components/Header/Header.config.js +2 -2
  86. package/styled-components/cjs/examples/plasma_b2c/components/Header/Header.stories.tsx +1 -1
  87. package/styled-components/cjs/examples/plasma_b2c/components/Link/Link.config.js +1 -1
  88. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +2 -2
  89. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +2 -2
  90. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  91. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +1 -1
  92. package/styled-components/cjs/examples/plasma_b2c/components/Spinner/Spinner.config.js +1 -1
  93. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -2
  94. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +2 -2
  95. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +2 -2
  96. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +2 -2
  97. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -2
  98. package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +8 -11
  99. package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  100. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +2 -2
  101. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  102. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -2
  103. package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
  104. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +1 -1
  105. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.config.js +2 -2
  106. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +2 -2
  107. package/styled-components/cjs/examples/plasma_web/components/Header/Header.config.js +2 -2
  108. package/styled-components/cjs/examples/plasma_web/components/Header/Header.stories.tsx +1 -1
  109. package/styled-components/cjs/examples/plasma_web/components/Link/Link.config.js +1 -1
  110. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +2 -2
  111. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +2 -2
  112. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +1 -1
  113. package/styled-components/cjs/examples/plasma_web/components/Spinner/Spinner.config.js +1 -1
  114. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +2 -2
  115. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.config.js +2 -2
  116. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +2 -2
  117. package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.config.js +2 -2
  118. package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +2 -2
  119. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +8 -11
  120. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +1 -1
  121. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +2 -2
  122. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  123. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -2
  124. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
  125. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +1 -1
  126. package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.config.js +2 -2
  127. package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +2 -2
  128. package/styled-components/cjs/examples/sds_engineer/components/Link/Link.config.js +1 -1
  129. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +1 -1
  130. package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +1 -1
  131. package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +2 -2
  132. package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.config.js +2 -2
  133. package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +2 -2
  134. package/styled-components/cjs/index.js +0 -22
  135. package/styled-components/es/components/Cell/Cell.js +0 -2
  136. package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
  137. package/styled-components/es/components/Dropdown/Dropdown.js +1 -0
  138. package/styled-components/es/components/Popover/Popover.js +43 -33
  139. package/styled-components/es/components/Popover/Popover.styles.js +1 -1
  140. package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
  141. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +2 -2
  142. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +2 -2
  143. package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +8 -11
  144. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  145. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +2 -2
  146. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  147. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -2
  148. package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -2
  149. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +1 -1
  150. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.config.js +2 -2
  151. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +2 -2
  152. package/styled-components/es/examples/plasma_b2c/components/Header/Header.config.js +2 -2
  153. package/styled-components/es/examples/plasma_b2c/components/Header/Header.stories.tsx +1 -1
  154. package/styled-components/es/examples/plasma_b2c/components/Link/Link.config.js +1 -1
  155. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +2 -2
  156. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +2 -2
  157. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  158. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +1 -1
  159. package/styled-components/es/examples/plasma_b2c/components/Spinner/Spinner.config.js +1 -1
  160. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -2
  161. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.config.js +2 -2
  162. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +2 -2
  163. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +2 -2
  164. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -2
  165. package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +8 -11
  166. package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  167. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +2 -2
  168. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  169. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -2
  170. package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
  171. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +1 -1
  172. package/styled-components/es/examples/plasma_web/components/Counter/Counter.config.js +2 -2
  173. package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +2 -2
  174. package/styled-components/es/examples/plasma_web/components/Header/Header.config.js +2 -2
  175. package/styled-components/es/examples/plasma_web/components/Header/Header.stories.tsx +1 -1
  176. package/styled-components/es/examples/plasma_web/components/Link/Link.config.js +1 -1
  177. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +2 -2
  178. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +2 -2
  179. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +1 -1
  180. package/styled-components/es/examples/plasma_web/components/Spinner/Spinner.config.js +1 -1
  181. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +2 -2
  182. package/styled-components/es/examples/plasma_web/components/Toast/Toast.config.js +2 -2
  183. package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +2 -2
  184. package/styled-components/es/examples/sds_engineer/components/Badge/Badge.config.js +2 -2
  185. package/styled-components/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +2 -2
  186. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +8 -11
  187. package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +1 -1
  188. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +2 -2
  189. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
  190. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -2
  191. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
  192. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +1 -1
  193. package/styled-components/es/examples/sds_engineer/components/Counter/Counter.config.js +2 -2
  194. package/styled-components/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +2 -2
  195. package/styled-components/es/examples/sds_engineer/components/Link/Link.config.js +1 -1
  196. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +1 -1
  197. package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.config.js +1 -1
  198. package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.config.js +2 -2
  199. package/styled-components/es/examples/sds_engineer/components/Toast/Toast.config.js +2 -2
  200. package/styled-components/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +2 -2
  201. package/styled-components/es/index.js +0 -2
  202. package/types/components/Badge/Badge.types.d.ts +1 -1
  203. package/types/components/Cell/Cell.d.ts.map +1 -1
  204. package/types/components/Combobox/Combobox.styles.d.ts +8 -2
  205. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  206. package/types/components/Counter/Counter.types.d.ts +1 -1
  207. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  208. package/types/components/Dropdown/Dropdown.styles.d.ts +7 -1
  209. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  210. package/types/components/Indicator/Indicator.d.ts +4 -4
  211. package/types/components/Indicator/Indicator.types.d.ts +12 -2
  212. package/types/components/Indicator/Indicator.types.d.ts.map +1 -1
  213. package/types/components/Popover/Popover.d.ts +2 -2
  214. package/types/components/Popover/Popover.d.ts.map +1 -1
  215. package/types/components/Popover/Popover.styles.d.ts.map +1 -1
  216. package/types/components/Popover/Popover.types.d.ts +19 -12
  217. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  218. package/types/components/Select/Select.styles.d.ts +8 -2
  219. package/types/components/Select/Select.styles.d.ts.map +1 -1
  220. package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
  221. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts +1 -1
  222. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +1 -1
  223. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts +1 -4
  224. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts.map +1 -1
  225. package/types/examples/plasma_b2c/components/Button/Button.d.ts +1 -4
  226. package/types/examples/plasma_b2c/components/Button/Button.d.ts.map +1 -1
  227. package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
  228. package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  229. package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +2 -2
  230. package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +1 -1
  231. package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +1 -1
  232. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
  233. package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
  234. package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts +1 -1
  235. package/types/examples/plasma_b2c/components/Counter/Counter.d.ts +1 -1
  236. package/types/examples/plasma_b2c/components/Header/Header.config.d.ts +1 -1
  237. package/types/examples/plasma_b2c/components/Header/Header.d.ts +1 -1
  238. package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +4 -4
  239. package/types/examples/plasma_b2c/components/Link/Link.config.d.ts +1 -1
  240. package/types/examples/plasma_b2c/components/Link/Link.d.ts +1 -1
  241. package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts +2 -2
  242. package/types/examples/plasma_b2c/components/Pagination/Pagination.d.ts +2 -2
  243. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +7 -1
  244. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  245. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts +1 -1
  246. package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
  247. package/types/examples/plasma_b2c/components/Spinner/Spinner.config.d.ts +1 -1
  248. package/types/examples/plasma_b2c/components/Spinner/Spinner.d.ts +1 -1
  249. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +1 -1
  250. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +1 -1
  251. package/types/examples/plasma_b2c/components/Toast/Toast.config.d.ts +1 -1
  252. package/types/examples/plasma_b2c/components/Toast/Toast.d.ts +1 -1
  253. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts +1 -1
  254. package/types/examples/plasma_web/components/Badge/Badge.d.ts +1 -1
  255. package/types/examples/plasma_web/components/Button/Button.config.d.ts +1 -4
  256. package/types/examples/plasma_web/components/Button/Button.config.d.ts.map +1 -1
  257. package/types/examples/plasma_web/components/Button/Button.d.ts +1 -4
  258. package/types/examples/plasma_web/components/Button/Button.d.ts.map +1 -1
  259. package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
  260. package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  261. package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +2 -2
  262. package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +1 -1
  263. package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +1 -1
  264. package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
  265. package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
  266. package/types/examples/plasma_web/components/Counter/Counter.config.d.ts +1 -1
  267. package/types/examples/plasma_web/components/Counter/Counter.d.ts +1 -1
  268. package/types/examples/plasma_web/components/Header/Header.config.d.ts +1 -1
  269. package/types/examples/plasma_web/components/Header/Header.d.ts +1 -1
  270. package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +4 -4
  271. package/types/examples/plasma_web/components/Link/Link.config.d.ts +1 -1
  272. package/types/examples/plasma_web/components/Link/Link.d.ts +1 -1
  273. package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts +2 -2
  274. package/types/examples/plasma_web/components/Pagination/Pagination.d.ts +2 -2
  275. package/types/examples/plasma_web/components/Popover/Popover.d.ts +7 -1
  276. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  277. package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts +1 -1
  278. package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
  279. package/types/examples/plasma_web/components/Spinner/Spinner.config.d.ts +1 -1
  280. package/types/examples/plasma_web/components/Spinner/Spinner.d.ts +1 -1
  281. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +1 -1
  282. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +1 -1
  283. package/types/examples/plasma_web/components/Toast/Toast.config.d.ts +1 -1
  284. package/types/examples/plasma_web/components/Toast/Toast.d.ts +1 -1
  285. package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts +1 -1
  286. package/types/examples/sds_engineer/components/Badge/Badge.d.ts +1 -1
  287. package/types/examples/sds_engineer/components/Button/Button.config.d.ts +1 -4
  288. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -1
  289. package/types/examples/sds_engineer/components/Button/Button.d.ts +1 -4
  290. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -1
  291. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
  292. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  293. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +2 -2
  294. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +1 -1
  295. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +1 -1
  296. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +1 -1
  297. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +1 -1
  298. package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts +1 -1
  299. package/types/examples/sds_engineer/components/Counter/Counter.d.ts +1 -1
  300. package/types/examples/sds_engineer/components/Link/Link.config.d.ts +1 -1
  301. package/types/examples/sds_engineer/components/Link/Link.d.ts +1 -1
  302. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +7 -1
  303. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
  304. package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts +1 -1
  305. package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts +1 -1
  306. package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts +1 -1
  307. package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts +1 -1
  308. package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts +1 -1
  309. package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +1 -1
  310. package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts +1 -1
  311. package/types/examples/sds_engineer/components/Toast/Toast.d.ts +1 -1
  312. package/types/index.d.ts +0 -2
  313. package/types/index.d.ts.map +1 -1
  314. package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
  315. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -40
  316. package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  317. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
  318. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  319. package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  320. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
  321. package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  322. package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  323. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
  324. package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  325. package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  326. package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
  327. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -40
  328. package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  329. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
  330. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  331. package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  332. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
  333. package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  334. package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  335. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
  336. package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  337. package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  338. package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
  339. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -40
  340. package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  341. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
  342. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  343. package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  344. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
  345. package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  346. package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  347. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
  348. package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  349. package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  350. package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
  351. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -40
  352. package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  353. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
  354. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  355. package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  356. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
  357. package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  358. package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  359. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
  360. package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  361. package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
  362. package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
  363. package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -35
  364. package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
  365. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
  366. package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
  367. package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
  368. package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
  369. package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
  370. package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
  371. package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
  372. package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
  373. package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
  374. package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
  375. package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -35
  376. package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
  377. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
  378. package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
  379. package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
  380. package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
  381. package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
  382. package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
  383. package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
  384. package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
  385. package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
  386. package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
  387. package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -35
  388. package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
  389. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
  390. package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
  391. package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
  392. package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
  393. package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
  394. package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
  395. package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
  396. package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
  397. package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
  398. package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
  399. package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -35
  400. package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
  401. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
  402. package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
  403. package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
  404. package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
  405. package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
  406. package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
  407. package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
  408. package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
  409. package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
@@ -12,7 +12,7 @@ var base = require('./variations/_view/base.js');
12
12
  var Popover_styles = require('./Popover.styles.js');
13
13
  var Popover_tokens = require('./Popover.tokens.js');
14
14
 
15
- var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
15
+ var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
16
16
  var ESCAPE_KEYCODE = 27;
17
17
  var POPOVER_PORTAL_ID = 'plasma-popover-root';
18
18
 
@@ -21,34 +21,41 @@ var POPOVER_PORTAL_ID = 'plasma-popover-root';
21
21
  * и вызова по клику либо ховеру.
22
22
  */
23
23
  var popoverRoot = function popoverRoot(Root) {
24
- return /*#__PURE__*/React.forwardRef(function (_ref, outerRootRef) {
24
+ return /*#__PURE__*/React.forwardRef(function (props, outerRootRef) {
25
25
  var _placement$;
26
- var target = _ref.target,
27
- children = _ref.children,
28
- isOpen = _ref.isOpen,
29
- _ref$trigger = _ref.trigger,
30
- trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
31
- hasArrow = _ref.hasArrow,
32
- _ref$frame = _ref.frame,
33
- frame = _ref$frame === void 0 ? 'document' : _ref$frame,
34
- className = _ref.className,
35
- _ref$placement = _ref.placement,
36
- placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
37
- _ref$offset = _ref.offset,
38
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
39
- zIndex = _ref.zIndex,
40
- _ref$isFocusTrapped = _ref.isFocusTrapped,
41
- isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
42
- _ref$closeOnEsc = _ref.closeOnEsc,
43
- closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
44
- _ref$preventOverflow = _ref.preventOverflow,
45
- preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
46
- _ref$usePortal = _ref.usePortal,
47
- usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
48
- view = _ref.view,
49
- onToggle = _ref.onToggle,
50
- closeOnOverlayClick = _ref.closeOnOverlayClick,
51
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
26
+ var target = props.target,
27
+ children = props.children,
28
+ isOpen = props.isOpen,
29
+ _props$trigger = props.trigger,
30
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
31
+ hasArrow = props.hasArrow,
32
+ _props$frame = props.frame,
33
+ frame = _props$frame === void 0 ? 'document' : _props$frame,
34
+ className = props.className,
35
+ _props$placement = props.placement,
36
+ placement = _props$placement === void 0 ? 'auto' : _props$placement,
37
+ _props$offset = props.offset,
38
+ offset = _props$offset === void 0 ? [0, 0] : _props$offset,
39
+ zIndex = props.zIndex,
40
+ _props$isFocusTrapped = props.isFocusTrapped,
41
+ isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
42
+ _props$closeOnEsc = props.closeOnEsc,
43
+ closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
44
+ _props$preventOverflo = props.preventOverflow,
45
+ preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
46
+ _props$usePortal = props.usePortal,
47
+ usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
48
+ view = props.view,
49
+ onToggle = props.onToggle,
50
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
51
+ var closeOnOverlayClick = true;
52
+ var closeOnBeyondTargetHover = true;
53
+ if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
54
+ closeOnOverlayClick = false;
55
+ }
56
+ if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
57
+ closeOnBeyondTargetHover = false;
58
+ }
52
59
  var rootRef = React.useRef(null);
53
60
  var popoverRef = React.useRef(null);
54
61
  var handleRef = plasmaCore.useForkRef(rootRef, outerRootRef);
@@ -148,7 +155,7 @@ var popoverRoot = function popoverRoot(Root) {
148
155
  return function () {
149
156
  return document.removeEventListener('click', onDocumentClick);
150
157
  };
151
- }, [isOpen, onToggle]);
158
+ }, [closeOnOverlayClick, isOpen, onToggle]);
152
159
  React.useEffect(function () {
153
160
  window.addEventListener('keydown', onEscape);
154
161
  return function () {
@@ -195,19 +202,22 @@ var popoverRoot = function popoverRoot(Root) {
195
202
  Promise.resolve().then(forceUpdate);
196
203
  }, [isOpen, children, forceUpdate]);
197
204
  return /*#__PURE__*/React.createElement(Popover_styles.StyledWrapper, {
198
- className: Popover_tokens.classes.wrapper,
199
- onMouseEnter: onMouseEnter,
200
- onMouseLeave: onMouseLeave
205
+ className: Popover_tokens.classes.wrapper
201
206
  }, /*#__PURE__*/React.createElement(Popover_styles.StyledRoot, {
202
207
  ref: handleRef,
203
208
  onClick: onClick,
209
+ onMouseEnter: onMouseEnter,
210
+ onMouseLeave: onMouseLeave,
204
211
  onFocus: onFocus,
205
212
  onBlur: onBlur,
206
213
  className: index.cx(className, Popover_tokens.classes.target)
207
214
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
208
215
  view: view,
209
216
  className: className
210
- }, rest), /*#__PURE__*/React.createElement(Popover_styles.StyledPopover, _rollupPluginBabelHelpers.extends({}, attributes.popper, {
217
+ }, rest, {
218
+ onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
219
+ onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
220
+ }), /*#__PURE__*/React.createElement(Popover_styles.StyledPopover, _rollupPluginBabelHelpers.extends({}, attributes.popper, {
211
221
  className: Popover_tokens.classes.root,
212
222
  ref: popoverForkRef,
213
223
  style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, styles.popper), {
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import React, { useRef, useCallback, useEffect, useState, forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport ReactDOM from 'react-dom';\nimport { usePopper } from 'react-popper';\nimport { useFocusTrap, useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines/types';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport type { PopoverPlacement, PopoverProps } from './Popover.types';\nimport { StyledArrow, StyledPopover, StyledRoot, StyledWrapper } from './Popover.styles';\nimport { classes } from './Popover.tokens';\n\nexport const ESCAPE_KEYCODE = 27;\nexport const POPOVER_PORTAL_ID = 'plasma-popover-root';\n\n/**\n * Всплывающее окно с возможностью позиционирования\n * и вызова по клику либо ховеру.\n */\nexport const popoverRoot = (Root: RootProps<HTMLDivElement, PopoverProps>) =>\n forwardRef<HTMLDivElement, PopoverProps>(\n (\n {\n target,\n children,\n isOpen,\n trigger = 'click',\n hasArrow,\n frame = 'document',\n className,\n placement = 'auto',\n offset = [0, 0],\n zIndex,\n isFocusTrapped = true,\n closeOnEsc = true,\n preventOverflow = true,\n usePortal = false,\n view,\n onToggle,\n closeOnOverlayClick,\n ...rest\n },\n outerRootRef,\n ) => {\n const rootRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n const portalRef = useRef<HTMLElement | null>(null);\n\n const trapRef = useFocusTrap(isOpen && isFocusTrapped);\n\n const popoverForkRef = useForkRef<HTMLDivElement>(popoverRef, trapRef);\n\n const [arrowElement, setArrowElement] = useState<HTMLSpanElement | null>(null);\n\n const [, forceRender] = useState(false);\n\n const isAutoArray = Array.isArray(placement);\n const isAuto = isAutoArray || (placement as PopoverPlacement).startsWith('auto');\n\n const initialStyles = {\n visibility: isOpen ? 'visible' : 'hidden',\n opacity: isOpen ? 1 : 0,\n } as CSSProperties;\n\n const { styles, attributes, forceUpdate } = usePopper(rootRef.current, popoverRef.current, {\n // TODO: #1121\n // eslint-disable-next-line no-nested-ternary\n placement: isAutoArray\n ? placement[0]?.endsWith('start')\n ? 'auto-start'\n : 'auto'\n : (placement as PopoverPlacement),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n mainAxis: preventOverflow,\n },\n },\n { name: 'offset', options: { offset: [offset[0], offset[1]] } },\n {\n name: 'flip',\n enabled: isAuto,\n options: {\n allowedAutoPlacements: isAutoArray ? (placement as PopoverPlacement[]) : [],\n },\n },\n {\n name: 'arrow',\n options: {\n element: arrowElement,\n },\n },\n ],\n });\n\n const onEscape = useCallback(\n (event: KeyboardEvent) => {\n if (isOpen && closeOnEsc && event.keyCode === ESCAPE_KEYCODE) {\n onToggle?.(false, event);\n }\n },\n [closeOnEsc, isOpen, onToggle],\n );\n\n const onDocumentClick = useCallback(\n (event: MouseEvent) => {\n if (isOpen && closeOnOverlayClick && onToggle) {\n const targetIsRoot = event.target === rootRef.current;\n const rootHasTarget = rootRef.current?.contains(event.target as Element);\n\n if (!targetIsRoot && !rootHasTarget) {\n onToggle(false, event);\n }\n }\n },\n [closeOnOverlayClick, isOpen, onToggle],\n );\n\n const onClick = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'click') {\n const targetIsPopover = event.target === popoverRef.current;\n const rootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n onToggle?.(!isOpen, event);\n }\n }\n },\n [trigger, isOpen, onToggle],\n );\n\n const onMouseEnter = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onMouseLeave = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onBlur = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n useEffect(() => {\n document.addEventListener('click', onDocumentClick);\n return () => document.removeEventListener('click', onDocumentClick);\n }, [isOpen, onToggle]);\n\n useEffect(() => {\n window.addEventListener('keydown', onEscape);\n return () => window.removeEventListener('keydown', onEscape);\n }, [closeOnEsc, isOpen, onToggle]);\n\n useEffect(() => {\n let portal = document.getElementById(POPOVER_PORTAL_ID);\n\n if (typeof frame !== 'string' && frame && frame.current) {\n portal = frame.current;\n }\n\n if (!usePortal) {\n portal = rootRef.current;\n }\n\n if (!portal) {\n portal = document.createElement('div');\n portal.setAttribute('id', POPOVER_PORTAL_ID);\n\n if (typeof frame === 'string' && frame !== 'document') {\n document.getElementById(frame)?.appendChild(portal);\n } else {\n document.body.appendChild(portal);\n }\n }\n\n portalRef.current = portal;\n\n /**\n * Изменение стейта нужно для того, чтобы Popup\n * отобразился после записи DOM элемента в portalRef.current\n */\n forceRender(true);\n }, []);\n\n useEffect(() => {\n if (!isOpen || !forceUpdate) {\n return;\n }\n\n /*\n * INFO: Метод forceUpdate содержит в себе flushSync и приводит\n * к повторному рендеру компонента, который уже находится в процессе рендера.\n * Данный хак, нужен для того, чтобы это поведение избежать и перенаправить\n * вызов метода в очередь микрозадач.\n */\n Promise.resolve().then(forceUpdate);\n }, [isOpen, children, forceUpdate]);\n\n return (\n <StyledWrapper className={classes.wrapper} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n <StyledRoot\n ref={handleRef}\n onClick={onClick}\n onFocus={onFocus}\n onBlur={onBlur}\n className={cx(className, classes.target)}\n >\n {target}\n </StyledRoot>\n {children &&\n portalRef.current &&\n ReactDOM.createPortal(\n <Root view={view} className={className} {...rest}>\n <StyledPopover\n {...attributes.popper}\n className={classes.root}\n ref={popoverForkRef}\n style={{\n ...styles.popper,\n ...{ display: isOpen ? 'block' : 'none' },\n ...initialStyles,\n }}\n zIndex={zIndex}\n >\n {hasArrow && (\n <StyledArrow\n className={classes.arrow}\n ref={setArrowElement}\n style={styles.arrow}\n {...attributes.arrow}\n />\n )}\n {children}\n </StyledPopover>\n </Root>,\n portalRef.current,\n )}\n </StyledWrapper>\n );\n },\n );\n\nexport const popoverConfig = {\n name: 'Popover',\n tag: 'div',\n layout: popoverRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["ESCAPE_KEYCODE","POPOVER_PORTAL_ID","popoverRoot","Root","forwardRef","_ref","outerRootRef","_placement$","target","children","isOpen","_ref$trigger","trigger","hasArrow","_ref$frame","frame","className","_ref$placement","placement","_ref$offset","offset","zIndex","_ref$isFocusTrapped","isFocusTrapped","_ref$closeOnEsc","closeOnEsc","_ref$preventOverflow","preventOverflow","_ref$usePortal","usePortal","view","onToggle","closeOnOverlayClick","rest","_objectWithoutProperties","_excluded","rootRef","useRef","popoverRef","handleRef","useForkRef","portalRef","trapRef","useFocusTrap","popoverForkRef","_useState","useState","_useState2","_slicedToArray","arrowElement","setArrowElement","_useState3","_useState4","forceRender","isAutoArray","Array","isArray","isAuto","startsWith","initialStyles","visibility","opacity","_usePopper","usePopper","current","endsWith","modifiers","name","options","mainAxis","enabled","allowedAutoPlacements","element","styles","attributes","forceUpdate","onEscape","useCallback","event","keyCode","onDocumentClick","_rootRef$current","targetIsRoot","rootHasTarget","contains","onClick","_popoverRef$current","targetIsPopover","onMouseEnter","onMouseLeave","onFocus","onBlur","useEffect","document","addEventListener","removeEventListener","window","portal","getElementById","createElement","setAttribute","_document$getElementB","appendChild","body","Promise","resolve","then","React","StyledWrapper","classes","wrapper","StyledRoot","ref","cx","ReactDOM","createPortal","_extends","StyledPopover","popper","root","style","_objectSpread","display","StyledArrow","arrow","popoverConfig","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;;AAcO,IAAMA,cAAc,GAAG,GAAE;AACzB,IAAMC,iBAAiB,GAAG,sBAAqB;;AAEtD;AACA;AACA;AACA;IACaC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CACN,UAAAC,IAAA,EAqBIC,YAAY,EACX;AAAA,IAAA,IAAAC,WAAA,CAAA;AAAA,IAAA,IApBGC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,MAAM,GAAAL,IAAA,CAANK,MAAM;MAAAC,YA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D,KAAK,CACvB,CACJ,EACAnH,QACU,CACb,CAAC,EACPgC,SAAS,CAACuB,OACd,CACO,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM6D,aAAa,GAAG;AACzB1D,EAAAA,IAAI,EAAE,SAAS;AACf2D,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE7H,WAAW;AACnB8H,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRnG,IAAAA,IAAI,EAAE;AACFoG,MAAAA,GAAG,EAAEC,SAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNtG,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;;;"}
1
+ {"version":3,"file":"Popover.js","sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import React, { useRef, useCallback, useEffect, useState, forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\nimport ReactDOM from 'react-dom';\nimport { usePopper } from 'react-popper';\nimport { useFocusTrap, useForkRef } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines/types';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport type { PopoverPlacement, PopoverProps } from './Popover.types';\nimport { StyledArrow, StyledPopover, StyledRoot, StyledWrapper } from './Popover.styles';\nimport { classes } from './Popover.tokens';\n\nexport const ESCAPE_KEYCODE = 27;\nexport const POPOVER_PORTAL_ID = 'plasma-popover-root';\n\n/**\n * Всплывающее окно с возможностью позиционирования\n * и вызова по клику либо ховеру.\n */\nexport const popoverRoot = (Root: RootProps<HTMLDivElement, PopoverProps>) =>\n forwardRef<HTMLDivElement, PopoverProps>((props, outerRootRef) => {\n const {\n target,\n children,\n isOpen,\n trigger = 'click',\n hasArrow,\n frame = 'document',\n className,\n placement = 'auto',\n offset = [0, 0],\n zIndex,\n isFocusTrapped = true,\n closeOnEsc = true,\n preventOverflow = true,\n usePortal = false,\n view,\n onToggle,\n ...rest\n } = props;\n\n let closeOnOverlayClick = true;\n let closeOnBeyondTargetHover = true;\n\n if (props.trigger === 'click' && props.closeOnOverlayClick === false) {\n closeOnOverlayClick = false;\n }\n if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {\n closeOnBeyondTargetHover = false;\n }\n\n const rootRef = useRef<HTMLDivElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const handleRef = useForkRef<HTMLDivElement>(rootRef, outerRootRef);\n const portalRef = useRef<HTMLElement | null>(null);\n\n const trapRef = useFocusTrap(isOpen && isFocusTrapped);\n\n const popoverForkRef = useForkRef<HTMLDivElement>(popoverRef, trapRef);\n\n const [arrowElement, setArrowElement] = useState<HTMLSpanElement | null>(null);\n\n const [, forceRender] = useState(false);\n\n const isAutoArray = Array.isArray(placement);\n const isAuto = isAutoArray || (placement as PopoverPlacement).startsWith('auto');\n\n const initialStyles = {\n visibility: isOpen ? 'visible' : 'hidden',\n opacity: isOpen ? 1 : 0,\n } as CSSProperties;\n\n const { styles, attributes, forceUpdate } = usePopper(rootRef.current, popoverRef.current, {\n // TODO: #1121\n // eslint-disable-next-line no-nested-ternary\n placement: isAutoArray\n ? placement[0]?.endsWith('start')\n ? 'auto-start'\n : 'auto'\n : (placement as PopoverPlacement),\n modifiers: [\n {\n name: 'preventOverflow',\n options: {\n mainAxis: preventOverflow,\n },\n },\n { name: 'offset', options: { offset: [offset[0], offset[1]] } },\n {\n name: 'flip',\n enabled: isAuto,\n options: {\n allowedAutoPlacements: isAutoArray ? (placement as PopoverPlacement[]) : [],\n },\n },\n {\n name: 'arrow',\n options: {\n element: arrowElement,\n },\n },\n ],\n });\n\n const onEscape = useCallback(\n (event: KeyboardEvent) => {\n if (isOpen && closeOnEsc && event.keyCode === ESCAPE_KEYCODE) {\n onToggle?.(false, event);\n }\n },\n [closeOnEsc, isOpen, onToggle],\n );\n\n const onDocumentClick = useCallback(\n (event: MouseEvent) => {\n if (isOpen && closeOnOverlayClick && onToggle) {\n const targetIsRoot = event.target === rootRef.current;\n const rootHasTarget = rootRef.current?.contains(event.target as Element);\n\n if (!targetIsRoot && !rootHasTarget) {\n onToggle(false, event);\n }\n }\n },\n [closeOnOverlayClick, isOpen, onToggle],\n );\n\n const onClick = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'click') {\n const targetIsPopover = event.target === popoverRef.current;\n const rootHasTarget = popoverRef.current?.contains(event.target as Element);\n\n if (!targetIsPopover && !rootHasTarget) {\n onToggle?.(!isOpen, event);\n }\n }\n },\n [trigger, isOpen, onToggle],\n );\n\n const onMouseEnter = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onMouseLeave = useCallback<React.MouseEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onFocus = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(true, event);\n }\n },\n [trigger, onToggle],\n );\n\n const onBlur = useCallback<React.FocusEventHandler>(\n (event) => {\n if (trigger === 'hover') {\n onToggle?.(false, event);\n }\n },\n [trigger, onToggle],\n );\n\n useEffect(() => {\n document.addEventListener('click', onDocumentClick);\n return () => document.removeEventListener('click', onDocumentClick);\n }, [closeOnOverlayClick, isOpen, onToggle]);\n\n useEffect(() => {\n window.addEventListener('keydown', onEscape);\n return () => window.removeEventListener('keydown', onEscape);\n }, [closeOnEsc, isOpen, onToggle]);\n\n useEffect(() => {\n let portal = document.getElementById(POPOVER_PORTAL_ID);\n\n if (typeof frame !== 'string' && frame && frame.current) {\n portal = frame.current;\n }\n\n if (!usePortal) {\n portal = rootRef.current;\n }\n\n if (!portal) {\n portal = document.createElement('div');\n portal.setAttribute('id', POPOVER_PORTAL_ID);\n\n if (typeof frame === 'string' && frame !== 'document') {\n document.getElementById(frame)?.appendChild(portal);\n } else {\n document.body.appendChild(portal);\n }\n }\n\n portalRef.current = portal;\n\n /**\n * Изменение стейта нужно для того, чтобы Popup\n * отобразился после записи DOM элемента в portalRef.current\n */\n forceRender(true);\n }, []);\n\n useEffect(() => {\n if (!isOpen || !forceUpdate) {\n return;\n }\n\n /*\n * INFO: Метод forceUpdate содержит в себе flushSync и приводит\n * к повторному рендеру компонента, который уже находится в процессе рендера.\n * Данный хак, нужен для того, чтобы это поведение избежать и перенаправить\n * вызов метода в очередь микрозадач.\n */\n Promise.resolve().then(forceUpdate);\n }, [isOpen, children, forceUpdate]);\n\n return (\n <StyledWrapper className={classes.wrapper}>\n <StyledRoot\n ref={handleRef}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n onFocus={onFocus}\n onBlur={onBlur}\n className={cx(className, classes.target)}\n >\n {target}\n </StyledRoot>\n {children &&\n portalRef.current &&\n ReactDOM.createPortal(\n <Root\n view={view}\n className={className}\n {...rest}\n onMouseEnter={closeOnBeyondTargetHover ? undefined : onMouseEnter}\n onMouseLeave={closeOnBeyondTargetHover ? undefined : onMouseEnter}\n >\n <StyledPopover\n {...attributes.popper}\n className={classes.root}\n ref={popoverForkRef}\n style={{\n ...styles.popper,\n ...{ display: isOpen ? 'block' : 'none' },\n ...initialStyles,\n }}\n zIndex={zIndex}\n >\n {hasArrow && (\n <StyledArrow\n className={classes.arrow}\n ref={setArrowElement}\n style={styles.arrow}\n {...attributes.arrow}\n />\n )}\n {children}\n </StyledPopover>\n </Root>,\n portalRef.current,\n )}\n </StyledWrapper>\n );\n });\n\nexport const popoverConfig = {\n name: 'Popover',\n tag: 'div',\n layout: popoverRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["ESCAPE_KEYCODE","POPOVER_PORTAL_ID","popoverRoot","Root","forwardRef","props","outerRootRef","_placement$","target","children","isOpen","_props$trigger","trigger","hasArrow","_props$frame","frame","className","_props$placement","placement","_props$offset","offset","zIndex","_props$isFocusTrapped","isFocusTrapped","_props$closeOnEsc","closeOnEsc","_props$preventOverflo","preventOverflow","_props$usePortal","usePortal","view","onToggle","rest","_objectWithoutProperties","_excluded","closeOnOverlayClick","closeOnBeyondTargetHover","rootRef","useRef","popoverRef","handleRef","useForkRef","portalRef","trapRef","useFocusTrap","popoverForkRef","_useState","useState","_useState2","_slicedToArray","arrowElement","setArrowElement","_useState3","_useState4","forceRender","isAutoArray","Array","isArray","isAuto","startsWith","initialStyles","visibility","opacity","_usePopper","usePopper","current","endsWith","modifiers","name","options","mainAxis","enabled","allowedAutoPlacements","element","styles","attributes","forceUpdate","onEscape","useCallback","event","keyCode","onDocumentClick","_rootRef$current","targetIsRoot","rootHasTarget","contains","onClick","_popoverRef$current","targetIsPopover","onMouseEnter","onMouseLeave","onFocus","onBlur","useEffect","document","addEventListener","removeEventListener","window","portal","getElementById","createElement","setAttribute","_document$getElementB","appendChild","body","Promise","resolve","then","React","StyledWrapper","classes","wrapper","StyledRoot","ref","cx","ReactDOM","createPortal","_extends","undefined","StyledPopover","popper","root","style","_objectSpread","display","StyledArrow","arrow","popoverConfig","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;;;;;;AAcO,IAAMA,cAAc,GAAG,GAAE;AACzB,IAAMC,iBAAiB,GAAG,sBAAqB;;AAEtD;AACA;AACA;AACA;IACaC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,IAA6C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA+B,UAACC,KAAK,EAAEC,YAAY,EAAK;AAAA,IAAA,IAAAC,WAAA,CAAA;AAC9D,IAAA,IACIC,MAAM,GAiBNH,KAAK,CAjBLG,MAAM;MACNC,QAAQ,GAgBRJ,KAAK,CAhBLI,QAAQ;MACRC,MAAM,GAeNL,KAAK,CAfLK,MAAM;MAAAC,cAAA,GAeNN,KAAK,CAdLO,OAAO;AAAPA,MAAAA,OAAO,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,OAAO,GAAA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C8C,MAAM,CACb,EAAA;AAAEI,QAAAA,OAAO,EAAElH,MAAM,GAAG,OAAO,GAAG,MAAA;OAAQ,CAAA,EACtCkD,aAAa,CAClB;AACFvC,MAAAA,MAAM,EAAEA,MAAAA;KAEPR,CAAAA,EAAAA,QAAQ,iBACL+F,KAAA,CAAAR,aAAA,CAACyB,0BAAW,EAAAR,iCAAA,CAAA;MACRrG,SAAS,EAAE8F,sBAAO,CAACgB,KAAM;AACzBb,MAAAA,GAAG,EAAE9D,eAAgB;MACrBuE,KAAK,EAAEhD,MAAM,CAACoD,KAAAA;AAAM,KAAA,EAChBnD,UAAU,CAACmD,KAAK,CACvB,CACJ,EACArH,QACU,CACb,CAAC,EACPiC,SAAS,CAACuB,OACd,CACO,CAAC,CAAA;AAExB,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAM8D,aAAa,GAAG;AACzB3D,EAAAA,IAAI,EAAE,SAAS;AACf4D,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE/H,WAAW;AACnBgI,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAEC,SAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNxG,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import './Popover.styles_1ggb66y.css';
1
+ import './Popover.styles_1rk9t6z.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.js","sources":["../../../src/components/Popover/Popover.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\n\nimport { classes, tokens } from './Popover.tokens';\nimport { PopoverProps } from './Popover.types';\n\nexport const StyledWrapper = styled.div`\n display: inline-block;\n`;\n\nexport const StyledRoot = styled.div`\n display: inline-flex;\n box-sizing: border-box;\n position: relative;\n`;\n\nexport const StyledArrow = styled.div`\n width: var(${String(tokens.arrowMaskWidth)});\n height: var(${String(tokens.arrowMaskHeight)});\n\n &::before {\n position: absolute;\n width: var(${String(tokens.arrowMaskWidth)});\n height: var(${String(tokens.arrowMaskHeight)});\n mask-image: var(${String(tokens.arrowMaskImage)});\n background: var(${String(tokens.arrowBackground)});\n\n content: '';\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledPopover = styled.div<Pick<PopoverProps, 'zIndex'>>`\n position: absolute;\n z-index: ${({ zIndex }) => zIndex || DEFAULT_Z_INDEX};\n\n &[data-popper-placement^='top'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n }\n\n &[data-popper-placement^='bottom'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='left'] > .${classes.arrow} {\n right: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(-90deg);\n }\n }\n\n &[data-popper-placement^='right'] > .${classes.arrow} {\n left: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(90deg);\n }\n }\n\n &[data-popper-placement^='top-start'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n left: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n }\n\n &[data-popper-placement^='top-end'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n left: unset !important;\n right: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n }\n\n &[data-popper-placement^='bottom-start'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n left: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n\n &::before {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='bottom-end'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n left: unset !important;\n right: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n\n &::before {\n transform: rotate(180deg);\n }\n }\n`;\n"],"names":["StyledWrapper","styled","name","class","propsAsIs","StyledRoot","StyledArrow","_exp7","_ref","zIndex","DEFAULT_Z_INDEX","StyledPopover","vars"],"mappings":";;;;;;;AAOO,IAAMA,aAAa,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAElC,EAAA;AAEM,IAAMC,UAAU,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAI/B,EAAA;AAEM,IAAME,WAAW,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAchC,EAAA;AAAC,IAAAG,KAAA,GA9BgBA,SA8BhBA,KAAAA,GAAA;AAAA,EAAA,OAIa,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,MAAAA,GAAAA,IAAAA,CAAAA,MAAAA,CAAAA;IAAAA,OAAaA,MAAM,IAAIC,qBAAe,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAFjD,IAAMC,aAAa,gBAAGV,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAQ,EAAAA,IAAA,EAAA;AAAA,IAAA,YAAA,EAAA,cAEpBL,KAAyC,EAAA,CAAA;AAAA,GAAA;AAAA,CA4DvD;;;;;;;"}
1
+ {"version":3,"file":"Popover.styles.js","sources":["../../../src/components/Popover/Popover.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\n\nimport { classes, tokens } from './Popover.tokens';\nimport { PopoverProps } from './Popover.types';\n\nexport const StyledWrapper = styled.div``;\nexport const StyledRoot = styled.div`\n display: inline-flex;\n box-sizing: border-box;\n position: relative;\n`;\n\nexport const StyledArrow = styled.div`\n width: var(${String(tokens.arrowMaskWidth)});\n height: var(${String(tokens.arrowMaskHeight)});\n\n &::before {\n position: absolute;\n width: var(${String(tokens.arrowMaskWidth)});\n height: var(${String(tokens.arrowMaskHeight)});\n mask-image: var(${String(tokens.arrowMaskImage)});\n background: var(${String(tokens.arrowBackground)});\n\n content: '';\n transform: rotate(0deg);\n }\n`;\n\nexport const StyledPopover = styled.div<Pick<PopoverProps, 'zIndex'>>`\n position: absolute;\n z-index: ${({ zIndex }) => zIndex || DEFAULT_Z_INDEX};\n\n &[data-popper-placement^='top'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n }\n\n &[data-popper-placement^='bottom'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='left'] > .${classes.arrow} {\n right: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(-90deg);\n }\n }\n\n &[data-popper-placement^='right'] > .${classes.arrow} {\n left: calc(0px - var(${String(tokens.arrowHeight)}));\n &::before {\n transform: rotate(90deg);\n }\n }\n\n &[data-popper-placement^='top-start'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n left: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n }\n\n &[data-popper-placement^='top-end'] > .${classes.arrow} {\n bottom: calc(0px - var(${String(tokens.arrowHeight)}));\n left: unset !important;\n right: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n }\n\n &[data-popper-placement^='bottom-start'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n left: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n\n &::before {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='bottom-end'] > .${classes.arrow} {\n top: calc(0px - var(${String(tokens.arrowHeight)}));\n left: unset !important;\n right: var(${String(tokens.arrowEdgeMargin)}) !important;\n transform: unset !important;\n\n &::before {\n transform: rotate(180deg);\n }\n }\n`;\n"],"names":["StyledWrapper","styled","name","class","propsAsIs","StyledRoot","StyledArrow","_exp7","_ref","zIndex","DEFAULT_Z_INDEX","StyledPopover","vars"],"mappings":";;;;;;;AAOO,IAAMA,aAAa,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM,EAAA;AAClC,IAAMC,UAAU,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAI/B,EAAA;AAEM,IAAME,WAAW,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAchC,EAAA;AAAC,IAAAG,KAAA,GA3BgBA,SA2BhBA,KAAAA,GAAA;AAAA,EAAA,OAIa,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,MAAAA,GAAAA,IAAAA,CAAAA,MAAAA,CAAAA;IAAAA,OAAaA,MAAM,IAAIC,qBAAe,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAFjD,IAAMC,aAAa,gBAAGV,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAQ,EAAAA,IAAA,EAAA;AAAA,IAAA,YAAA,EAAA,cAEpBL,KAAyC,EAAA,CAAA;AAAA,GAAA;AAAA,CA4DvD;;;;;;;"}
@@ -1,4 +1,4 @@
1
- .s1g1xbt5{display:inline-block;}
1
+
2
2
  .s12xwbyh{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
3
  .s1pd4d8a{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.s1pd4d8a::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
4
  .s16xlixz{position:absolute;z-index:var(--s16xlixz-0);}.s16xlixz[data-popper-placement^='top'] > .popover-arrow{bottom:calc(0px - var(--plasma-popover-arrow-height));}.s16xlixz[data-popper-placement^='bottom'] > .popover-arrow{top:calc(0px - var(--plasma-popover-arrow-height));}.s16xlixz[data-popper-placement^='bottom'] > .popover-arrow::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.s16xlixz[data-popper-placement^='left'] > .popover-arrow{right:calc(0px - var(--plasma-popover-arrow-height));}.s16xlixz[data-popper-placement^='left'] > .popover-arrow::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.s16xlixz[data-popper-placement^='right'] > .popover-arrow{left:calc(0px - var(--plasma-popover-arrow-height));}.s16xlixz[data-popper-placement^='right'] > .popover-arrow::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.s16xlixz[data-popper-placement^='top-start'] > .popover-arrow{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.s16xlixz[data-popper-placement^='top-end'] > .popover-arrow{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.s16xlixz[data-popper-placement^='bottom-start'] > .popover-arrow{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.s16xlixz[data-popper-placement^='bottom-start'] > .popover-arrow::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.s16xlixz[data-popper-placement^='bottom-end'] > .popover-arrow{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.s16xlixz[data-popper-placement^='bottom-end'] > .popover-arrow::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
@@ -75,10 +75,10 @@
75
75
  .SelectTarget_styles_hb1tns_s11wt6x2__864110c9{overflow:visible;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-select-chip-gap);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
76
76
  .SelectTarget_styles_hb1tns_s1xu52l7__864110c9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;position:absolute;pointer-events:none;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;-webkit-transition:all 0.1s ease-in-out;transition:all 0.1s ease-in-out;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;width:100%;height:auto;color:var(--plasma-select-target-label-color);font-family:var(--plasma-select-target-font-family);font-size:var(--plasma-select-target-font-size);font-style:var(--plasma-select-target-font-style);font-weight:var(--plasma-select-target-font-weight);-webkit-letter-spacing:var(--plasma-select-target-letter-spacing);-moz-letter-spacing:var(--plasma-select-target-letter-spacing);-ms-letter-spacing:var(--plasma-select-target-letter-spacing);letter-spacing:var(--plasma-select-target-letter-spacing);line-height:var(--plasma-select-target-line-height);}
77
77
 
78
- .Popover_styles_1ggb66y_s1g1xbt5__6eaffcc0{display:inline-block;}
79
- .Popover_styles_1ggb66y_s12xwbyh__6eaffcc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
80
- .Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
81
- .Popover_styles_1ggb66y_s16xlixz__6eaffcc0{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
78
+
79
+ .Popover_styles_1rk9t6z_s12xwbyh__96f55a53{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
80
+ .Popover_styles_1rk9t6z_s1pd4d8a__96f55a53{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1rk9t6z_s1pd4d8a__96f55a53::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
81
+ .Popover_styles_1rk9t6z_s16xlixz__96f55a53{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
82
82
 
83
83
  .Select_styles_ls547o_spxbau6__1b68d3c1{width:100%;position:relative;}.Select_styles_ls547o_spxbau6__1b68d3c1 .Select_styles_ls547o_nativeSelectVisible__1b68d3c1{display:block;}
84
84
  .Select_styles_ls547o_s1yey2x3__1b68d3c1{box-sizing:border-box;overflow-y:auto;background:var(--plasma-select-background);box-shadow:var(--plasma-select-box-shadow);border-radius:var(--plasma-select-border-radius);width:var(--plasma-select-width);height:var(--plasma-select-height);padding:var(--plasma-select-padding-top) var(--plasma-select-padding-right) var(--plasma-select-padding-bottom) var(--plasma-select-padding-left);}
@@ -1,7 +1,7 @@
1
- .Popover_styles_1ggb66y_s1g1xbt5__6eaffcc0{display:inline-block;}
2
- .Popover_styles_1ggb66y_s12xwbyh__6eaffcc0{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
- .Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1ggb66y_s1pd4d8a__6eaffcc0::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
- .Popover_styles_1ggb66y_s16xlixz__6eaffcc0{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='left'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='right'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='top-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-start'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1ggb66y_s16xlixz__6eaffcc0[data-popper-placement^='bottom-end'] > .Popover_styles_1ggb66y_popoverArrow__6eaffcc0::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
1
+
2
+ .Popover_styles_1rk9t6z_s12xwbyh__96f55a53{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
3
+ .Popover_styles_1rk9t6z_s1pd4d8a__96f55a53{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_1rk9t6z_s1pd4d8a__96f55a53::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
4
+ .Popover_styles_1rk9t6z_s16xlixz__96f55a53{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='left'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='right'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='top-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-start'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_1rk9t6z_s16xlixz__96f55a53[data-popper-placement^='bottom-end'] > .Popover_styles_1rk9t6z_popoverArrow__96f55a53::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
5
5
 
6
6
  .Dropdown_styles_1daxhqh_sn7uamp__488e0a19 .Dropdown_styles_1daxhqh_popoverTarget__488e0a19{display:block;}
7
7
  .Dropdown_styles_1daxhqh_sjr7fmv__488e0a19{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);}
@@ -108,8 +108,7 @@ var SelectTarget = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
108
108
  "aria-label": label,
109
109
  className: index.cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
110
110
  onWheel: onWheel,
111
- onKeyDown: onKeyDown,
112
- stretching: "filled"
111
+ onKeyDown: onKeyDown
113
112
  }), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(SelectTarget_styles.StyledText, {
114
113
  className: selectTargeText
115
114
  }, textContent) : /*#__PURE__*/React.createElement(SelectTarget_styles.StyledChipsWrapper, {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n stretching=\"filled\"\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","stretching","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;;;;;AAkBA,IACIA,UAAU,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oE,OAAO,EAAA;AAAA,QAAA,OAAKD,MAAM,CAACC,OAAO,EAAExB,KAAK,CAAC,CAAA;OAAC;MACzCuC,GAAG,EAAA,EAAA,CAAAC,MAAA,CAAK7D,KAAK,OAAA6D,MAAA,CAAIvD,IAAI,CAAG;AACxBtB,MAAAA,QAAQ,EAAEA,QAAS;AACnBD,MAAAA,QAAQ,EAAEA,QAAS;AACnBiB,MAAAA,KAAK,EAAEA,KAAM;AACbM,MAAAA,IAAI,EAAEA,IAAK;AACXwD,MAAAA,OAAO,EAAE,SAAAA,OAACC,CAAAA,CAAC,EAAEC,CAAC,EAAA;AAAA,QAAA,OAAK5C,WAAW,CAAC2C,CAAC,EAAEC,CAAC,EAAE3C,KAAK,CAAC,CAAA;OAAC;AAC5C4C,MAAAA,OAAO,EAAEjD,WAAY;AACrB1B,MAAAA,SAAS,EAAE0C,aAAAA;AAAc,KAC5B,CAAC,CAAA;GACL,CACQ,CACG,CACvB,CAAC,EACLjB,cAAc,iBACX+B,KAAA,CAAAC,aAAA,CAACmB,+BAAW,EAAA;AAACf,IAAAA,SAAS,EAAE9E,iBAAkB;AAAC8F,IAAAA,OAAO,EAAEhF,EAAAA;AAAG,GAAA,EAClDN,KACQ,CAChB,eACDiE,KAAA,CAAAC,aAAA,CAACqB,+BAAW,EAAA;AAAClF,IAAAA,IAAI,EAAC,GAAG;AAACmF,IAAAA,KAAK,EAAC,SAAS;AAAClB,IAAAA,SAAS,EAAEC,QAAE,CAACjF,iBAAiB,EAAEuC,gBAAgB,CAAA;AAAE,GAAE,CAC3E,CAAC,CAAA;AAE7B,CACJ;;;;"}
1
+ {"version":3,"file":"SelectTarget.js","sources":["../../../../../src/components/Select/ui/SelectTarget/SelectTarget.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef } from 'react';\n\nimport { classes } from '../../Select.tokens';\nimport { cx } from '../../../../utils';\nimport { SelectChip } from '../SelectChip/SelectChip';\nimport type { SelectPrimitiveValue } from '../../Select.types';\nimport { Keys } from '../../hooks/useKeyNavigation';\n\nimport {\n StyledArrow,\n StyledChips,\n StyledChipsWrapper,\n StyledLabel,\n StyledSelectTarget,\n StyledText,\n} from './SelectTarget.styles';\nimport type { SelectTargetProps } from './SelectTarget.types';\n\nconst {\n hasNoFocus,\n hasChips,\n innerLabelUp,\n arrowInverse,\n selectTarget,\n selectTargetArrow,\n selectTargeText,\n selectTargetLabel,\n} = classes;\n\n/**\n * Элемент для выпадающего списка\n */\nexport const SelectTarget = forwardRef<HTMLButtonElement, SelectTargetProps>(\n (\n {\n values,\n target = 'textField-like',\n label,\n opened,\n readOnly,\n disabled,\n enumerationType,\n size,\n id,\n chipsRefs,\n onChange,\n onKeyDown,\n ...rest\n },\n ref,\n ) => {\n const hasText = Boolean(values?.some(([value]) => value));\n\n const hasLabel = label && size !== 'xs' && target === 'textField-like';\n const textContent = values?.map(([, text]) => text).join(', ');\n const contentRef = useRef<HTMLDivElement>(null);\n\n const withArrowInverse = opened ? arrowInverse : undefined;\n const withInnerLabelUp = hasLabel && hasText ? innerLabelUp : undefined;\n const withHasChips =\n hasText && enumerationType === 'chip' && target === 'textField-like' ? hasChips : undefined;\n\n const withNoFocus = target === 'textField-like' ? hasNoFocus : undefined;\n\n const isLabelVisible = !hasText || (hasLabel && enumerationType === 'comma');\n\n const onChipClick = useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n }, []);\n\n const onChipClear = useCallback(\n (value: SelectPrimitiveValue, text: SelectPrimitiveValue, index: number) => {\n const newValue = values\n ?.filter(([itemValue, itemText]) => !(itemValue === value && itemText === text))\n .map(([itemValue]) => itemValue);\n\n chipsRefs?.current.splice(index, 1);\n onChange?.(newValue);\n },\n [values, onChange],\n );\n\n const onChipKeyDown = useCallback(\n (\n value: SelectPrimitiveValue,\n text: SelectPrimitiveValue,\n index: number,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => {\n const { code, shiftKey } = event;\n\n if (code === Keys.Tab || (code === Keys.Tab && shiftKey)) {\n event.preventDefault();\n }\n\n if (code === Keys.Backspace) {\n onChipClear(value, text, index);\n }\n },\n [onChipClear],\n );\n\n const onWheel = useCallback((event: React.WheelEvent<HTMLButtonElement>) => {\n const { deltaY } = event;\n\n if (contentRef.current) {\n contentRef.current.scrollLeft += Math.round(deltaY);\n }\n }, []);\n\n const getRef = useCallback((element: HTMLButtonElement | null, index: number) => {\n if (element && chipsRefs && chipsRefs.current) {\n chipsRefs.current[index] = element;\n }\n }, []);\n\n // INFO: Нужно очищать на каждый ререндер компонента для актуализации состояния рефов\n if (chipsRefs) {\n chipsRefs.current = [];\n }\n\n return (\n <StyledSelectTarget\n {...rest}\n ref={ref}\n opened={opened}\n target={target}\n readOnly={readOnly}\n disabled={disabled}\n title={textContent}\n aria-label={label}\n className={cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget)}\n onWheel={onWheel}\n onKeyDown={onKeyDown}\n >\n {hasText &&\n (enumerationType === 'comma' || target === 'button-like' ? (\n <StyledText className={selectTargeText}>{textContent}</StyledText>\n ) : (\n <StyledChipsWrapper ref={contentRef}>\n <StyledChips>\n {values?.map(([value, text], index) => (\n <SelectChip\n index={index}\n ref={(element) => getRef(element, index)}\n key={`${value}_${text}`}\n disabled={disabled}\n readOnly={readOnly}\n value={value}\n text={text}\n onClear={(v, t) => onChipClear(v, t, index)}\n onClick={onChipClick}\n onKeyDown={onChipKeyDown}\n />\n ))}\n </StyledChips>\n </StyledChipsWrapper>\n ))}\n {isLabelVisible && (\n <StyledLabel className={selectTargetLabel} htmlFor={id}>\n {label}\n </StyledLabel>\n )}\n <StyledArrow size=\"s\" color=\"inherit\" className={cx(selectTargetArrow, withArrowInverse)} />\n </StyledSelectTarget>\n );\n },\n);\n"],"names":["hasNoFocus","classes","hasChips","innerLabelUp","arrowInverse","selectTarget","selectTargetArrow","selectTargeText","selectTargetLabel","SelectTarget","forwardRef","_ref","ref","values","_ref$target","target","label","opened","readOnly","disabled","enumerationType","size","id","chipsRefs","onChange","onKeyDown","rest","_objectWithoutProperties","_excluded","hasText","Boolean","some","_ref2","_ref3","_slicedToArray","value","hasLabel","textContent","map","_ref4","_ref5","text","join","contentRef","useRef","withArrowInverse","undefined","withInnerLabelUp","withHasChips","withNoFocus","isLabelVisible","onChipClick","useCallback","event","stopPropagation","onChipClear","index","newValue","filter","_ref6","_ref7","itemValue","itemText","_ref8","_ref9","current","splice","onChipKeyDown","code","shiftKey","Keys","Tab","preventDefault","Backspace","onWheel","deltaY","scrollLeft","Math","round","getRef","element","React","createElement","StyledSelectTarget","_extends","title","className","cx","StyledText","StyledChipsWrapper","StyledChips","_ref10","_ref11","SelectChip","key","concat","onClear","v","t","onClick","StyledLabel","htmlFor","StyledArrow","color"],"mappings":";;;;;;;;;;;;;AAkBA,IACIA,UAAU,GAQVC,qBAAO,CARPD,UAAU;EACVE,QAAQ,GAORD,qBAAO,CAPPC,QAAQ;EACRC,YAAY,GAMZF,qBAAO,CANPE,YAAY;EACZC,YAAY,GAKZH,qBAAO,CALPG,YAAY;EACZC,YAAY,GAIZJ,qBAAO,CAJPI,YAAY;EACZC,iBAAiB,GAGjBL,qBAAO,CAHPK,iBAAiB;EACjBC,eAAe,GAEfN,qBAAO,CAFPM,eAAe;EACfC,iBAAiB,GACjBP,qBAAO,CADPO,iBAAiB,CAAA;;AAGrB;AACA;AACA;AACO,IAAMC,YAAY,gBAAGC,gBAAU,CAClC,UAAAC,IAAA,EAgBIC,GAAG,EACF;AAAA,EAAA,IAfGC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAAC,WAAA,GAAAH,IAAA,CACNI,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,gBAAgB,GAAAA,WAAA;IACzBE,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,MAAM,GAAAN,IAAA,CAANM,MAAM;IACNC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ;IACRC,eAAe,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