@salutejs/plasma-new-hope 0.175.1-canary.1506.11553215359.0 → 0.175.1-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +1 -1
  2. package/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  3. package/cjs/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  4. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  5. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  6. package/cjs/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_1csckkd.css} +1 -1
  7. package/cjs/components/Calendar/Calendar.tokens.js +0 -3
  8. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  9. package/cjs/components/Calendar/CalendarBase/CalendarBase.css +10 -11
  10. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  11. package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  12. package/{es/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → cjs/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
  13. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +10 -11
  14. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
  15. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -3
  16. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  17. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -11
  18. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  19. package/{es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
  20. package/cjs/components/Combobox/ComboboxNew/Combobox.css +12 -12
  21. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  23. package/{es/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
  24. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  25. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  26. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  27. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  28. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  29. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  30. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +7 -21
  31. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  32. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
  33. package/cjs/components/Combobox/ComboboxOld/Combobox.css +28 -14
  34. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
  35. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  36. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  37. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  38. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  39. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  40. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  41. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  42. package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  43. package/cjs/components/DatePicker/RangeDate/RangeDate.css +14 -15
  44. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
  45. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  46. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  47. package/cjs/components/DatePicker/SingleDate/SingleDate.css +14 -15
  48. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  49. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  50. package/{es/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  51. package/cjs/components/Dropdown/Dropdown.css +30 -16
  52. package/cjs/components/Dropdown/Dropdown.js +60 -37
  53. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  54. package/cjs/components/Dropdown/Dropdown.styles.js +14 -26
  55. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  56. package/cjs/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  57. package/cjs/components/Dropdown/Dropdown.tokens.js +24 -3
  58. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  59. package/cjs/components/Dropdown/FloatingPopover.js +104 -0
  60. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -0
  61. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  62. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  63. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  64. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  65. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  66. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +25 -31
  67. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  68. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  69. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  70. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  71. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  72. package/cjs/components/Dropdown/utils/getItemByFocused.js +13 -0
  73. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  74. package/cjs/components/Dropdown/utils/getItemId.js +10 -0
  75. package/cjs/components/Dropdown/utils/getItemId.js.map +1 -0
  76. package/cjs/components/Dropdown/utils/getPlacement.js +16 -0
  77. package/cjs/components/Dropdown/utils/getPlacement.js.map +1 -0
  78. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  79. package/cjs/components/Notification/Notification.css +11 -11
  80. package/cjs/components/Notification/Notification.styles.js +15 -15
  81. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  82. package/cjs/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
  83. package/cjs/components/Notification/Notification.tokens.js +0 -2
  84. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  85. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  86. package/cjs/components/Pagination/Pagination.css +10 -10
  87. package/cjs/components/Pagination/Pagination.js +5 -5
  88. package/cjs/components/Pagination/Pagination.js.map +1 -1
  89. package/cjs/components/Pagination/Pagination.styles.js +3 -3
  90. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  91. package/cjs/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  92. package/cjs/components/Pagination/Pagination.tokens.js +1 -4
  93. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  94. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  95. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  96. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  97. package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  98. package/cjs/components/Select/Select.js +1 -1
  99. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  100. package/cjs/components/Tabs/tokens.js +1 -7
  101. package/cjs/components/Tabs/tokens.js.map +1 -1
  102. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  103. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  104. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  105. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  106. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  107. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  108. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  109. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
  110. package/cjs/hooks/useOutsideClick.js +1 -1
  111. package/cjs/hooks/useOutsideClick.js.map +1 -1
  112. package/cjs/index.css +71 -74
  113. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  114. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  115. package/emotion/cjs/components/Calendar/Calendar.tokens.js +0 -3
  116. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  117. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  118. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +17 -22
  119. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  120. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  121. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  122. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
  123. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  124. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  125. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  126. package/emotion/cjs/components/Dropdown/Dropdown.js +58 -37
  127. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +9 -25
  128. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
  129. package/emotion/cjs/components/Dropdown/FloatingPopover.js +109 -0
  130. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  131. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  132. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +21 -41
  133. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  134. package/emotion/cjs/components/Dropdown/utils/getItemId.js +9 -0
  135. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  136. package/emotion/cjs/components/Dropdown/utils/index.js +23 -1
  137. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  138. package/emotion/cjs/components/Notification/Notification.tokens.js +0 -2
  139. package/emotion/cjs/components/Pagination/Pagination.js +5 -5
  140. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  141. package/emotion/cjs/components/Pagination/Pagination.tokens.js +1 -4
  142. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  143. package/emotion/cjs/components/Tabs/tokens.js +1 -7
  144. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  145. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  146. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  147. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  148. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  149. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  150. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  151. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  152. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  153. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  154. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  155. package/emotion/es/components/Calendar/Calendar.tokens.js +0 -3
  156. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  157. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  158. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +16 -21
  159. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  160. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  161. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  162. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
  163. package/emotion/es/components/DatePicker/DatePicker.tokens.js +0 -5
  164. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  165. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  166. package/emotion/es/components/Dropdown/Dropdown.js +60 -40
  167. package/emotion/es/components/Dropdown/Dropdown.styles.js +9 -25
  168. package/emotion/es/components/Dropdown/Dropdown.tokens.js +35 -3
  169. package/emotion/es/components/Dropdown/FloatingPopover.js +102 -0
  170. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  171. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  172. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +22 -42
  173. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  174. package/emotion/es/components/Dropdown/utils/getItemId.js +3 -0
  175. package/emotion/es/components/Dropdown/utils/getPlacement.js +9 -0
  176. package/emotion/es/components/Dropdown/utils/index.js +4 -1
  177. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  178. package/emotion/es/components/Notification/Notification.tokens.js +0 -2
  179. package/emotion/es/components/Pagination/Pagination.js +5 -5
  180. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  181. package/emotion/es/components/Pagination/Pagination.tokens.js +1 -4
  182. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  183. package/emotion/es/components/Tabs/tokens.js +1 -7
  184. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  185. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  186. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  187. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  188. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  189. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  190. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  191. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  192. package/emotion/es/hooks/useOutsideClick.js +1 -1
  193. package/es/components/Autocomplete/Autocomplete.css +1 -1
  194. package/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  195. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  196. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  197. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  198. package/es/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_1csckkd.css} +1 -1
  199. package/es/components/Calendar/Calendar.tokens.js +0 -3
  200. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  201. package/es/components/Calendar/CalendarBase/CalendarBase.css +10 -11
  202. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  203. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  204. package/{cjs/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
  205. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +10 -11
  206. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
  207. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -4
  208. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  209. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -11
  210. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  211. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
  212. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  213. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  214. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  215. package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → es/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
  216. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  217. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  218. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  219. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  220. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  221. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  222. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +7 -21
  223. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  224. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
  225. package/es/components/Combobox/ComboboxOld/Combobox.css +28 -14
  226. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
  227. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  228. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  229. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  230. package/es/components/DatePicker/DatePicker.tokens.js +0 -5
  231. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  232. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  233. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  234. package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  235. package/es/components/DatePicker/RangeDate/RangeDate.css +14 -15
  236. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
  237. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  238. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  239. package/es/components/DatePicker/SingleDate/SingleDate.css +14 -15
  240. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  241. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  242. package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → es/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  243. package/es/components/Dropdown/Dropdown.css +30 -16
  244. package/es/components/Dropdown/Dropdown.js +62 -40
  245. package/es/components/Dropdown/Dropdown.js.map +1 -1
  246. package/es/components/Dropdown/Dropdown.styles.js +15 -26
  247. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  248. package/es/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  249. package/es/components/Dropdown/Dropdown.tokens.js +24 -3
  250. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  251. package/es/components/Dropdown/FloatingPopover.js +100 -0
  252. package/es/components/Dropdown/FloatingPopover.js.map +1 -0
  253. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  254. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  255. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  256. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  257. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  258. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +24 -29
  259. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  260. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  261. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  262. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  263. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  264. package/es/components/Dropdown/utils/getItemByFocused.js +9 -0
  265. package/es/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  266. package/es/components/Dropdown/utils/getItemId.js +6 -0
  267. package/es/components/Dropdown/utils/getItemId.js.map +1 -0
  268. package/es/components/Dropdown/utils/getPlacement.js +12 -0
  269. package/es/components/Dropdown/utils/getPlacement.js.map +1 -0
  270. package/es/components/Dropdown/utils/index.js.map +1 -1
  271. package/es/components/Notification/Notification.css +11 -11
  272. package/es/components/Notification/Notification.styles.js +15 -15
  273. package/es/components/Notification/Notification.styles.js.map +1 -1
  274. package/es/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
  275. package/es/components/Notification/Notification.tokens.js +0 -2
  276. package/es/components/Notification/Notification.tokens.js.map +1 -1
  277. package/es/components/Notification/NotificationsProvider.css +11 -11
  278. package/es/components/Pagination/Pagination.css +10 -10
  279. package/es/components/Pagination/Pagination.js +5 -5
  280. package/es/components/Pagination/Pagination.js.map +1 -1
  281. package/es/components/Pagination/Pagination.styles.js +3 -3
  282. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  283. package/es/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  284. package/es/components/Pagination/Pagination.tokens.js +1 -4
  285. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  286. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  287. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  288. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  289. package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  290. package/es/components/Select/Select.js +1 -1
  291. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  292. package/es/components/Tabs/tokens.js +1 -7
  293. package/es/components/Tabs/tokens.js.map +1 -1
  294. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  295. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  296. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  297. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  298. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  299. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  300. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  301. package/es/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
  302. package/es/hooks/useOutsideClick.js +1 -1
  303. package/es/hooks/useOutsideClick.js.map +1 -1
  304. package/es/index.css +71 -74
  305. package/package.json +2 -2
  306. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  307. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  308. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +0 -3
  309. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  310. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  311. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -6
  312. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  313. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  314. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  315. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
  316. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  317. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  318. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  319. package/styled-components/cjs/components/Dropdown/Dropdown.js +58 -37
  320. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +9 -15
  321. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
  322. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +109 -0
  323. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  324. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  325. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +17 -19
  326. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  327. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +9 -0
  328. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  329. package/styled-components/cjs/components/Dropdown/utils/index.js +23 -1
  330. package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
  331. package/styled-components/cjs/components/Notification/Notification.tokens.js +0 -2
  332. package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
  333. package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
  334. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +1 -4
  335. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  336. package/styled-components/cjs/components/Tabs/tokens.js +1 -7
  337. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  338. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  339. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  340. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  341. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  342. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  343. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  344. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  345. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  346. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  347. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  348. package/styled-components/es/components/Calendar/Calendar.tokens.js +0 -3
  349. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  350. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  351. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -5
  352. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  353. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  354. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  355. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
  356. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -5
  357. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  358. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  359. package/styled-components/es/components/Dropdown/Dropdown.js +60 -40
  360. package/styled-components/es/components/Dropdown/Dropdown.styles.js +9 -15
  361. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +35 -3
  362. package/styled-components/es/components/Dropdown/FloatingPopover.js +102 -0
  363. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  364. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  365. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -20
  366. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  367. package/styled-components/es/components/Dropdown/utils/getItemId.js +3 -0
  368. package/styled-components/es/components/Dropdown/utils/getPlacement.js +9 -0
  369. package/styled-components/es/components/Dropdown/utils/index.js +4 -1
  370. package/styled-components/es/components/Notification/Notification.styles.js +1 -1
  371. package/styled-components/es/components/Notification/Notification.tokens.js +0 -2
  372. package/styled-components/es/components/Pagination/Pagination.js +5 -5
  373. package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
  374. package/styled-components/es/components/Pagination/Pagination.tokens.js +1 -4
  375. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  376. package/styled-components/es/components/Tabs/tokens.js +1 -7
  377. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  378. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  379. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  380. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  381. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  382. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  383. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  384. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  385. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  386. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +0 -1
  387. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  388. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  389. package/types/components/Calendar/Calendar.tokens.d.ts +0 -3
  390. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  391. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  392. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  393. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +0 -1
  394. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  395. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  396. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -4
  397. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  398. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  399. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  400. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +2 -1
  401. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  402. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -5
  403. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  404. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  405. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  406. package/types/components/Dropdown/Dropdown.d.ts +2 -1
  407. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  408. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -6
  409. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  410. package/types/components/Dropdown/Dropdown.tokens.d.ts +25 -2
  411. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  412. package/types/components/Dropdown/Dropdown.types.d.ts +30 -4
  413. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  414. package/types/components/Dropdown/FloatingPopover.d.ts +5 -0
  415. package/types/components/Dropdown/FloatingPopover.d.ts.map +1 -0
  416. package/types/components/Dropdown/index.d.ts +1 -1
  417. package/types/components/Dropdown/index.d.ts.map +1 -1
  418. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  419. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -12
  420. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  421. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  422. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +32 -3
  423. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  424. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -14
  425. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  426. package/types/components/Dropdown/utils/getItemByFocused.d.ts +4 -0
  427. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +1 -0
  428. package/types/components/Dropdown/utils/getItemId.d.ts +2 -0
  429. package/types/components/Dropdown/utils/getItemId.d.ts.map +1 -0
  430. package/types/components/Dropdown/utils/getPlacement.d.ts +3 -0
  431. package/types/components/Dropdown/utils/getPlacement.d.ts.map +1 -0
  432. package/types/components/Dropdown/utils/index.d.ts +3 -0
  433. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  434. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  435. package/types/components/Notification/Notification.tokens.d.ts +0 -2
  436. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  437. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  438. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  439. package/types/components/Pagination/Pagination.tokens.d.ts +0 -3
  440. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  441. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  442. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  443. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  444. package/types/components/Tabs/tokens.d.ts +0 -6
  445. package/types/components/Tabs/tokens.d.ts.map +1 -1
  446. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  447. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  448. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  449. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  450. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  451. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  452. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  453. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  454. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  455. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  456. package/types/hooks/useOutsideClick.d.ts +1 -1
  457. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  458. package/cjs/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
  459. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
  460. package/cjs/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
  461. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
  462. package/es/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
  463. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
  464. package/es/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
  465. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import type { ComponentProps } from 'react';
3
3
  import type { Meta, StoryObj } from '@storybook/react';
4
4
  import { action } from '@storybook/addon-actions';
@@ -11,7 +11,7 @@ import { Dropdown } from './Dropdown';
11
11
 
12
12
  type StoryDropdownProps = ComponentProps<typeof Dropdown>;
13
13
 
14
- const placements: Array<DropdownPlacement> = ['top', 'bottom', 'right', 'left', 'auto'];
14
+ const placements: Array<DropdownPlacement> = ['auto', 'top', 'right', 'bottom', 'left'];
15
15
  const triggers: Array<DropdownTrigger> = ['click', 'hover'];
16
16
  const size = ['xs', 's', 'm', 'l'];
17
17
  const variant = ['normal', 'tight'];
@@ -47,14 +47,15 @@ const meta: Meta<StoryDropdownProps> = {
47
47
  },
48
48
  },
49
49
  args: {
50
+ size: 'm',
51
+ variant: 'normal',
52
+ placement: 'bottom-start',
50
53
  trigger: 'click',
51
54
  offset: [0, 0],
52
- listWidth: 'auto',
55
+ listWidth: '',
53
56
  hasArrow: true,
54
57
  closeOnOverlayClick: true,
55
58
  closeOnSelect: true,
56
- size: 'm',
57
- variant: 'normal',
58
59
  },
59
60
  };
60
61
 
@@ -11,7 +11,7 @@ var useOutsideClick = exports.useOutsideClick = function useOutsideClick(callbac
11
11
  var handleClickOutside = function handleClickOutside(event) {
12
12
  if (ref.current && !ref.current.contains(event.target)) {
13
13
  if (!(secondaryRef !== null && secondaryRef !== void 0 && secondaryRef.current) || secondaryRef.current && !secondaryRef.current.contains(event.target)) {
14
- callback();
14
+ callback(event);
15
15
  }
16
16
  }
17
17
  };
@@ -62,7 +62,6 @@ export var tokens = {
62
62
  textFieldDisabledOpacity: '--plasma-autocomplete-textfield-disabled-opacity',
63
63
  textFieldFocusColor: '--plasma-autocomplete-textfield-focus-color',
64
64
  textFieldContentSlotColor: '--plasma-autocomplete-content-color',
65
- textFieldContentSlotRightColor: '--plasma-autocomplete-content-right-color',
66
65
  // Токены для дропдауна
67
66
  background: '--plasma-autocomplete-background',
68
67
  boxShadow: '--plasma-autocomplete-box-shadow',
@@ -6,4 +6,4 @@ var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
6
6
  var TextField = /*#__PURE__*/component(mergedConfig);
7
7
  export var StyledTextField = /*#__PURE__*/styled(TextField).withConfig({
8
8
  componentId: "plasma-new-hope__sc-1rp2ggs-0"
9
- })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ",var(", "));", ":var(", ",var(", "));"], textFieldTokens.color, autocompleteTokens.textFieldColor, textFieldTokens.placeholderColorFocus, autocompleteTokens.textFieldPlaceholderColorFocus, textFieldTokens.backgroundColor, autocompleteTokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, autocompleteTokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, autocompleteTokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, autocompleteTokens.textFieldBorderColor, textFieldTokens.borderColorHover, autocompleteTokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, autocompleteTokens.textFieldBorderColorFocus, textFieldTokens.colorReadOnly, autocompleteTokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, autocompleteTokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, autocompleteTokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, autocompleteTokens.textFieldPlaceholderColorReadOnly, textFieldTokens.caretColor, autocompleteTokens.textFieldCaretColor, textFieldTokens.placeholderColor, autocompleteTokens.textFieldPlaceholderColor, textFieldTokens.height, autocompleteTokens.textFieldHeight, textFieldTokens.borderWidth, autocompleteTokens.textFieldBorderWidth, textFieldTokens.borderRadius, autocompleteTokens.textFieldBorderRadius, textFieldTokens.padding, autocompleteTokens.textFieldPadding, textFieldTokens.leftContentMargin, autocompleteTokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, autocompleteTokens.textFieldRightContentMargin, textFieldTokens.fontFamily, autocompleteTokens.textFieldFontFamily, textFieldTokens.fontStyle, autocompleteTokens.textFieldFontStyle, textFieldTokens.fontSize, autocompleteTokens.textFieldFontSize, textFieldTokens.fontWeight, autocompleteTokens.textFieldFontWeight, textFieldTokens.letterSpacing, autocompleteTokens.textFieldLetterSpacing, textFieldTokens.lineHeight, autocompleteTokens.textFieldLineHeight, textFieldTokens.labelColor, autocompleteTokens.textFieldLabelColor, textFieldTokens.labelColorReadOnly, autocompleteTokens.textFieldLabelColorReadOnly, textFieldTokens.labelOffset, autocompleteTokens.textFieldLabelOffset, textFieldTokens.labelFontFamily, autocompleteTokens.textFieldLabelFontFamily, textFieldTokens.labelFontStyle, autocompleteTokens.textFieldLabelFontStyle, textFieldTokens.labelFontSize, autocompleteTokens.textFieldLabelFontSize, textFieldTokens.labelFontWeight, autocompleteTokens.textFieldLabelFontWeight, textFieldTokens.labelLetterSpacing, autocompleteTokens.textFieldLabelLetterSpacing, textFieldTokens.labelLineHeight, autocompleteTokens.textFieldLabelLineHeight, textFieldTokens.labelInnerFontFamily, autocompleteTokens.textFieldLabelInnerFontFamily, textFieldTokens.labelInnerFontStyle, autocompleteTokens.textFieldLabelInnerFontStyle, textFieldTokens.labelInnerFontSize, autocompleteTokens.textFieldLabelInnerFontSize, textFieldTokens.labelInnerFontWeight, autocompleteTokens.textFieldLabelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, autocompleteTokens.textFieldLabelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, autocompleteTokens.textFieldLabelInnerLineHeight, textFieldTokens.labelInnerPadding, autocompleteTokens.textFieldLabelInnerPadding, textFieldTokens.contentLabelInnerPadding, autocompleteTokens.textFieldContentLabelInnerPadding, textFieldTokens.leftHelperColor, autocompleteTokens.textFieldLeftHelperColor, textFieldTokens.leftHelperColorReadOnly, autocompleteTokens.textFieldLeftHelperColorReadOnly, textFieldTokens.leftHelperOffset, autocompleteTokens.textFieldLeftHelperOffset, textFieldTokens.leftHelperFontFamily, autocompleteTokens.textFieldLeftHelperFontFamily, textFieldTokens.leftHelperFontStyle, autocompleteTokens.textFieldLeftHelperFontStyle, textFieldTokens.leftHelperFontSize, autocompleteTokens.textFieldLeftHelperFontSize, textFieldTokens.leftHelperFontWeight, autocompleteTokens.textFieldLeftHelperFontWeight, textFieldTokens.leftHelperLetterSpacing, autocompleteTokens.textFieldLeftHelperLetterSpacing, textFieldTokens.leftHelperLineHeight, autocompleteTokens.textFieldLeftHelperLineHeight, textFieldTokens.textBeforeColor, autocompleteTokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, autocompleteTokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, autocompleteTokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, autocompleteTokens.textFieldTextAfterMargin, textFieldTokens.disabledOpacity, autocompleteTokens.textFieldDisabledOpacity, textFieldTokens.focusColor, autocompleteTokens.textFieldFocusColor, textFieldTokens.contentSlotColor, autocompleteTokens.textFieldContentSlotColor, autocompleteTokens.textFieldColor, textFieldTokens.contentSlotRightColor, autocompleteTokens.textFieldContentSlotRightColor, autocompleteTokens.textFieldColor);
9
+ })(["", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ",var(", "));"], textFieldTokens.color, autocompleteTokens.textFieldColor, textFieldTokens.placeholderColorFocus, autocompleteTokens.textFieldPlaceholderColorFocus, textFieldTokens.backgroundColor, autocompleteTokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, autocompleteTokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, autocompleteTokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, autocompleteTokens.textFieldBorderColor, textFieldTokens.borderColorHover, autocompleteTokens.textFieldBorderColorHover, textFieldTokens.borderColorFocus, autocompleteTokens.textFieldBorderColorFocus, textFieldTokens.colorReadOnly, autocompleteTokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, autocompleteTokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, autocompleteTokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, autocompleteTokens.textFieldPlaceholderColorReadOnly, textFieldTokens.caretColor, autocompleteTokens.textFieldCaretColor, textFieldTokens.placeholderColor, autocompleteTokens.textFieldPlaceholderColor, textFieldTokens.height, autocompleteTokens.textFieldHeight, textFieldTokens.borderWidth, autocompleteTokens.textFieldBorderWidth, textFieldTokens.borderRadius, autocompleteTokens.textFieldBorderRadius, textFieldTokens.padding, autocompleteTokens.textFieldPadding, textFieldTokens.leftContentMargin, autocompleteTokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, autocompleteTokens.textFieldRightContentMargin, textFieldTokens.fontFamily, autocompleteTokens.textFieldFontFamily, textFieldTokens.fontStyle, autocompleteTokens.textFieldFontStyle, textFieldTokens.fontSize, autocompleteTokens.textFieldFontSize, textFieldTokens.fontWeight, autocompleteTokens.textFieldFontWeight, textFieldTokens.letterSpacing, autocompleteTokens.textFieldLetterSpacing, textFieldTokens.lineHeight, autocompleteTokens.textFieldLineHeight, textFieldTokens.labelColor, autocompleteTokens.textFieldLabelColor, textFieldTokens.labelColorReadOnly, autocompleteTokens.textFieldLabelColorReadOnly, textFieldTokens.labelOffset, autocompleteTokens.textFieldLabelOffset, textFieldTokens.labelFontFamily, autocompleteTokens.textFieldLabelFontFamily, textFieldTokens.labelFontStyle, autocompleteTokens.textFieldLabelFontStyle, textFieldTokens.labelFontSize, autocompleteTokens.textFieldLabelFontSize, textFieldTokens.labelFontWeight, autocompleteTokens.textFieldLabelFontWeight, textFieldTokens.labelLetterSpacing, autocompleteTokens.textFieldLabelLetterSpacing, textFieldTokens.labelLineHeight, autocompleteTokens.textFieldLabelLineHeight, textFieldTokens.labelInnerFontFamily, autocompleteTokens.textFieldLabelInnerFontFamily, textFieldTokens.labelInnerFontStyle, autocompleteTokens.textFieldLabelInnerFontStyle, textFieldTokens.labelInnerFontSize, autocompleteTokens.textFieldLabelInnerFontSize, textFieldTokens.labelInnerFontWeight, autocompleteTokens.textFieldLabelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, autocompleteTokens.textFieldLabelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, autocompleteTokens.textFieldLabelInnerLineHeight, textFieldTokens.labelInnerPadding, autocompleteTokens.textFieldLabelInnerPadding, textFieldTokens.contentLabelInnerPadding, autocompleteTokens.textFieldContentLabelInnerPadding, textFieldTokens.leftHelperColor, autocompleteTokens.textFieldLeftHelperColor, textFieldTokens.leftHelperColorReadOnly, autocompleteTokens.textFieldLeftHelperColorReadOnly, textFieldTokens.leftHelperOffset, autocompleteTokens.textFieldLeftHelperOffset, textFieldTokens.leftHelperFontFamily, autocompleteTokens.textFieldLeftHelperFontFamily, textFieldTokens.leftHelperFontStyle, autocompleteTokens.textFieldLeftHelperFontStyle, textFieldTokens.leftHelperFontSize, autocompleteTokens.textFieldLeftHelperFontSize, textFieldTokens.leftHelperFontWeight, autocompleteTokens.textFieldLeftHelperFontWeight, textFieldTokens.leftHelperLetterSpacing, autocompleteTokens.textFieldLeftHelperLetterSpacing, textFieldTokens.leftHelperLineHeight, autocompleteTokens.textFieldLeftHelperLineHeight, textFieldTokens.textBeforeColor, autocompleteTokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, autocompleteTokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, autocompleteTokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, autocompleteTokens.textFieldTextAfterMargin, textFieldTokens.disabledOpacity, autocompleteTokens.textFieldDisabledOpacity, textFieldTokens.focusColor, autocompleteTokens.textFieldFocusColor, textFieldTokens.contentSlotColor, autocompleteTokens.textFieldContentSlotColor, autocompleteTokens.textFieldColor);
@@ -29,8 +29,6 @@ export var innerTokens = {
29
29
  export var tokens = {
30
30
  calendarWidth: '--plasma-calendar-width',
31
31
  calendarHeight: '--plasma-calendar-height',
32
- calendarBorderWidth: '--plasma-calendar-border-width',
33
- calendarBorderColor: '--plasma-calendar-border-color',
34
32
  /* Токены размера сетки лет */
35
33
  calendarYearsPadding: '--plasma-calendar-years-padding',
36
34
  calendarYearItemBorderRadius: '--plasma-calendar-year-item-border-radius',
@@ -93,7 +91,6 @@ export var tokens = {
93
91
  calendarHeaderFontLineHeight: '--plasma-calendar-header-line-height',
94
92
  calendarHeaderFontWeight: '--plasma-calendar-header-font-weight',
95
93
  calendarHeaderFontWeightBold: '--plasma-calendar-header-font-weight-bold',
96
- calendarHeaderArrowColor: '--plasma-calendar-header-arrow-color',
97
94
  /* Токены стрелок навигации календаря */
98
95
  iconButtonColor: '--plasma-calendar-icon-button-color',
99
96
  iconButtonBackgroundColor: '--plasma-calendar-icon-button-background',
@@ -3,7 +3,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
3
3
  import { css } from 'styled-components';
4
4
  import styled from 'styled-components';
5
5
  import { tokens } from '../Calendar.tokens';
6
- export var StyledCalendar = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n user-select: none;\n z-index: 1;\n\n width: var(", ");\n height: var(", ");\n border: var(", ") solid var(", ");\n"])), tokens.calendarWidth, tokens.calendarHeight, tokens.calendarBorderWidth, tokens.calendarBorderColor);
6
+ export var StyledCalendar = /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n position: relative;\n user-select: none;\n z-index: 1;\n\n width: var(", ");\n height: var(", ");\n"])), tokens.calendarWidth, tokens.calendarHeight);
7
7
  export var IsOutOfRange = /*#__PURE__*/styled.div.withConfig({
8
8
  componentId: "plasma-new-hope__sc-1xkgu4c-0"
9
9
  })(["position:absolute;padding:0;margin:0;height:0;width:0;border:0;overflow:hidden;clip:rect(0 0 0 0);"]);
@@ -1,10 +1,10 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
- import { IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';
2
+ import { IconDisclosureDownFill, IconDisclosureLeft, IconDisclosureRight } from '../../../_Icon';
3
3
  import { CalendarState } from '../../store/types';
4
4
  import { getCalendarType, MONTH_NAMES, YEAR_RENDER_COUNT } from '../../utils';
5
5
  import { classes } from '../../Calendar.tokens';
6
6
  import { sizeMap } from '../../store/reducer';
7
- import { StyledArrow, StyledArrows, StyledCalendarHeader, StyledDoubleHeaderWrapper, StyledHeader, StyledHeaderDate, StyledHeaderDouble, StyledNavigation, StyledHeaderArrow } from './CalendarHeader.styles';
7
+ import { StyledArrow, StyledArrows, StyledCalendarHeader, StyledDoubleHeaderWrapper, StyledHeader, StyledHeaderDate, StyledHeaderDouble, StyledNavigation } from './CalendarHeader.styles';
8
8
 
9
9
  /**
10
10
  * Компонент шапки календаря.
@@ -36,20 +36,20 @@ export var CalendarHeader = function CalendarHeader(_ref) {
36
36
  return '';
37
37
  }
38
38
  if (type === CalendarState.Days) {
39
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeaderDate, null, MONTH_NAMES[locale][date.monthIndex]), /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(StyledHeaderArrow, {
39
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeaderDate, null, MONTH_NAMES[locale][date.monthIndex]), /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
40
40
  color: "inherit",
41
41
  size: size === 'xs' ? 'xs' : 's'
42
42
  })));
43
43
  }
44
44
  if (type === CalendarState.Months || type === CalendarState.Quarters) {
45
- return /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(StyledHeaderArrow, {
45
+ return /*#__PURE__*/React.createElement(StyledHeaderDate, null, date.year, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
46
46
  color: "inherit",
47
47
  size: size === 'xs' ? 'xs' : 's'
48
48
  }));
49
49
  }
50
50
  if (type === CalendarState.Years) {
51
51
  var yearValue = secondPart ? startYear + 12 : startYear;
52
- return /*#__PURE__*/React.createElement(StyledHeaderDate, null, yearValue, "\u2014", yearValue + YEAR_RENDER_COUNT - 1, /*#__PURE__*/React.createElement(StyledHeaderArrow, {
52
+ return /*#__PURE__*/React.createElement(StyledHeaderDate, null, yearValue, "\u2014", yearValue + YEAR_RENDER_COUNT - 1, /*#__PURE__*/React.createElement(IconDisclosureDownFill, {
53
53
  color: "inherit",
54
54
  size: size === 'xs' ? 'xs' : 's'
55
55
  }));
@@ -4,7 +4,6 @@ import { component, mergeConfig } from '../../../../engines';
4
4
  import { iconButtonConfig, iconButtonTokens } from '../../../IconButton';
5
5
  import { flexCenter } from '../../mixins';
6
6
  import { addFocus } from '../../../../mixins';
7
- import { IconDisclosureDownFill } from '../../../_Icon';
8
7
  var mergedIconButtonConfig = /*#__PURE__*/mergeConfig(iconButtonConfig);
9
8
  var IconButton = /*#__PURE__*/component(mergedIconButtonConfig);
10
9
  export var StyledCalendarHeader = /*#__PURE__*/styled.div.withConfig({
@@ -42,7 +41,4 @@ export var StyledHeaderDouble = /*#__PURE__*/styled.button.withConfig({
42
41
  outlineOffset: '-0.125rem',
43
42
  outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
44
43
  outlineRadius: '0.563rem'
45
- }));
46
- export var StyledHeaderArrow = /*#__PURE__*/styled(IconDisclosureDownFill).withConfig({
47
- componentId: "plasma-new-hope__sc-186pzg3-8"
48
- })(["color:var(", ",var(", "));"], tokens.calendarHeaderArrowColor, tokens.calendarContentPrimaryColor);
44
+ }));
@@ -23,12 +23,12 @@ export var Ul = /*#__PURE__*/styled.ul.withConfig({
23
23
  }, tokens.padding, classes.emptyStateWrapper);
24
24
  export var IconArrowWrapper = /*#__PURE__*/styled.div.withConfig({
25
25
  componentId: "plasma-new-hope__sc-2kddkg-1"
26
- })(["line-height:0;color:var(", ",var(", "));cursor:", ";.", "{transform:rotate(-180deg);}&:hover,&:active{color:", ";}"], tokens.disclosureIconColor, constants.disclosureIconColor, function (_ref5) {
26
+ })(["line-height:0;color:var(", ");cursor:", ";.", "{transform:rotate(-180deg);}&:hover,&:active{color:", ";}"], constants.disclosureIconColor, function (_ref5) {
27
27
  var disabled = _ref5.disabled;
28
28
  return disabled ? 'inherit' : 'pointer';
29
29
  }, classes.arrowInverse, function (_ref6) {
30
30
  var disabled = _ref6.disabled;
31
- return disabled ? "var(".concat(tokens.disclosureIconColor, ", var(").concat(constants.disclosureIconColor, "))") : "var(".concat(tokens.disclosureIconColorHover, ", var(").concat(constants.disclosureIconColorHover, "))");
31
+ return disabled ? "var(".concat(constants.disclosureIconColor, ")") : "var(".concat(constants.disclosureIconColorHover, ")");
32
32
  });
33
33
  export var StyledArrow = /*#__PURE__*/styled(IconDisclosureDownCentered).withConfig({
34
34
  componentId: "plasma-new-hope__sc-2kddkg-2"
@@ -30,8 +30,6 @@ export var tokens = {
30
30
  itemIconSize: '--plasma-combobox-item-icon-size',
31
31
  itemIconSizeTight: '--plasma-combobox-item-icon-size-tight',
32
32
  itemIconMargin: '--plasma-combobox-item-icon-margin',
33
- itemBackground: '--plasma-combobox-item-background',
34
- itemBackgroundHover: '--plasma-combobox-item-background-hover',
35
33
  cellPadding: '--plasma-combobox-cell-padding',
36
34
  cellPaddingLeftContent: '--plasma-combobox-cell-padding-left-content',
37
35
  cellPaddingContent: '--plasma-combobox-cell-padding-content',
@@ -147,9 +145,7 @@ export var tokens = {
147
145
  helperTextColor: '--plasma-combobox-helper-text-color',
148
146
  helperTextOffset: '--plasma-combobox-helper-text-offset',
149
147
  spinnerSize: '--plasma-combobox-spinner-size',
150
- spinnerSizeTight: '--plasma-combobox-spinner-size-tight',
151
- disclosureIconColor: '--plasma-combobox-disclosure-icon-color',
152
- disclosureIconColorHover: '--plasma-combobox-disclosure-icon-color-hover'
148
+ spinnerSizeTight: '--plasma-combobox-spinner-size-tight'
153
149
  };
154
150
  export var constants = {
155
151
  focusColor: '--surface-accent',
@@ -78,8 +78,7 @@ export var Item = function Item(_ref) {
78
78
  }, /*#__PURE__*/React.createElement(StyledCheckbox, {
79
79
  checked: Boolean(checked.get(item.value)),
80
80
  indeterminate: checked.get(item.value) === 'indeterminate',
81
- onChange: handleChange,
82
- className: classes.selectItemCheckbox
81
+ onChange: handleChange
83
82
  })), !multiple && checked.get(item.value) === 'dot' && (_StyledIndicator || (_StyledIndicator = /*#__PURE__*/React.createElement(StyledIndicator, {
84
83
  size: "s",
85
84
  view: "default"
@@ -31,31 +31,25 @@ export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
31
31
  })(["margin-left:auto;display:inline-flex;"]);
32
32
  export var DisclosureIconWrapper = /*#__PURE__*/styled.div.withConfig({
33
33
  componentId: "plasma-new-hope__sc-1n1xg1s-6"
34
- })(["line-height:0;color:var(", ",var(", "));&:hover{color:var(", ",var(", "));}"], tokens.disclosureIconColor, constants.disclosureIconColor, tokens.disclosureIconColorHover, constants.disclosureIconColorHover);
34
+ })(["line-height:0;color:var(", ");&:hover{color:var(", ");}"], constants.disclosureIconColor, constants.disclosureIconColorHover);
35
35
  export var IconWrapper = /*#__PURE__*/styled.div.withConfig({
36
36
  componentId: "plasma-new-hope__sc-1n1xg1s-7"
37
- })(["display:flex;align-items:center;justify-content:center;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");& .", "{--plasma-checkbox-trigger-size:", ";--plasma-checkbox-trigger-border-radius:", ";}"], function (_ref) {
37
+ })(["display:flex;align-items:center;justify-content:center;flex:none;width:", ";height:", ";margin:var(", ");line-height:0;color:var(", ");"], function (_ref) {
38
38
  var variant = _ref.variant;
39
39
  return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
40
40
  }, function (_ref2) {
41
41
  var variant = _ref2.variant;
42
42
  return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
43
- }, tokens.itemIconMargin, tokens.checkboxFillColor, classes.selectItemCheckbox, function (_ref3) {
44
- var variant = _ref3.variant;
45
- return "var(".concat(variant === 'tight' ? tokens.checkboxTriggerSizeTight : tokens.checkboxTriggerSize, ")");
46
- }, function (_ref4) {
47
- var variant = _ref4.variant;
48
- return "var(".concat(variant === 'tight' ? tokens.checkboxTriggerBorderRadiusTight : tokens.checkboxTriggerBorderRadius, ")");
49
- });
43
+ }, tokens.itemIconMargin, tokens.checkboxFillColor);
50
44
  export var StyledText = /*#__PURE__*/styled.div.withConfig({
51
45
  componentId: "plasma-new-hope__sc-1n1xg1s-8"
52
46
  })(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
53
47
  export var Wrapper = /*#__PURE__*/styled.li.withConfig({
54
48
  componentId: "plasma-new-hope__sc-1n1xg1s-9"
55
- })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background-color:var(", ",var(", "));color:var(--text-primary);border-radius:var(", ");user-select:none;border-right:2px solid transparent;border-left:2px solid transparent;background-clip:padding-box;&:hover:not(.", "){cursor:pointer;background-color:var(", ",var(", "));}&.", "{background-color:var(", ",var(", "));}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, function (_ref5) {
56
- var variant = _ref5.variant;
49
+ })(["display:flex;align-items:center;min-height:var(", ");margin:0;box-sizing:content-box;padding:", ";font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background-color:var(", ");color:var(--text-primary);border-radius:var(", ");user-select:none;border-right:2px solid transparent;border-left:2px solid transparent;background-clip:padding-box;&:hover:not(.", "){cursor:pointer;background-color:var(", ");}&.", "{background-color:var(", ");}&.", "{opacity:", ";cursor:not-allowed;}:focus{outline:none;}", ";"], tokens.itemHeight, function (_ref3) {
50
+ var variant = _ref3.variant;
57
51
  return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
58
- }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, tokens.itemBackground, constants.itemBackground, tokens.borderRadius, classes.dropdownItemIsDisabled, tokens.itemBackgroundHover, constants.itemBackgroundHover, classes.dropdownItemIsActive, tokens.itemBackgroundHover, constants.itemBackgroundHover, classes.dropdownItemIsDisabled, constants.opacity, /*#__PURE__*/addFocus({
52
+ }, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.fontLetterSpacing, tokens.fontLineHeight, constants.itemBackground, tokens.borderRadius, classes.dropdownItemIsDisabled, constants.itemBackgroundHover, classes.dropdownItemIsActive, constants.itemBackgroundHover, classes.dropdownItemIsDisabled, constants.opacity, /*#__PURE__*/addFocus({
59
53
  outlineSize: '0.0625rem',
60
54
  outlineOffset: '0',
61
55
  outlineColor: /*#__PURE__*/"var(".concat(constants.focusColor, ")"),
@@ -109,16 +109,12 @@ export var tokens = {
109
109
  textFieldTextBeforeMargin: '--plasma-date-picker-textfield__before-text-margin',
110
110
  textFieldTextAfterMargin: '--plasma-date-picker-textfield__after-text-margin',
111
111
  textFieldContentSlotColor: '--plasma-date-picker-textfield__content-color',
112
- textFieldContentRightSlotColor: '--plasma-date-picker-textfield__content-right-color',
113
- textFieldContentRightSlotColorHover: '--plasma-date-picker-textfield__content-right-color-hover',
114
112
  /** Токены календаря */
115
113
  calendarPaddingTop: '--plasma-date-picker-calendar-padding-top',
116
114
  calendarShadow: '--plasma-date-picker-calendar-shadow',
117
115
  calendarBorderRadius: '--plasma-date-picker-calendar-border-radius',
118
116
  calendarWidth: '--plasma-date-picker-calendar-width',
119
117
  calendarHeight: '--plasma-date-picker-calendar-height',
120
- calendarBorderWidth: '--plasma-date-picker-calendar-border-width',
121
- calendarBorderColor: '--plasma-date-picker-calendar-border-width',
122
118
  calendarYearsPadding: '--plasma-date-picker-calendar__years-padding',
123
119
  calendarYearItemBorderRadius: '--plasma-date-picker-calendar__year-item-border-radius',
124
120
  calendarYearItemWidth: '--plasma-date-picker-calendar__year-item-width',
@@ -176,7 +172,6 @@ export var tokens = {
176
172
  calendarHeaderFontLineHeight: '--plasma-date-picker-calendar__header-line-height',
177
173
  calendarHeaderFontWeight: '--plasma-date-picker-calendar__header-font-weight',
178
174
  calendarHeaderFontWeightBold: '--plasma-date-picker-calendar__header-font-weight-bold',
179
- calendarHeaderArrowColor: '--plasma-date-picker-calendar__header-arrow-color',
180
175
  iconButtonColor: '--plasma-date-picker-icon-button__color',
181
176
  iconButtonBackgroundColor: '--plasma-date-picker-icon-button__background-color',
182
177
  iconButtonColorHover: '--plasma-date-picker-icon-button__color-hover',
@@ -5,7 +5,7 @@ import { applyHidden } from '../../mixins';
5
5
  import { tokens } from './DatePicker.tokens';
6
6
  var mergedCalendarConfig = /*#__PURE__*/mergeConfig(calendarBaseConfig);
7
7
  var Calendar = /*#__PURE__*/component(mergedCalendarConfig);
8
- export var baseCalendarTokens = /*#__PURE__*/"\n padding-top: var(".concat(tokens.calendarPaddingTop, ");\n box-shadow: var(").concat(tokens.calendarShadow, ");\n border-radius: var(").concat(tokens.calendarBorderRadius, ");\n\n ").concat(calendarBaseTokens.calendarBackgroundColor, ": var(").concat(tokens.calendarBackgroundColor, ");\n ").concat(calendarBaseTokens.calendarSelectedItemBackground, ": var(").concat(tokens.calendarSelectedItemBackground, ");\n ").concat(calendarBaseTokens.calendarSelectedItemColor, ": var(").concat(tokens.calendarSelectedItemColor, ");\n ").concat(calendarBaseTokens.calendarSelectableItemBackgroundHover, ": var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBorderColor, ": var(").concat(tokens.calendarCurrentItemBorderColor, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBackgroundHover, ": var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemColorHover, ": var(").concat(tokens.calendarCurrentItemColorHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemChildBackgroundHover, ": var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarActiveItemBackground, ": var(").concat(tokens.calendarActiveItemBackground, ");\n ").concat(calendarBaseTokens.calendarActiveItemColor, ": var(").concat(tokens.calendarActiveItemColor, ");\n ").concat(calendarBaseTokens.calendarHoveredItemBackground, ": var(").concat(tokens.calendarHoveredItemBackground, ");\n ").concat(calendarBaseTokens.calendarHoveredItemColor, ": var(").concat(tokens.calendarHoveredItemColor, ");\n ").concat(calendarBaseTokens.calendarRangeBackground, ": var(").concat(tokens.calendarRangeBackground, ");\n ").concat(calendarBaseTokens.calendarOutlineFocusColor, ": var(").concat(tokens.calendarOutlineFocusColor, ");\n ").concat(calendarBaseTokens.calendarContentPrimaryColor, ": var(").concat(tokens.calendarContentPrimaryColor, ");\n ").concat(calendarBaseTokens.calendarContentSecondaryColor, ": var(").concat(tokens.calendarContentSecondaryColor, ");\n\n ").concat(calendarBaseTokens.iconButtonColor, ": var(").concat(tokens.iconButtonColor, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColor, ": var(").concat(tokens.iconButtonBackgroundColor, ");\n ").concat(calendarBaseTokens.iconButtonColorHover, ": var(").concat(tokens.iconButtonColorHover, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorHover, ": var(").concat(tokens.iconButtonBackgroundColorHover, ");\n ").concat(calendarBaseTokens.iconButtonColorActive, ": var(").concat(tokens.iconButtonColorActive, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorActive, ": var(").concat(tokens.iconButtonBackgroundColorActive, ");\n\n ").concat(calendarBaseTokens.calendarWidth, ": var(").concat(tokens.calendarWidth, ");\n ").concat(calendarBaseTokens.calendarHeight, ": var(").concat(tokens.calendarHeight, ");\n ").concat(calendarBaseTokens.calendarBorderWidth, ": var(").concat(tokens.calendarBorderWidth, ");\n ").concat(calendarBaseTokens.calendarBorderColor, ": var(").concat(tokens.calendarBorderColor, ");\n\n ").concat(calendarBaseTokens.calendarYearsPadding, ": var(").concat(tokens.calendarYearsPadding, ");\n ").concat(calendarBaseTokens.calendarYearItemBorderRadius, ": var(").concat(tokens.calendarYearItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarYearItemWidth, ": var(").concat(tokens.calendarYearItemWidth, ");\n ").concat(calendarBaseTokens.calendarYearItemHeight, ": var(").concat(tokens.calendarYearItemHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontFamily, ": var(").concat(tokens.calendarYearFontFamily, ");\n ").concat(calendarBaseTokens.calendarYearFontSize, ": var(").concat(tokens.calendarYearFontSize, ");\n ").concat(calendarBaseTokens.calendarYearFontStyle, ": var(").concat(tokens.calendarYearFontStyle, ");\n ").concat(calendarBaseTokens.calendarYearFontLetterSpacing, ": var(").concat(tokens.calendarYearFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarYearFontLineHeight, ": var(").concat(tokens.calendarYearFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontWeight, ": var(").concat(tokens.calendarYearFontWeight, ");\n ").concat(calendarBaseTokens.calendarYearSelectedFontWeight, ": var(").concat(tokens.calendarYearSelectedFontWeight, ");\n\n ").concat(calendarBaseTokens.calendarMonthsPadding, ": var(").concat(tokens.calendarMonthsPadding, ");\n ").concat(calendarBaseTokens.calendarMonthItemBorderRadius, ": var(").concat(tokens.calendarMonthItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarMonthItemWidth, ": var(").concat(tokens.calendarMonthItemWidth, ");\n ").concat(calendarBaseTokens.calendarMonthItemHeight, ": var(").concat(tokens.calendarMonthItemHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontFamily, ": var(").concat(tokens.calendarMonthFontFamily, ");\n ").concat(calendarBaseTokens.calendarMonthFontSize, ": var(").concat(tokens.calendarMonthFontSize, ");\n ").concat(calendarBaseTokens.calendarMonthFontStyle, ": var(").concat(tokens.calendarMonthFontStyle, ");\n ").concat(calendarBaseTokens.calendarMonthFontLetterSpacing, ": var(").concat(tokens.calendarMonthFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarMonthFontLineHeight, ": var(").concat(tokens.calendarMonthFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontWeight, ": var(").concat(tokens.calendarMonthFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthSelectedFontWeight, ": var(").concat(tokens.calendarMonthSelectedFontWeight, ");\n\n ").concat(calendarBaseTokens.calendarQuartersPadding, ": var(").concat(tokens.calendarQuartersPadding, ");\n ").concat(calendarBaseTokens.calendarQuarterItemBorderRadius, ": var(").concat(tokens.calendarQuarterItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarQuarterItemWidth, ": var(").concat(tokens.calendarQuarterItemWidth, ");\n ").concat(calendarBaseTokens.calendarQuarterItemHeight, ": var(").concat(tokens.calendarQuarterItemHeight, ");\n ").concat(calendarBaseTokens.calendarQuarterFontFamily, ": var(").concat(tokens.calendarQuarterFontFamily, ");\n ").concat(calendarBaseTokens.calendarQuarterFontSize, ": var(").concat(tokens.calendarQuarterFontSize, ");\n ").concat(calendarBaseTokens.calendarQuarterFontStyle, ": var(").concat(tokens.calendarQuarterFontStyle, ");\n ").concat(calendarBaseTokens.calendarQuarterFontLetterSpacing, ": var(").concat(tokens.calendarQuarterFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarQuarterFontLineHeight, ": var(").concat(tokens.calendarQuarterFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarQuarterFontWeight, ": var(").concat(tokens.calendarQuarterFontWeight, ");\n ").concat(calendarBaseTokens.calendarQuarterSelectedFontWeight, ": var(").concat(tokens.calendarQuarterSelectedFontWeight, ");\n \n ").concat(calendarBaseTokens.calendarDaysPadding, ": var(").concat(tokens.calendarDaysPadding, ");\n ").concat(calendarBaseTokens.calendarDayItemBorderRadius, ": var(").concat(tokens.calendarDayItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarDayItemWidth, ": var(").concat(tokens.calendarDayItemWidth, ");\n ").concat(calendarBaseTokens.calendarDayItemHeight, ": var(").concat(tokens.calendarDayItemHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontFamily, ": var(").concat(tokens.calendarDayFontFamily, ");\n ").concat(calendarBaseTokens.calendarDayFontSize, ": var(").concat(tokens.calendarDayFontSize, ");\n ").concat(calendarBaseTokens.calendarDayFontStyle, ": var(").concat(tokens.calendarDayFontStyle, ");\n ").concat(calendarBaseTokens.calendarDayFontLetterSpacing, ": var(").concat(tokens.calendarDayFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarDayFontLineHeight, ": var(").concat(tokens.calendarDayFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontWeight, ": var(").concat(tokens.calendarDayFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaySelectedFontWeight, ": var(").concat(tokens.calendarDaySelectedFontWeight, ");\n \n ").concat(calendarBaseTokens.calendarHeaderWrapperPadding, ": var(").concat(tokens.calendarHeaderWrapperPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowGap, ": var(").concat(tokens.calendarHeaderArrowGap, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowPadding, ": var(").concat(tokens.calendarHeaderArrowPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderPadding, ": var(").concat(tokens.calendarHeaderPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderDateGap, ": var(").concat(tokens.calendarHeaderDateGap, ");\n ").concat(calendarBaseTokens.calendarHeaderFontFamily, ": var(").concat(tokens.calendarHeaderFontFamily, ");\n ").concat(calendarBaseTokens.calendarHeaderFontSize, ": var(").concat(tokens.calendarHeaderFontSize, ");\n ").concat(calendarBaseTokens.calendarHeaderFontStyle, ": var(").concat(tokens.calendarHeaderFontStyle, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLetterSpacing, ": var(").concat(tokens.calendarHeaderFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLineHeight, ": var(").concat(tokens.calendarHeaderFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeight, ": var(").concat(tokens.calendarHeaderFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeightBold, ": var(").concat(tokens.calendarHeaderFontWeightBold, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowColor, ": var(").concat(tokens.calendarHeaderArrowColor, ");\n \n ").concat(calendarBaseTokens.iconButtonHeight, ": var(").concat(tokens.iconButtonHeight, ");\n ").concat(calendarBaseTokens.iconButtonWidth, ": var(").concat(tokens.iconButtonWidth, ");\n ").concat(calendarBaseTokens.iconButtonPadding, ": var(").concat(tokens.iconButtonPadding, ");\n ").concat(calendarBaseTokens.iconButtonRadius, ": var(").concat(tokens.iconButtonRadius, ");\n ").concat(calendarBaseTokens.iconButtonFocusColor, ": var(").concat(tokens.iconButtonFocusColor, ");\n");
8
+ export var baseCalendarTokens = /*#__PURE__*/"\n padding-top: var(".concat(tokens.calendarPaddingTop, ");\n box-shadow: var(").concat(tokens.calendarShadow, ");\n border-radius: var(").concat(tokens.calendarBorderRadius, ");\n\n ").concat(calendarBaseTokens.calendarBackgroundColor, ": var(").concat(tokens.calendarBackgroundColor, ");\n ").concat(calendarBaseTokens.calendarSelectedItemBackground, ": var(").concat(tokens.calendarSelectedItemBackground, ");\n ").concat(calendarBaseTokens.calendarSelectedItemColor, ": var(").concat(tokens.calendarSelectedItemColor, ");\n ").concat(calendarBaseTokens.calendarSelectableItemBackgroundHover, ": var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBorderColor, ": var(").concat(tokens.calendarCurrentItemBorderColor, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBackgroundHover, ": var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemColorHover, ": var(").concat(tokens.calendarCurrentItemColorHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemChildBackgroundHover, ": var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarActiveItemBackground, ": var(").concat(tokens.calendarActiveItemBackground, ");\n ").concat(calendarBaseTokens.calendarActiveItemColor, ": var(").concat(tokens.calendarActiveItemColor, ");\n ").concat(calendarBaseTokens.calendarHoveredItemBackground, ": var(").concat(tokens.calendarHoveredItemBackground, ");\n ").concat(calendarBaseTokens.calendarHoveredItemColor, ": var(").concat(tokens.calendarHoveredItemColor, ");\n ").concat(calendarBaseTokens.calendarRangeBackground, ": var(").concat(tokens.calendarRangeBackground, ");\n ").concat(calendarBaseTokens.calendarOutlineFocusColor, ": var(").concat(tokens.calendarOutlineFocusColor, ");\n ").concat(calendarBaseTokens.calendarContentPrimaryColor, ": var(").concat(tokens.calendarContentPrimaryColor, ");\n ").concat(calendarBaseTokens.calendarContentSecondaryColor, ": var(").concat(tokens.calendarContentSecondaryColor, ");\n\n ").concat(calendarBaseTokens.iconButtonColor, ": var(").concat(tokens.iconButtonColor, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColor, ": var(").concat(tokens.iconButtonBackgroundColor, ");\n ").concat(calendarBaseTokens.iconButtonColorHover, ": var(").concat(tokens.iconButtonColorHover, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorHover, ": var(").concat(tokens.iconButtonBackgroundColorHover, ");\n ").concat(calendarBaseTokens.iconButtonColorActive, ": var(").concat(tokens.iconButtonColorActive, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorActive, ": var(").concat(tokens.iconButtonBackgroundColorActive, ");\n\n ").concat(calendarBaseTokens.calendarWidth, ": var(").concat(tokens.calendarWidth, ");\n ").concat(calendarBaseTokens.calendarHeight, ": var(").concat(tokens.calendarHeight, ");\n\n ").concat(calendarBaseTokens.calendarYearsPadding, ": var(").concat(tokens.calendarYearsPadding, ");\n ").concat(calendarBaseTokens.calendarYearItemBorderRadius, ": var(").concat(tokens.calendarYearItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarYearItemWidth, ": var(").concat(tokens.calendarYearItemWidth, ");\n ").concat(calendarBaseTokens.calendarYearItemHeight, ": var(").concat(tokens.calendarYearItemHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontFamily, ": var(").concat(tokens.calendarYearFontFamily, ");\n ").concat(calendarBaseTokens.calendarYearFontSize, ": var(").concat(tokens.calendarYearFontSize, ");\n ").concat(calendarBaseTokens.calendarYearFontStyle, ": var(").concat(tokens.calendarYearFontStyle, ");\n ").concat(calendarBaseTokens.calendarYearFontLetterSpacing, ": var(").concat(tokens.calendarYearFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarYearFontLineHeight, ": var(").concat(tokens.calendarYearFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontWeight, ": var(").concat(tokens.calendarYearFontWeight, ");\n ").concat(calendarBaseTokens.calendarYearSelectedFontWeight, ": var(").concat(tokens.calendarYearSelectedFontWeight, ");\n\n ").concat(calendarBaseTokens.calendarMonthsPadding, ": var(").concat(tokens.calendarMonthsPadding, ");\n ").concat(calendarBaseTokens.calendarMonthItemBorderRadius, ": var(").concat(tokens.calendarMonthItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarMonthItemWidth, ": var(").concat(tokens.calendarMonthItemWidth, ");\n ").concat(calendarBaseTokens.calendarMonthItemHeight, ": var(").concat(tokens.calendarMonthItemHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontFamily, ": var(").concat(tokens.calendarMonthFontFamily, ");\n ").concat(calendarBaseTokens.calendarMonthFontSize, ": var(").concat(tokens.calendarMonthFontSize, ");\n ").concat(calendarBaseTokens.calendarMonthFontStyle, ": var(").concat(tokens.calendarMonthFontStyle, ");\n ").concat(calendarBaseTokens.calendarMonthFontLetterSpacing, ": var(").concat(tokens.calendarMonthFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarMonthFontLineHeight, ": var(").concat(tokens.calendarMonthFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontWeight, ": var(").concat(tokens.calendarMonthFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthSelectedFontWeight, ": var(").concat(tokens.calendarMonthSelectedFontWeight, ");\n\n ").concat(calendarBaseTokens.calendarQuartersPadding, ": var(").concat(tokens.calendarQuartersPadding, ");\n ").concat(calendarBaseTokens.calendarQuarterItemBorderRadius, ": var(").concat(tokens.calendarQuarterItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarQuarterItemWidth, ": var(").concat(tokens.calendarQuarterItemWidth, ");\n ").concat(calendarBaseTokens.calendarQuarterItemHeight, ": var(").concat(tokens.calendarQuarterItemHeight, ");\n ").concat(calendarBaseTokens.calendarQuarterFontFamily, ": var(").concat(tokens.calendarQuarterFontFamily, ");\n ").concat(calendarBaseTokens.calendarQuarterFontSize, ": var(").concat(tokens.calendarQuarterFontSize, ");\n ").concat(calendarBaseTokens.calendarQuarterFontStyle, ": var(").concat(tokens.calendarQuarterFontStyle, ");\n ").concat(calendarBaseTokens.calendarQuarterFontLetterSpacing, ": var(").concat(tokens.calendarQuarterFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarQuarterFontLineHeight, ": var(").concat(tokens.calendarQuarterFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarQuarterFontWeight, ": var(").concat(tokens.calendarQuarterFontWeight, ");\n ").concat(calendarBaseTokens.calendarQuarterSelectedFontWeight, ": var(").concat(tokens.calendarQuarterSelectedFontWeight, ");\n \n ").concat(calendarBaseTokens.calendarDaysPadding, ": var(").concat(tokens.calendarDaysPadding, ");\n ").concat(calendarBaseTokens.calendarDayItemBorderRadius, ": var(").concat(tokens.calendarDayItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarDayItemWidth, ": var(").concat(tokens.calendarDayItemWidth, ");\n ").concat(calendarBaseTokens.calendarDayItemHeight, ": var(").concat(tokens.calendarDayItemHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontFamily, ": var(").concat(tokens.calendarDayFontFamily, ");\n ").concat(calendarBaseTokens.calendarDayFontSize, ": var(").concat(tokens.calendarDayFontSize, ");\n ").concat(calendarBaseTokens.calendarDayFontStyle, ": var(").concat(tokens.calendarDayFontStyle, ");\n ").concat(calendarBaseTokens.calendarDayFontLetterSpacing, ": var(").concat(tokens.calendarDayFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarDayFontLineHeight, ": var(").concat(tokens.calendarDayFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontWeight, ": var(").concat(tokens.calendarDayFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaySelectedFontWeight, ": var(").concat(tokens.calendarDaySelectedFontWeight, ");\n \n ").concat(calendarBaseTokens.calendarHeaderWrapperPadding, ": var(").concat(tokens.calendarHeaderWrapperPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowGap, ": var(").concat(tokens.calendarHeaderArrowGap, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowPadding, ": var(").concat(tokens.calendarHeaderArrowPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderPadding, ": var(").concat(tokens.calendarHeaderPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderDateGap, ": var(").concat(tokens.calendarHeaderDateGap, ");\n ").concat(calendarBaseTokens.calendarHeaderFontFamily, ": var(").concat(tokens.calendarHeaderFontFamily, ");\n ").concat(calendarBaseTokens.calendarHeaderFontSize, ": var(").concat(tokens.calendarHeaderFontSize, ");\n ").concat(calendarBaseTokens.calendarHeaderFontStyle, ": var(").concat(tokens.calendarHeaderFontStyle, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLetterSpacing, ": var(").concat(tokens.calendarHeaderFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLineHeight, ": var(").concat(tokens.calendarHeaderFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeight, ": var(").concat(tokens.calendarHeaderFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeightBold, ": var(").concat(tokens.calendarHeaderFontWeightBold, ");\n \n ").concat(calendarBaseTokens.iconButtonHeight, ": var(").concat(tokens.iconButtonHeight, ");\n ").concat(calendarBaseTokens.iconButtonWidth, ": var(").concat(tokens.iconButtonWidth, ");\n ").concat(calendarBaseTokens.iconButtonPadding, ": var(").concat(tokens.iconButtonPadding, ");\n ").concat(calendarBaseTokens.iconButtonRadius, ": var(").concat(tokens.iconButtonRadius, ");\n ").concat(calendarBaseTokens.iconButtonFocusColor, ": var(").concat(tokens.iconButtonFocusColor, ");\n");
9
9
 
10
10
  // NOTE: переопределение токенов Calendar
11
11
  export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
@@ -15,7 +15,7 @@ export var StyledPopover = /*#__PURE__*/styled(Popover).withConfig({
15
15
  // NOTE: переопределение токенов TextField
16
16
  export var StyledInput = /*#__PURE__*/styled(TextField).withConfig({
17
17
  componentId: "plasma-new-hope__sc-1ye0xbz-1"
18
- })(["width:100%;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ",var(", "));", ":var(", ",var(", "));", ":var(", ",var(", "));&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], textFieldTokens.color, tokens.textFieldColor, textFieldTokens.placeholderColor, tokens.textFieldPlaceholderColor, textFieldTokens.placeholderColorFocus, tokens.textFieldPlaceholderColorFocus, textFieldTokens.caretColor, tokens.textFieldCaretColor, textFieldTokens.focusColor, tokens.textFieldFocusColor, textFieldTokens.backgroundColor, tokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, tokens.borderColor, textFieldTokens.borderColorHover, tokens.borderColorHover, textFieldTokens.borderColorFocus, tokens.borderColorFocus, textFieldTokens.colorReadOnly, tokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, tokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly, textFieldTokens.height, tokens.textFieldHeight, textFieldTokens.borderWidth, tokens.textFieldBorderWidth, textFieldTokens.borderRadius, tokens.textFieldBorderRadius, textFieldTokens.padding, tokens.textFieldPadding, textFieldTokens.labelInnerPadding, tokens.labelInnerPadding, textFieldTokens.contentLabelInnerPadding, tokens.contentLabelInnerPadding, textFieldTokens.labelInnerFontFamily, tokens.labelInnerFontFamily, textFieldTokens.labelInnerFontSize, tokens.labelInnerFontSize, textFieldTokens.labelInnerFontStyle, tokens.labelInnerFontStyle, textFieldTokens.labelInnerFontWeight, tokens.labelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, tokens.labelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, tokens.labelInnerLineHeight, textFieldTokens.leftContentMargin, tokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, tokens.textFieldRightContentMargin, textFieldTokens.fontFamily, tokens.textFieldFontFamily, textFieldTokens.fontSize, tokens.textFieldFontSize, textFieldTokens.fontStyle, tokens.textFieldFontStyle, textFieldTokens.fontWeight, tokens.textFieldFontWeight, textFieldTokens.letterSpacing, tokens.textFieldLetterSpacing, textFieldTokens.lineHeight, tokens.textFieldLineHeight, textFieldTokens.disabledOpacity, tokens.disabledOpacity, textFieldTokens.textBeforeColor, tokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, tokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, tokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, tokens.textFieldTextAfterMargin, textFieldTokens.contentSlotColor, tokens.textFieldContentSlotColor, tokens.textFieldColor, textFieldTokens.contentSlotRightColor, tokens.textFieldContentRightSlotColor, textFieldTokens.contentSlotColor, textFieldTokens.contentSlotRightColorHover, tokens.textFieldContentRightSlotColorHover, textFieldTokens.contentSlotRightColor, classes.datePickerError, textFieldTokens.backgroundColor, tokens.textFieldBackgroundErrorColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundErrorColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundErrorColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorError, textFieldTokens.borderColorHover, tokens.textFieldBorderColorErrorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorErrorFocus, classes.datePickerSuccess, textFieldTokens.backgroundColor, tokens.textFieldBackgroundSuccessColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundSuccessColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundSuccessColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorSuccess, textFieldTokens.borderColorHover, tokens.textFieldBorderColorSuccessHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorSuccessFocus);
18
+ })(["width:100%;", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ",var(", "));&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}&.", "{", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");", ":var(", ");}"], textFieldTokens.color, tokens.textFieldColor, textFieldTokens.placeholderColor, tokens.textFieldPlaceholderColor, textFieldTokens.placeholderColorFocus, tokens.textFieldPlaceholderColorFocus, textFieldTokens.caretColor, tokens.textFieldCaretColor, textFieldTokens.focusColor, tokens.textFieldFocusColor, textFieldTokens.backgroundColor, tokens.textFieldBackgroundColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundColorFocus, textFieldTokens.borderColor, tokens.borderColor, textFieldTokens.borderColorHover, tokens.borderColorHover, textFieldTokens.borderColorFocus, tokens.borderColorFocus, textFieldTokens.colorReadOnly, tokens.textFieldColorReadOnly, textFieldTokens.backgroundColorReadOnly, tokens.textFieldBackgroundColorReadOnly, textFieldTokens.borderColorReadOnly, tokens.textFieldBorderColorReadOnly, textFieldTokens.placeholderColorReadOnly, tokens.textFieldPlaceholderColorReadOnly, textFieldTokens.height, tokens.textFieldHeight, textFieldTokens.borderWidth, tokens.textFieldBorderWidth, textFieldTokens.borderRadius, tokens.textFieldBorderRadius, textFieldTokens.padding, tokens.textFieldPadding, textFieldTokens.labelInnerPadding, tokens.labelInnerPadding, textFieldTokens.contentLabelInnerPadding, tokens.contentLabelInnerPadding, textFieldTokens.labelInnerFontFamily, tokens.labelInnerFontFamily, textFieldTokens.labelInnerFontSize, tokens.labelInnerFontSize, textFieldTokens.labelInnerFontStyle, tokens.labelInnerFontStyle, textFieldTokens.labelInnerFontWeight, tokens.labelInnerFontWeight, textFieldTokens.labelInnerLetterSpacing, tokens.labelInnerLetterSpacing, textFieldTokens.labelInnerLineHeight, tokens.labelInnerLineHeight, textFieldTokens.leftContentMargin, tokens.textFieldLeftContentMargin, textFieldTokens.rightContentMargin, tokens.textFieldRightContentMargin, textFieldTokens.fontFamily, tokens.textFieldFontFamily, textFieldTokens.fontSize, tokens.textFieldFontSize, textFieldTokens.fontStyle, tokens.textFieldFontStyle, textFieldTokens.fontWeight, tokens.textFieldFontWeight, textFieldTokens.letterSpacing, tokens.textFieldLetterSpacing, textFieldTokens.lineHeight, tokens.textFieldLineHeight, textFieldTokens.disabledOpacity, tokens.disabledOpacity, textFieldTokens.textBeforeColor, tokens.textFieldTextBeforeColor, textFieldTokens.textAfterColor, tokens.textFieldTextAfterColor, textFieldTokens.textBeforeMargin, tokens.textFieldTextBeforeMargin, textFieldTokens.textAfterMargin, tokens.textFieldTextAfterMargin, textFieldTokens.contentSlotColor, tokens.textFieldContentSlotColor, tokens.textFieldColor, classes.datePickerError, textFieldTokens.backgroundColor, tokens.textFieldBackgroundErrorColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundErrorColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundErrorColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorError, textFieldTokens.borderColorHover, tokens.textFieldBorderColorErrorHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorErrorFocus, classes.datePickerSuccess, textFieldTokens.backgroundColor, tokens.textFieldBackgroundSuccessColor, textFieldTokens.backgroundColorHover, tokens.textFieldBackgroundSuccessColorHover, textFieldTokens.backgroundColorFocus, tokens.textFieldBackgroundSuccessColorFocus, textFieldTokens.borderColor, tokens.textFieldBorderColorSuccess, textFieldTokens.borderColorHover, tokens.textFieldBorderColorSuccessHover, textFieldTokens.borderColorFocus, tokens.textFieldBorderColorSuccessFocus);
19
19
  export var base = /*#__PURE__*/css(["display:inline-block;.", ",.", "{width:inherit;}"], /*#__PURE__*/String(popoverClasses.wrapper), /*#__PURE__*/String(popoverClasses.target));
20
20
  export var StyledLabel = /*#__PURE__*/styled.label.withConfig({
21
21
  componentId: "plasma-new-hope__sc-1ye0xbz-2"
@@ -8,30 +8,33 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { forwardRef, useReducer } from 'react';
12
- import { cx, getPlacements } from '../../utils';
11
+ import React, { createContext, forwardRef, useReducer, useRef } from 'react';
12
+ import { safeUseId } from '@salutejs/plasma-core';
13
+ import { cx } from '../../utils';
14
+ import { useOutsideClick } from '../../hooks';
13
15
  import { pathReducer } from './reducers/pathReducer';
14
16
  import { focusedPathReducer } from './reducers/focusedPathReducer';
15
17
  import { DropdownInner } from './ui';
16
18
  import { base as viewCSS } from './variations/_view/base';
17
19
  import { base as sizeCSS } from './variations/_size/base';
18
- import { Ul, StyledPopover, base } from './Dropdown.styles';
19
- import { childrenWithProps } from './utils';
20
+ import { Ul, base } from './Dropdown.styles';
21
+ import { childrenWithProps, getItemByFocused, getItemId, getPlacement } from './utils';
20
22
  import { classes } from './Dropdown.tokens';
21
23
  import { useKeyNavigation } from './hooks/useKeyboardNavigation';
22
24
  import { useHashMaps } from './hooks/useHashMaps';
25
+ import { FloatingPopover } from './FloatingPopover';
26
+ export var Context = /*#__PURE__*/createContext({});
23
27
 
24
28
  /**
25
29
  * Выпадающий список.
26
30
  */
27
31
  export var dropdownRoot = function dropdownRoot(Root) {
28
32
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
33
+ var _getItemByFocused;
29
34
  var items = _ref.items,
30
35
  children = _ref.children,
31
- _ref$placement = _ref.placement,
32
- placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
33
- _ref$offset = _ref.offset,
34
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
36
+ placement = _ref.placement,
37
+ offset = _ref.offset,
35
38
  _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
36
39
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
37
40
  onToggle = _ref.onToggle,
@@ -68,6 +71,25 @@ export var dropdownRoot = function dropdownRoot(Root) {
68
71
  _useHashMaps2 = _slicedToArray(_useHashMaps, 2),
69
72
  pathMap = _useHashMaps2[0],
70
73
  focusedToValueMap = _useHashMaps2[1];
74
+ var activeDescendantItemValue = ((_getItemByFocused = getItemByFocused(focusedPath, focusedToValueMap)) === null || _getItemByFocused === void 0 ? void 0 : _getItemByFocused.value) || '';
75
+ var floatingPopoverRef = useRef(null);
76
+ var treeId = safeUseId();
77
+
78
+ // Логика работы при клике за пределами выпадающего списка
79
+ var targetRef = useOutsideClick(function (event) {
80
+ if (!isCurrentListOpen || !closeOnOverlayClick) {
81
+ return;
82
+ }
83
+ dispatchPath({
84
+ type: 'reset'
85
+ });
86
+ dispatchFocusedPath({
87
+ type: 'reset'
88
+ });
89
+ if (onToggle) {
90
+ onToggle(false, event);
91
+ }
92
+ }, floatingPopoverRef);
71
93
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
72
94
  if (opened) {
73
95
  dispatchPath({
@@ -99,66 +121,64 @@ export var dropdownRoot = function dropdownRoot(Root) {
99
121
  }),
100
122
  onKeyDown = _useKeyNavigation.onKeyDown;
101
123
  var isCurrentListOpen = Boolean(path[0]);
102
- var getActiveDescendant = function getActiveDescendant() {
103
- var _focusedToValueMap$ge;
104
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
105
- return "".concat(acc, "/").concat(n);
106
- }, '').replace(/^(\/)/, '');
107
- return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
108
- };
109
- return /*#__PURE__*/React.createElement(StyledPopover, {
124
+ return /*#__PURE__*/React.createElement(Context.Provider, {
125
+ value: {
126
+ focusedPath: focusedPath,
127
+ size: size,
128
+ variant: variant,
129
+ itemRole: itemRole,
130
+ handleGlobalToggle: handleGlobalToggle,
131
+ closeOnSelect: closeOnSelect,
132
+ onHover: onHover,
133
+ onItemClick: onItemClick,
134
+ onItemSelect: onItemSelect,
135
+ hasArrow: hasArrow,
136
+ treeId: treeId
137
+ }
138
+ }, /*#__PURE__*/React.createElement(FloatingPopover, {
139
+ ref: floatingPopoverRef,
110
140
  opened: isCurrentListOpen,
111
141
  onToggle: handleGlobalToggle,
142
+ placement: getPlacement(placement),
112
143
  offset: offset,
113
- placement: getPlacements(placement),
144
+ portal: portal,
114
145
  trigger: trigger,
115
- closeOnOverlayClick: closeOnOverlayClick,
116
- isFocusTrapped: false,
117
146
  target: childrenWithProps(children, {
118
147
  role: 'combobox',
119
- 'aria-controls': 'tree_level_1',
148
+ 'aria-controls': "".concat(treeId, "_tree_level_1"),
120
149
  'aria-expanded': isCurrentListOpen,
121
- 'aria-activedescendant': getActiveDescendant(),
150
+ 'aria-activedescendant': activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue.toString()) : '',
122
151
  onKeyDown: onKeyDown
123
- }),
124
- preventOverflow: false,
125
- usePortal: Boolean(portal),
126
- frame: portal
152
+ })
127
153
  }, /*#__PURE__*/React.createElement(Root, _extends({
128
154
  className: cx(className, classes.dropdownRoot),
129
155
  ref: ref,
130
156
  view: view,
131
- size: size
157
+ size: size,
158
+ style: {
159
+ display: 'inline-block'
160
+ }
132
161
  }, rest), /*#__PURE__*/React.createElement(Ul, {
162
+ ref: targetRef,
163
+ id: "".concat(treeId, "_tree_level_1"),
164
+ role: "tree",
133
165
  listHeight: listHeight,
134
166
  listOverflow: listOverflow,
135
- role: "tree",
136
- id: "tree_level_1",
137
167
  listWidth: listWidth
138
168
  }, items.map(function (item, index) {
139
169
  return /*#__PURE__*/React.createElement(DropdownInner, {
140
170
  key: "".concat(index, "/0"),
141
171
  item: item,
142
172
  currentLevel: 0,
143
- focusedPath: focusedPath,
144
173
  trigger: trigger,
145
174
  path: path,
146
175
  dispatchPath: dispatchPath,
147
176
  index: index,
148
- itemRole: itemRole,
149
177
  listHeight: listHeight,
150
178
  listOverflow: listOverflow,
151
- handleGlobalToggle: handleGlobalToggle,
152
- closeOnSelect: closeOnSelect,
153
- onHover: onHover,
154
- onItemSelect: onItemSelect,
155
- onItemClick: onItemClick,
156
- listWidth: listWidth,
157
- variant: variant,
158
- hasArrow: hasArrow,
159
- size: size
179
+ listWidth: listWidth
160
180
  });
161
- }))));
181
+ })))));
162
182
  });
163
183
  };
164
184
  export var dropdownConfig = {
@@ -1,26 +1,20 @@
1
1
  import styled from 'styled-components';
2
2
  import { css } from 'styled-components';
3
- import { component } from '../../engines';
4
- import { popoverConfig, popoverClasses } from '../Popover';
5
3
  import { getCorrectHeight } from './utils';
6
- import { tokens } from './Dropdown.tokens';
7
- var Popover = /*#__PURE__*/component(popoverConfig);
8
- export var StyledPopover = /*#__PURE__*/styled(Popover).withConfig({
9
- componentId: "plasma-new-hope__sc-13ezpo5-0"
10
- })([".", ",.", "{display:block;}"], /*#__PURE__*/String(popoverClasses.wrapper), /*#__PURE__*/String(popoverClasses.target));
4
+ import { tokens, constants } from './Dropdown.tokens';
11
5
  export var Ul = /*#__PURE__*/styled.ul.withConfig({
12
- componentId: "plasma-new-hope__sc-13ezpo5-1"
13
- })(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:", ";height:", ";overflow:", ";margin:", ";padding:var(", ");border:var(", ") solid var(", ");"], tokens.background, tokens.boxShadow, tokens.borderRadius, function (_ref) {
6
+ componentId: "plasma-new-hope__sc-13ezpo5-0"
7
+ })(["box-sizing:border-box;width:", ";height:", ";margin:", ";padding:var(", ") 0;overflow:", ";background:var(", ");box-shadow:", ";border-radius:var(", ");"], function (_ref) {
14
8
  var listWidth = _ref.listWidth;
15
9
  return listWidth || "var(".concat(tokens.width, ")");
16
10
  }, function (_ref2) {
17
11
  var listHeight = _ref2.listHeight;
18
12
  return listHeight ? getCorrectHeight(listHeight) : 'auto';
19
13
  }, function (_ref3) {
20
- var listOverflow = _ref3.listOverflow;
14
+ var isInnerUl = _ref3.isInnerUl;
15
+ return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0.125rem 0") : 0;
16
+ }, tokens.padding, function (_ref4) {
17
+ var listOverflow = _ref4.listOverflow;
21
18
  return listOverflow || 'initial';
22
- }, function (_ref4) {
23
- var isInnerUl = _ref4.isInnerUl;
24
- return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 var(").concat(tokens.padding, ")") : 0;
25
- }, tokens.padding, tokens.borderWidth, tokens.borderColor);
26
- export var base = /*#__PURE__*/css(["display:inline-block;"]);
19
+ }, constants.background, constants.boxShadow, tokens.borderRadius);
20
+ export var base = /*#__PURE__*/css([""]);