@salutejs/plasma-new-hope 0.174.0-canary.1452.11462555994.0 → 0.174.0-canary.1497.11480463527.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (798) 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 +28 -14
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -10
  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 +32 -18
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  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 +30 -16
  108. package/cjs/components/Dropdown/Dropdown.js +63 -47
  109. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  110. package/cjs/components/Dropdown/Dropdown.styles.js +14 -27
  111. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  113. package/cjs/components/Dropdown/Dropdown.tokens.js +24 -1
  114. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  115. package/cjs/components/Dropdown/FloatingPopover.js +104 -0
  116. package/cjs/components/Dropdown/FloatingPopover.js.map +1 -0
  117. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -60
  118. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  119. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  120. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +30 -20
  121. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  122. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +25 -31
  123. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  124. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  125. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  126. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  127. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  128. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  129. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  130. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  131. package/cjs/components/Dropdown/utils/getItemByFocused.js +13 -0
  132. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  133. package/cjs/components/Dropdown/utils/getItemId.js +10 -0
  134. package/cjs/components/Dropdown/utils/getItemId.js.map +1 -0
  135. package/cjs/components/Dropdown/utils/getPlacement.js +16 -0
  136. package/cjs/components/Dropdown/utils/getPlacement.js.map +1 -0
  137. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  138. package/cjs/components/Editable/Editable.js +3 -4
  139. package/cjs/components/Editable/Editable.js.map +1 -1
  140. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  141. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  142. package/cjs/components/Editable/utils/selectText.js +0 -2
  143. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  144. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  145. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  146. package/cjs/components/IconButton/IconButton.js +1 -1
  147. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  148. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  149. package/cjs/components/Modal/Modal.js +6 -8
  150. package/cjs/components/Modal/Modal.js.map +1 -1
  151. package/cjs/components/Modal/hooks/useModal.js +0 -4
  152. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  153. package/cjs/components/Notification/Notification.styles.js +2 -3
  154. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  155. package/cjs/components/Notification/NotificationsPortal.js +3 -4
  156. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  157. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  158. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  159. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  160. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  161. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  162. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  163. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  164. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  165. package/cjs/components/Popover/Popover.js +1 -1
  166. package/cjs/components/Popup/Popup.js +2 -2
  167. package/cjs/components/Popup/PopupContext.js +1 -1
  168. package/cjs/components/Range/Range.styles.js +0 -1
  169. package/cjs/components/Range/Range.styles.js.map +1 -1
  170. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  171. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  172. package/cjs/components/Select/Select.js +11 -12
  173. package/cjs/components/Select/Select.js.map +1 -1
  174. package/cjs/components/Select/Select.styles.js +2 -5
  175. package/cjs/components/Select/Select.styles.js.map +1 -1
  176. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  177. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  178. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  179. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  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 +0 -1
  183. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  184. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  185. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  186. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  187. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  188. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  189. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  190. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  191. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  192. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  193. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  194. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  195. package/cjs/components/Sheet/Sheet.js +3 -3
  196. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  197. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  198. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  199. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  200. package/cjs/components/Slider/Slider.css +13 -15
  201. package/cjs/components/Slider/Slider.js +2 -18
  202. package/cjs/components/Slider/Slider.js.map +1 -1
  203. package/cjs/components/Slider/Slider.tokens.js +17 -23
  204. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  205. package/cjs/components/Slider/components/Double/Double.css +8 -8
  206. package/cjs/components/Slider/components/Double/Double.js +24 -60
  207. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  208. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  209. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  210. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  211. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  212. package/cjs/components/Slider/components/Single/Single.css +14 -14
  213. package/cjs/components/Slider/components/Single/Single.js +34 -66
  214. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  215. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  216. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  217. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  218. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  219. package/cjs/components/Slider/components/SliderBase/SliderBase.js +13 -32
  220. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  221. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  222. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  223. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  224. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  225. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  226. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  227. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  228. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  229. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  230. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  231. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  232. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  233. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  234. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  235. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  236. package/cjs/components/Slider/utils/index.js +10 -28
  237. package/cjs/components/Slider/utils/index.js.map +1 -1
  238. package/cjs/components/Slider/variations/_view/base.js +1 -1
  239. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  240. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  241. package/cjs/components/Steps/Steps.js +1 -1
  242. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  243. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  244. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  245. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  246. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  247. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  248. package/cjs/components/TextArea/TextArea.js +2 -2
  249. package/cjs/components/TextArea/TextArea.styles.js +2 -3
  250. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  251. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  252. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  253. package/cjs/components/TextField/TextField.js +3 -3
  254. package/cjs/components/TextField/TextField.styles.js +1 -2
  255. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  256. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  257. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  258. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  259. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  260. package/cjs/components/Toast/Toast.styles.js +1 -1
  261. package/cjs/components/Toast/ToastController.js +1 -1
  262. package/cjs/components/Toast/utils.js +1 -2
  263. package/cjs/components/Toast/utils.js.map +1 -1
  264. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  265. package/cjs/components/Tooltip/Tooltip.js +2 -3
  266. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  267. package/cjs/engines/index.js +0 -2
  268. package/cjs/engines/index.js.map +1 -1
  269. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  270. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  271. package/cjs/hooks/useOutsideClick.js +1 -1
  272. package/cjs/hooks/useOutsideClick.js.map +1 -1
  273. package/cjs/index.css +24 -28
  274. package/cjs/index.js +48 -51
  275. package/cjs/index.js.map +1 -1
  276. package/cjs/utils/index.js +0 -5
  277. package/cjs/utils/index.js.map +1 -1
  278. package/emotion/cjs/components/Dropdown/Dropdown.js +58 -37
  279. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +9 -25
  280. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +36 -2
  281. package/emotion/cjs/components/Dropdown/FloatingPopover.js +109 -0
  282. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  283. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  284. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +21 -41
  285. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  286. package/emotion/cjs/components/Dropdown/utils/getItemId.js +9 -0
  287. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  288. package/emotion/cjs/components/Dropdown/utils/index.js +23 -1
  289. package/emotion/cjs/components/Slider/Slider.js +2 -10
  290. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  291. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  292. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  293. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  294. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  295. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  296. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  297. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  298. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  299. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  300. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  301. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  302. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  303. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  304. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  305. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  306. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  307. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  308. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  309. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  310. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  311. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  312. package/emotion/es/components/Dropdown/Dropdown.js +60 -40
  313. package/emotion/es/components/Dropdown/Dropdown.styles.js +9 -25
  314. package/emotion/es/components/Dropdown/Dropdown.tokens.js +35 -1
  315. package/emotion/es/components/Dropdown/FloatingPopover.js +102 -0
  316. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  317. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  318. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +22 -42
  319. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  320. package/emotion/es/components/Dropdown/utils/getItemId.js +3 -0
  321. package/emotion/es/components/Dropdown/utils/getPlacement.js +9 -0
  322. package/emotion/es/components/Dropdown/utils/index.js +4 -1
  323. package/emotion/es/components/Slider/Slider.js +2 -11
  324. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  325. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  326. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  327. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  328. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  329. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  330. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  331. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  332. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  333. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  334. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  335. package/emotion/es/components/Slider/utils/index.js +10 -28
  336. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  337. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  338. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  339. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  340. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  341. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  342. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  343. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  344. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  345. package/emotion/es/hooks/useOutsideClick.js +1 -1
  346. package/emotion/package.json +2 -1
  347. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  348. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  349. package/es/components/Attach/Attach.js +3 -4
  350. package/es/components/Attach/Attach.js.map +1 -1
  351. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  352. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  353. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  354. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  355. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  356. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  357. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  358. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  359. package/es/components/Attach/utils/getFileicon.js +3 -4
  360. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  361. package/es/components/Attach/utils/index.js +0 -3
  362. package/es/components/Attach/utils/index.js.map +1 -1
  363. package/es/components/Autocomplete/Autocomplete.js +5 -6
  364. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  365. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  366. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  367. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  368. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  369. package/es/components/Avatar/Avatar.js +2 -3
  370. package/es/components/Avatar/Avatar.js.map +1 -1
  371. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  372. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  373. package/es/components/Button/Button.styles.js +0 -3
  374. package/es/components/Button/Button.styles.js.map +1 -1
  375. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  376. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  377. package/es/components/Calendar/hooks/useDays.js +2 -2
  378. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  379. package/es/components/Calendar/hooks/useMonths.js +2 -2
  380. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  381. package/es/components/Calendar/hooks/useYears.js +2 -2
  382. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  383. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  384. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  385. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  386. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  387. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  388. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  389. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  390. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  391. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  392. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  393. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  394. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  395. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  396. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  397. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  398. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  399. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  400. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  401. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  402. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  403. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  404. package/es/components/Combobox/ComboboxOld/Combobox.css +28 -14
  405. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
  406. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  407. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  408. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  409. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  410. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  411. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  412. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  413. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +32 -18
  414. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  415. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  416. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +32 -18
  417. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  418. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  419. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +32 -18
  420. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  421. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  422. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +32 -18
  423. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  424. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  425. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  426. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  427. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  428. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  429. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  430. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  431. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  432. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  433. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  434. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  435. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  436. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  437. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  438. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  439. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  440. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  441. package/es/components/Drawer/Drawer.js +5 -10
  442. package/es/components/Drawer/Drawer.js.map +1 -1
  443. package/es/components/Drawer/Drawer.styles.js +0 -4
  444. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  445. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  446. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  447. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  448. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  449. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  450. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  451. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  452. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  453. package/es/components/Dropdown/Dropdown.css +30 -16
  454. package/es/components/Dropdown/Dropdown.js +65 -50
  455. package/es/components/Dropdown/Dropdown.js.map +1 -1
  456. package/es/components/Dropdown/Dropdown.styles.js +15 -27
  457. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  458. package/es/components/Dropdown/Dropdown.styles_1ix6io8.css +2 -0
  459. package/es/components/Dropdown/Dropdown.tokens.js +24 -1
  460. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  461. package/es/components/Dropdown/FloatingPopover.js +100 -0
  462. package/es/components/Dropdown/FloatingPopover.js.map +1 -0
  463. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -60
  464. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  465. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +46 -6
  466. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -21
  467. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  468. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +24 -29
  469. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  470. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +5 -0
  471. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  472. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  473. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_12e50g5.css → DropdownItem.styles_1lyg81y.css} +1 -1
  474. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  475. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  476. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  477. package/es/components/Dropdown/utils/getItemByFocused.js +9 -0
  478. package/es/components/Dropdown/utils/getItemByFocused.js.map +1 -0
  479. package/es/components/Dropdown/utils/getItemId.js +6 -0
  480. package/es/components/Dropdown/utils/getItemId.js.map +1 -0
  481. package/es/components/Dropdown/utils/getPlacement.js +12 -0
  482. package/es/components/Dropdown/utils/getPlacement.js.map +1 -0
  483. package/es/components/Dropdown/utils/index.js.map +1 -1
  484. package/es/components/Editable/Editable.js +3 -4
  485. package/es/components/Editable/Editable.js.map +1 -1
  486. package/es/components/Editable/utils/clearSelection.js +0 -2
  487. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  488. package/es/components/Editable/utils/selectText.js +0 -2
  489. package/es/components/Editable/utils/selectText.js.map +1 -1
  490. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  491. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  492. package/es/components/IconButton/IconButton.js +1 -1
  493. package/es/components/IconButton/IconButton.styles.js +0 -8
  494. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  495. package/es/components/Modal/Modal.js +6 -8
  496. package/es/components/Modal/Modal.js.map +1 -1
  497. package/es/components/Modal/hooks/useModal.js +0 -4
  498. package/es/components/Modal/hooks/useModal.js.map +1 -1
  499. package/es/components/Notification/Notification.styles.js +2 -3
  500. package/es/components/Notification/Notification.styles.js.map +1 -1
  501. package/es/components/Notification/NotificationsPortal.js +3 -4
  502. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  503. package/es/components/Pagination/Pagination.styles.js +1 -2
  504. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  505. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  506. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  507. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  508. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  509. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  510. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  511. package/es/components/Popover/Popover.js +1 -1
  512. package/es/components/Popup/Popup.js +2 -2
  513. package/es/components/Popup/PopupContext.js +1 -1
  514. package/es/components/Range/Range.styles.js +0 -1
  515. package/es/components/Range/Range.styles.js.map +1 -1
  516. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  517. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  518. package/es/components/Select/Select.js +11 -12
  519. package/es/components/Select/Select.js.map +1 -1
  520. package/es/components/Select/Select.styles.js +2 -5
  521. package/es/components/Select/Select.styles.js.map +1 -1
  522. package/es/components/Select/hooks/usePathMaps.js +0 -2
  523. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  524. package/es/components/Select/ui/Inner/Inner.js +1 -2
  525. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  526. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  527. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  528. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  529. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  530. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  531. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  532. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  533. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  534. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  535. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  536. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  537. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  538. package/es/components/Select/utils/getButtonLabel.js +0 -2
  539. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  540. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  541. package/es/components/Sheet/Sheet.js +3 -3
  542. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  543. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  544. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  545. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  546. package/es/components/Slider/Slider.css +13 -15
  547. package/es/components/Slider/Slider.js +2 -18
  548. package/es/components/Slider/Slider.js.map +1 -1
  549. package/es/components/Slider/Slider.tokens.js +17 -23
  550. package/es/components/Slider/Slider.tokens.js.map +1 -1
  551. package/es/components/Slider/components/Double/Double.css +8 -8
  552. package/es/components/Slider/components/Double/Double.js +20 -56
  553. package/es/components/Slider/components/Double/Double.js.map +1 -1
  554. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  555. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  556. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  557. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  558. package/es/components/Slider/components/Single/Single.css +14 -14
  559. package/es/components/Slider/components/Single/Single.js +35 -67
  560. package/es/components/Slider/components/Single/Single.js.map +1 -1
  561. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  562. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  563. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  564. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  565. package/es/components/Slider/components/SliderBase/SliderBase.js +13 -32
  566. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  567. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  568. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  569. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  570. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  571. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  572. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  573. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  574. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  575. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  576. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  577. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  578. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  579. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  580. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  581. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  582. package/es/components/Slider/utils/index.js +10 -28
  583. package/es/components/Slider/utils/index.js.map +1 -1
  584. package/es/components/Slider/variations/_view/base.js +1 -1
  585. package/es/components/Slider/variations/_view/base.js.map +1 -1
  586. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  587. package/es/components/Steps/Steps.js +1 -1
  588. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  589. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  590. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  591. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  592. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  593. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  594. package/es/components/TextArea/TextArea.js +2 -2
  595. package/es/components/TextArea/TextArea.styles.js +2 -3
  596. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  597. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  598. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  599. package/es/components/TextField/TextField.js +3 -3
  600. package/es/components/TextField/TextField.styles.js +1 -2
  601. package/es/components/TextField/TextField.styles.js.map +1 -1
  602. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  603. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  604. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  605. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  606. package/es/components/Toast/Toast.styles.js +1 -1
  607. package/es/components/Toast/ToastController.js +1 -1
  608. package/es/components/Toast/utils.js +1 -2
  609. package/es/components/Toast/utils.js.map +1 -1
  610. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  611. package/es/components/Tooltip/Tooltip.js +2 -3
  612. package/es/components/Tooltip/Tooltip.js.map +1 -1
  613. package/es/engines/index.js +0 -2
  614. package/es/engines/index.js.map +1 -1
  615. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  616. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  617. package/es/hooks/useOutsideClick.js +1 -1
  618. package/es/hooks/useOutsideClick.js.map +1 -1
  619. package/es/index.css +24 -28
  620. package/es/index.js +21 -24
  621. package/es/index.js.map +1 -1
  622. package/es/utils/index.js +0 -3
  623. package/es/utils/index.js.map +1 -1
  624. package/package.json +5 -2
  625. package/styled-components/cjs/components/Dropdown/Dropdown.js +58 -37
  626. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +9 -15
  627. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +36 -2
  628. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +109 -0
  629. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +17 -51
  630. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +29 -18
  631. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +17 -19
  632. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +12 -0
  633. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +9 -0
  634. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +15 -0
  635. package/styled-components/cjs/components/Dropdown/utils/index.js +23 -1
  636. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  637. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  638. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  639. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  640. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  641. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  642. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  643. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  644. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  645. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  646. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  647. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  648. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  649. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  650. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  651. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  652. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  653. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  654. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  655. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  656. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  657. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  658. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  659. package/styled-components/es/components/Dropdown/Dropdown.js +60 -40
  660. package/styled-components/es/components/Dropdown/Dropdown.styles.js +9 -15
  661. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +35 -1
  662. package/styled-components/es/components/Dropdown/FloatingPopover.js +102 -0
  663. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +18 -52
  664. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +31 -20
  665. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +18 -20
  666. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +6 -0
  667. package/styled-components/es/components/Dropdown/utils/getItemId.js +3 -0
  668. package/styled-components/es/components/Dropdown/utils/getPlacement.js +9 -0
  669. package/styled-components/es/components/Dropdown/utils/index.js +4 -1
  670. package/styled-components/es/components/Slider/Slider.js +2 -11
  671. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  672. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  673. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  674. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  675. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  676. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  677. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  678. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  679. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  680. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  681. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  682. package/styled-components/es/components/Slider/utils/index.js +10 -28
  683. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  684. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  685. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +6 -5
  686. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  687. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  688. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  689. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +6 -5
  690. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  691. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  692. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  693. package/styled-components/package.json +2 -1
  694. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +2 -1
  695. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  696. package/types/components/Dropdown/Dropdown.d.ts +2 -1
  697. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  698. package/types/components/Dropdown/Dropdown.styles.d.ts +1 -6
  699. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  700. package/types/components/Dropdown/Dropdown.tokens.d.ts +25 -0
  701. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  702. package/types/components/Dropdown/Dropdown.types.d.ts +30 -4
  703. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  704. package/types/components/Dropdown/FloatingPopover.d.ts +5 -0
  705. package/types/components/Dropdown/FloatingPopover.d.ts.map +1 -0
  706. package/types/components/Dropdown/index.d.ts +1 -1
  707. package/types/components/Dropdown/index.d.ts.map +1 -1
  708. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  709. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +1 -12
  710. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  711. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  712. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +32 -3
  713. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  714. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -14
  715. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  716. package/types/components/Dropdown/utils/getItemByFocused.d.ts +4 -0
  717. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +1 -0
  718. package/types/components/Dropdown/utils/getItemId.d.ts +2 -0
  719. package/types/components/Dropdown/utils/getItemId.d.ts.map +1 -0
  720. package/types/components/Dropdown/utils/getPlacement.d.ts +3 -0
  721. package/types/components/Dropdown/utils/getPlacement.d.ts.map +1 -0
  722. package/types/components/Dropdown/utils/index.d.ts +3 -0
  723. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  724. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  725. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  726. package/types/components/Slider/Slider.d.ts.map +1 -1
  727. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  728. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  729. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  730. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  731. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  732. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  733. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  734. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  735. package/types/components/Slider/components/Single/Single.types.d.ts +7 -80
  736. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  737. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  738. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  739. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  740. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  741. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  742. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  743. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  744. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  745. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  746. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  747. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  748. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  749. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  750. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  751. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  752. package/types/components/Slider/utils/index.d.ts +8 -26
  753. package/types/components/Slider/utils/index.d.ts.map +1 -1
  754. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  755. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  756. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  757. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  758. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  759. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  760. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -84
  761. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  762. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  763. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  764. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  765. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  766. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  767. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -84
  768. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  769. package/types/hooks/useOutsideClick.d.ts +1 -1
  770. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  771. package/types/utils/index.d.ts +1 -1
  772. package/types/utils/index.d.ts.map +1 -1
  773. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  774. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
  775. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  776. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  777. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  778. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  779. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  780. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  781. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  782. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  783. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  784. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  785. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +0 -3
  786. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +0 -6
  787. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  788. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  789. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  790. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  791. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  792. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  793. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  794. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  795. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  796. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  797. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  798. package/types/components/Slider/ui/Handler/computeKeyPressData.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","removeE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AA;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,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,CAAC,CAAA;;AAErF;AACA,EAAA,IAAMM,SAAS,GAAGC,WAAW,CACzB,UAACC,KAAoB,EAAK;IACtB,IAAI,CAACb,UAAU,EAAE;AACb,MAAA,OAAA;AACJ,KAAA;AACA,IAAA,IAAIa,KAAK,CAACC,OAAO,KAAKvB,cAAc,IAAIwB,eAAe,CAACZ,eAAe,CAACa,KAAK,CAAC,KAAKtB,EAAE,EAAE;AACnF,MAAA,IAAIG,YAAY,EAAE;QACd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EnC,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,26 +9,40 @@
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
- .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;}
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);}
23
13
 
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);}
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;}
26
38
 
27
39
  .Popover_styles_rmr9za_s1g1xbt5__0bafa6fb{display:inline-block;}
28
40
  .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;}
29
41
  .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);}
30
42
  .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;}
31
43
 
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;}
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_1ix6io8_un7uamp__de6f45f2{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-brightness);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
+
@@ -1,38 +1,36 @@
1
1
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef, useReducer } from 'react';
2
+ import React, { createContext, forwardRef, useReducer, useRef } from 'react';
3
+ import { safeUseId } from '@salutejs/plasma-core';
3
4
  import { cx } from '../../utils/index.js';
4
5
  import { pathReducer } from './reducers/pathReducer.js';
5
6
  import { focusedPathReducer } from './reducers/focusedPathReducer.js';
6
- import '@salutejs/plasma-core';
7
- import '@linaria/react';
8
- import { classes } from './Dropdown.tokens.js';
9
- import { DropdownInner } from './ui/DropdownInner/DropdownInner.js';
10
- import { childrenWithProps } from './utils/index.js';
11
- import 'focus-visible';
12
- import 'styled-components';
13
- import '@linaria/core';
14
- import 'react-popper';
15
- import 'react-dom';
16
7
  import { base as base$1 } from './variations/_view/base.js';
17
8
  import { base as base$2 } from './variations/_size/base.js';
18
- import { StyledPopover, Ul, base } from './Dropdown.styles.js';
9
+ import { Ul, base } from './Dropdown.styles.js';
10
+ import { childrenWithProps } from './utils/index.js';
11
+ import { classes } from './Dropdown.tokens.js';
19
12
  import { useKeyNavigation } from './hooks/useKeyboardNavigation.js';
20
13
  import { useHashMaps } from './hooks/useHashMaps.js';
21
- import { getPlacements } from '../../utils/getPopoverPlacement.js';
14
+ import { FloatingPopover } from './FloatingPopover.js';
15
+ import { getItemByFocused } from './utils/getItemByFocused.js';
16
+ import { useOutsideClick } from '../../hooks/useOutsideClick.js';
17
+ import { getPlacement } from './utils/getPlacement.js';
18
+ import { getItemId } from './utils/getItemId.js';
19
+ import { DropdownInner } from './ui/DropdownInner/DropdownInner.js';
22
20
 
23
21
  var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "portal"];
22
+ var Context = /*#__PURE__*/createContext({});
24
23
 
25
24
  /**
26
25
  * Выпадающий список.
27
26
  */
28
27
  var dropdownRoot = function dropdownRoot(Root) {
29
28
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
29
+ var _getItemByFocused;
30
30
  var items = _ref.items,
31
31
  children = _ref.children,
32
- _ref$placement = _ref.placement,
33
- placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
34
- _ref$offset = _ref.offset,
35
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
32
+ placement = _ref.placement,
33
+ offset = _ref.offset,
36
34
  _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
37
35
  closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
38
36
  onToggle = _ref.onToggle,
@@ -69,6 +67,25 @@ var dropdownRoot = function dropdownRoot(Root) {
69
67
  _useHashMaps2 = _slicedToArray(_useHashMaps, 2),
70
68
  pathMap = _useHashMaps2[0],
71
69
  focusedToValueMap = _useHashMaps2[1];
70
+ var activeDescendantItemValue = ((_getItemByFocused = getItemByFocused(focusedPath, focusedToValueMap)) === null || _getItemByFocused === void 0 ? void 0 : _getItemByFocused.value) || '';
71
+ var floatingPopoverRef = useRef(null);
72
+ var treeId = safeUseId();
73
+
74
+ // Логика работы при клике за пределами выпадающего списка
75
+ var targetRef = useOutsideClick(function (event) {
76
+ if (!isCurrentListOpen || !closeOnOverlayClick) {
77
+ return;
78
+ }
79
+ dispatchPath({
80
+ type: 'reset'
81
+ });
82
+ dispatchFocusedPath({
83
+ type: 'reset'
84
+ });
85
+ if (onToggle) {
86
+ onToggle(false, event);
87
+ }
88
+ }, floatingPopoverRef);
72
89
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
73
90
  if (opened) {
74
91
  dispatchPath({
@@ -100,66 +117,64 @@ var dropdownRoot = function dropdownRoot(Root) {
100
117
  }),
101
118
  onKeyDown = _useKeyNavigation.onKeyDown;
102
119
  var isCurrentListOpen = Boolean(path[0]);
103
- var getActiveDescendant = function getActiveDescendant() {
104
- var _focusedToValueMap$ge;
105
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
106
- return "".concat(acc, "/").concat(n);
107
- }, '').replace(/^(\/)/, '');
108
- return focusedToValueMap === null || focusedToValueMap === void 0 || (_focusedToValueMap$ge = focusedToValueMap.get(focusedPathAsString)) === null || _focusedToValueMap$ge === void 0 ? void 0 : _focusedToValueMap$ge.value.toString();
109
- };
110
- return /*#__PURE__*/React.createElement(StyledPopover, {
120
+ return /*#__PURE__*/React.createElement(Context.Provider, {
121
+ value: {
122
+ focusedPath: focusedPath,
123
+ size: size,
124
+ variant: variant,
125
+ itemRole: itemRole,
126
+ handleGlobalToggle: handleGlobalToggle,
127
+ closeOnSelect: closeOnSelect,
128
+ onHover: onHover,
129
+ onItemClick: onItemClick,
130
+ onItemSelect: onItemSelect,
131
+ hasArrow: hasArrow,
132
+ treeId: treeId
133
+ }
134
+ }, /*#__PURE__*/React.createElement(FloatingPopover, {
135
+ ref: floatingPopoverRef,
111
136
  opened: isCurrentListOpen,
112
137
  onToggle: handleGlobalToggle,
138
+ placement: getPlacement(placement),
113
139
  offset: offset,
114
- placement: getPlacements(placement),
140
+ portal: portal,
115
141
  trigger: trigger,
116
- closeOnOverlayClick: closeOnOverlayClick,
117
- isFocusTrapped: false,
118
142
  target: childrenWithProps(children, {
119
143
  role: 'combobox',
120
- 'aria-controls': 'tree_level_1',
144
+ 'aria-controls': "".concat(treeId, "_tree_level_1"),
121
145
  'aria-expanded': isCurrentListOpen,
122
- 'aria-activedescendant': getActiveDescendant(),
146
+ 'aria-activedescendant': activeDescendantItemValue ? getItemId(treeId, activeDescendantItemValue.toString()) : '',
123
147
  onKeyDown: onKeyDown
124
- }),
125
- preventOverflow: false,
126
- usePortal: Boolean(portal),
127
- frame: portal
148
+ })
128
149
  }, /*#__PURE__*/React.createElement(Root, _extends({
129
150
  className: cx(className, classes.dropdownRoot),
130
151
  ref: ref,
131
152
  view: view,
132
- size: size
153
+ size: size,
154
+ style: {
155
+ display: 'inline-block'
156
+ }
133
157
  }, rest), /*#__PURE__*/React.createElement(Ul, {
158
+ ref: targetRef,
159
+ id: "".concat(treeId, "_tree_level_1"),
160
+ role: "tree",
134
161
  listHeight: listHeight,
135
162
  listOverflow: listOverflow,
136
- role: "tree",
137
- id: "tree_level_1",
138
163
  listWidth: listWidth
139
164
  }, items.map(function (item, index) {
140
165
  return /*#__PURE__*/React.createElement(DropdownInner, {
141
166
  key: "".concat(index, "/0"),
142
167
  item: item,
143
168
  currentLevel: 0,
144
- focusedPath: focusedPath,
145
169
  trigger: trigger,
146
170
  path: path,
147
171
  dispatchPath: dispatchPath,
148
172
  index: index,
149
- itemRole: itemRole,
150
173
  listHeight: listHeight,
151
174
  listOverflow: listOverflow,
152
- handleGlobalToggle: handleGlobalToggle,
153
- closeOnSelect: closeOnSelect,
154
- onHover: onHover,
155
- onItemSelect: onItemSelect,
156
- onItemClick: onItemClick,
157
- listWidth: listWidth,
158
- variant: variant,
159
- hasArrow: hasArrow,
160
- size: size
175
+ listWidth: listWidth
161
176
  });
162
- }))));
177
+ })))));
163
178
  });
164
179
  };
165
180
  var dropdownConfig = {
@@ -181,5 +196,5 @@ var dropdownConfig = {
181
196
  }
182
197
  };
183
198
 
184
- export { dropdownConfig, dropdownRoot };
199
+ export { Context, dropdownConfig, dropdownRoot };
185
200
  //# sourceMappingURL=Dropdown.js.map
@@ -1 +1 @@
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,I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AAAA,WAAW,EAAEA,WAAY;AACzBnB,QAAAA,OAAO,EAAEA,OAAQ;AACjBc,QAAAA,IAAI,EAAEA,IAAK;AACXC,QAAAA,YAAY,EAAEA,YAAa;AAC3BiD,QAAAA,KAAK,EAAEA,KAAM;AACb3E,QAAAA,QAAQ,EAAEA,QAAS;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
+ {"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":";;;;;;;;;;;;;;;;;;;;;IAoBaA,OAAO,gBAAGC,aAAa,CAAc,EAAiB,EAAC;;AAEpE;AACA;AACA;IACaC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAA6D,EAAA;AAAA,EAAA,oBACtFC,UAAU,CACN,UAAAC,IAAA,EAyBIC,GAAG,EACF;AAAA,IAAA,IAAAC,iBAAA,CAAA;AAAA,IAAA,IAxBGC,KAAK,GAAAH,IAAA,CAALG,KAAK;MACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,SAAS,GAAAL,IAAA,CAATK,SAAS;MACTC,MAAM,GAAAN,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;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,56 +1,44 @@
1
- import './Dropdown.styles_1tihqkp.css';
1
+ import './Dropdown.styles_1ix6io8.css';
2
2
  import { styled } from '@linaria/react';
3
- import '@linaria/core';
4
- import { component } from '../../engines/common.js';
5
- import { popoverConfig } from '../Popover/Popover.js';
6
3
  import { getCorrectHeight } from './utils/index.js';
7
4
  import { tokens } from './Dropdown.tokens.js';
8
5
 
9
- var Popover = /*#__PURE__*/component(popoverConfig);
10
6
  var _exp = function _exp() {
11
- return Popover;
12
- };
13
- var StyledPopover = /*#__PURE__*/styled(_exp())({
14
- name: "StyledPopover",
15
- "class": "sn7uamp",
16
- propsAsIs: true
17
- });
18
- var _exp7 = function _exp7() {
19
7
  return function (_ref) {
20
8
  var listWidth = _ref.listWidth;
21
9
  return listWidth || "var(".concat(tokens.width, ")");
22
10
  };
23
11
  };
24
- var _exp8 = function _exp8() {
12
+ var _exp2 = function _exp2() {
25
13
  return function (_ref2) {
26
14
  var listHeight = _ref2.listHeight;
27
15
  return listHeight ? getCorrectHeight(listHeight) : 'auto';
28
16
  };
29
17
  };
30
- var _exp9 = function _exp9() {
18
+ var _exp3 = function _exp3() {
31
19
  return function (_ref3) {
32
- var listOverflow = _ref3.listOverflow;
33
- return listOverflow || 'initial';
20
+ var isInnerUl = _ref3.isInnerUl;
21
+ return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0.125rem 0") : 0;
34
22
  };
35
23
  };
36
- var _exp10 = function _exp10() {
24
+ var _exp5 = function _exp5() {
37
25
  return function (_ref4) {
38
- var isInnerUl = _ref4.isInnerUl;
39
- return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 var(").concat(tokens.padding, ")") : 0;
26
+ var listOverflow = _ref4.listOverflow;
27
+ return listOverflow || 'initial';
40
28
  };
41
29
  };
42
30
  var Ul = /*#__PURE__*/styled('ul')({
43
31
  name: "Ul",
44
- "class": "ujr7fmv",
32
+ "class": "un7uamp",
45
33
  propsAsIs: false,
46
34
  vars: {
47
- "ujr7fmv-0": [/*#__PURE__*/_exp7()],
48
- "ujr7fmv-1": [/*#__PURE__*/_exp8()],
49
- "ujr7fmv-2": [/*#__PURE__*/_exp9()],
50
- "ujr7fmv-3": [/*#__PURE__*/_exp10()]
35
+ "un7uamp-0": [/*#__PURE__*/_exp()],
36
+ "un7uamp-1": [/*#__PURE__*/_exp2()],
37
+ "un7uamp-2": [/*#__PURE__*/_exp3()],
38
+ "un7uamp-3": [/*#__PURE__*/_exp5()]
51
39
  }
52
40
  });
53
- var base = "byfocd2";
41
+ var base = "bjr7fmv";
54
42
 
55
- export { StyledPopover, Ul, base };
43
+ export { Ul, base };
56
44
  //# 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 { 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;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAIlC,EAAA;AAAC,IAAAC,KAAA,GAfgBA,SAehBA,KAAAA,GAAA;AAAA,EAAA,OAcW,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,S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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;;;;"}
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,CA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EAAA,CAAA;AAAA,GAAA;AAAA,CAI9D,EAAA;AAEM,IAAMS,IAAI,GAAQ;;;;"}
@@ -0,0 +1,2 @@
1
+ .un7uamp{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-brightness);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);}
2
+
@@ -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: 'dropdownItemIsSelected'
6
+ dropdownItemIsSelected: 'dropdown-item-is-selected'
7
7
  };
8
8
  var tokens = {
9
9
  background: '--plasma-dropdown-background',
@@ -14,6 +14,8 @@ 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
+
17
19
  dividerColor: '--plasma-dropdown-divider-color',
18
20
  dividerMarginTop: '--plasma-dropdown-divider-margin-top',
19
21
  dividerMarginTopTight: '--plasma-dropdown-divider-margin-top-tight',
@@ -28,6 +30,7 @@ var tokens = {
28
30
  itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
29
31
  // Old
30
32
  itemColor: '--plasma-dropdown-item-color',
33
+ // Old
31
34
  itemColorSelected: '--plasma-dropdown-item-color-selected',
32
35
  // Old
33
36
  itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
@@ -46,11 +49,17 @@ var tokens = {
46
49
  itemMarginLeft: '--plasma-dropdown-item-margin-left',
47
50
  // Old
48
51
  itemPaddingTop: '--plasma-dropdown-item-padding-top',
52
+ // Old
49
53
  itemPaddingTopTight: '--plasma-dropdown-item-padding-top-tight',
54
+ // Old
50
55
  itemPaddingRight: '--plasma-dropdown-item-padding-right',
56
+ // Old
51
57
  itemPaddingBottom: '--plasma-dropdown-item-padding-bottom',
58
+ // Old
52
59
  itemPaddingBottomTight: '--plasma-dropdown-item-padding-bottom-tight',
60
+ // Old
53
61
  itemPaddingLeft: '--plasma-dropdown-item-padding-left',
62
+ // Old
54
63
  itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
55
64
  // Old
56
65
  itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
@@ -65,6 +74,20 @@ var tokens = {
65
74
  itemFontWeightBold: '--plasma-dropdown-item-letter-spacing',
66
75
  itemFontLetterSpacing: '--plasma-dropdown-item-line-height',
67
76
  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',
68
91
  // TODO: Remove below tokens as soon as they are no longer needed
69
92
  footerBackground: '--plasma-dropdown-footer-background',
70
93
  footerWidth: '--plasma-dropdown-footer-width',