@salutejs/plasma-new-hope 0.175.1-canary.1506.11553215359.0 → 0.175.2-canary.1505.11553165432.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (593) 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.js +27 -22
  22. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  23. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  24. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  25. package/{es/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → cjs/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
  26. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  27. package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  28. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  29. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  30. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  31. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  32. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +7 -21
  33. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  34. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
  35. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +21 -0
  36. package/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -0
  37. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
  38. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  39. package/cjs/components/Combobox/ComboboxOld/Combobox.css +28 -14
  40. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
  41. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  42. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  43. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  44. package/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  45. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  46. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  47. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  48. package/cjs/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  49. package/cjs/components/DatePicker/RangeDate/RangeDate.css +14 -15
  50. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
  51. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  52. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  53. package/cjs/components/DatePicker/SingleDate/SingleDate.css +14 -15
  54. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  55. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  56. package/{es/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → cjs/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  57. package/cjs/components/Dropdown/Dropdown.css +30 -16
  58. package/cjs/components/Dropdown/Dropdown.js +60 -37
  59. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  60. package/cjs/components/Dropdown/Dropdown.styles.js +14 -26
  61. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  62. package/cjs/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  63. package/cjs/components/Dropdown/Dropdown.tokens.js +24 -3
  64. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  65. package/cjs/components/Dropdown/FloatingPopover.js +104 -0
  66. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -0
  67. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  68. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  69. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  70. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  71. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  72. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +25 -31
  73. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  74. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  75. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  76. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  77. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  78. package/cjs/components/Dropdown/utils/getItemByFocused.js +13 -0
  79. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  80. package/cjs/components/Dropdown/utils/getItemId.js +10 -0
  81. package/cjs/components/Dropdown/utils/getItemId.js.map +1 -0
  82. package/cjs/components/Dropdown/utils/getPlacement.js +16 -0
  83. package/cjs/components/Dropdown/utils/getPlacement.js.map +1 -0
  84. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  85. package/cjs/components/Notification/Notification.css +11 -11
  86. package/cjs/components/Notification/Notification.styles.js +15 -15
  87. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  88. package/cjs/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
  89. package/cjs/components/Notification/Notification.tokens.js +0 -2
  90. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  91. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  92. package/cjs/components/Pagination/Pagination.css +10 -10
  93. package/cjs/components/Pagination/Pagination.js +5 -5
  94. package/cjs/components/Pagination/Pagination.js.map +1 -1
  95. package/cjs/components/Pagination/Pagination.styles.js +3 -3
  96. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  97. package/cjs/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  98. package/cjs/components/Pagination/Pagination.tokens.js +1 -4
  99. package/cjs/components/Pagination/Pagination.tokens.js.map +1 -1
  100. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  101. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  102. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  103. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  104. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  105. package/cjs/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  106. package/cjs/components/Select/Select.js +14 -26
  107. package/cjs/components/Select/Select.js.map +1 -1
  108. package/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  109. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  110. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  111. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  112. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  113. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  114. package/cjs/components/Select/utils/getButtonLabel.js +1 -1
  115. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  116. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  117. package/cjs/components/Select/utils/getInitialValue.js +21 -0
  118. package/cjs/components/Select/utils/getInitialValue.js.map +1 -0
  119. package/cjs/components/Select/utils/initialItemsTransform.js +9 -6
  120. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
  121. package/cjs/components/Tabs/tokens.js +1 -7
  122. package/cjs/components/Tabs/tokens.js.map +1 -1
  123. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  124. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  125. package/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  126. package/{es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  127. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  128. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  129. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  130. package/cjs/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
  131. package/cjs/hooks/useOutsideClick.js +1 -1
  132. package/cjs/hooks/useOutsideClick.js.map +1 -1
  133. package/cjs/index.css +71 -74
  134. package/emotion/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  135. package/emotion/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  136. package/emotion/cjs/components/Calendar/Calendar.tokens.js +0 -3
  137. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  138. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  139. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +17 -22
  140. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +26 -22
  141. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  142. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  143. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  144. package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
  145. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +20 -0
  146. package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +8 -1
  147. package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  148. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  149. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  150. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  151. package/emotion/cjs/components/Dropdown/Dropdown.js +58 -37
  152. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +9 -25
  153. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
  154. package/emotion/cjs/components/Dropdown/FloatingPopover.js +109 -0
  155. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  156. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  157. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +21 -41
  158. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  159. package/emotion/cjs/components/Dropdown/utils/getItemId.js +9 -0
  160. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  161. package/emotion/cjs/components/Dropdown/utils/index.js +23 -1
  162. package/emotion/cjs/components/Notification/Notification.styles.js +11 -11
  163. package/emotion/cjs/components/Notification/Notification.tokens.js +0 -2
  164. package/emotion/cjs/components/Pagination/Pagination.js +5 -5
  165. package/emotion/cjs/components/Pagination/Pagination.styles.js +8 -8
  166. package/emotion/cjs/components/Pagination/Pagination.tokens.js +1 -4
  167. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  168. package/emotion/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  169. package/emotion/cjs/components/Select/Select.js +12 -25
  170. package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  171. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  172. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  173. package/emotion/cjs/components/Select/utils/getButtonLabel.js +1 -1
  174. package/emotion/cjs/components/Select/utils/getInitialValue.js +20 -0
  175. package/emotion/cjs/components/Select/utils/index.js +8 -1
  176. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +19 -6
  177. package/emotion/cjs/components/Tabs/tokens.js +1 -7
  178. package/emotion/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  179. package/emotion/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  180. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  181. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
  182. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  183. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  184. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  185. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
  186. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  187. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  188. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  189. package/emotion/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  190. package/emotion/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  191. package/emotion/es/components/Calendar/Calendar.tokens.js +0 -3
  192. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -2
  193. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  194. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +16 -21
  195. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +27 -23
  196. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -7
  197. package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  198. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  199. package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +15 -21
  200. package/emotion/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +14 -0
  201. package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +2 -1
  202. package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  203. package/emotion/es/components/DatePicker/DatePicker.tokens.js +0 -5
  204. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  205. package/emotion/es/components/DatePicker/SingleDate/SingleDate.styles.js +5 -5
  206. package/emotion/es/components/Dropdown/Dropdown.js +60 -40
  207. package/emotion/es/components/Dropdown/Dropdown.styles.js +9 -25
  208. package/emotion/es/components/Dropdown/Dropdown.tokens.js +35 -3
  209. package/emotion/es/components/Dropdown/FloatingPopover.js +102 -0
  210. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  211. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  212. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +22 -42
  213. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  214. package/emotion/es/components/Dropdown/utils/getItemId.js +3 -0
  215. package/emotion/es/components/Dropdown/utils/getPlacement.js +9 -0
  216. package/emotion/es/components/Dropdown/utils/index.js +4 -1
  217. package/emotion/es/components/Notification/Notification.styles.js +11 -11
  218. package/emotion/es/components/Notification/Notification.tokens.js +0 -2
  219. package/emotion/es/components/Pagination/Pagination.js +5 -5
  220. package/emotion/es/components/Pagination/Pagination.styles.js +8 -8
  221. package/emotion/es/components/Pagination/Pagination.tokens.js +1 -4
  222. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  223. package/emotion/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +3 -3
  224. package/emotion/es/components/Select/Select.js +13 -26
  225. package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  226. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  227. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +13 -13
  228. package/emotion/es/components/Select/utils/getButtonLabel.js +1 -1
  229. package/emotion/es/components/Select/utils/getInitialValue.js +14 -0
  230. package/emotion/es/components/Select/utils/index.js +2 -1
  231. package/emotion/es/components/Select/utils/initialItemsTransform.js +19 -6
  232. package/emotion/es/components/Tabs/tokens.js +1 -7
  233. package/emotion/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +5 -5
  234. package/emotion/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +5 -5
  235. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +12 -12
  236. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
  237. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  238. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  239. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +12 -12
  240. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
  241. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  242. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  243. package/emotion/es/hooks/useOutsideClick.js +1 -1
  244. package/es/components/Autocomplete/Autocomplete.css +1 -1
  245. package/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  246. package/es/components/Autocomplete/Autocomplete.tokens.js.map +1 -1
  247. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  248. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  249. package/es/components/Autocomplete/ui/TextField/{TextField.styles_1ye9068.css → TextField.styles_1csckkd.css} +1 -1
  250. package/es/components/Calendar/Calendar.tokens.js +0 -3
  251. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  252. package/es/components/Calendar/CalendarBase/CalendarBase.css +10 -11
  253. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  254. package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
  255. package/{cjs/components/Calendar/CalendarBase/CalendarBase.styles_ni8729.css → es/components/Calendar/CalendarBase/CalendarBase.styles_1m6uih1.css} +1 -1
  256. package/es/components/Calendar/CalendarDouble/CalendarDouble.css +10 -11
  257. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +8 -9
  258. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -4
  259. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  260. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -11
  261. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  262. package/{cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1xijs8w.css → es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1jfelqf.css} +0 -1
  263. package/es/components/Combobox/ComboboxNew/Combobox.css +12 -12
  264. package/es/components/Combobox/ComboboxNew/Combobox.js +27 -22
  265. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  266. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +10 -10
  267. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  268. package/{cjs/components/Combobox/ComboboxNew/Combobox.styles_1nqrvms.css → es/components/Combobox/ComboboxNew/Combobox.styles_1s09ifw.css} +1 -1
  269. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  270. package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
  271. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +12 -12
  272. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +12 -12
  273. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  274. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  275. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +7 -21
  276. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  277. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/{Item.styles_1njzasn.css → Item.styles_y71664.css} +3 -3
  278. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +17 -0
  279. package/es/components/Combobox/ComboboxNew/utils/getInitialValue.js.map +1 -0
  280. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
  281. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  282. package/es/components/Combobox/ComboboxOld/Combobox.css +28 -14
  283. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
  284. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  285. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  286. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  287. package/es/components/DatePicker/DatePicker.tokens.js +0 -5
  288. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  289. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  290. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  291. package/es/components/DatePicker/DatePickerBase.styles_mjc9xz.css +2 -0
  292. package/es/components/DatePicker/RangeDate/RangeDate.css +14 -15
  293. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +12 -13
  294. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  295. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1gljtdv.css +2 -0
  296. package/es/components/DatePicker/SingleDate/SingleDate.css +14 -15
  297. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  298. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  299. package/{cjs/components/DatePicker/SingleDate/SingleDate.styles_e72b5o.css → es/components/DatePicker/SingleDate/SingleDate.styles_1rrq00l.css} +1 -1
  300. package/es/components/Dropdown/Dropdown.css +30 -16
  301. package/es/components/Dropdown/Dropdown.js +62 -40
  302. package/es/components/Dropdown/Dropdown.js.map +1 -1
  303. package/es/components/Dropdown/Dropdown.styles.js +15 -26
  304. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  305. package/es/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  306. package/es/components/Dropdown/Dropdown.tokens.js +24 -3
  307. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  308. package/es/components/Dropdown/FloatingPopover.js +100 -0
  309. package/es/components/Dropdown/FloatingPopover.js.map +1 -0
  310. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  311. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  312. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  313. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  314. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  315. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +24 -29
  316. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  317. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  318. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -1
  319. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  320. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  321. package/es/components/Dropdown/utils/getItemByFocused.js +9 -0
  322. package/es/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  323. package/es/components/Dropdown/utils/getItemId.js +6 -0
  324. package/es/components/Dropdown/utils/getItemId.js.map +1 -0
  325. package/es/components/Dropdown/utils/getPlacement.js +12 -0
  326. package/es/components/Dropdown/utils/getPlacement.js.map +1 -0
  327. package/es/components/Dropdown/utils/index.js.map +1 -1
  328. package/es/components/Notification/Notification.css +11 -11
  329. package/es/components/Notification/Notification.styles.js +15 -15
  330. package/es/components/Notification/Notification.styles.js.map +1 -1
  331. package/es/components/Notification/{Notification.styles_1g34msm.css → Notification.styles_7h8hp0.css} +1 -1
  332. package/es/components/Notification/Notification.tokens.js +0 -2
  333. package/es/components/Notification/Notification.tokens.js.map +1 -1
  334. package/es/components/Notification/NotificationsProvider.css +11 -11
  335. package/es/components/Pagination/Pagination.css +10 -10
  336. package/es/components/Pagination/Pagination.js +5 -5
  337. package/es/components/Pagination/Pagination.js.map +1 -1
  338. package/es/components/Pagination/Pagination.styles.js +3 -3
  339. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  340. package/es/components/Pagination/{Pagination.styles_1w5oej6.css → Pagination.styles_y6gcva.css} +1 -1
  341. package/es/components/Pagination/Pagination.tokens.js +1 -4
  342. package/es/components/Pagination/Pagination.tokens.js.map +1 -1
  343. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +3 -3
  344. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  345. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js.map +1 -1
  346. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  347. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  348. package/es/components/Pagination/ui/PaginationSelectPerPage/{PaginationSelectPerPage.styles_1fesyfv.css → PaginationSelectPerPage.styles_187mk6b.css} +1 -1
  349. package/es/components/Select/Select.js +15 -27
  350. package/es/components/Select/Select.js.map +1 -1
  351. package/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  352. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  353. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  354. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  355. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  356. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  357. package/es/components/Select/utils/getButtonLabel.js +1 -1
  358. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  359. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  360. package/es/components/Select/utils/getInitialValue.js +17 -0
  361. package/es/components/Select/utils/getInitialValue.js.map +1 -0
  362. package/es/components/Select/utils/initialItemsTransform.js +9 -6
  363. package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
  364. package/es/components/Tabs/tokens.js +1 -7
  365. package/es/components/Tabs/tokens.js.map +1 -1
  366. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.css +5 -5
  367. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  368. package/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js.map +1 -1
  369. package/{cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_uaaqqg.css → es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles_hfqv5b.css} +1 -1
  370. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.css +5 -5
  371. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  372. package/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js.map +1 -1
  373. package/es/components/Tabs/ui/vertical/VerticalTabItem/{VerticalTabItem.styles_1g7zipg.css → VerticalTabItem.styles_16d3lah.css} +1 -1
  374. package/es/hooks/useOutsideClick.js +1 -1
  375. package/es/hooks/useOutsideClick.js.map +1 -1
  376. package/es/index.css +71 -74
  377. package/package.json +2 -2
  378. package/styled-components/cjs/components/Autocomplete/Autocomplete.tokens.js +0 -1
  379. package/styled-components/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  380. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +0 -3
  381. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  382. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  383. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +2 -6
  384. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +26 -22
  385. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  386. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  387. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  388. package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
  389. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getInitialValue.js +20 -0
  390. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +8 -1
  391. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  392. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +0 -5
  393. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  394. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  395. package/styled-components/cjs/components/Dropdown/Dropdown.js +58 -37
  396. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +9 -15
  397. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +36 -4
  398. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +109 -0
  399. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  400. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  401. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +17 -19
  402. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  403. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +9 -0
  404. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  405. package/styled-components/cjs/components/Dropdown/utils/index.js +23 -1
  406. package/styled-components/cjs/components/Notification/Notification.styles.js +1 -1
  407. package/styled-components/cjs/components/Notification/Notification.tokens.js +0 -2
  408. package/styled-components/cjs/components/Pagination/Pagination.js +5 -5
  409. package/styled-components/cjs/components/Pagination/Pagination.styles.js +1 -1
  410. package/styled-components/cjs/components/Pagination/Pagination.tokens.js +1 -4
  411. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  412. package/styled-components/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  413. package/styled-components/cjs/components/Select/Select.js +12 -25
  414. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +1 -1
  415. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  416. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  417. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +1 -1
  418. package/styled-components/cjs/components/Select/utils/getInitialValue.js +20 -0
  419. package/styled-components/cjs/components/Select/utils/index.js +8 -1
  420. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +19 -6
  421. package/styled-components/cjs/components/Tabs/tokens.js +1 -7
  422. package/styled-components/cjs/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  423. package/styled-components/cjs/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  424. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  425. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
  426. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  427. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  428. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  429. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
  430. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  431. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  432. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  433. package/styled-components/es/components/Autocomplete/Autocomplete.tokens.js +0 -1
  434. package/styled-components/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -1
  435. package/styled-components/es/components/Calendar/Calendar.tokens.js +0 -3
  436. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
  437. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -5
  438. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +1 -5
  439. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +27 -23
  440. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -2
  441. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +1 -5
  442. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +1 -2
  443. package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +6 -12
  444. package/styled-components/es/components/Combobox/ComboboxNew/utils/getInitialValue.js +14 -0
  445. package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +2 -1
  446. package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  447. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +0 -5
  448. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  449. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.styles.js +1 -1
  450. package/styled-components/es/components/Dropdown/Dropdown.js +60 -40
  451. package/styled-components/es/components/Dropdown/Dropdown.styles.js +9 -15
  452. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +35 -3
  453. package/styled-components/es/components/Dropdown/FloatingPopover.js +102 -0
  454. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  455. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  456. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -20
  457. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  458. package/styled-components/es/components/Dropdown/utils/getItemId.js +3 -0
  459. package/styled-components/es/components/Dropdown/utils/getPlacement.js +9 -0
  460. package/styled-components/es/components/Dropdown/utils/index.js +4 -1
  461. package/styled-components/es/components/Notification/Notification.styles.js +1 -1
  462. package/styled-components/es/components/Notification/Notification.tokens.js +0 -2
  463. package/styled-components/es/components/Pagination/Pagination.js +5 -5
  464. package/styled-components/es/components/Pagination/Pagination.styles.js +1 -1
  465. package/styled-components/es/components/Pagination/Pagination.tokens.js +1 -4
  466. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.js +2 -2
  467. package/styled-components/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
  468. package/styled-components/es/components/Select/Select.js +13 -26
  469. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +1 -1
  470. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +1 -1
  471. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -1
  472. package/styled-components/es/components/Select/utils/getButtonLabel.js +1 -1
  473. package/styled-components/es/components/Select/utils/getInitialValue.js +14 -0
  474. package/styled-components/es/components/Select/utils/index.js +2 -1
  475. package/styled-components/es/components/Select/utils/initialItemsTransform.js +19 -6
  476. package/styled-components/es/components/Tabs/tokens.js +1 -7
  477. package/styled-components/es/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.js +1 -1
  478. package/styled-components/es/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.js +1 -1
  479. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +4 -4
  480. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +6 -0
  481. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  482. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  483. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +4 -4
  484. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +6 -0
  485. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  486. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  487. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  488. package/types/components/Autocomplete/Autocomplete.tokens.d.ts +0 -1
  489. package/types/components/Autocomplete/Autocomplete.tokens.d.ts.map +1 -1
  490. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  491. package/types/components/Calendar/Calendar.tokens.d.ts +0 -3
  492. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  493. package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
  494. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
  495. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +0 -1
  496. package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
  497. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  498. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  499. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +0 -4
  500. package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
  501. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +14 -3
  502. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  503. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
  504. package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
  505. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts +4 -0
  506. package/types/components/Combobox/ComboboxNew/utils/getInitialValue.d.ts.map +1 -0
  507. package/types/components/Combobox/ComboboxNew/utils/index.d.ts +1 -0
  508. package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
  509. package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
  510. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +2 -1
  511. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  512. package/types/components/DatePicker/DatePicker.tokens.d.ts +0 -5
  513. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  514. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  515. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  516. package/types/components/Dropdown/Dropdown.d.ts +2 -1
  517. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  518. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -6
  519. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  520. package/types/components/Dropdown/Dropdown.tokens.d.ts +25 -2
  521. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  522. package/types/components/Dropdown/Dropdown.types.d.ts +30 -4
  523. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  524. package/types/components/Dropdown/FloatingPopover.d.ts +5 -0
  525. package/types/components/Dropdown/FloatingPopover.d.ts.map +1 -0
  526. package/types/components/Dropdown/index.d.ts +1 -1
  527. package/types/components/Dropdown/index.d.ts.map +1 -1
  528. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  529. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -12
  530. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  531. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  532. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +32 -3
  533. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  534. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -14
  535. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  536. package/types/components/Dropdown/utils/getItemByFocused.d.ts +4 -0
  537. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +1 -0
  538. package/types/components/Dropdown/utils/getItemId.d.ts +2 -0
  539. package/types/components/Dropdown/utils/getItemId.d.ts.map +1 -0
  540. package/types/components/Dropdown/utils/getPlacement.d.ts +3 -0
  541. package/types/components/Dropdown/utils/getPlacement.d.ts.map +1 -0
  542. package/types/components/Dropdown/utils/index.d.ts +3 -0
  543. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  544. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  545. package/types/components/Notification/Notification.tokens.d.ts +0 -2
  546. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  547. package/types/components/Pagination/Pagination.d.ts.map +1 -1
  548. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  549. package/types/components/Pagination/Pagination.tokens.d.ts +0 -3
  550. package/types/components/Pagination/Pagination.tokens.d.ts.map +1 -1
  551. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  552. package/types/components/Select/Select.d.ts.map +1 -1
  553. package/types/components/Select/Select.types.d.ts +1 -0
  554. package/types/components/Select/Select.types.d.ts.map +1 -1
  555. package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -2
  556. package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
  557. package/types/components/Select/ui/Target/Target.types.d.ts +2 -2
  558. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  559. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +4 -4
  560. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  561. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  562. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  563. package/types/components/Select/utils/getInitialValue.d.ts +4 -0
  564. package/types/components/Select/utils/getInitialValue.d.ts.map +1 -0
  565. package/types/components/Select/utils/index.d.ts +1 -0
  566. package/types/components/Select/utils/index.d.ts.map +1 -1
  567. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
  568. package/types/components/Tabs/tokens.d.ts +0 -6
  569. package/types/components/Tabs/tokens.d.ts.map +1 -1
  570. package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
  571. package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
  572. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +30 -6
  573. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  574. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  575. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  576. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  577. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  578. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +30 -6
  579. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  580. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  581. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  582. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  583. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  584. package/types/hooks/useOutsideClick.d.ts +1 -1
  585. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  586. package/cjs/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
  587. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
  588. package/cjs/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
  589. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
  590. package/es/components/DatePicker/DatePickerBase.styles_1x090si.css +0 -2
  591. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1i6gpss.css +0 -2
  592. package/es/components/Dropdown/Dropdown.styles_zvi9m3.css +0 -3
  593. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
@@ -4,9 +4,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.dropdownRoot = exports.dropdownConfig = void 0;
7
+ exports.dropdownRoot = exports.dropdownConfig = exports.Context = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
9
10
  var _utils = /*#__PURE__*/require("../../utils");
11
+ var _hooks = /*#__PURE__*/require("../../hooks");
10
12
  var _pathReducer = /*#__PURE__*/require("./reducers/pathReducer");
11
13
  var _focusedPathReducer = /*#__PURE__*/require("./reducers/focusedPathReducer");
12
14
  var _ui = /*#__PURE__*/require("./ui");
@@ -17,6 +19,7 @@ var _utils2 = /*#__PURE__*/require("./utils");
17
19
  var _Dropdown2 = /*#__PURE__*/require("./Dropdown.tokens");
18
20
  var _useKeyboardNavigation = /*#__PURE__*/require("./hooks/useKeyboardNavigation");
19
21
  var _useHashMaps3 = /*#__PURE__*/require("./hooks/useHashMaps");
22
+ var _FloatingPopover = /*#__PURE__*/require("./FloatingPopover");
20
23
  var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "portal"];
21
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -29,17 +32,18 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
29
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
33
  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; }
31
34
  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; }
35
+ var Context = exports.Context = /*#__PURE__*/(0, _react.createContext)({});
36
+
32
37
  /**
33
38
  * Выпадающий список.
34
39
  */
35
40
  var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
36
41
  return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
42
+ var _getItemByFocused;
37
43
  var items = _ref.items,
38
44
  children = _ref.children,
39
- _ref$placement = _ref.placement,
40
- placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
41
- _ref$offset = _ref.offset,
42
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
45
+ placement = _ref.placement,
46
+ offset = _ref.offset,
43
47
  _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
44
48
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
45
49
  onToggle = _ref.onToggle,
@@ -76,6 +80,25 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
76
80
  _useHashMaps2 = _slicedToArray(_useHashMaps, 2),
77
81
  pathMap = _useHashMaps2[0],
78
82
  focusedToValueMap = _useHashMaps2[1];
83
+ var activeDescendantItemValue = ((_getItemByFocused = (0, _utils2.getItemByFocused)(focusedPath, focusedToValueMap)) === null || _getItemByFocused === void 0 ? void 0 : _getItemByFocused.value) || '';
84
+ var floatingPopoverRef = (0, _react.useRef)(null);
85
+ var treeId = (0, _plasmaCore.safeUseId)();
86
+
87
+ // Логика работы при клике за пределами выпадающего списка
88
+ var targetRef = (0, _hooks.useOutsideClick)(function (event) {
89
+ if (!isCurrentListOpen || !closeOnOverlayClick) {
90
+ return;
91
+ }
92
+ dispatchPath({
93
+ type: 'reset'
94
+ });
95
+ dispatchFocusedPath({
96
+ type: 'reset'
97
+ });
98
+ if (onToggle) {
99
+ onToggle(false, event);
100
+ }
101
+ }, floatingPopoverRef);
79
102
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
80
103
  if (opened) {
81
104
  dispatchPath({
@@ -107,66 +130,64 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
107
130
  }),
108
131
  onKeyDown = _useKeyNavigation.onKeyDown;
109
132
  var isCurrentListOpen = Boolean(path[0]);
110
- var getActiveDescendant = function getActiveDescendant() {
111
- var _focusedToValueMap$ge;
112
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
113
- return "".concat(acc, "/").concat(n);
114
- }, '').replace(/^(\/)/, '');
115
- return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
116
- };
117
- return /*#__PURE__*/_react["default"].createElement(_Dropdown.StyledPopover, {
133
+ return /*#__PURE__*/_react["default"].createElement(Context.Provider, {
134
+ value: {
135
+ focusedPath: focusedPath,
136
+ size: size,
137
+ variant: variant,
138
+ itemRole: itemRole,
139
+ handleGlobalToggle: handleGlobalToggle,
140
+ closeOnSelect: closeOnSelect,
141
+ onHover: onHover,
142
+ onItemClick: onItemClick,
143
+ onItemSelect: onItemSelect,
144
+ hasArrow: hasArrow,
145
+ treeId: treeId
146
+ }
147
+ }, /*#__PURE__*/_react["default"].createElement(_FloatingPopover.FloatingPopover, {
148
+ ref: floatingPopoverRef,
118
149
  opened: isCurrentListOpen,
119
150
  onToggle: handleGlobalToggle,
151
+ placement: (0, _utils2.getPlacement)(placement),
120
152
  offset: offset,
121
- placement: (0, _utils.getPlacements)(placement),
153
+ portal: portal,
122
154
  trigger: trigger,
123
- closeOnOverlayClick: closeOnOverlayClick,
124
- isFocusTrapped: false,
125
155
  target: (0, _utils2.childrenWithProps)(children, {
126
156
  role: 'combobox',
127
- 'aria-controls': 'tree_level_1',
157
+ 'aria-controls': "".concat(treeId, "_tree_level_1"),
128
158
  'aria-expanded': isCurrentListOpen,
129
- 'aria-activedescendant': getActiveDescendant(),
159
+ 'aria-activedescendant': activeDescendantItemValue ? (0, _utils2.getItemId)(treeId, activeDescendantItemValue.toString()) : '',
130
160
  onKeyDown: onKeyDown
131
- }),
132
- preventOverflow: false,
133
- usePortal: Boolean(portal),
134
- frame: portal
161
+ })
135
162
  }, /*#__PURE__*/_react["default"].createElement(Root, _extends({
136
163
  className: (0, _utils.cx)(className, _Dropdown2.classes.dropdownRoot),
137
164
  ref: ref,
138
165
  view: view,
139
- size: size
166
+ size: size,
167
+ style: {
168
+ display: 'inline-block'
169
+ }
140
170
  }, rest), /*#__PURE__*/_react["default"].createElement(_Dropdown.Ul, {
171
+ ref: targetRef,
172
+ id: "".concat(treeId, "_tree_level_1"),
173
+ role: "tree",
141
174
  listHeight: listHeight,
142
175
  listOverflow: listOverflow,
143
- role: "tree",
144
- id: "tree_level_1",
145
176
  listWidth: listWidth
146
177
  }, items.map(function (item, index) {
147
178
  return /*#__PURE__*/_react["default"].createElement(_ui.DropdownInner, {
148
179
  key: "".concat(index, "/0"),
149
180
  item: item,
150
181
  currentLevel: 0,
151
- focusedPath: focusedPath,
152
182
  trigger: trigger,
153
183
  path: path,
154
184
  dispatchPath: dispatchPath,
155
185
  index: index,
156
- itemRole: itemRole,
157
186
  listHeight: listHeight,
158
187
  listOverflow: listOverflow,
159
- handleGlobalToggle: handleGlobalToggle,
160
- closeOnSelect: closeOnSelect,
161
- onHover: onHover,
162
- onItemSelect: onItemSelect,
163
- onItemClick: onItemClick,
164
- listWidth: listWidth,
165
- variant: variant,
166
- hasArrow: hasArrow,
167
- size: size
188
+ listWidth: listWidth
168
189
  });
169
- }))));
190
+ })))));
170
191
  });
171
192
  };
172
193
  var dropdownConfig = exports.dropdownConfig = {
@@ -4,31 +4,25 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.base = exports.Ul = exports.StyledPopover = void 0;
7
+ exports.base = exports.Ul = void 0;
8
8
  var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
9
- var _engines = /*#__PURE__*/require("../../engines");
10
- var _Popover = /*#__PURE__*/require("../Popover");
11
9
  var _utils = /*#__PURE__*/require("./utils");
12
10
  var _Dropdown = /*#__PURE__*/require("./Dropdown.tokens");
13
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
- var Popover = /*#__PURE__*/(0, _engines.component)(_Popover.popoverConfig);
16
- var StyledPopover = exports.StyledPopover = /*#__PURE__*/(0, _styledComponents["default"])(Popover).withConfig({
17
- componentId: "plasma-new-hope__sc-13ezpo5-0"
18
- })([".", ",.", "{display:block;}"], /*#__PURE__*/String(_Popover.popoverClasses.wrapper), /*#__PURE__*/String(_Popover.popoverClasses.target));
19
13
  var Ul = exports.Ul = /*#__PURE__*/_styledComponents["default"].ul.withConfig({
20
- componentId: "plasma-new-hope__sc-13ezpo5-1"
21
- })(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:", ";height:", ";overflow:", ";margin:", ";padding:var(", ");border:var(", ") solid var(", ");"], _Dropdown.tokens.background, _Dropdown.tokens.boxShadow, _Dropdown.tokens.borderRadius, function (_ref) {
14
+ componentId: "plasma-new-hope__sc-13ezpo5-0"
15
+ })(["box-sizing:border-box;width:", ";height:", ";margin:", ";padding:var(", ") 0;overflow:", ";background:var(", ");box-shadow:", ";border-radius:var(", ");"], function (_ref) {
22
16
  var listWidth = _ref.listWidth;
23
17
  return listWidth || "var(".concat(_Dropdown.tokens.width, ")");
24
18
  }, function (_ref2) {
25
19
  var listHeight = _ref2.listHeight;
26
20
  return listHeight ? (0, _utils.getCorrectHeight)(listHeight) : 'auto';
27
21
  }, function (_ref3) {
28
- var listOverflow = _ref3.listOverflow;
22
+ var isInnerUl = _ref3.isInnerUl;
23
+ return isInnerUl ? "calc(var(".concat(_Dropdown.tokens.padding, ") * -1) 0.125rem 0") : 0;
24
+ }, _Dropdown.tokens.padding, function (_ref4) {
25
+ var listOverflow = _ref4.listOverflow;
29
26
  return listOverflow || 'initial';
30
- }, function (_ref4) {
31
- var isInnerUl = _ref4.isInnerUl;
32
- return isInnerUl ? "calc(var(".concat(_Dropdown.tokens.padding, ") * -1) 0 0 var(").concat(_Dropdown.tokens.padding, ")") : 0;
33
- }, _Dropdown.tokens.padding, _Dropdown.tokens.borderWidth, _Dropdown.tokens.borderColor);
34
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:inline-block;"]);
27
+ }, _Dropdown.constants.background, _Dropdown.constants.boxShadow, _Dropdown.tokens.borderRadius);
28
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tokens = exports.classes = void 0;
6
+ exports.tokens = exports.constants = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  dropdownRoot: 'dropdown-root',
9
9
  dropdownItemIsFocused: 'dropdown-item-is-focused',
10
10
  dropdownItemIsDisabled: 'dropdown-item-is-disabled',
11
11
  dropdownItemIsActive: 'dropdown-item-is-active',
12
- dropdownItemIsSelected: 'dropdownItemIsSelected'
12
+ dropdownItemIsSelected: 'dropdown-item-is-selected'
13
13
  };
14
14
  var tokens = exports.tokens = {
15
15
  background: '--plasma-dropdown-background',
@@ -20,8 +20,8 @@ var tokens = exports.tokens = {
20
20
  disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',
21
21
  disabledOpacity: '--plasma-dropdown-disabled-opacity',
22
22
  focusColor: '--plasma-dropdown-focus-color',
23
- borderColor: '--plasma-dropdown-border-color',
24
- borderWidth: '--plasma-dropdown-border-width',
23
+ // Old
24
+
25
25
  dividerColor: '--plasma-dropdown-divider-color',
26
26
  dividerMarginTop: '--plasma-dropdown-divider-margin-top',
27
27
  dividerMarginTopTight: '--plasma-dropdown-divider-margin-top-tight',
@@ -36,6 +36,7 @@ var tokens = exports.tokens = {
36
36
  itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
37
37
  // Old
38
38
  itemColor: '--plasma-dropdown-item-color',
39
+ // Old
39
40
  itemColorSelected: '--plasma-dropdown-item-color-selected',
40
41
  // Old
41
42
  itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
@@ -54,11 +55,17 @@ var tokens = exports.tokens = {
54
55
  itemMarginLeft: '--plasma-dropdown-item-margin-left',
55
56
  // Old
56
57
  itemPaddingTop: '--plasma-dropdown-item-padding-top',
58
+ // Old
57
59
  itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
60
+ // Old
58
61
  itemPaddingRight: '--plasma-dropdown-item-padding-right',
62
+ // Old
59
63
  itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
64
+ // Old
60
65
  itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
66
+ // Old
61
67
  itemPaddingLeft: '--plasma-dropdown-item-padding-left',
68
+ // Old
62
69
  itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
63
70
  // Old
64
71
  itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
@@ -73,6 +80,20 @@ var tokens = exports.tokens = {
73
80
  itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
74
81
  itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
75
82
  itemFontLineHeight: '--plasma-dropdown-item-font-weight',
83
+ itemPadding: '--plasma-dropdown-item-padding',
84
+ itemPaddingTight: '--plasma-dropdown-item-padding-tight',
85
+ cellPadding: '--plasma-dropdown-cell-padding',
86
+ cellPaddingLeftContent: '--plasma-dropdown-cell-padding-left-content',
87
+ cellPaddingContent: '--plasma-dropdown-cell-padding-content',
88
+ cellPaddingRightContent: '--plasma-dropdown-cell-padding-right-content',
89
+ cellTextboxGap: '--plasma-dropdown-cell-textbox-gap',
90
+ cellGap: '--plasma-dropdown-cell-gap',
91
+ cellTitleFontFamily: '--plasma-dropdown-cell-title-font-family',
92
+ cellTitleFontSize: '--plasma-dropdown-cell-title-font-size',
93
+ cellTitleFontStyle: '--plasma-dropdown-cell-title-font-style',
94
+ cellTitleFontWeight: '--plasma-dropdown-cell-title-font-weight',
95
+ cellTitleLetterSpacing: '--plasma-dropdown-cell-title-letter-spacing',
96
+ cellTitleLineHeight: '--plasma-dropdown-cell-title-line-height',
76
97
  // TODO: Remove below tokens as soon as they are no longer needed
77
98
  footerBackground: '--plasma-dropdown-footer-background',
78
99
  footerWidth: '--plasma-dropdown-footer-width',
@@ -136,4 +157,15 @@ var tokens = exports.tokens = {
136
157
  groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
137
158
  groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
138
159
  groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left'
160
+ };
161
+ var constants = exports.constants = {
162
+ focusColor: '--surface-accent',
163
+ background: '--surface-solid-card-brightness',
164
+ boxShadow: '0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04)',
165
+ disclosureIconColor: '--text-secondary',
166
+ itemBackground: '--plasma-colors-transparent',
167
+ itemBackgroundHover: '--surface-transparent-secondary',
168
+ opacity: '0.4',
169
+ cellTitleColor: '--text-primary',
170
+ cellBackgroundColor: '--plasma-colors-transparent'
139
171
  };
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FloatingPopover = void 0;
7
+ var _react = /*#__PURE__*/require("@floating-ui/react");
8
+ var _react2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
+ var FloatingPopover = exports.FloatingPopover = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref, ref) {
19
+ var target = _ref.target,
20
+ children = _ref.children,
21
+ opened = _ref.opened,
22
+ onToggle = _ref.onToggle,
23
+ placement = _ref.placement,
24
+ portal = _ref.portal,
25
+ _ref$offset = _ref.offset,
26
+ offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
27
+ isInner = _ref.isInner,
28
+ trigger = _ref.trigger;
29
+ var _useFloating = (0, _react.useFloating)({
30
+ placement: placement === 'auto' ? undefined : placement,
31
+ open: opened,
32
+ middleware: [placement === 'auto' && (0, _react.autoPlacement)(), (0, _react.offset)({
33
+ mainAxis: offset[1],
34
+ crossAxis: offset[0]
35
+ }), (0, _react.flip)({
36
+ fallbackAxisSideDirection: 'end'
37
+ }), (0, _react.shift)()]
38
+ }),
39
+ refs = _useFloating.refs,
40
+ floatingStyles = _useFloating.floatingStyles;
41
+ var wrappedId = (0, _plasmaCore.safeUseId)();
42
+ var handleTargetClick = function handleTargetClick(event) {
43
+ if (trigger === 'hover') {
44
+ return;
45
+ }
46
+ if (onToggle) {
47
+ onToggle(!opened, event);
48
+ }
49
+ };
50
+ var handleTargetMouseEnter = function handleTargetMouseEnter(event) {
51
+ if (trigger === 'click' || opened) {
52
+ return;
53
+ }
54
+ onToggle(true, event);
55
+ };
56
+ var handleTargetMouseLeave = function handleTargetMouseLeave(event) {
57
+ if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {
58
+ var _refs$floating$curren;
59
+ if (trigger === 'click' || !opened || event.relatedTarget && refs.floating && (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 && _refs$floating$curren.contains(event.relatedTarget)) {
60
+ return;
61
+ }
62
+ onToggle(false, event);
63
+ }
64
+ };
65
+ var handleFloatingMouseLeave = function handleFloatingMouseLeave(event) {
66
+ if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {
67
+ var _refs$reference$curre;
68
+ if (trigger === 'click' || !opened || event.relatedTarget && refs.reference && (_refs$reference$curre = refs.reference.current) !== null && _refs$reference$curre !== void 0 && _refs$reference$curre.contains(event.relatedTarget)) {
69
+ return;
70
+ }
71
+ onToggle(false, event);
72
+ }
73
+ };
74
+ return /*#__PURE__*/_react2["default"].createElement("div", {
75
+ id: wrappedId,
76
+ style: {
77
+ display: isInner ? 'block' : 'inline-block'
78
+ },
79
+ ref: ref
80
+ }, /*#__PURE__*/_react2["default"].createElement("div", {
81
+ ref: refs.setReference,
82
+ onClick: handleTargetClick,
83
+ onMouseEnter: handleTargetMouseEnter,
84
+ onMouseLeave: handleTargetMouseLeave
85
+ }, target), opened && /*#__PURE__*/_react2["default"].createElement(_react.FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/_react2["default"].createElement("div", {
86
+ ref: refs.setFloating,
87
+ onMouseLeave: handleFloatingMouseLeave,
88
+ style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
89
+ zIndex: 1
90
+ })
91
+ }, children)));
92
+ });
93
+ // root - принимает ref контейнера портала.
94
+ // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
95
+ var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
96
+ if (!portal) {
97
+ return {
98
+ id: wrappedId
99
+ };
100
+ }
101
+ if (typeof portal === 'string') {
102
+ return {
103
+ id: portal
104
+ };
105
+ }
106
+ return {
107
+ root: portal
108
+ };
109
+ };
@@ -5,29 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.DropdownInner = void 0;
7
7
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
+ var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
8
9
  var _ = /*#__PURE__*/require("..");
9
10
  var _Dropdown = /*#__PURE__*/require("../../Dropdown.styles");
11
+ var _FloatingPopover = /*#__PURE__*/require("../../FloatingPopover");
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
13
  var DropdownInner = exports.DropdownInner = function DropdownInner(_ref) {
12
14
  var item = _ref.item,
13
15
  currentLevel = _ref.currentLevel,
14
- focusedPath = _ref.focusedPath,
15
16
  path = _ref.path,
16
17
  dispatchPath = _ref.dispatchPath,
17
18
  index = _ref.index,
18
19
  trigger = _ref.trigger,
19
- itemRole = _ref.itemRole,
20
20
  listHeight = _ref.listHeight,
21
21
  listOverflow = _ref.listOverflow,
22
- handleGlobalToggle = _ref.handleGlobalToggle,
23
- closeOnSelect = _ref.closeOnSelect,
24
- onHover = _ref.onHover,
25
- onItemSelect = _ref.onItemSelect,
26
- onItemClick = _ref.onItemClick,
27
- listWidth = _ref.listWidth,
28
- variant = _ref.variant,
29
- hasArrow = _ref.hasArrow,
30
- size = _ref.size;
22
+ listWidth = _ref.listWidth;
31
23
  var handleToggle = function handleToggle(opened) {
32
24
  if (opened) {
33
25
  dispatchPath({
@@ -43,79 +35,53 @@ var DropdownInner = exports.DropdownInner = function DropdownInner(_ref) {
43
35
  }
44
36
  };
45
37
  var isCurrentListOpen = path[currentLevel + 1] === item.value.toString();
46
- var listId = "tree_level_".concat(currentLevel + 2);
38
+ var treeId = (0, _plasmaCore.safeUseId)();
39
+ var listId = "".concat(treeId, "_tree_level_").concat(currentLevel + 2);
47
40
  var nextLevel = currentLevel + 1;
48
41
  if (item !== null && item !== void 0 && item.items) {
49
- return /*#__PURE__*/_react["default"].createElement(_Dropdown.StyledPopover, {
50
- opened: isCurrentListOpen,
51
- usePortal: false,
42
+ return /*#__PURE__*/_react["default"].createElement(_FloatingPopover.FloatingPopover, {
52
43
  placement: "right-start",
44
+ opened: isCurrentListOpen,
45
+ onToggle: handleToggle,
53
46
  trigger: trigger,
54
47
  target: /*#__PURE__*/_react["default"].createElement(_.DropdownItem, {
55
48
  item: item,
56
49
  index: index,
57
50
  path: path,
58
- focusedPath: focusedPath,
59
51
  currentLevel: currentLevel,
60
- itemRole: itemRole,
61
- onHover: onHover,
62
- onItemSelect: onItemSelect,
63
- onItemClick: onItemClick,
64
- variant: variant,
65
- hasArrow: hasArrow,
66
52
  ariaControls: listId,
67
53
  ariaExpanded: isCurrentListOpen,
68
54
  ariaLevel: nextLevel,
69
- ariaLabel: item.label,
70
- size: size
55
+ ariaLabel: item.label
71
56
  }),
72
- onToggle: handleToggle,
73
- isFocusTrapped: false,
74
- preventOverflow: false
57
+ isInner: true
75
58
  }, /*#__PURE__*/_react["default"].createElement(_Dropdown.Ul, {
59
+ id: listId,
60
+ role: "group",
61
+ isInnerUl: true,
76
62
  listHeight: listHeight,
77
63
  listOverflow: listOverflow,
78
- role: "group",
79
- id: listId,
80
- listWidth: listWidth,
81
- isInnerUl: true
64
+ listWidth: listWidth
82
65
  }, item.items.map(function (innerItem, innerIndex) {
83
66
  return /*#__PURE__*/_react["default"].createElement(DropdownInner, {
84
67
  key: "".concat(innerIndex, "/").concat(currentLevel),
85
68
  item: innerItem,
86
69
  currentLevel: nextLevel,
87
- focusedPath: focusedPath,
88
70
  path: path,
89
71
  dispatchPath: dispatchPath,
90
72
  index: innerIndex,
91
73
  trigger: trigger,
92
- itemRole: itemRole,
93
74
  listHeight: listHeight,
94
75
  listOverflow: listOverflow,
95
- handleGlobalToggle: handleGlobalToggle,
96
- closeOnSelect: closeOnSelect,
97
- onHover: onHover,
98
- onItemSelect: onItemSelect,
99
- onItemClick: onItemClick,
100
- listWidth: listWidth,
101
- variant: variant,
102
- hasArrow: hasArrow,
103
- size: size
76
+ listWidth: listWidth
104
77
  });
105
78
  })));
106
79
  }
107
80
  return /*#__PURE__*/_react["default"].createElement(_.DropdownItem, {
108
81
  item: item,
82
+ path: path,
109
83
  index: index,
110
- focusedPath: focusedPath,
111
84
  currentLevel: currentLevel,
112
- itemRole: itemRole,
113
- handleGlobalToggle: handleGlobalToggle,
114
- closeOnSelect: closeOnSelect,
115
- onHover: onHover,
116
- onItemSelect: onItemSelect,
117
- onItemClick: onItemClick,
118
- variant: variant,
119
- size: size
85
+ ariaLevel: nextLevel
120
86
  });
121
87
  };
@@ -9,29 +9,20 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _Dropdown = /*#__PURE__*/require("../../Dropdown.tokens");
10
10
  var _utils = /*#__PURE__*/require("../../../../utils");
11
11
  var _Icon = /*#__PURE__*/require("../../../_Icon");
12
+ var _Dropdown2 = /*#__PURE__*/require("../../Dropdown");
13
+ var _utils2 = /*#__PURE__*/require("../../utils");
12
14
  var _DropdownItem = /*#__PURE__*/require("./DropdownItem.styles");
13
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
17
  var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
16
18
  var item = _ref.item,
17
19
  path = _ref.path,
18
- focusedPath = _ref.focusedPath,
19
20
  currentLevel = _ref.currentLevel,
20
21
  index = _ref.index,
21
- itemRole = _ref.itemRole,
22
- closeOnSelect = _ref.closeOnSelect,
23
- handleGlobalToggle = _ref.handleGlobalToggle,
24
- onHover = _ref.onHover,
25
- onItemSelect = _ref.onItemSelect,
26
- onItemClick = _ref.onItemClick,
27
22
  ariaControls = _ref.ariaControls,
28
23
  ariaExpanded = _ref.ariaExpanded,
29
- ariaHasPopup = _ref.ariaHasPopup,
30
24
  ariaLevel = _ref.ariaLevel,
31
- ariaLabel = _ref.ariaLabel,
32
- variant = _ref.variant,
33
- hasArrow = _ref.hasArrow,
34
- size = _ref.size;
25
+ ariaLabel = _ref.ariaLabel;
35
26
  var value = item.value,
36
27
  label = item.label,
37
28
  disabled = item.disabled,
@@ -41,6 +32,19 @@ var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
41
32
  dividerBefore = item.dividerBefore,
42
33
  dividerAfter = item.dividerAfter;
43
34
  var ref = (0, _react.useRef)(null);
35
+ var _useContext = (0, _react.useContext)(_Dropdown2.Context),
36
+ focusedPath = _useContext.focusedPath,
37
+ size = _useContext.size,
38
+ variant = _useContext.variant,
39
+ itemRole = _useContext.itemRole,
40
+ handleGlobalToggle = _useContext.handleGlobalToggle,
41
+ closeOnSelect = _useContext.closeOnSelect,
42
+ onHover = _useContext.onHover,
43
+ onItemSelect = _useContext.onItemSelect,
44
+ onItemClick = _useContext.onItemClick,
45
+ hasArrow = _useContext.hasArrow,
46
+ treeId = _useContext.treeId;
47
+ var hasDescendants = Boolean(item.items);
44
48
  var disclosureIconSize = size === 'xs' ? 'xs' : 's';
45
49
  var isDisabledClassName = disabled || isDisabled ? _Dropdown.classes.dropdownItemIsDisabled : undefined;
46
50
  var focusedClass = currentLevel === focusedPath.length - 1 && index === (focusedPath === null || focusedPath === void 0 ? void 0 : focusedPath[currentLevel]) ? _Dropdown.classes.dropdownItemIsFocused : undefined;
@@ -64,7 +68,9 @@ var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
64
68
  if (onItemClick) {
65
69
  onItemClick(item, event);
66
70
  }
67
- if (handleGlobalToggle && closeOnSelect) {
71
+
72
+ // Закрываем весь дропдаун целиком при клике на айтем без потомков. Только при closeOnSelect === true.
73
+ if (closeOnSelect && !hasDescendants) {
68
74
  handleGlobalToggle(false, event);
69
75
  }
70
76
  };
@@ -76,20 +82,25 @@ var DropdownItem = exports.DropdownItem = function DropdownItem(_ref) {
76
82
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, dividerBefore && /*#__PURE__*/_react["default"].createElement(_DropdownItem.Divider, {
77
83
  variant: variant
78
84
  }), /*#__PURE__*/_react["default"].createElement(_DropdownItem.Wrapper, {
85
+ ref: ref,
79
86
  className: (0, _utils.cx)(isDisabledClassName, focusedClass, activeClass),
80
- id: value.toString(),
87
+ id: (0, _utils2.getItemId)(treeId, value.toString()),
81
88
  role: itemRole,
82
- ref: ref,
83
- "aria-disabled": disabled || isDisabled,
84
89
  onClick: handleClick,
85
90
  onMouseEnter: handleHover,
86
91
  variant: variant,
92
+ "aria-disabled": disabled || isDisabled,
87
93
  "aria-controls": ariaControls,
88
94
  "aria-expanded": ariaExpanded,
89
- "aria-haspopup": ariaHasPopup,
90
95
  "aria-level": ariaLevel,
91
96
  "aria-label": ariaLabel
92
- }, contentLeft && /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledContentLeft, null, contentLeft), /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledText, null, label), contentRight && /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledContentRight, null, contentRight), item.items && hasArrow && /*#__PURE__*/_react["default"].createElement(_DropdownItem.DisclosureIconWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureRight, {
97
+ }, /*#__PURE__*/_react["default"].createElement(_DropdownItem.CellWrapper, null, /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledCell, {
98
+ contentLeft: contentLeft,
99
+ contentRight: contentRight,
100
+ alignContentLeft: "center",
101
+ alignContentRight: "center",
102
+ title: label
103
+ })), item.items && hasArrow && /*#__PURE__*/_react["default"].createElement(_DropdownItem.DisclosureIconWrapper, null, /*#__PURE__*/_react["default"].createElement(_Icon.IconDisclosureRight, {
93
104
  size: disclosureIconSize,
94
105
  color: "inherit"
95
106
  }))), dividerAfter && /*#__PURE__*/_react["default"].createElement(_DropdownItem.Divider, {