@salutejs/plasma-new-hope 0.174.0-canary.1497.11463811587.0 → 0.174.0-canary.1504.11477432639.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (641) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  3. package/cjs/components/Attach/Attach.js +3 -4
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
  6. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  7. package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
  8. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
  9. package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
  10. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  11. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  12. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  13. package/cjs/components/Attach/utils/getFileicon.js +3 -4
  14. package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
  15. package/cjs/components/Attach/utils/index.js +0 -3
  16. package/cjs/components/Attach/utils/index.js.map +1 -1
  17. package/cjs/components/Autocomplete/Autocomplete.js +5 -6
  18. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
  20. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  21. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  22. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  23. package/cjs/components/Avatar/Avatar.js +2 -3
  24. package/cjs/components/Avatar/Avatar.js.map +1 -1
  25. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  26. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  27. package/cjs/components/Button/Button.styles.js +0 -3
  28. package/cjs/components/Button/Button.styles.js.map +1 -1
  29. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  30. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  31. package/cjs/components/Calendar/hooks/useDays.js +2 -2
  32. package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
  33. package/cjs/components/Calendar/hooks/useMonths.js +2 -2
  34. package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
  35. package/cjs/components/Calendar/hooks/useYears.js +2 -2
  36. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  37. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  40. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  42. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  44. package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
  45. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  46. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  47. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  49. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  51. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  52. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  53. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  55. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  56. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  57. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxOld/Combobox.css +14 -28
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -11
  60. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  61. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  62. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  63. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  64. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  65. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  66. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  67. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -11
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -11
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -11
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -11
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  79. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  80. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  81. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  82. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  83. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  84. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  85. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  87. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  88. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  89. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  90. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  91. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  92. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  93. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  94. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  95. package/cjs/components/Drawer/Drawer.js +5 -10
  96. package/cjs/components/Drawer/Drawer.js.map +1 -1
  97. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  98. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  99. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  100. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  101. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  102. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  103. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  104. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  105. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  106. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  107. package/cjs/components/Dropdown/Dropdown.css +16 -30
  108. package/cjs/components/Dropdown/Dropdown.js +38 -67
  109. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  110. package/cjs/components/Dropdown/Dropdown.styles.js +26 -14
  111. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  113. package/cjs/components/Dropdown/Dropdown.tokens.js +1 -24
  114. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  115. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -25
  116. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  117. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  118. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +19 -31
  119. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  120. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +31 -27
  121. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  122. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  123. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  124. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  125. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  126. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  127. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  128. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  129. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  130. package/cjs/components/Editable/Editable.js +3 -4
  131. package/cjs/components/Editable/Editable.js.map +1 -1
  132. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  133. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  134. package/cjs/components/Editable/utils/selectText.js +0 -2
  135. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  136. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  137. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  138. package/cjs/components/IconButton/IconButton.js +1 -1
  139. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  140. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  141. package/cjs/components/Modal/Modal.js +6 -8
  142. package/cjs/components/Modal/Modal.js.map +1 -1
  143. package/cjs/components/Modal/hooks/useModal.js +0 -4
  144. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  145. package/cjs/components/Notification/Notification.styles.js +2 -3
  146. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  147. package/cjs/components/Notification/NotificationsPortal.js +3 -4
  148. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  149. package/cjs/components/Pagination/Pagination.css +13 -13
  150. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  151. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  152. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  153. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  154. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  155. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  156. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  157. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  158. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  159. package/cjs/components/Popover/Popover.js +1 -1
  160. package/cjs/components/Popup/Popup.js +2 -2
  161. package/cjs/components/Popup/PopupContext.js +1 -1
  162. package/cjs/components/Range/Range.styles.js +0 -1
  163. package/cjs/components/Range/Range.styles.js.map +1 -1
  164. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  165. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  166. package/cjs/components/Select/Select.css +13 -13
  167. package/cjs/components/Select/Select.js +11 -12
  168. package/cjs/components/Select/Select.js.map +1 -1
  169. package/cjs/components/Select/Select.styles.js +3 -6
  170. package/cjs/components/Select/Select.styles.js.map +1 -1
  171. package/cjs/components/Select/Select.styles_ei4ic3.css +5 -0
  172. package/cjs/components/Select/Select.tokens.js +17 -1
  173. package/cjs/components/Select/Select.tokens.js.map +1 -1
  174. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  175. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  176. package/cjs/components/Select/ui/Inner/Inner.css +13 -13
  177. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  178. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  179. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  180. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  181. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  182. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  183. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  184. package/{es/components/Select/ui/Inner/ui/Item/Item.styles_baxa65.css → cjs/components/Select/ui/Inner/ui/Item/Item.styles_1gaxu1y.css} +2 -2
  185. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  186. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  187. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  188. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  189. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  190. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  191. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  192. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  193. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  194. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  195. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  196. package/cjs/components/Sheet/Sheet.js +3 -3
  197. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  198. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  199. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  200. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  201. package/cjs/components/Slider/Slider.js +0 -8
  202. package/cjs/components/Slider/Slider.js.map +1 -1
  203. package/cjs/components/Slider/components/Double/Double.js +1 -2
  204. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  205. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  206. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  207. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  208. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  209. package/cjs/components/Slider/components/Single/Single.js +1 -2
  210. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  211. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  212. package/cjs/components/Steps/Steps.js +1 -1
  213. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  214. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  215. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  216. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  217. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  218. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  219. package/cjs/components/TextArea/TextArea.js +2 -2
  220. package/cjs/components/TextArea/TextArea.styles.js +2 -3
  221. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  222. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  223. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  224. package/cjs/components/TextField/TextField.js +3 -3
  225. package/cjs/components/TextField/TextField.styles.js +1 -2
  226. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  227. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  228. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  229. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  230. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  231. package/cjs/components/Toast/Toast.styles.js +1 -1
  232. package/cjs/components/Toast/ToastController.js +1 -1
  233. package/cjs/components/Toast/utils.js +1 -2
  234. package/cjs/components/Toast/utils.js.map +1 -1
  235. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  236. package/cjs/components/Tooltip/Tooltip.js +2 -3
  237. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  238. package/cjs/engines/index.js +0 -2
  239. package/cjs/engines/index.js.map +1 -1
  240. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  241. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  242. package/cjs/hooks/useOutsideClick.js +1 -1
  243. package/cjs/hooks/useOutsideClick.js.map +1 -1
  244. package/cjs/index.css +26 -24
  245. package/cjs/index.js +48 -51
  246. package/cjs/index.js.map +1 -1
  247. package/cjs/utils/index.js +0 -5
  248. package/cjs/utils/index.js.map +1 -1
  249. package/emotion/cjs/components/Dropdown/Dropdown.js +37 -58
  250. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +25 -9
  251. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +2 -36
  252. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  253. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  254. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +41 -21
  255. package/emotion/cjs/components/Dropdown/utils/index.js +1 -23
  256. package/emotion/cjs/components/Select/Select.styles.js +5 -5
  257. package/emotion/cjs/components/Select/Select.tokens.js +17 -1
  258. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  259. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  260. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  261. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  262. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  263. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  264. package/emotion/es/components/Dropdown/Dropdown.js +40 -60
  265. package/emotion/es/components/Dropdown/Dropdown.styles.js +25 -9
  266. package/emotion/es/components/Dropdown/Dropdown.tokens.js +1 -35
  267. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  268. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  269. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +42 -22
  270. package/emotion/es/components/Dropdown/utils/index.js +1 -4
  271. package/emotion/es/components/Select/Select.styles.js +5 -5
  272. package/emotion/es/components/Select/Select.tokens.js +17 -1
  273. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  274. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  275. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  276. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  277. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  278. package/emotion/es/hooks/useOutsideClick.js +1 -1
  279. package/emotion/package.json +2 -1
  280. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  281. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  282. package/es/components/Attach/Attach.js +3 -4
  283. package/es/components/Attach/Attach.js.map +1 -1
  284. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  285. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  286. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  287. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  288. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  289. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  290. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  291. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  292. package/es/components/Attach/utils/getFileicon.js +3 -4
  293. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  294. package/es/components/Attach/utils/index.js +0 -3
  295. package/es/components/Attach/utils/index.js.map +1 -1
  296. package/es/components/Autocomplete/Autocomplete.js +5 -6
  297. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  298. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  299. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  300. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  301. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  302. package/es/components/Avatar/Avatar.js +2 -3
  303. package/es/components/Avatar/Avatar.js.map +1 -1
  304. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  305. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  306. package/es/components/Button/Button.styles.js +0 -3
  307. package/es/components/Button/Button.styles.js.map +1 -1
  308. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  309. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  310. package/es/components/Calendar/hooks/useDays.js +2 -2
  311. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  312. package/es/components/Calendar/hooks/useMonths.js +2 -2
  313. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  314. package/es/components/Calendar/hooks/useYears.js +2 -2
  315. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  316. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  317. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  318. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  319. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  320. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  321. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  322. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  323. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  324. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  325. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  326. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  327. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  328. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  329. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  330. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  331. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  332. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  333. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  334. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  335. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  336. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  337. package/es/components/Combobox/ComboboxOld/Combobox.css +14 -28
  338. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -11
  339. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  340. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  341. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  342. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  343. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  344. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  345. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  346. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  347. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -11
  348. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  349. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  350. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -11
  351. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  352. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  353. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -11
  354. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  355. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  356. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -11
  357. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  358. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  359. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  360. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  361. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  362. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  363. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  364. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  365. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  366. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  367. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  368. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  369. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  370. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  371. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  372. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  373. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  374. package/es/components/Drawer/Drawer.js +5 -10
  375. package/es/components/Drawer/Drawer.js.map +1 -1
  376. package/es/components/Drawer/Drawer.styles.js +0 -4
  377. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  378. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  379. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  380. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  381. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  382. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  383. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  384. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  385. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  386. package/es/components/Dropdown/Dropdown.css +16 -30
  387. package/es/components/Dropdown/Dropdown.js +41 -69
  388. package/es/components/Dropdown/Dropdown.js.map +1 -1
  389. package/es/components/Dropdown/Dropdown.styles.js +26 -15
  390. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  391. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  392. package/es/components/Dropdown/Dropdown.tokens.js +1 -24
  393. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  394. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -25
  395. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  396. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  397. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -32
  398. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  399. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +29 -26
  400. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  401. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  402. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  403. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  404. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  405. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  406. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  407. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  408. package/es/components/Dropdown/utils/index.js.map +1 -1
  409. package/es/components/Editable/Editable.js +3 -4
  410. package/es/components/Editable/Editable.js.map +1 -1
  411. package/es/components/Editable/utils/clearSelection.js +0 -2
  412. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  413. package/es/components/Editable/utils/selectText.js +0 -2
  414. package/es/components/Editable/utils/selectText.js.map +1 -1
  415. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  416. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  417. package/es/components/IconButton/IconButton.js +1 -1
  418. package/es/components/IconButton/IconButton.styles.js +0 -8
  419. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  420. package/es/components/Modal/Modal.js +6 -8
  421. package/es/components/Modal/Modal.js.map +1 -1
  422. package/es/components/Modal/hooks/useModal.js +0 -4
  423. package/es/components/Modal/hooks/useModal.js.map +1 -1
  424. package/es/components/Notification/Notification.styles.js +2 -3
  425. package/es/components/Notification/Notification.styles.js.map +1 -1
  426. package/es/components/Notification/NotificationsPortal.js +3 -4
  427. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  428. package/es/components/Pagination/Pagination.css +13 -13
  429. package/es/components/Pagination/Pagination.styles.js +1 -2
  430. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  431. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  432. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  433. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  434. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  435. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  436. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  437. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  438. package/es/components/Popover/Popover.js +1 -1
  439. package/es/components/Popup/Popup.js +2 -2
  440. package/es/components/Popup/PopupContext.js +1 -1
  441. package/es/components/Range/Range.styles.js +0 -1
  442. package/es/components/Range/Range.styles.js.map +1 -1
  443. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  444. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  445. package/es/components/Select/Select.css +13 -13
  446. package/es/components/Select/Select.js +11 -12
  447. package/es/components/Select/Select.js.map +1 -1
  448. package/es/components/Select/Select.styles.js +3 -6
  449. package/es/components/Select/Select.styles.js.map +1 -1
  450. package/es/components/Select/Select.styles_ei4ic3.css +5 -0
  451. package/es/components/Select/Select.tokens.js +17 -1
  452. package/es/components/Select/Select.tokens.js.map +1 -1
  453. package/es/components/Select/hooks/usePathMaps.js +0 -2
  454. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  455. package/es/components/Select/ui/Inner/Inner.css +13 -13
  456. package/es/components/Select/ui/Inner/Inner.js +1 -2
  457. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  458. package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  459. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  460. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  461. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  462. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  463. package/{cjs/components/Select/ui/Inner/ui/Item/Item.styles_baxa65.css → es/components/Select/ui/Inner/ui/Item/Item.styles_1gaxu1y.css} +2 -2
  464. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  465. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  466. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  467. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  468. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  469. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  470. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  471. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  472. package/es/components/Select/utils/getButtonLabel.js +0 -2
  473. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  474. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  475. package/es/components/Sheet/Sheet.js +3 -3
  476. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  477. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  478. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  479. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  480. package/es/components/Slider/Slider.js +0 -8
  481. package/es/components/Slider/Slider.js.map +1 -1
  482. package/es/components/Slider/components/Double/Double.js +1 -2
  483. package/es/components/Slider/components/Double/Double.js.map +1 -1
  484. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  485. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  486. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  487. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  488. package/es/components/Slider/components/Single/Single.js +1 -2
  489. package/es/components/Slider/components/Single/Single.js.map +1 -1
  490. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  491. package/es/components/Steps/Steps.js +1 -1
  492. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  493. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  494. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  495. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  496. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  497. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  498. package/es/components/TextArea/TextArea.js +2 -2
  499. package/es/components/TextArea/TextArea.styles.js +2 -3
  500. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  501. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  502. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  503. package/es/components/TextField/TextField.js +3 -3
  504. package/es/components/TextField/TextField.styles.js +1 -2
  505. package/es/components/TextField/TextField.styles.js.map +1 -1
  506. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  507. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  508. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  509. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  510. package/es/components/Toast/Toast.styles.js +1 -1
  511. package/es/components/Toast/ToastController.js +1 -1
  512. package/es/components/Toast/utils.js +1 -2
  513. package/es/components/Toast/utils.js.map +1 -1
  514. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  515. package/es/components/Tooltip/Tooltip.js +2 -3
  516. package/es/components/Tooltip/Tooltip.js.map +1 -1
  517. package/es/engines/index.js +0 -2
  518. package/es/engines/index.js.map +1 -1
  519. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  520. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  521. package/es/hooks/useOutsideClick.js +1 -1
  522. package/es/hooks/useOutsideClick.js.map +1 -1
  523. package/es/index.css +26 -24
  524. package/es/index.js +21 -24
  525. package/es/index.js.map +1 -1
  526. package/es/utils/index.js +0 -3
  527. package/es/utils/index.js.map +1 -1
  528. package/package.json +5 -2
  529. package/styled-components/cjs/components/Dropdown/Dropdown.js +37 -58
  530. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +15 -9
  531. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +2 -36
  532. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  533. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  534. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +19 -17
  535. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -23
  536. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  537. package/styled-components/cjs/components/Select/Select.tokens.js +17 -1
  538. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  539. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  540. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  541. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  542. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  543. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  544. package/styled-components/es/components/Dropdown/Dropdown.js +40 -60
  545. package/styled-components/es/components/Dropdown/Dropdown.styles.js +15 -9
  546. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +1 -35
  547. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  548. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  549. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +20 -18
  550. package/styled-components/es/components/Dropdown/utils/index.js +1 -4
  551. package/styled-components/es/components/Select/Select.styles.js +2 -2
  552. package/styled-components/es/components/Select/Select.tokens.js +17 -1
  553. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  554. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  555. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  556. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  557. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  558. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  559. package/styled-components/package.json +2 -1
  560. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +1 -2
  561. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  562. package/types/components/Dropdown/Dropdown.d.ts +1 -2
  563. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  564. package/types/components/Dropdown/Dropdown.styles.d.ts +6 -1
  565. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  566. package/types/components/Dropdown/Dropdown.tokens.d.ts +0 -25
  567. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  568. package/types/components/Dropdown/Dropdown.types.d.ts +4 -30
  569. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  570. package/types/components/Dropdown/index.d.ts +1 -1
  571. package/types/components/Dropdown/index.d.ts.map +1 -1
  572. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  573. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +12 -1
  574. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  575. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  576. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +3 -32
  577. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  578. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +14 -1
  579. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  580. package/types/components/Dropdown/utils/index.d.ts +0 -3
  581. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  582. package/types/components/Select/Select.tokens.d.ts +16 -0
  583. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  584. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  585. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  586. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  587. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  588. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  589. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  590. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  591. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  592. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  593. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  594. package/types/hooks/useOutsideClick.d.ts +1 -1
  595. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  596. package/cjs/components/Dropdown/Dropdown.styles_18f0qpm.css +0 -2
  597. package/cjs/components/Dropdown/FloatingPopover.js +0 -104
  598. package/cjs/components/Dropdown/FloatingPopover.js.map +0 -1
  599. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  600. package/cjs/components/Dropdown/utils/getItemByFocused.js +0 -13
  601. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  602. package/cjs/components/Dropdown/utils/getItemId.js +0 -10
  603. package/cjs/components/Dropdown/utils/getItemId.js.map +0 -1
  604. package/cjs/components/Dropdown/utils/getPlacement.js +0 -16
  605. package/cjs/components/Dropdown/utils/getPlacement.js.map +0 -1
  606. package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
  607. package/emotion/cjs/components/Dropdown/FloatingPopover.js +0 -109
  608. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  609. package/emotion/cjs/components/Dropdown/utils/getItemId.js +0 -9
  610. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  611. package/emotion/es/components/Dropdown/FloatingPopover.js +0 -102
  612. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  613. package/emotion/es/components/Dropdown/utils/getItemId.js +0 -3
  614. package/emotion/es/components/Dropdown/utils/getPlacement.js +0 -9
  615. package/es/components/Dropdown/Dropdown.styles_18f0qpm.css +0 -2
  616. package/es/components/Dropdown/FloatingPopover.js +0 -100
  617. package/es/components/Dropdown/FloatingPopover.js.map +0 -1
  618. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  619. package/es/components/Dropdown/utils/getItemByFocused.js +0 -9
  620. package/es/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  621. package/es/components/Dropdown/utils/getItemId.js +0 -6
  622. package/es/components/Dropdown/utils/getItemId.js.map +0 -1
  623. package/es/components/Dropdown/utils/getPlacement.js +0 -12
  624. package/es/components/Dropdown/utils/getPlacement.js.map +0 -1
  625. package/es/components/Select/Select.styles_1nzals0.css +0 -5
  626. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +0 -109
  627. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  628. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +0 -9
  629. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  630. package/styled-components/es/components/Dropdown/FloatingPopover.js +0 -102
  631. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  632. package/styled-components/es/components/Dropdown/utils/getItemId.js +0 -3
  633. package/styled-components/es/components/Dropdown/utils/getPlacement.js +0 -9
  634. package/types/components/Dropdown/FloatingPopover.d.ts +0 -5
  635. package/types/components/Dropdown/FloatingPopover.d.ts.map +0 -1
  636. package/types/components/Dropdown/utils/getItemByFocused.d.ts +0 -4
  637. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +0 -1
  638. package/types/components/Dropdown/utils/getItemId.d.ts +0 -2
  639. package/types/components/Dropdown/utils/getItemId.d.ts.map +0 -1
  640. package/types/components/Dropdown/utils/getPlacement.d.ts +0 -3
  641. package/types/components/Dropdown/utils/getPlacement.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useDrawer.js","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\nimport { DrawerInfo, getIdLastDrawer, hasDrawers } from '../DrawerContext';\nimport { DrawerHookArgs } from '../Drawer.types';\nimport { usePopupContext } from '../../Popup';\nimport { canUseDOM } from '../../../utils';\n\nconst ESCAPE_KEYCODE = 27;\n\nexport const useDrawer = ({\n id,\n isOpen,\n popupInfo,\n onEscKeyDown,\n onClose,\n closeOnEsc = true,\n disableScroll = true,\n}: DrawerHookArgs) => {\n const popupController = usePopupContext();\n const overflow = useRef<string>(canUseDOM ? document.body.style.overflow : 'initial');\n\n // При ESC закрывает текущее окно, если это возможно\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (!closeOnEsc) {\n return;\n }\n if (event.keyCode === ESCAPE_KEYCODE && getIdLastDrawer(popupController.items) === id) {\n if (onEscKeyDown) {\n onEscKeyDown(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n }\n },\n [onClose, onEscKeyDown, popupController.items, closeOnEsc],\n );\n\n useEffect(() => {\n window.addEventListener('keydown', onKeyDown);\n return () => {\n window.removeEventListener('keydown', onKeyDown);\n };\n }, [onKeyDown]);\n\n // linaria не поддерживает динамический global\n useEffect(() => {\n if (!canUseDOM) {\n return;\n }\n\n if (isOpen && disableScroll) {\n overflow.current = document.body.style.overflow;\n\n document.body.style.overflow = 'hidden';\n }\n }, [isOpen, disableScroll]);\n\n useEffect(() => {\n if (!canUseDOM) {\n return;\n }\n\n if (!isOpen && !hasDrawers(popupController.items)) {\n document.body.style.overflow = overflow.current;\n }\n }, [isOpen, popupController.items]);\n\n const drawerInfo: DrawerInfo = {\n id,\n info: {\n isDrawer: true,\n },\n ...popupInfo,\n };\n\n return { drawerInfo };\n};\n"],"names":["ESCAPE_KEYCODE","useDrawer","_ref","id","isOpen","popupInfo","onEscKeyDown","onClose","_ref$closeOnEsc","closeOnEsc","_ref$disableScroll","disableScroll","popupController","usePopupContext","overflow","useRef","canUseDOM","document","body","style","onKeyDown","useCallback","event","keyCode","getIdLastDrawer","items","useEffect","window","addEventListener","removeEventListener","current","hasDrawers","drawerInfo","_objectSpread","info","isDrawer"],"mappings":";;;;;;;;;;AAOA,IAAMA,cAAc,GAAG,EAAE,CAAA;IAEZC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAQA;AAAA,EAAA,IAPlBC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAAC,eAAA,GAAAN,IAAA,CACPO,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,eAAA;IAAAE,kBAAA,GAAAR,IAAA,CACjBS,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,kBAAA,CAAA;AAEpB,EAAA,IAAME,eAAe,GAAGC,eAAe,EAAE,CAAA;AACzC,EAAA,IAAMC,QAAQ,GAAGC,MAAM,CAASC,SAAS,GAAGC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAACL,QAAQ,GAAG,SAAS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AS,EAAE;AACZ,MAAA,OAAA;AACJ,KAAA;IAEA,IAAI,CAACZ,MAAM,IAAI,CAAC2B,UAAU,CAACnB,eAAe,CAACa,KAAK,CAAC,EAAE;MAC/CR,QAAQ,CAACC,IAAI,CAACC,KAAK,CAACL,QAAQ,GAAGA,QAAQ,CAACgB,OAAO,CAAA;AACnD,KAAA;GACH,EAAE,CAAC1B,MAAM,EAAEQ,eAAe,CAACa,KAAK,CAAC,CAAC,CAAA;EAEnC,IAAMO,UAAsB,GAAAC,cAAA,CAAA;AACxB9B,IAAAA,EAAE,EAAFA,EAAE;AACF+B,IAAAA,IAAI,EAAE;AACFC,MAAAA,QAAQ,EAAE,IAAA;AACd,KAAA;AAAC,GAAA,EACE9B,SAAS,CACf,CAAA;EAED,OAAO;AAAE2B,IAAAA,UAAU,EAAVA,UAAAA;GAAY,CAAA;AACzB;;;;"}
1
+ {"version":3,"file":"useDrawer.js","sources":["../../../../src/components/Drawer/hooks/useDrawer.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\nimport { DrawerInfo, getIdLastDrawer, hasDrawers } from '../DrawerContext';\nimport { DrawerHookArgs } from '../Drawer.types';\nimport { usePopupContext } from '../../Popup';\nimport { canUseDOM } from '../../../utils';\n\nconst ESCAPE_KEYCODE = 27;\n\nexport const useDrawer = ({\n id,\n isOpen,\n popupInfo,\n onEscKeyDown,\n onClose,\n closeOnEsc = true,\n disableScroll = true,\n}: DrawerHookArgs) => {\n const popupController = usePopupContext();\n const overflow = useRef<string>(canUseDOM ? document.body.style.overflow : 'initial');\n\n // При ESC закрывает текущее окно, если это возможно\n const onKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (!closeOnEsc) {\n return;\n }\n if (event.keyCode === ESCAPE_KEYCODE && getIdLastDrawer(popupController.items) === id) {\n if (onEscKeyDown) {\n onEscKeyDown(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n }\n },\n [onClose, onEscKeyDown, popupController.items, closeOnEsc],\n );\n\n useEffect(() => {\n window.addEventListener('keydown', onKeyDown);\n return () => {\n window.removeEventListener('keydown', onKeyDown);\n };\n }, [onKeyDown]);\n\n // linaria не поддерживает динамический global\n useEffect(() => {\n if (!canUseDOM) {\n return;\n }\n\n if (isOpen && disableScroll) {\n overflow.current = document.body.style.overflow;\n\n document.body.style.overflow = 'hidden';\n }\n }, [isOpen, disableScroll]);\n\n useEffect(() => {\n if (!canUseDOM) {\n return;\n }\n\n if (!isOpen && !hasDrawers(popupController.items)) {\n document.body.style.overflow = overflow.current;\n }\n }, [isOpen, popupController.items]);\n\n const drawerInfo: DrawerInfo = {\n id,\n info: {\n isDrawer: true,\n },\n ...popupInfo,\n };\n\n return { drawerInfo };\n};\n"],"names":["ESCAPE_KEYCODE","useDrawer","_ref","id","isOpen","popupInfo","onEscKeyDown","onClose","_ref$closeOnEsc","closeOnEsc","_ref$disableScroll","disableScroll","popupController","usePopupContext","overflow","useRef","canUseDOM","document","body","style","onKeyDown","useCallback","event","keyCode","getIdLastDrawer","items","useEffect","window","addEventListener","removeEventListener","current","hasDrawers","drawerInfo","_objectSpread","info","isDrawer"],"mappings":";;;;;;AAOA,IAAMA,cAAc,GAAG,EAAE,CAAA;IAEZC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAQA;AAAA,EAAA,IAPlBC,EAAE,GAAAD,IAAA,CAAFC,EAAE;IACFC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IACZC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAAC,eAAA,GAAAN,IAAA,CACPO,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,eAAA;IAAAE,kBAAA,GAAAR,IAAA,CACjBS,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,kB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I,CAACC,KAAK,CAACL,QAAQ,GAAG,QAAQ,CAAA;AAC3C,KAAA;AACJ,GAAC,EAAE,CAACV,MAAM,EAAEO,aAAa,CAAC,CAAC,CAAA;AAE3Be,EAAAA,SAAS,CAAC,YAAM;IACZ,IAAI,CAACV,SAAS,EAAE;AACZ,MAAA,OAAA;AACJ,KAAA;IAEA,IAAI,CAACZ,MAAM,IAAI,CAAC2B,UAAU,CAACnB,eAAe,CAACa,KAAK,CAAC,EAAE;MAC/CR,QAAQ,CAACC,IAAI,CAACC,KAAK,CAACL,QAAQ,GAAGA,QAAQ,CAACgB,OAAO,CAAA;AACnD,KAAA;GACH,EAAE,CAAC1B,MAAM,EAAEQ,eAAe,CAACa,KAAK,CAAC,CAAC,CAAA;EAEnC,IAAMO,UAAsB,GAAAC,cAAA,CAAA;AACxB9B,IAAAA,EAAE,EAAFA,EAAE;AACF+B,IAAAA,IAAI,EAAE;AACFC,MAAAA,QAAQ,EAAE,IAAA;AACd,KAAA;AAAC,GAAA,EACE9B,SAAS,CACf,CAAA;EAED,OAAO;AAAE2B,IAAAA,UAAU,EAAVA,UAAAA;GAAY,CAAA;AACzB;;;;"}
@@ -1,12 +1,5 @@
1
1
  import { objectSpread2 as _objectSpread2 } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import 'react';
3
- import '../../../../utils/react.js';
4
- import '@linaria/react';
5
2
  import { panelContentRoot, panelContentConfig } from '../../../Panel/ui/PanelContent/PanelContent.js';
6
- import '@linaria/core';
7
- import 'focus-visible';
8
- import 'styled-components';
9
- import '@salutejs/plasma-core';
10
3
 
11
4
  var drawerContentRoot = panelContentRoot;
12
5
  var drawerContentConfig = /*#__PURE__*/_objectSpread2( /*#__PURE__*/_objectSpread2({}, panelContentConfig), {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerContent.js","sources":["../../../../../src/components/Drawer/ui/DrawerContent/DrawerContent.tsx"],"sourcesContent":["import { panelContentConfig, panelContentRoot } from '../../../Panel';\n\nexport const drawerContentRoot = panelContentRoot;\n\nexport const drawerContentConfig = {\n ...panelContentConfig,\n name: 'DrawerContent',\n layout: drawerContentRoot,\n};\n"],"names":["drawerContentRoot","panelContentRoot","drawerContentConfig","_objectSpread","panelContentConfig","name","layout"],"mappings":";;;;;;;;;;AAEO,IAAMA,iBAAiB,GAAGC,iBAAgB;IAEpCC,mBAAmB,gBAAAC,cAAA,eAAAA,cAAA,KACzBC,kBAAkB,CAAA,EAAA,EAAA,EAAA;AACrBC,EAAAA,IAAI,EAAE,eAAe;AACrBC,EAAAA,MAAM,EAAEN,iBAAAA;AAAiB,CAC5B;;;;"}
1
+ {"version":3,"file":"DrawerContent.js","sources":["../../../../../src/components/Drawer/ui/DrawerContent/DrawerContent.tsx"],"sourcesContent":["import { panelContentConfig, panelContentRoot } from '../../../Panel';\n\nexport const drawerContentRoot = panelContentRoot;\n\nexport const drawerContentConfig = {\n ...panelContentConfig,\n name: 'DrawerContent',\n layout: drawerContentRoot,\n};\n"],"names":["drawerContentRoot","panelContentRoot","drawerContentConfig","_objectSpread","panelContentConfig","name","layout"],"mappings":";;;AAEO,IAAMA,iBAAiB,GAAGC,iBAAgB;IAEpCC,mBAAmB,gBAAAC,cAAA,eAAAA,cAAA,KACzBC,kBAAkB,CAAA,EAAA,EAAA,EAAA;AACrBC,EAAAA,IAAI,EAAE,eAAe;AACrBC,EAAAA,MAAM,EAAEN,iBAAAA;AAAiB,CAC5B;;;;"}
@@ -1,12 +1,5 @@
1
1
  import { objectSpread2 as _objectSpread2 } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import 'react';
3
- import '../../../../utils/react.js';
4
- import '@linaria/react';
5
2
  import { panelFooterRoot, panelFooterConfig } from '../../../Panel/ui/PanelFooter/PanelFooter.js';
6
- import '@linaria/core';
7
- import 'focus-visible';
8
- import 'styled-components';
9
- import '@salutejs/plasma-core';
10
3
 
11
4
  var drawerFooterRoot = panelFooterRoot;
12
5
  var drawerFooterConfig = /*#__PURE__*/_objectSpread2( /*#__PURE__*/_objectSpread2({}, panelFooterConfig), {}, {
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerFooter.js","sources":["../../../../../src/components/Drawer/ui/DrawerFooter/DrawerFooter.tsx"],"sourcesContent":["import { panelFooterConfig, panelFooterRoot } from '../../../Panel';\n\nexport const drawerFooterRoot = panelFooterRoot;\n\nexport const drawerFooterConfig = {\n ...panelFooterConfig,\n name: 'DrawerFooter',\n layout: drawerFooterRoot,\n};\n"],"names":["drawerFooterRoot","panelFooterRoot","drawerFooterConfig","_objectSpread","panelFooterConfig","name","layout"],"mappings":";;;;;;;;;;AAEO,IAAMA,gBAAgB,GAAGC,gBAAe;IAElCC,kBAAkB,gBAAAC,cAAA,eAAAA,cAAA,KACxBC,iBAAiB,CAAA,EAAA,EAAA,EAAA;AACpBC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,MAAM,EAAEN,gBAAAA;AAAgB,CAC3B;;;;"}
1
+ {"version":3,"file":"DrawerFooter.js","sources":["../../../../../src/components/Drawer/ui/DrawerFooter/DrawerFooter.tsx"],"sourcesContent":["import { panelFooterConfig, panelFooterRoot } from '../../../Panel';\n\nexport const drawerFooterRoot = panelFooterRoot;\n\nexport const drawerFooterConfig = {\n ...panelFooterConfig,\n name: 'DrawerFooter',\n layout: drawerFooterRoot,\n};\n"],"names":["drawerFooterRoot","panelFooterRoot","drawerFooterConfig","_objectSpread","panelFooterConfig","name","layout"],"mappings":";;;AAEO,IAAMA,gBAAgB,GAAGC,gBAAe;IAElCC,kBAAkB,gBAAAC,cAAA,eAAAA,cAAA,KACxBC,iBAAiB,CAAA,EAAA,EAAA,EAAA;AACpBC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,MAAM,EAAEN,gBAAAA;AAAgB,CAC3B;;;;"}
@@ -1,7 +1,4 @@
1
1
  import { objectSpread2 as _objectSpread2 } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import 'react';
3
- import '../../../../utils/react.js';
4
- import '@linaria/react';
5
2
  import { panelHeaderRoot, panelHeaderConfig } from '../../../Panel/ui/PanelHeader/PanelHeader.js';
6
3
 
7
4
  var drawerHeaderRoot = panelHeaderRoot;
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerHeader.js","sources":["../../../../../src/components/Drawer/ui/DrawerHeader/DrawerHeader.tsx"],"sourcesContent":["import { panelHeaderConfig, panelHeaderRoot } from '../../../Panel';\n\nexport const drawerHeaderRoot = panelHeaderRoot;\n\nexport const drawerHeaderConfig = {\n ...panelHeaderConfig,\n name: 'DrawerHeader',\n layout: drawerHeaderRoot,\n};\n"],"names":["drawerHeaderRoot","panelHeaderRoot","drawerHeaderConfig","_objectSpread","panelHeaderConfig","name","layout"],"mappings":";;;;;;AAEO,IAAMA,gBAAgB,GAAGC,gBAAe;IAElCC,kBAAkB,gBAAAC,cAAA,eAAAA,cAAA,KACxBC,iBAAiB,CAAA,EAAA,EAAA,EAAA;AACpBC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,MAAM,EAAEN,gBAAAA;AAAgB,CAC3B;;;;"}
1
+ {"version":3,"file":"DrawerHeader.js","sources":["../../../../../src/components/Drawer/ui/DrawerHeader/DrawerHeader.tsx"],"sourcesContent":["import { panelHeaderConfig, panelHeaderRoot } from '../../../Panel';\n\nexport const drawerHeaderRoot = panelHeaderRoot;\n\nexport const drawerHeaderConfig = {\n ...panelHeaderConfig,\n name: 'DrawerHeader',\n layout: drawerHeaderRoot,\n};\n"],"names":["drawerHeaderRoot","panelHeaderRoot","drawerHeaderConfig","_objectSpread","panelHeaderConfig","name","layout"],"mappings":";;;AAEO,IAAMA,gBAAgB,GAAGC,gBAAe;IAElCC,kBAAkB,gBAAAC,cAAA,eAAAA,cAAA,KACxBC,iBAAiB,CAAA,EAAA,EAAA,EAAA;AACpBC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,MAAM,EAAEN,gBAAAA;AAAgB,CAC3B;;;;"}
@@ -9,40 +9,26 @@
9
9
 
10
10
  .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
11
11
 
12
- .CellTextboxLabel_styles_1x97zqi_supiagz__b05150dd{color:var(--plasma-cell-label-color);font-size:var(--plasma-cell-label-font-size);font-weight:var(--plasma-cell-label-font-weight);font-family:var(--plasma-cell-label-font-family);font-style:var(--plasma-cell-label-font-style);line-height:var(--plasma-cell-label-line-height);-webkit-letter-spacing:var(--plasma-cell-label-letter-spacing);-moz-letter-spacing:var(--plasma-cell-label-letter-spacing);-ms-letter-spacing:var(--plasma-cell-label-letter-spacing);letter-spacing:var(--plasma-cell-label-letter-spacing);}
12
+ .DropdownItem_styles_blclup_s1gkzlls__8eef3b3a{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
13
+ .DropdownItem_styles_blclup_sz6s14y__8eef3b3a{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
14
+ .DropdownItem_styles_blclup_d1m97l2m__8eef3b3a{line-height:0;color:var(--plasma-dropdown-disclosure-icon-color);}
15
+ .DropdownItem_styles_blclup_soib72h__8eef3b3a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
16
+ .DropdownItem_styles_blclup_d6l2f0g__8eef3b3a{height:1px;margin-top:var(--d6l2f0g-0);margin-right:var(--plasma-dropdown-divider-margin-right);margin-bottom:var(--d6l2f0g-1);margin-left:var(--plasma-dropdown-divider-margin-left);background:var(--plasma-dropdown-divider-color);}
17
+ .DropdownItem_styles_blclup_w1jav4ek__8eef3b3a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;box-sizing:content-box;padding-top:var(--w1jav4ek-0);padding-right:var(--plasma-dropdown-item-padding-right);padding-bottom:var(--w1jav4ek-1);padding-left:var(--plasma-dropdown-item-padding-left);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a:hover:not(.DropdownItem_styles_blclup_dropdownItemIsDisabled__8eef3b3a){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a.DropdownItem_styles_blclup_dropdownItemIsActive__8eef3b3a{background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a.DropdownItem_styles_blclup_dropdownItemIsDisabled__8eef3b3a{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a:focus{outline:none;}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_blclup_w1jav4ek__8eef3b3a.DropdownItem_styles_blclup_dropdownItemIsFocused__8eef3b3a:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}
18
+
19
+ .DropdownItem_styles_12e50g5_s1iqs5in__94ac8eef{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
20
+ .DropdownItem_styles_12e50g5_sfg3dyd__94ac8eef{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
21
+ .DropdownItem_styles_12e50g5_s1dea6tl__94ac8eef{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
22
+ .DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:focus{outline:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_focusVisible__94ac8eef:focus::before,.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
13
23
 
14
- .CellTextboxTitle_styles_jogov7_s16psy9b__edbbb199{color:var(--plasma-cell-title-color);font-size:var(--plasma-cell-title-font-size);font-weight:var(--plasma-cell-title-font-weight);font-family:var(--plasma-cell-title-font-family);font-style:var(--plasma-cell-title-font-style);line-height:var(--plasma-cell-title-line-height);-webkit-letter-spacing:var(--plasma-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-cell-title-letter-spacing);letter-spacing:var(--plasma-cell-title-letter-spacing);}
15
-
16
- .CellTextboxSubtitle_styles_n7i06q_s1bdz4u4__8e9f9a5a{color:var(--plasma-cell-subtitle-color);font-size:var(--plasma-cell-subtitle-font-size);font-weight:var(--plasma-cell-subtitle-font-weight);font-family:var(--plasma-cell-subtitle-font-family);font-style:var(--plasma-cell-subtitle-font-style);line-height:var(--plasma-cell-subtitle-line-height);-webkit-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-cell-subtitle-letter-spacing);}
17
-
18
- .Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFixed__a35afa10{width:var(--plasma-cell-width);}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFilled__a35afa10{width:100%;}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingAuto__a35afa10{width:auto;}
19
- .Cell_styles_1lali49_c1e5qbb3__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:var(--plasma-cell-gap);height:auto;}
20
- .Cell_styles_1lali49_cdgokyj__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto;}
21
- .Cell_styles_1lali49_c1k87ec1__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1k87ec1-0);-webkit-box-align:var(--c1k87ec1-0);-ms-flex-align:var(--c1k87ec1-0);align-items:var(--c1k87ec1-0);}
22
- .Cell_styles_1lali49_c1spqh22__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1spqh22-0);-webkit-box-align:var(--c1spqh22-0);-ms-flex-align:var(--c1spqh22-0);align-items:var(--c1spqh22-0);text-align:right;}
23
-
24
- .base_pir0qf_b1sr9i7l__baa3f156{color:var(--plasma-cell-color);background-color:var(--plasma-cell-background-color);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;gap:var(--plasma-cell-gap);}.base_pir0qf_b1sr9i7l__baa3f156:focus{outline:0 none;}
25
-
26
- .CellTextbox_styles_rgpies_cz0uqdu__c842929b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-cell-textbox-gap);}
27
-
28
- .DropdownItem_styles_17va0nk_c1gkzlls__c9d95fff{--plasma-cell-title-color:var(--text-primary);--plasma-cell-background-color:var(--plasma-colors-transparent);--plasma-cell-padding:var(--plasma-dropdown-cell-padding);--plasma-cell-padding-left-content:var(--plasma-dropdown-cell-padding-left-content);--plasma-cell-padding-content:var(--plasma-dropdown-cell-padding-content);--plasma-cell-padding-right-content:var(--plasma-dropdown-cell-padding-right-content);--plasma-cell-textbox-gap:var(--plasma-dropdown-cell-textbox-gap);--plasma-cell-gap:var(--plasma-dropdown-cell-gap);--plasma-cell-title-font-family:var(--plasma-dropdown-cell-title-font-family);--plasma-cell-title-font-size:var(--plasma-dropdown-cell-title-font-size);--plasma-cell-title-font-style:var(--plasma-dropdown-cell-title-font-style);--plasma-cell-title-font-weight:var(--plasma-dropdown-cell-title-font-weight);--plasma-cell-title-letter-spacing:var(--plasma-dropdown-cell-title-letter-spacing);--plasma-cell-title-line-height:var(--plasma-dropdown-cell-title-line-height);width:100%;}
29
-
30
- .DropdownItem_styles_17va0nk_d1m97l2m__c9d95fff{line-height:0;color:var(--text-secondary);}
31
- .DropdownItem_styles_17va0nk_doib72h__c9d95fff{height:1px;margin-top:var(--doib72h-0);margin-right:var(--plasma-dropdown-divider-margin-right);margin-bottom:var(--doib72h-1);margin-left:var(--plasma-dropdown-divider-margin-left);background:var(--plasma-dropdown-divider-color);}
32
- .DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:var(--plasma-dropdown-item-height);margin:0;box-sizing:content-box;padding:var(--w6l2f0g-0);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background-color:var(--plasma-colors-transparent);border-radius:var(--plasma-dropdown-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:0.125rem solid transparent;border-left:0.125rem solid transparent;background-clip:padding-box;position:relative;}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff:hover:not(.DropdownItem_styles_17va0nk_dropdownItemIsDisabled__c9d95fff){cursor:pointer;background-color:var(--surface-transparent-secondary);}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff.DropdownItem_styles_17va0nk_dropdownItemIsActive__c9d95fff{background-color:var(--surface-transparent-secondary);}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff.DropdownItem_styles_17va0nk_dropdownItemIsDisabled__c9d95fff{opacity:0.4;cursor:not-allowed;}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff:focus{outline:none;}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_17va0nk_w6l2f0g__c9d95fff.DropdownItem_styles_17va0nk_dropdownItemIsFocused__c9d95fff:before{outline:none;box-shadow:0 0 0 0.0625rem var(--surface-accent);}
33
-
34
- .DropdownItem_styles_1lyg81y_s1iqs5in__b17ea060{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
35
- .DropdownItem_styles_1lyg81y_sfg3dyd__b17ea060{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
36
- .DropdownItem_styles_1lyg81y_s1dea6tl__b17ea060{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
37
- .DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060:focus{outline:none;}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_focusVisible__b17ea060:focus::before,.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060:hover:not(.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsSelected__b17ea060{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsSelected__b17ea060:hover:not(.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_1lyg81y_b1b2nce8__b17ea060.DropdownItem_styles_1lyg81y_dropdownItemIsDisabled__b17ea060{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
24
+ .Dropdown_styles_3w3l45_s1rwu6ky__59648b20 .Dropdown_styles_3w3l45_popoverTarget__59648b20{display:block;}
25
+ .Dropdown_styles_3w3l45_s10jhp3l__59648b20{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
38
26
 
39
27
  .Popover_styles_rmr9za_s1g1xbt5__0bafa6fb{display:inline-block;}
40
28
  .Popover_styles_rmr9za_s12xwbyh__0bafa6fb{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;position:relative;}
41
29
  .Popover_styles_rmr9za_s1pd4d8a__0bafa6fb{width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);}.Popover_styles_rmr9za_s1pd4d8a__0bafa6fb::before{position:absolute;width:var(--plasma-popover-arrow-mask-width);height:var(--plasma-popover-arrow-mask-height);-webkit-mask-image:var(--plasma-popover-arrow-mask-image);mask-image:var(--plasma-popover-arrow-mask-image);background:var(--plasma-popover-arrow-background);content:'';-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}
42
30
  .Popover_styles_rmr9za_s16xlixz__0bafa6fb{position:absolute;z-index:var(--s16xlixz-0);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='top'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{bottom:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{top:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='left'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{right:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='left'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb::before{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='right'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{left:calc(0px - var(--plasma-popover-arrow-height));}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='right'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb::before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='top-start'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{bottom:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='top-end'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{bottom:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom-start'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{top:calc(0px - var(--plasma-popover-arrow-height));left:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom-start'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom-end'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{top:calc(0px - var(--plasma-popover-arrow-height));left:unset !important;right:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='bottom-end'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb::before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='left-start'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb,.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='right-start'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{top:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='left-end'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb,.Popover_styles_rmr9za_s16xlixz__0bafa6fb[data-popper-placement^='right-end'] > .Popover_styles_rmr9za_popoverArrow__0bafa6fb{top:unset !important;bottom:var(--plasma-popover-arrow-edge-margin) !important;-webkit-transform:unset !important;-ms-transform:unset !important;transform:unset !important;}
43
31
 
44
- .Dropdown_styles_3w3l45_s1rwu6ky__59648b20 .Dropdown_styles_3w3l45_popoverTarget__59648b20{display:block;}
45
- .Dropdown_styles_3w3l45_s10jhp3l__59648b20{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--plasma-dropdown-width);height:var(--plasma-dropdown-height);padding:var(--plasma-dropdown-padding-top) var(--plasma-dropdown-padding-right) var(--plasma-dropdown-padding-bottom) var(--plasma-dropdown-padding-left);}
46
-
47
- .Dropdown_styles_18f0qpm_un7uamp__64c00440{box-sizing:border-box;width:var(--un7uamp-0);height:var(--un7uamp-1);margin:var(--un7uamp-2);padding:var(--plasma-dropdown-padding) 0;overflow:var(--un7uamp-3);background:var(--surface-solid-card);box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);border-radius:var(--plasma-dropdown-border-radius);}
48
-
32
+ .Dropdown_styles_1tihqkp_sn7uamp__39673f55 .Dropdown_styles_1tihqkp_popoverWrapper__39673f55,.Dropdown_styles_1tihqkp_sn7uamp__39673f55 .Dropdown_styles_1tihqkp_popoverTarget__39673f55{display:block;}
33
+ .Dropdown_styles_1tihqkp_ujr7fmv__39673f55{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--ujr7fmv-0);height:var(--ujr7fmv-1);overflow:var(--ujr7fmv-2);margin:var(--ujr7fmv-3);padding:var(--plasma-dropdown-padding);}
34
+ .Dropdown_styles_1tihqkp_byfocd2__39673f55{display:inline-block;}
@@ -1,42 +1,31 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { createContext, forwardRef, useReducer, useRef } from 'react';
3
- import { safeUseId } from '@salutejs/plasma-core';
2
+ import React, { forwardRef, useReducer } from 'react';
4
3
  import { cx } from '../../utils/index.js';
5
- import { useOutsideClick } from '../../hooks/useOutsideClick.js';
6
4
  import { pathReducer } from './reducers/pathReducer.js';
7
5
  import { focusedPathReducer } from './reducers/focusedPathReducer.js';
8
- import '@linaria/react';
9
- import { classes } from './Dropdown.tokens.js';
10
6
  import { base as base$1 } from './variations/_view/base.js';
11
7
  import { base as base$2 } from './variations/_size/base.js';
12
- import { Ul, base } from './Dropdown.styles.js';
8
+ import { StyledPopover, Ul, base } from './Dropdown.styles.js';
13
9
  import { childrenWithProps } from './utils/index.js';
10
+ import { classes } from './Dropdown.tokens.js';
14
11
  import { useKeyNavigation } from './hooks/useKeyboardNavigation.js';
15
12
  import { useHashMaps } from './hooks/useHashMaps.js';
16
- import { FloatingPopover } from './FloatingPopover.js';
17
- import '@linaria/core';
18
- import 'focus-visible';
13
+ import { getPlacements } from '../../utils/getPopoverPlacement.js';
19
14
  import { DropdownInner } from './ui/DropdownInner/DropdownInner.js';
20
- import 'styled-components';
21
- import 'react-popper';
22
- import 'react-dom';
23
- import { getItemByFocused } from './utils/getItemByFocused.js';
24
- import { getPlacement } from './utils/getPlacement.js';
25
- import { getItemId } from './utils/getItemId.js';
26
15
 
27
16
  var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "portal"];
28
- var Context = /*#__PURE__*/createContext({});
29
17
 
30
18
  /**
31
19
  * Выпадающий список.
32
20
  */
33
21
  var dropdownRoot = function dropdownRoot(Root) {
34
22
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
35
- var _getItemByFocused;
36
23
  var items = _ref.items,
37
24
  children = _ref.children,
38
- placement = _ref.placement,
39
- offset = _ref.offset,
25
+ _ref$placement = _ref.placement,
26
+ placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
27
+ _ref$offset = _ref.offset,
28
+ offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
40
29
  _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
41
30
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
42
31
  onToggle = _ref.onToggle,
@@ -73,25 +62,6 @@ var dropdownRoot = function dropdownRoot(Root) {
73
62
  _useHashMaps2 = _slicedToArray(_useHashMaps, 2),
74
63
  pathMap = _useHashMaps2[0],
75
64
  focusedToValueMap = _useHashMaps2[1];
76
- var activeDescendantItemValue = ((_getItemByFocused = getItemByFocused(focusedPath, focusedToValueMap)) === null || _getItemByFocused === void 0 ? void 0 : _getItemByFocused.value) || '';
77
- var floatingPopoverRef = useRef(null);
78
- var treeId = safeUseId();
79
-
80
- // Логика работы при клике за пределами выпадающего списка
81
- var targetRef = useOutsideClick(function (event) {
82
- if (!isCurrentListOpen || !closeOnOverlayClick) {
83
- return;
84
- }
85
- dispatchPath({
86
- type: 'reset'
87
- });
88
- dispatchFocusedPath({
89
- type: 'reset'
90
- });
91
- if (onToggle) {
92
- onToggle(false, event);
93
- }
94
- }, floatingPopoverRef);
95
65
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
96
66
  if (opened) {
97
67
  dispatchPath({
@@ -123,64 +93,66 @@ var dropdownRoot = function dropdownRoot(Root) {
123
93
  }),
124
94
  onKeyDown = _useKeyNavigation.onKeyDown;
125
95
  var isCurrentListOpen = Boolean(path[0]);
126
- return /*#__PURE__*/React.createElement(Context.Provider, {
127
- value: {
128
- focusedPath: focusedPath,
129
- size: size,
130
- variant: variant,
131
- itemRole: itemRole,
132
- handleGlobalToggle: handleGlobalToggle,
133
- closeOnSelect: closeOnSelect,
134
- onHover: onHover,
135
- onItemClick: onItemClick,
136
- onItemSelect: onItemSelect,
137
- hasArrow: hasArrow,
138
- treeId: treeId
139
- }
140
- }, /*#__PURE__*/React.createElement(FloatingPopover, {
141
- ref: floatingPopoverRef,
96
+ var getActiveDescendant = function getActiveDescendant() {
97
+ var _focusedToValueMap$ge;
98
+ var focusedPathAsString = focusedPath.reduce(function (acc, n) {
99
+ return "".concat(acc, "/").concat(n);
100
+ }, '').replace(/^(\/)/, '');
101
+ return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
102
+ };
103
+ return /*#__PURE__*/React.createElement(StyledPopover, {
142
104
  opened: isCurrentListOpen,
143
105
  onToggle: handleGlobalToggle,
144
- placement: getPlacement(placement),
145
106
  offset: offset,
146
- portal: portal,
107
+ placement: getPlacements(placement),
147
108
  trigger: trigger,
109
+ closeOnOverlayClick: closeOnOverlayClick,
110
+ isFocusTrapped: false,
148
111
  target: childrenWithProps(children, {
149
112
  role: 'combobox',
150
- 'aria-controls': "".concat(treeId, "_tree_level_1"),
113
+ 'aria-controls': 'tree_level_1',
151
114
  'aria-expanded': isCurrentListOpen,
152
- 'aria-activedescendant': activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue.toString()) : '',
115
+ 'aria-activedescendant': getActiveDescendant(),
153
116
  onKeyDown: onKeyDown
154
- })
117
+ }),
118
+ preventOverflow: false,
119
+ usePortal: Boolean(portal),
120
+ frame: portal
155
121
  }, /*#__PURE__*/React.createElement(Root, _extends({
156
122
  className: cx(className, classes.dropdownRoot),
157
123
  ref: ref,
158
124
  view: view,
159
- size: size,
160
- style: {
161
- display: 'inline-block'
162
- }
125
+ size: size
163
126
  }, rest), /*#__PURE__*/React.createElement(Ul, {
164
- ref: targetRef,
165
- id: "".concat(treeId, "_tree_level_1"),
166
- role: "tree",
167
127
  listHeight: listHeight,
168
128
  listOverflow: listOverflow,
129
+ role: "tree",
130
+ id: "tree_level_1",
169
131
  listWidth: listWidth
170
132
  }, items.map(function (item, index) {
171
133
  return /*#__PURE__*/React.createElement(DropdownInner, {
172
134
  key: "".concat(index, "/0"),
173
135
  item: item,
174
136
  currentLevel: 0,
137
+ focusedPath: focusedPath,
175
138
  trigger: trigger,
176
139
  path: path,
177
140
  dispatchPath: dispatchPath,
178
141
  index: index,
142
+ itemRole: itemRole,
179
143
  listHeight: listHeight,
180
144
  listOverflow: listOverflow,
181
- listWidth: listWidth
145
+ handleGlobalToggle: handleGlobalToggle,
146
+ closeOnSelect: closeOnSelect,
147
+ onHover: onHover,
148
+ onItemSelect: onItemSelect,
149
+ onItemClick: onItemClick,
150
+ listWidth: listWidth,
151
+ variant: variant,
152
+ hasArrow: hasArrow,
153
+ size: size
182
154
  });
183
- })))));
155
+ }))));
184
156
  });
185
157
  };
186
158
  var dropdownConfig = {
@@ -202,5 +174,5 @@ var dropdownConfig = {
202
174
  }
203
175
  };
204
176
 
205
- export { Context, dropdownConfig, dropdownRoot };
177
+ export { dropdownConfig, dropdownRoot };
206
178
  //# sourceMappingURL=Dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import React, { createContext, forwardRef, useReducer, useRef } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\nimport { useOutsideClick } from '../../hooks';\n\nimport { pathReducer } from './reducers/pathReducer';\nimport { focusedPathReducer } from './reducers/focusedPathReducer';\nimport { DropdownInner } from './ui';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { Ul, base } from './Dropdown.styles';\nimport { childrenWithProps, getItemByFocused, getItemId, getPlacement } from './utils';\nimport type { DropdownProps, HandleGlobalToggleType, ItemContext } from './Dropdown.types';\nimport { classes } from './Dropdown.tokens';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\nimport { useHashMaps } from './hooks/useHashMaps';\nimport { FloatingPopover } from './FloatingPopover';\n\nexport const Context = createContext<ItemContext>({} as ItemContext);\n\n/**\n * Выпадающий список.\n */\nexport const dropdownRoot = (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n items,\n children,\n placement,\n offset,\n closeOnOverlayClick = true,\n onToggle,\n size,\n view,\n itemRole = 'treeitem',\n className,\n listWidth,\n listHeight,\n listOverflow,\n closeOnSelect = true,\n onHover,\n onItemSelect,\n onItemClick,\n trigger = 'click',\n variant = 'normal',\n hasArrow = true,\n portal,\n ...rest\n },\n ref,\n ) => {\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n\n const [pathMap, focusedToValueMap] = useHashMaps(items);\n\n const activeDescendantItemValue = getItemByFocused(focusedPath, focusedToValueMap)?.value || '';\n\n const floatingPopoverRef = useRef<HTMLDivElement>(null);\n\n const treeId = safeUseId();\n\n // Логика работы при клике за пределами выпадающего списка\n const targetRef = useOutsideClick<HTMLUListElement>((event) => {\n if (!isCurrentListOpen || !closeOnOverlayClick) {\n return;\n }\n\n dispatchPath({ type: 'reset' });\n dispatchFocusedPath({ type: 'reset' });\n\n if (onToggle) {\n onToggle(false, event);\n }\n }, floatingPopoverRef);\n\n const handleGlobalToggle: HandleGlobalToggleType = (opened, event) => {\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n\n if (onToggle) {\n onToggle(opened, event);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n });\n\n const isCurrentListOpen = Boolean(path[0]);\n\n return (\n <Context.Provider\n value={{\n focusedPath,\n size,\n variant,\n itemRole,\n handleGlobalToggle,\n closeOnSelect,\n onHover,\n onItemClick,\n onItemSelect,\n hasArrow,\n treeId,\n }}\n >\n <FloatingPopover\n ref={floatingPopoverRef}\n opened={isCurrentListOpen}\n onToggle={handleGlobalToggle}\n placement={getPlacement(placement)}\n offset={offset}\n portal={portal}\n trigger={trigger}\n target={childrenWithProps(children, {\n role: 'combobox',\n 'aria-controls': `${treeId}_tree_level_1`,\n 'aria-expanded': isCurrentListOpen,\n 'aria-activedescendant': activeDescendantItemValue\n ? getItemId(treeId, activeDescendantItemValue.toString())\n : '',\n onKeyDown,\n })}\n >\n <Root\n className={cx(className, classes.dropdownRoot)}\n ref={ref}\n view={view}\n size={size}\n style={{ display: 'inline-block' }}\n {...rest}\n >\n <Ul\n ref={targetRef}\n id={`${treeId}_tree_level_1`}\n role=\"tree\"\n listHeight={listHeight}\n listOverflow={listOverflow}\n listWidth={listWidth}\n >\n {items.map((item, index) => (\n <DropdownInner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n trigger={trigger}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n listHeight={listHeight}\n listOverflow={listOverflow}\n listWidth={listWidth}\n />\n ))}\n </Ul>\n </Root>\n </FloatingPopover>\n </Context.Provider>\n );\n },\n );\n\nexport const dropdownConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["Context","createContext","dropdownRoot","Root","forwardRef","_ref","ref","_getItemByFocused","items","children","placement","offset","_ref$closeOnOverlayCl","closeOnOverlayClick","onToggle","size","view","_ref$itemRole","itemRole","className","listWidth","listHeight","listOverflow","_ref$closeOnSelect","closeOnSelect","onHover","onItemSelect","onItemClick","_ref$trigger","trigger","_ref$variant","variant","_ref$hasArrow","hasArrow","portal","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","pathReducer","_useReducer2","_slicedToArray","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useHashMaps","useHashMaps","_useHashMaps2","pathMap","focusedToValueMap","activeDescendantItemValue","getItemByFocused","value","floatingPopoverRef","useRef","treeId","safeUseId","targetRef","useOutsideClick","event","isCurrentListOpen","type","handleGlobalToggle","opened","_useKeyNavigation","useKeyNavigation","onKeyDown","Boolean","React","createElement","Provider","FloatingPopover","getPlacement","target","childrenWithProps","role","concat","getItemId","toString","_extends","cx","classes","style","display","Ul","id","map","item","index","DropdownInner","key","currentLevel","dropdownConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;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AAA,CAACoB,aAAa,EAAA;AACVC,QAAAA,GAAG,EAAAd,EAAAA,CAAAA,MAAA,CAAKY,KAAK,EAAK,IAAA,CAAA;AAClBD,QAAAA,IAAI,EAAEA,IAAK;AACXI,QAAAA,YAAY,EAAE,CAAE;AAChBnE,QAAAA,OAAO,EAAEA,OAAQ;AACjBc,QAAAA,IAAI,EAAEA,IAAK;AACXC,QAAAA,YAAY,EAAEA,YAAa;AAC3BiD,QAAAA,KAAK,EAAEA,KAAM;AACbxE,QAAAA,UAAU,EAAEA,UAAW;AACvBC,QAAAA,YAAY,EAAEA,YAAa;AAC3BF,QAAAA,SAAS,EAAEA,SAAAA;AAAU,OACxB,CAAC,CAAA;AAAA,KACL,CACD,CACF,CACO,CACH,CAAC,CAAA;AAE3B,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM6E,cAAc,GAAG;AAC1BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAElG,YAAY;AACpBmG,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRtF,IAAAA,IAAI,EAAE;AACFuF,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDzF,IAAAA,IAAI,EAAE;AACFwF,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1F,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Dropdown.js","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["import React, { forwardRef, useReducer } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx, getPlacements } from '../../utils';\n\nimport { pathReducer } from './reducers/pathReducer';\nimport { focusedPathReducer } from './reducers/focusedPathReducer';\nimport { DropdownInner } from './ui';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { Ul, StyledPopover, base } from './Dropdown.styles';\nimport { childrenWithProps } from './utils';\nimport type { DropdownProps, HandleGlobalToggleType } from './Dropdown.types';\nimport { classes } from './Dropdown.tokens';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\nimport { useHashMaps } from './hooks/useHashMaps';\n\n/**\n * Выпадающий список.\n */\nexport const dropdownRoot = (Root: RootProps<HTMLDivElement, Omit<DropdownProps, 'items'>>) =>\n forwardRef<HTMLDivElement, DropdownProps>(\n (\n {\n items,\n children,\n placement = 'bottom',\n offset = [0, 0],\n closeOnOverlayClick = true,\n onToggle,\n size,\n view,\n itemRole = 'treeitem',\n className,\n listWidth,\n listHeight,\n listOverflow,\n closeOnSelect = true,\n onHover,\n onItemSelect,\n onItemClick,\n trigger = 'click',\n variant = 'normal',\n hasArrow = true,\n portal,\n ...rest\n },\n ref,\n ) => {\n const [path, dispatchPath] = useReducer(pathReducer, []);\n const [focusedPath, dispatchFocusedPath] = useReducer(focusedPathReducer, []);\n\n const [pathMap, focusedToValueMap] = useHashMaps(items);\n\n const handleGlobalToggle: HandleGlobalToggleType = (opened, event) => {\n if (opened) {\n dispatchPath({ type: 'opened_first_level' });\n } else {\n dispatchFocusedPath({ type: 'reset' });\n dispatchPath({ type: 'reset' });\n }\n\n if (onToggle) {\n onToggle(opened, event);\n }\n };\n\n const { onKeyDown } = useKeyNavigation({\n focusedPath,\n dispatchFocusedPath,\n path,\n dispatchPath,\n pathMap,\n focusedToValueMap,\n handleGlobalToggle,\n closeOnSelect,\n onItemSelect,\n onItemClick,\n });\n\n const isCurrentListOpen = Boolean(path[0]);\n\n const getActiveDescendant = () => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n return focusedToValueMap?.get(focusedPathAsString)?.value.toString();\n };\n\n return (\n <StyledPopover\n opened={isCurrentListOpen}\n onToggle={handleGlobalToggle}\n offset={offset}\n placement={getPlacements(placement)}\n trigger={trigger}\n closeOnOverlayClick={closeOnOverlayClick}\n isFocusTrapped={false}\n target={childrenWithProps(children, {\n role: 'combobox',\n 'aria-controls': 'tree_level_1',\n 'aria-expanded': isCurrentListOpen,\n 'aria-activedescendant': getActiveDescendant(),\n onKeyDown,\n })}\n preventOverflow={false}\n usePortal={Boolean(portal)}\n frame={portal}\n >\n <Root className={cx(className, classes.dropdownRoot)} ref={ref} view={view} size={size} {...rest}>\n <Ul\n listHeight={listHeight}\n listOverflow={listOverflow}\n role=\"tree\"\n id=\"tree_level_1\"\n listWidth={listWidth}\n >\n {items.map((item, index) => (\n <DropdownInner\n key={`${index}/0`}\n item={item}\n currentLevel={0}\n focusedPath={focusedPath}\n trigger={trigger}\n path={path}\n dispatchPath={dispatchPath}\n index={index}\n itemRole={itemRole}\n listHeight={listHeight}\n listOverflow={listOverflow}\n handleGlobalToggle={handleGlobalToggle}\n closeOnSelect={closeOnSelect}\n onHover={onHover}\n onItemSelect={onItemSelect}\n onItemClick={onItemClick}\n listWidth={listWidth}\n variant={variant}\n hasArrow={hasArrow}\n size={size}\n />\n ))}\n </Ul>\n </Root>\n </StyledPopover>\n );\n },\n );\n\nexport const dropdownConfig = {\n name: 'Dropdown',\n tag: 'div',\n layout: dropdownRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["dropdownRoot","Root","forwardRef","_ref","ref","items","children","_ref$placement","placement","_ref$offset","offset","_ref$closeOnOverlayCl","closeOnOverlayClick","onToggle","size","view","_ref$itemRole","itemRole","className","listWidth","listHeight","listOverflow","_ref$closeOnSelect","closeOnSelect","onHover","onItemSelect","onItemClick","_ref$trigger","trigger","_ref$variant","variant","_ref$hasArrow","hasArrow","portal","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","pathReducer","_useReducer2","_slicedToArray","path","dispatchPath","_useReducer3","focusedPathReducer","_useReducer4","focusedPath","dispatchFocusedPath","_useHashMaps","useHashMaps","_useHashMaps2","pathMap","focusedToValueMap","handleGlobalToggle","opened","event","type","_useKeyNavigation","useKeyNavigation","onKeyDown","isCurrentListOpen","Boolean","getActiveDescendant","_focusedToValueMap$ge","focusedPathAsString","reduce","acc","n","concat","replace","get","value","toString","React","createElement","StyledPopover","getPlacements","isFocusTrapped","target","childrenWithProps","role","preventOverflow","usePortal","frame","_extends","cx","classes","Ul","id","map","item","index","DropdownInner","key","currentLevel","dropdownConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;IACaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA6D,EAAA;AAAA,EAAA,oBACtFC,UAAU,CACN,UAAAC,IAAA,EAyBIC,GAAG,EACF;AAAA,IAAA,IAxBGC,KAAK,GAAAF,IAAA,CAALE,KAAK;MACLC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;MAAAC,cAAA,GAAAJ,IAAA,CACRK,SAAS;AAATA,MAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,cAAA;MAAAE,WAAA,GAAAN,IAAA,CACpBO,MAAM;MAANA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,CAAC,CAAC,EAAE,CAAC,CAAC,GAAAA,WAAA;MAAAE,qBAAA,GAAAR,IAAA,CACfS,mBAAmB;AAAnBA,MAAAA,mBAAmB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;MAC1BE,QAAQ,GAAAV,IAAA,CAARU,QAAQ;MACRC,IAAI,GAAAX,IAAA,CAAJW,IAAI;MACJC,IAAI,GAAAZ,IAAA,CAAJY,IAAI;MAAAC,aAAA,GAAAb,IAAA,CACJc,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,aAAA;MACrBE,SAAS,GAAAf,IAAA,CAATe,SA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S;AACnBG,QAAAA,UAAU,EAAEA,UAAW;AACvBC,QAAAA,YAAY,EAAEA,YAAa;AAC3BiC,QAAAA,kBAAkB,EAAEA,kBAAmB;AACvC/B,QAAAA,aAAa,EAAEA,aAAc;AAC7BC,QAAAA,OAAO,EAAEA,OAAQ;AACjBC,QAAAA,YAAY,EAAEA,YAAa;AAC3BC,QAAAA,WAAW,EAAEA,WAAY;AACzBP,QAAAA,SAAS,EAAEA,SAAU;AACrBW,QAAAA,OAAO,EAAEA,OAAQ;AACjBE,QAAAA,QAAQ,EAAEA,QAAS;AACnBlB,QAAAA,IAAI,EAAEA,IAAAA;AAAK,OACd,CAAC,CAAA;KACL,CACD,CACF,CACK,CAAC,CAAA;AAExB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMkF,cAAc,GAAG;AAC1BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnG,YAAY;AACpBoG,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRtF,IAAAA,IAAI,EAAE;AACFuF,MAAAA,GAAG,EAAEC,MAAAA;KACR;AACDzF,IAAAA,IAAI,EAAE;AACFwF,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1F,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,44 +1,55 @@
1
- import './Dropdown.styles_18f0qpm.css';
1
+ import './Dropdown.styles_1tihqkp.css';
2
2
  import { styled } from '@linaria/react';
3
3
  import { getCorrectHeight } from './utils/index.js';
4
4
  import { tokens } from './Dropdown.tokens.js';
5
+ import { component } from '../../engines/common.js';
6
+ import { popoverConfig } from '../Popover/Popover.js';
5
7
 
8
+ var Popover = /*#__PURE__*/component(popoverConfig);
6
9
  var _exp = function _exp() {
10
+ return Popover;
11
+ };
12
+ var StyledPopover = /*#__PURE__*/styled(_exp())({
13
+ name: "StyledPopover",
14
+ "class": "sn7uamp",
15
+ propsAsIs: true
16
+ });
17
+ var _exp7 = function _exp7() {
7
18
  return function (_ref) {
8
19
  var listWidth = _ref.listWidth;
9
20
  return listWidth || "var(".concat(tokens.width, ")");
10
21
  };
11
22
  };
12
- var _exp2 = function _exp2() {
23
+ var _exp8 = function _exp8() {
13
24
  return function (_ref2) {
14
25
  var listHeight = _ref2.listHeight;
15
26
  return listHeight ? getCorrectHeight(listHeight) : 'auto';
16
27
  };
17
28
  };
18
- var _exp3 = function _exp3() {
29
+ var _exp9 = function _exp9() {
19
30
  return function (_ref3) {
20
- var isInnerUl = _ref3.isInnerUl;
21
- return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0.125rem 0") : 0;
31
+ var listOverflow = _ref3.listOverflow;
32
+ return listOverflow || 'initial';
22
33
  };
23
34
  };
24
- var _exp5 = function _exp5() {
35
+ var _exp10 = function _exp10() {
25
36
  return function (_ref4) {
26
- var listOverflow = _ref4.listOverflow;
27
- return listOverflow || 'initial';
37
+ var isInnerUl = _ref4.isInnerUl;
38
+ return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 var(").concat(tokens.padding, ")") : 0;
28
39
  };
29
40
  };
30
41
  var Ul = /*#__PURE__*/styled('ul')({
31
42
  name: "Ul",
32
- "class": "un7uamp",
43
+ "class": "ujr7fmv",
33
44
  propsAsIs: false,
34
45
  vars: {
35
- "un7uamp-0": [/*#__PURE__*/_exp()],
36
- "un7uamp-1": [/*#__PURE__*/_exp2()],
37
- "un7uamp-2": [/*#__PURE__*/_exp3()],
38
- "un7uamp-3": [/*#__PURE__*/_exp5()]
46
+ "ujr7fmv-0": [/*#__PURE__*/_exp7()],
47
+ "ujr7fmv-1": [/*#__PURE__*/_exp8()],
48
+ "ujr7fmv-2": [/*#__PURE__*/_exp9()],
49
+ "ujr7fmv-3": [/*#__PURE__*/_exp10()]
39
50
  }
40
51
  });
41
- var base = "bjr7fmv";
52
+ var base = "byfocd2";
42
53
 
43
- export { Ul, base };
54
+ export { StyledPopover, Ul, base };
44
55
  //# sourceMappingURL=Dropdown.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.styles.js","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { getCorrectHeight } from './utils';\nimport { DropdownProps } from './Dropdown.types';\nimport { tokens, constants } from './Dropdown.tokens';\n\nexport const Ul = styled.ul<{\n listHeight: DropdownProps['listHeight'];\n listOverflow: DropdownProps['listOverflow'];\n listWidth?: DropdownProps['listWidth'];\n isInnerUl?: boolean;\n}>`\n box-sizing: border-box;\n width: ${({ listWidth }) => listWidth || `var(${tokens.width})`};\n height: ${({ listHeight }) => (listHeight ? getCorrectHeight(listHeight) : 'auto')};\n margin: ${({ isInnerUl }) => (isInnerUl ? `calc(var(${tokens.padding}) * -1) 0.125rem 0` : 0)};\n padding: var(${tokens.padding}) 0;\n overflow: ${({ listOverflow }) => listOverflow || 'initial'};\n background: var(${constants.background});\n box-shadow: ${constants.boxShadow};\n border-radius: var(${tokens.borderRadius});\n`;\n\nexport const base = css``;\n"],"names":["_exp","_ref","listWidth","concat","tokens","width","_exp2","_ref2","listHeight","getCorrectHeight","_exp3","_ref3","isInnerUl","padding","_exp5","_ref4","listOverflow","Ul","styled","name","class","propsAsIs","vars","base"],"mappings":";;;;AAKsD,IAAAA,IAAA,GAJpCA,SAIoCA,IAAAA,GAAA;AAAA,EAAA,OASzC,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,SAAAA,GAAAA,IAAAA,CAAAA,SAAAA,CAAAA;AAAAA,IAAAA,OAAgBA,SAAS,IAAAC,MAAAA,CAAAA,MAAA,CAAWC,MAAM,CAACC,KAAM,EAAE,GAAA,CAAA,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GAbjDA,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down/Dropdown.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { component } from '../../engines';\nimport { popoverConfig, popoverClasses } from '../Popover';\n\nimport { getCorrectHeight } from './utils';\nimport { DropdownProps } from './Dropdown.types';\nimport { tokens } from './Dropdown.tokens';\n\nconst Popover = component(popoverConfig);\n\nexport const StyledPopover = styled(Popover)`\n .${String(popoverClasses.wrapper)}, .${String(popoverClasses.target)} {\n display: block;\n }\n`;\n\nexport const Ul = styled.ul<{\n listHeight: DropdownProps['listHeight'];\n listOverflow: DropdownProps['listOverflow'];\n isInnerUl?: boolean;\n listWidth?: DropdownProps['listWidth'];\n}>`\n box-sizing: border-box;\n\n background: var(${tokens.background});\n box-shadow: var(${tokens.boxShadow});\n\n border-radius: var(${tokens.borderRadius});\n width: ${({ listWidth }) => listWidth || `var(${tokens.width})`};\n height: ${({ listHeight }) => (listHeight ? getCorrectHeight(listHeight) : 'auto')};\n overflow: ${({ listOverflow }) => listOverflow || 'initial'};\n\n margin: ${({ isInnerUl }) => (isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 var(${tokens.padding})` : 0)};\n padding: var(${tokens.padding});\n`;\n\nexport const base = css`\n display: inline-block;\n`;\n"],"names":["Popover","component","popoverConfig","_exp","StyledPopover","styled","name","class","propsAsIs","_exp7","_ref","listWidth","concat","tokens","width","_exp8","_ref2","listHeight","getCorrectHeight","_exp9","_ref3","listOverflow","_exp10","_ref4","isInnerUl","padding","Ul","vars","base"],"mappings":";;;;;;AAUA,IAAMA,OAAO,gBAAGC,SAAS,CAACC,aAAa,CAAC,CAAA;AAAC,IAAAC,IAAA,GATvBA,SASuBA,IAAAA,GAAA;AAAA,EAAA,OAELH,OAAO,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMI,aAAa,gBAAGC,MAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;A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IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,IAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAmB,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAYXlB,KAAsD,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cACrDM,KAAwE,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cACtEI,KAA+C,EAAA,CAAA;AAAA,IAAA,WAAA,EAAA,cAEjDG,MAAmG,EAAA,CAAA;AAAA,GAAA;AAAA,CAEhH,EAAA;AAEM,IAAMM,IAAI,GAEhB;;;;"}
@@ -0,0 +1,3 @@
1
+ .sn7uamp .popover-wrapper,.sn7uamp .popover-target{display:block;}
2
+ .ujr7fmv{box-sizing:border-box;background:var(--plasma-dropdown-background);box-shadow:var(--plasma-dropdown-box-shadow);border-radius:var(--plasma-dropdown-border-radius);width:var(--ujr7fmv-0);height:var(--ujr7fmv-1);overflow:var(--ujr7fmv-2);margin:var(--ujr7fmv-3);padding:var(--plasma-dropdown-padding);}
3
+ .byfocd2{display:inline-block;}
@@ -3,7 +3,7 @@ var classes = {
3
3
  dropdownItemIsFocused: 'dropdown-item-is-focused',
4
4
  dropdownItemIsDisabled: 'dropdown-item-is-disabled',
5
5
  dropdownItemIsActive: 'dropdown-item-is-active',
6
- dropdownItemIsSelected: 'dropdown-item-is-selected'
6
+ dropdownItemIsSelected: 'dropdownItemIsSelected'
7
7
  };
8
8
  var tokens = {
9
9
  background: '--plasma-dropdown-background',
@@ -14,8 +14,6 @@ var tokens = {
14
14
  disclosureIconColor: '--plasma-dropdown-disclosure-icon-color',
15
15
  disabledOpacity: '--plasma-dropdown-disabled-opacity',
16
16
  focusColor: '--plasma-dropdown-focus-color',
17
- // Old
18
-
19
17
  dividerColor: '--plasma-dropdown-divider-color',
20
18
  dividerMarginTop: '--plasma-dropdown-divider-margin-top',
21
19
  dividerMarginTopTight: '--plasma-dropdown-divider-margin-top-tight',
@@ -30,7 +28,6 @@ var tokens = {
30
28
  itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
31
29
  // Old
32
30
  itemColor: '--plasma-dropdown-item-color',
33
- // Old
34
31
  itemColorSelected: '--plasma-dropdown-item-color-selected',
35
32
  // Old
36
33
  itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
@@ -49,17 +46,11 @@ var tokens = {
49
46
  itemMarginLeft: '--plasma-dropdown-item-margin-left',
50
47
  // Old
51
48
  itemPaddingTop: '--plasma-dropdown-item-padding-top',
52
- // Old
53
49
  itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
54
- // Old
55
50
  itemPaddingRight: '--plasma-dropdown-item-padding-right',
56
- // Old
57
51
  itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
58
- // Old
59
52
  itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
60
- // Old
61
53
  itemPaddingLeft: '--plasma-dropdown-item-padding-left',
62
- // Old
63
54
  itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
64
55
  // Old
65
56
  itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
@@ -74,20 +65,6 @@ var tokens = {
74
65
  itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
75
66
  itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
76
67
  itemFontLineHeight: '--plasma-dropdown-item-font-weight',
77
- itemPadding: '--plasma-dropdown-item-padding',
78
- itemPaddingTight: '--plasma-dropdown-item-padding-tight',
79
- cellPadding: '--plasma-dropdown-cell-padding',
80
- cellPaddingLeftContent: '--plasma-dropdown-cell-padding-left-content',
81
- cellPaddingContent: '--plasma-dropdown-cell-padding-content',
82
- cellPaddingRightContent: '--plasma-dropdown-cell-padding-right-content',
83
- cellTextboxGap: '--plasma-dropdown-cell-textbox-gap',
84
- cellGap: '--plasma-dropdown-cell-gap',
85
- cellTitleFontFamily: '--plasma-dropdown-cell-title-font-family',
86
- cellTitleFontSize: '--plasma-dropdown-cell-title-font-size',
87
- cellTitleFontStyle: '--plasma-dropdown-cell-title-font-style',
88
- cellTitleFontWeight: '--plasma-dropdown-cell-title-font-weight',
89
- cellTitleLetterSpacing: '--plasma-dropdown-cell-title-letter-spacing',
90
- cellTitleLineHeight: '--plasma-dropdown-cell-title-line-height',
91
68
  // TODO: Remove below tokens as soon as they are no longer needed
92
69
  footerBackground: '--plasma-dropdown-footer-background',
93
70
  footerWidth: '--plasma-dropdown-footer-width',