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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (641) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  2. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  3. package/cjs/components/Attach/Attach.js +3 -4
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/components/AttachButton/AttachButton.js +0 -1
  6. package/cjs/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  7. package/cjs/components/Attach/ui/Button/Button.styles.js +0 -1
  8. package/cjs/components/Attach/ui/Button/Button.styles.js.map +1 -1
  9. package/cjs/components/Attach/ui/Cell/Cell.styles.js +0 -2
  10. package/cjs/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  11. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  12. package/cjs/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  13. package/cjs/components/Attach/utils/getFileicon.js +3 -4
  14. package/cjs/components/Attach/utils/getFileicon.js.map +1 -1
  15. package/cjs/components/Attach/utils/index.js +0 -3
  16. package/cjs/components/Attach/utils/index.js.map +1 -1
  17. package/cjs/components/Autocomplete/Autocomplete.js +5 -6
  18. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/Autocomplete/Autocomplete.styles.js +2 -3
  20. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  21. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  22. package/cjs/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  23. package/cjs/components/Avatar/Avatar.js +2 -3
  24. package/cjs/components/Avatar/Avatar.js.map +1 -1
  25. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  26. package/cjs/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  27. package/cjs/components/Button/Button.styles.js +0 -3
  28. package/cjs/components/Button/Button.styles.js.map +1 -1
  29. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  30. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  31. package/cjs/components/Calendar/hooks/useDays.js +2 -2
  32. package/cjs/components/Calendar/hooks/useKeyNavigation.js +1 -1
  33. package/cjs/components/Calendar/hooks/useMonths.js +2 -2
  34. package/cjs/components/Calendar/hooks/useQuarters.js +2 -2
  35. package/cjs/components/Calendar/hooks/useYears.js +2 -2
  36. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  37. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  38. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  39. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  40. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  41. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  42. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  43. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  44. package/cjs/components/Combobox/ComboboxNew/Combobox.js +11 -12
  45. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  46. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  47. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  48. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  49. package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  50. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  51. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  52. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  53. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  54. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  55. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  56. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  57. package/cjs/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  58. package/cjs/components/Combobox/ComboboxOld/Combobox.css +14 -28
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js +4 -11
  60. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  61. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  62. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  63. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  64. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  65. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  66. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  67. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -11
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -11
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -11
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -11
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  79. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  80. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  81. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  82. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  83. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  84. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  85. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  87. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  88. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  89. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  90. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  91. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  92. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  93. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  94. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  95. package/cjs/components/Drawer/Drawer.js +5 -10
  96. package/cjs/components/Drawer/Drawer.js.map +1 -1
  97. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  98. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  99. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  100. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  101. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  102. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  103. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  104. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  105. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  106. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  107. package/cjs/components/Dropdown/Dropdown.css +16 -30
  108. package/cjs/components/Dropdown/Dropdown.js +38 -67
  109. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  110. package/cjs/components/Dropdown/Dropdown.styles.js +26 -14
  111. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  113. package/cjs/components/Dropdown/Dropdown.tokens.js +1 -24
  114. package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
  115. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -25
  116. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  117. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  118. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +19 -31
  119. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  120. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +31 -27
  121. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  122. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  123. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  124. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  125. package/cjs/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  126. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  127. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  128. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  129. package/cjs/components/Dropdown/utils/index.js.map +1 -1
  130. package/cjs/components/Editable/Editable.js +3 -4
  131. package/cjs/components/Editable/Editable.js.map +1 -1
  132. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  133. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  134. package/cjs/components/Editable/utils/selectText.js +0 -2
  135. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  136. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  137. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  138. package/cjs/components/IconButton/IconButton.js +1 -1
  139. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  140. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  141. package/cjs/components/Modal/Modal.js +6 -8
  142. package/cjs/components/Modal/Modal.js.map +1 -1
  143. package/cjs/components/Modal/hooks/useModal.js +0 -4
  144. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  145. package/cjs/components/Notification/Notification.styles.js +2 -3
  146. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  147. package/cjs/components/Notification/NotificationsPortal.js +3 -4
  148. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  149. package/cjs/components/Pagination/Pagination.css +13 -13
  150. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  151. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  152. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  153. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  154. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  155. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  156. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  157. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  158. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  159. package/cjs/components/Popover/Popover.js +1 -1
  160. package/cjs/components/Popup/Popup.js +2 -2
  161. package/cjs/components/Popup/PopupContext.js +1 -1
  162. package/cjs/components/Range/Range.styles.js +0 -1
  163. package/cjs/components/Range/Range.styles.js.map +1 -1
  164. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  165. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  166. package/cjs/components/Select/Select.css +13 -13
  167. package/cjs/components/Select/Select.js +11 -12
  168. package/cjs/components/Select/Select.js.map +1 -1
  169. package/cjs/components/Select/Select.styles.js +3 -6
  170. package/cjs/components/Select/Select.styles.js.map +1 -1
  171. package/cjs/components/Select/Select.styles_ei4ic3.css +5 -0
  172. package/cjs/components/Select/Select.tokens.js +17 -1
  173. package/cjs/components/Select/Select.tokens.js.map +1 -1
  174. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  175. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  176. package/cjs/components/Select/ui/Inner/Inner.css +13 -13
  177. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  178. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  179. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  180. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  181. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  182. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  183. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  184. package/{es/components/Select/ui/Inner/ui/Item/Item.styles_baxa65.css → cjs/components/Select/ui/Inner/ui/Item/Item.styles_1gaxu1y.css} +2 -2
  185. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  186. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  187. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  188. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  189. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  190. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  191. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  192. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  193. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  194. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  195. package/cjs/components/Select/utils/getCorrectHeight.js.map +1 -1
  196. package/cjs/components/Sheet/Sheet.js +3 -3
  197. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  198. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  199. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  200. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  201. package/cjs/components/Slider/Slider.js +0 -8
  202. package/cjs/components/Slider/Slider.js.map +1 -1
  203. package/cjs/components/Slider/components/Double/Double.js +1 -2
  204. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  205. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  206. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  207. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  208. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  209. package/cjs/components/Slider/components/Single/Single.js +1 -2
  210. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  211. package/cjs/components/Slider/components/SliderBase/SliderBase.js +1 -1
  212. package/cjs/components/Steps/Steps.js +1 -1
  213. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  214. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  215. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  216. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  217. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  218. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  219. package/cjs/components/TextArea/TextArea.js +2 -2
  220. package/cjs/components/TextArea/TextArea.styles.js +2 -3
  221. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  222. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  223. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  224. package/cjs/components/TextField/TextField.js +3 -3
  225. package/cjs/components/TextField/TextField.styles.js +1 -2
  226. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  227. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  228. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  229. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  230. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  231. package/cjs/components/Toast/Toast.styles.js +1 -1
  232. package/cjs/components/Toast/ToastController.js +1 -1
  233. package/cjs/components/Toast/utils.js +1 -2
  234. package/cjs/components/Toast/utils.js.map +1 -1
  235. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  236. package/cjs/components/Tooltip/Tooltip.js +2 -3
  237. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  238. package/cjs/engines/index.js +0 -2
  239. package/cjs/engines/index.js.map +1 -1
  240. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  241. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  242. package/cjs/hooks/useOutsideClick.js +1 -1
  243. package/cjs/hooks/useOutsideClick.js.map +1 -1
  244. package/cjs/index.css +26 -24
  245. package/cjs/index.js +48 -51
  246. package/cjs/index.js.map +1 -1
  247. package/cjs/utils/index.js +0 -5
  248. package/cjs/utils/index.js.map +1 -1
  249. package/emotion/cjs/components/Dropdown/Dropdown.js +37 -58
  250. package/emotion/cjs/components/Dropdown/Dropdown.styles.js +25 -9
  251. package/emotion/cjs/components/Dropdown/Dropdown.tokens.js +2 -36
  252. package/emotion/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  253. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  254. package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +41 -21
  255. package/emotion/cjs/components/Dropdown/utils/index.js +1 -23
  256. package/emotion/cjs/components/Select/Select.styles.js +5 -5
  257. package/emotion/cjs/components/Select/Select.tokens.js +17 -1
  258. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  259. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  260. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  261. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  262. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  263. package/emotion/cjs/hooks/useOutsideClick.js +1 -1
  264. package/emotion/es/components/Dropdown/Dropdown.js +40 -60
  265. package/emotion/es/components/Dropdown/Dropdown.styles.js +25 -9
  266. package/emotion/es/components/Dropdown/Dropdown.tokens.js +1 -35
  267. package/emotion/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  268. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  269. package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +42 -22
  270. package/emotion/es/components/Dropdown/utils/index.js +1 -4
  271. package/emotion/es/components/Select/Select.styles.js +5 -5
  272. package/emotion/es/components/Select/Select.tokens.js +17 -1
  273. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  274. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  275. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  276. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  277. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  278. package/emotion/es/hooks/useOutsideClick.js +1 -1
  279. package/emotion/package.json +2 -1
  280. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  281. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  282. package/es/components/Attach/Attach.js +3 -4
  283. package/es/components/Attach/Attach.js.map +1 -1
  284. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  285. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  286. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  287. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  288. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  289. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  290. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  291. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  292. package/es/components/Attach/utils/getFileicon.js +3 -4
  293. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  294. package/es/components/Attach/utils/index.js +0 -3
  295. package/es/components/Attach/utils/index.js.map +1 -1
  296. package/es/components/Autocomplete/Autocomplete.js +5 -6
  297. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  298. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  299. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  300. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  301. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  302. package/es/components/Avatar/Avatar.js +2 -3
  303. package/es/components/Avatar/Avatar.js.map +1 -1
  304. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  305. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  306. package/es/components/Button/Button.styles.js +0 -3
  307. package/es/components/Button/Button.styles.js.map +1 -1
  308. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  309. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  310. package/es/components/Calendar/hooks/useDays.js +2 -2
  311. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  312. package/es/components/Calendar/hooks/useMonths.js +2 -2
  313. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  314. package/es/components/Calendar/hooks/useYears.js +2 -2
  315. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  316. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  317. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  318. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  319. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  320. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  321. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  322. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  323. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  324. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  325. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  326. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  327. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  328. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  329. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  330. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  331. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  332. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  333. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  334. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  335. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  336. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  337. package/es/components/Combobox/ComboboxOld/Combobox.css +14 -28
  338. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -11
  339. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  340. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  341. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  342. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  343. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  344. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  345. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  346. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +18 -32
  347. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -11
  348. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  349. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +18 -32
  350. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -11
  351. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  352. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +18 -32
  353. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -11
  354. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  355. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +18 -32
  356. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -11
  357. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  358. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  359. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  360. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  361. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  362. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  363. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  364. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  365. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  366. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  367. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  368. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  369. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  370. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  371. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  372. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  373. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  374. package/es/components/Drawer/Drawer.js +5 -10
  375. package/es/components/Drawer/Drawer.js.map +1 -1
  376. package/es/components/Drawer/Drawer.styles.js +0 -4
  377. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  378. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  379. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  380. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  381. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  382. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  383. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  384. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  385. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  386. package/es/components/Dropdown/Dropdown.css +16 -30
  387. package/es/components/Dropdown/Dropdown.js +41 -69
  388. package/es/components/Dropdown/Dropdown.js.map +1 -1
  389. package/es/components/Dropdown/Dropdown.styles.js +26 -15
  390. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  391. package/es/components/Dropdown/Dropdown.styles_1tihqkp.css +3 -0
  392. package/es/components/Dropdown/Dropdown.tokens.js +1 -24
  393. package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
  394. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -25
  395. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  396. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +6 -46
  397. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -32
  398. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  399. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +29 -26
  400. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
  401. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_blclup.css +6 -0
  402. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +1 -3
  403. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  404. package/es/components/Dropdown/ui/DropdownItemOld/{DropdownItem.styles_1lyg81y.css → DropdownItem.styles_12e50g5.css} +1 -1
  405. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -4
  406. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  407. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  408. package/es/components/Dropdown/utils/index.js.map +1 -1
  409. package/es/components/Editable/Editable.js +3 -4
  410. package/es/components/Editable/Editable.js.map +1 -1
  411. package/es/components/Editable/utils/clearSelection.js +0 -2
  412. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  413. package/es/components/Editable/utils/selectText.js +0 -2
  414. package/es/components/Editable/utils/selectText.js.map +1 -1
  415. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  416. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  417. package/es/components/IconButton/IconButton.js +1 -1
  418. package/es/components/IconButton/IconButton.styles.js +0 -8
  419. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  420. package/es/components/Modal/Modal.js +6 -8
  421. package/es/components/Modal/Modal.js.map +1 -1
  422. package/es/components/Modal/hooks/useModal.js +0 -4
  423. package/es/components/Modal/hooks/useModal.js.map +1 -1
  424. package/es/components/Notification/Notification.styles.js +2 -3
  425. package/es/components/Notification/Notification.styles.js.map +1 -1
  426. package/es/components/Notification/NotificationsPortal.js +3 -4
  427. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  428. package/es/components/Pagination/Pagination.css +13 -13
  429. package/es/components/Pagination/Pagination.styles.js +1 -2
  430. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  431. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  432. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  433. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  434. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  435. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  436. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  437. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  438. package/es/components/Popover/Popover.js +1 -1
  439. package/es/components/Popup/Popup.js +2 -2
  440. package/es/components/Popup/PopupContext.js +1 -1
  441. package/es/components/Range/Range.styles.js +0 -1
  442. package/es/components/Range/Range.styles.js.map +1 -1
  443. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  444. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  445. package/es/components/Select/Select.css +13 -13
  446. package/es/components/Select/Select.js +11 -12
  447. package/es/components/Select/Select.js.map +1 -1
  448. package/es/components/Select/Select.styles.js +3 -6
  449. package/es/components/Select/Select.styles.js.map +1 -1
  450. package/es/components/Select/Select.styles_ei4ic3.css +5 -0
  451. package/es/components/Select/Select.tokens.js +17 -1
  452. package/es/components/Select/Select.tokens.js.map +1 -1
  453. package/es/components/Select/hooks/usePathMaps.js +0 -2
  454. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  455. package/es/components/Select/ui/Inner/Inner.css +13 -13
  456. package/es/components/Select/ui/Inner/Inner.js +1 -2
  457. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  458. package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  459. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  460. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  461. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +11 -12
  462. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  463. package/{cjs/components/Select/ui/Inner/ui/Item/Item.styles_baxa65.css → es/components/Select/ui/Inner/ui/Item/Item.styles_1gaxu1y.css} +2 -2
  464. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  465. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  466. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  467. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  468. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  469. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  470. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  471. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  472. package/es/components/Select/utils/getButtonLabel.js +0 -2
  473. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  474. package/es/components/Select/utils/getCorrectHeight.js.map +1 -1
  475. package/es/components/Sheet/Sheet.js +3 -3
  476. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  477. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  478. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  479. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  480. package/es/components/Slider/Slider.js +0 -8
  481. package/es/components/Slider/Slider.js.map +1 -1
  482. package/es/components/Slider/components/Double/Double.js +1 -2
  483. package/es/components/Slider/components/Double/Double.js.map +1 -1
  484. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  485. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  486. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  487. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  488. package/es/components/Slider/components/Single/Single.js +1 -2
  489. package/es/components/Slider/components/Single/Single.js.map +1 -1
  490. package/es/components/Slider/components/SliderBase/SliderBase.js +1 -1
  491. package/es/components/Steps/Steps.js +1 -1
  492. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  493. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  494. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  495. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  496. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  497. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  498. package/es/components/TextArea/TextArea.js +2 -2
  499. package/es/components/TextArea/TextArea.styles.js +2 -3
  500. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  501. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  502. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  503. package/es/components/TextField/TextField.js +3 -3
  504. package/es/components/TextField/TextField.styles.js +1 -2
  505. package/es/components/TextField/TextField.styles.js.map +1 -1
  506. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  507. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  508. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  509. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  510. package/es/components/Toast/Toast.styles.js +1 -1
  511. package/es/components/Toast/ToastController.js +1 -1
  512. package/es/components/Toast/utils.js +1 -2
  513. package/es/components/Toast/utils.js.map +1 -1
  514. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  515. package/es/components/Tooltip/Tooltip.js +2 -3
  516. package/es/components/Tooltip/Tooltip.js.map +1 -1
  517. package/es/engines/index.js +0 -2
  518. package/es/engines/index.js.map +1 -1
  519. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  520. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  521. package/es/hooks/useOutsideClick.js +1 -1
  522. package/es/hooks/useOutsideClick.js.map +1 -1
  523. package/es/index.css +26 -24
  524. package/es/index.js +21 -24
  525. package/es/index.js.map +1 -1
  526. package/es/utils/index.js +0 -3
  527. package/es/utils/index.js.map +1 -1
  528. package/package.json +5 -2
  529. package/styled-components/cjs/components/Dropdown/Dropdown.js +37 -58
  530. package/styled-components/cjs/components/Dropdown/Dropdown.styles.js +15 -9
  531. package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +2 -36
  532. package/styled-components/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +51 -17
  533. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +18 -29
  534. package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +19 -17
  535. package/styled-components/cjs/components/Dropdown/utils/index.js +1 -23
  536. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  537. package/styled-components/cjs/components/Select/Select.tokens.js +17 -1
  538. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  539. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +5 -5
  540. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  541. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.config.js +5 -5
  542. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  543. package/styled-components/cjs/hooks/useOutsideClick.js +1 -1
  544. package/styled-components/es/components/Dropdown/Dropdown.js +40 -60
  545. package/styled-components/es/components/Dropdown/Dropdown.styles.js +15 -9
  546. package/styled-components/es/components/Dropdown/Dropdown.tokens.js +1 -35
  547. package/styled-components/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +52 -18
  548. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +20 -31
  549. package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +20 -18
  550. package/styled-components/es/components/Dropdown/utils/index.js +1 -4
  551. package/styled-components/es/components/Select/Select.styles.js +2 -2
  552. package/styled-components/es/components/Select/Select.tokens.js +17 -1
  553. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +3 -3
  554. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.config.js +6 -6
  555. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +5 -6
  556. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.config.js +6 -6
  557. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +5 -6
  558. package/styled-components/es/hooks/useOutsideClick.js +1 -1
  559. package/styled-components/package.json +2 -1
  560. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +1 -2
  561. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  562. package/types/components/Dropdown/Dropdown.d.ts +1 -2
  563. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  564. package/types/components/Dropdown/Dropdown.styles.d.ts +6 -1
  565. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  566. package/types/components/Dropdown/Dropdown.tokens.d.ts +0 -25
  567. package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
  568. package/types/components/Dropdown/Dropdown.types.d.ts +4 -30
  569. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  570. package/types/components/Dropdown/index.d.ts +1 -1
  571. package/types/components/Dropdown/index.d.ts.map +1 -1
  572. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.d.ts.map +1 -1
  573. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts +12 -1
  574. package/types/components/Dropdown/ui/DropdownInner/DropdownInner.type.d.ts.map +1 -1
  575. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
  576. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +3 -32
  577. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
  578. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +14 -1
  579. package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
  580. package/types/components/Dropdown/utils/index.d.ts +0 -3
  581. package/types/components/Dropdown/utils/index.d.ts.map +1 -1
  582. package/types/components/Select/Select.tokens.d.ts +16 -0
  583. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  584. package/types/components/Select/utils/getCorrectHeight.d.ts +2 -2
  585. package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
  586. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts +3 -3
  587. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  588. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +4 -4
  589. package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
  590. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts +3 -3
  591. package/types/examples/plasma_web/components/Dropdown/Dropdown.config.d.ts.map +1 -1
  592. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +4 -4
  593. package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
  594. package/types/hooks/useOutsideClick.d.ts +1 -1
  595. package/types/hooks/useOutsideClick.d.ts.map +1 -1
  596. package/cjs/components/Dropdown/Dropdown.styles_18f0qpm.css +0 -2
  597. package/cjs/components/Dropdown/FloatingPopover.js +0 -104
  598. package/cjs/components/Dropdown/FloatingPopover.js.map +0 -1
  599. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  600. package/cjs/components/Dropdown/utils/getItemByFocused.js +0 -13
  601. package/cjs/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  602. package/cjs/components/Dropdown/utils/getItemId.js +0 -10
  603. package/cjs/components/Dropdown/utils/getItemId.js.map +0 -1
  604. package/cjs/components/Dropdown/utils/getPlacement.js +0 -16
  605. package/cjs/components/Dropdown/utils/getPlacement.js.map +0 -1
  606. package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
  607. package/emotion/cjs/components/Dropdown/FloatingPopover.js +0 -109
  608. package/emotion/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  609. package/emotion/cjs/components/Dropdown/utils/getItemId.js +0 -9
  610. package/emotion/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  611. package/emotion/es/components/Dropdown/FloatingPopover.js +0 -102
  612. package/emotion/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  613. package/emotion/es/components/Dropdown/utils/getItemId.js +0 -3
  614. package/emotion/es/components/Dropdown/utils/getPlacement.js +0 -9
  615. package/es/components/Dropdown/Dropdown.styles_18f0qpm.css +0 -2
  616. package/es/components/Dropdown/FloatingPopover.js +0 -100
  617. package/es/components/Dropdown/FloatingPopover.js.map +0 -1
  618. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles_17va0nk.css +0 -5
  619. package/es/components/Dropdown/utils/getItemByFocused.js +0 -9
  620. package/es/components/Dropdown/utils/getItemByFocused.js.map +0 -1
  621. package/es/components/Dropdown/utils/getItemId.js +0 -6
  622. package/es/components/Dropdown/utils/getItemId.js.map +0 -1
  623. package/es/components/Dropdown/utils/getPlacement.js +0 -12
  624. package/es/components/Dropdown/utils/getPlacement.js.map +0 -1
  625. package/es/components/Select/Select.styles_1nzals0.css +0 -5
  626. package/styled-components/cjs/components/Dropdown/FloatingPopover.js +0 -109
  627. package/styled-components/cjs/components/Dropdown/utils/getItemByFocused.js +0 -12
  628. package/styled-components/cjs/components/Dropdown/utils/getItemId.js +0 -9
  629. package/styled-components/cjs/components/Dropdown/utils/getPlacement.js +0 -15
  630. package/styled-components/es/components/Dropdown/FloatingPopover.js +0 -102
  631. package/styled-components/es/components/Dropdown/utils/getItemByFocused.js +0 -6
  632. package/styled-components/es/components/Dropdown/utils/getItemId.js +0 -3
  633. package/styled-components/es/components/Dropdown/utils/getPlacement.js +0 -9
  634. package/types/components/Dropdown/FloatingPopover.d.ts +0 -5
  635. package/types/components/Dropdown/FloatingPopover.d.ts.map +0 -1
  636. package/types/components/Dropdown/utils/getItemByFocused.d.ts +0 -4
  637. package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +0 -1
  638. package/types/components/Dropdown/utils/getItemId.d.ts +0 -2
  639. package/types/components/Dropdown/utils/getItemId.d.ts.map +0 -1
  640. package/types/components/Dropdown/utils/getPlacement.d.ts +0 -3
  641. package/types/components/Dropdown/utils/getPlacement.d.ts.map +0 -1
@@ -1,5 +0,0 @@
1
- .c1gkzlls{--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%;}
2
-
3
- .d1m97l2m{line-height:0;color:var(--text-secondary);}
4
- .doib72h{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);}
5
- .w6l2f0g{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;}.w6l2f0g:hover:not(.dropdown-item-is-disabled){cursor:pointer;background-color:var(--surface-transparent-secondary);}.w6l2f0g.dropdown-item-is-active{background-color:var(--surface-transparent-secondary);}.w6l2f0g.dropdown-item-is-disabled{opacity:0.4;cursor:not-allowed;}.w6l2f0g:focus{outline:none;}.w6l2f0g::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;}.w6l2f0g.dropdown-item-is-focused:before{outline:none;box-shadow:0 0 0 0.0625rem var(--surface-accent);}
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var getItemByFocused = function getItemByFocused(focusedPath, focusedToValueMap) {
6
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
7
- return "".concat(acc, "/").concat(n);
8
- }, '').replace(/^(\/)/, '');
9
- return focusedToValueMap.get(focusedPathAsString);
10
- };
11
-
12
- exports.getItemByFocused = getItemByFocused;
13
- //# sourceMappingURL=getItemByFocused.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemByFocused.js","sources":["../../../../src/components/Dropdown/utils/getItemByFocused.ts"],"sourcesContent":["import { FocusedPathState } from '../reducers/focusedPathReducer';\nimport { FocusedToValueMapType } from '../hooks/useHashMaps';\n\nexport const getItemByFocused = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n"],"names":["getItemByFocused","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get"],"mappings":";;;;AAGO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,WAA6B,EAAEC,iBAAwC,EAAK;EACzG,IAAMC,mBAAmB,GAAGF,WAAW,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,CAAC,EAAA;AAAA,IAAA,OAAA,EAAA,CAAAC,MAAA,CAAQF,GAAG,EAAAE,GAAAA,CAAAA,CAAAA,MAAA,CAAID,CAAC,CAAA,CAAA;GAAE,EAAE,EAAE,CAAC,CAACE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAElG,EAAA,OAAON,iBAAiB,CAACO,GAAG,CAACN,mBAAmB,CAAC,CAAA;AACrD;;;;"}
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var getItemId = function getItemId(treeId, value) {
6
- return "".concat(treeId, "-").concat(value);
7
- };
8
-
9
- exports.getItemId = getItemId;
10
- //# sourceMappingURL=getItemId.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemId.js","sources":["../../../../src/components/Dropdown/utils/getItemId.ts"],"sourcesContent":["export const getItemId = (treeId: string, value: string): string => {\n return `${treeId}-${value}`;\n};\n"],"names":["getItemId","treeId","value","concat"],"mappings":";;;;AAAO,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAAc,EAAEC,KAAa,EAAa;AAChE,EAAA,OAAA,EAAA,CAAAC,MAAA,CAAUF,MAAM,EAAAE,GAAAA,CAAAA,CAAAA,MAAA,CAAID,KAAK,CAAA,CAAA;AAC7B;;;;"}
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var getPlacement = function getPlacement(placement) {
6
- if (!placement) {
7
- return 'bottom-start';
8
- }
9
- if (placement === 'auto') {
10
- return placement;
11
- }
12
- return "".concat(placement, "-start");
13
- };
14
-
15
- exports.getPlacement = getPlacement;
16
- //# sourceMappingURL=getPlacement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPlacement.js","sources":["../../../../src/components/Dropdown/utils/getPlacement.ts"],"sourcesContent":["import type { DropdownProps, PlacementType } from '../Dropdown.types';\n\nexport const getPlacement = (placement: DropdownProps['placement']): PlacementType => {\n if (!placement) {\n return 'bottom-start';\n }\n\n if (placement === 'auto') {\n return placement;\n }\n\n return `${placement}-start` as PlacementType;\n};\n"],"names":["getPlacement","placement","concat"],"mappings":";;;;IAEaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,SAAqC,EAAoB;EAClF,IAAI,CAACA,SAAS,EAAE;AACZ,IAAA,OAAO,cAAc,CAAA;AACzB,GAAA;EAEA,IAAIA,SAAS,KAAK,MAAM,EAAE;AACtB,IAAA,OAAOA,SAAS,CAAA;AACpB,GAAA;EAEA,OAAAC,EAAAA,CAAAA,MAAA,CAAUD,SAAS,EAAA,QAAA,CAAA,CAAA;AACvB;;;;"}
@@ -1,5 +0,0 @@
1
- .spxbau6 .popover-root{width:var(--spxbau6-0);}.spxbau6 .popover-target{width:100%;}
2
- .u1yey2x3{box-sizing:border-box;background:var(--surface-solid-card);box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);border-radius:var(--plasma-select-border-radius);width:var(--u1yey2x3-0);height:var(--u1yey2x3-1);overflow:var(--u1yey2x3-2);border:var(--plasma-select-popover-border-width) solid var(--plasma-select-popover-border-color);margin:var(--u1yey2x3-3);padding:var(--plasma-select-padding);}
3
- .bvro45w .popover-wrapper,.bvro45w .popover-target{display:block;}
4
- .ogpldc9{display:block;margin-bottom:var(--plasma-select-label-offset);color:var(--text-primary);font-family:var(--plasma-select-font-family);font-size:var(--plasma-select-font-size);font-style:var(--plasma-select-font-style);font-weight:var(--plasma-select-font-weight);-webkit-letter-spacing:var(--plasma-select-font-letter-spacing);-moz-letter-spacing:var(--plasma-select-font-letter-spacing);-ms-letter-spacing:var(--plasma-select-font-letter-spacing);letter-spacing:var(--plasma-select-font-letter-spacing);line-height:var(--plasma-select-font-line-height);}
5
- .h2ef052{margin-top:var(--plasma-select-helper-text-offset);color:var(--plasma-select-helper-text-color);font-family:var(--plasma-typo-body-xs-font-family);font-size:var(--plasma-typo-body-xs-font-size);font-style:var(--plasma-typo-body-xs-font-style);font-weight:var(--plasma-typo-body-xs-font-weight);-webkit-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);-moz-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);-ms-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);letter-spacing:var(--plasma-typo-body-xs-letter-spacing);line-height:var(--plasma-typo-body-xs-line-height);}
@@ -1,109 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FloatingPopover = void 0;
7
- var _react = /*#__PURE__*/require("@floating-ui/react");
8
- var _react2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
10
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
- var FloatingPopover = exports.FloatingPopover = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref, ref) {
19
- var target = _ref.target,
20
- children = _ref.children,
21
- opened = _ref.opened,
22
- onToggle = _ref.onToggle,
23
- placement = _ref.placement,
24
- portal = _ref.portal,
25
- _ref$offset = _ref.offset,
26
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
27
- isInner = _ref.isInner,
28
- trigger = _ref.trigger;
29
- var _useFloating = (0, _react.useFloating)({
30
- placement: placement === 'auto' ? undefined : placement,
31
- open: opened,
32
- middleware: [placement === 'auto' && (0, _react.autoPlacement)(), (0, _react.offset)({
33
- mainAxis: offset[1],
34
- crossAxis: offset[0]
35
- }), (0, _react.flip)({
36
- fallbackAxisSideDirection: 'end'
37
- }), (0, _react.shift)()]
38
- }),
39
- refs = _useFloating.refs,
40
- floatingStyles = _useFloating.floatingStyles;
41
- var wrappedId = (0, _plasmaCore.safeUseId)();
42
- var handleTargetClick = function handleTargetClick(event) {
43
- if (trigger === 'hover') {
44
- return;
45
- }
46
- if (onToggle) {
47
- onToggle(!opened, event);
48
- }
49
- };
50
- var handleTargetMouseEnter = function handleTargetMouseEnter(event) {
51
- if (trigger === 'click' || opened) {
52
- return;
53
- }
54
- onToggle(true, event);
55
- };
56
- var handleTargetMouseLeave = function handleTargetMouseLeave(event) {
57
- if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {
58
- var _refs$floating$curren;
59
- if (trigger === 'click' || !opened || event.relatedTarget && refs.floating && (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 && _refs$floating$curren.contains(event.relatedTarget)) {
60
- return;
61
- }
62
- onToggle(false, event);
63
- }
64
- };
65
- var handleFloatingMouseLeave = function handleFloatingMouseLeave(event) {
66
- if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {
67
- var _refs$reference$curre;
68
- if (trigger === 'click' || !opened || event.relatedTarget && refs.reference && (_refs$reference$curre = refs.reference.current) !== null && _refs$reference$curre !== void 0 && _refs$reference$curre.contains(event.relatedTarget)) {
69
- return;
70
- }
71
- onToggle(false, event);
72
- }
73
- };
74
- return /*#__PURE__*/_react2["default"].createElement("div", {
75
- id: wrappedId,
76
- style: {
77
- display: isInner ? 'block' : 'inline-block'
78
- },
79
- ref: ref
80
- }, /*#__PURE__*/_react2["default"].createElement("div", {
81
- ref: refs.setReference,
82
- onClick: handleTargetClick,
83
- onMouseEnter: handleTargetMouseEnter,
84
- onMouseLeave: handleTargetMouseLeave
85
- }, target), opened && /*#__PURE__*/_react2["default"].createElement(_react.FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/_react2["default"].createElement("div", {
86
- ref: refs.setFloating,
87
- onMouseLeave: handleFloatingMouseLeave,
88
- style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
89
- zIndex: 1
90
- })
91
- }, children)));
92
- });
93
- // root - принимает ref контейнера портала.
94
- // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
95
- var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
96
- if (!portal) {
97
- return {
98
- id: wrappedId
99
- };
100
- }
101
- if (typeof portal === 'string') {
102
- return {
103
- id: portal
104
- };
105
- }
106
- return {
107
- root: portal
108
- };
109
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getItemByFocused = void 0;
7
- var getItemByFocused = exports.getItemByFocused = function getItemByFocused(focusedPath, focusedToValueMap) {
8
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
9
- return "".concat(acc, "/").concat(n);
10
- }, '').replace(/^(\/)/, '');
11
- return focusedToValueMap.get(focusedPathAsString);
12
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getItemId = void 0;
7
- var getItemId = exports.getItemId = function getItemId(treeId, value) {
8
- return "".concat(treeId, "-").concat(value);
9
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getPlacement = void 0;
7
- var getPlacement = exports.getPlacement = function getPlacement(placement) {
8
- if (!placement) {
9
- return 'bottom-start';
10
- }
11
- if (placement === 'auto') {
12
- return placement;
13
- }
14
- return "".concat(placement, "-start");
15
- };
@@ -1,102 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { flip, shift, useFloating, FloatingPortal, offset as offsetMiddleware, autoPlacement } from '@floating-ui/react';
8
- import React, { forwardRef } from 'react';
9
- import { safeUseId } from '@salutejs/plasma-core';
10
- var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
- var target = _ref.target,
12
- children = _ref.children,
13
- opened = _ref.opened,
14
- onToggle = _ref.onToggle,
15
- placement = _ref.placement,
16
- portal = _ref.portal,
17
- _ref$offset = _ref.offset,
18
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
19
- isInner = _ref.isInner,
20
- trigger = _ref.trigger;
21
- var _useFloating = useFloating({
22
- placement: placement === 'auto' ? undefined : placement,
23
- open: opened,
24
- middleware: [placement === 'auto' && autoPlacement(), offsetMiddleware({
25
- mainAxis: offset[1],
26
- crossAxis: offset[0]
27
- }), flip({
28
- fallbackAxisSideDirection: 'end'
29
- }), shift()]
30
- }),
31
- refs = _useFloating.refs,
32
- floatingStyles = _useFloating.floatingStyles;
33
- var wrappedId = safeUseId();
34
- var handleTargetClick = function handleTargetClick(event) {
35
- if (trigger === 'hover') {
36
- return;
37
- }
38
- if (onToggle) {
39
- onToggle(!opened, event);
40
- }
41
- };
42
- var handleTargetMouseEnter = function handleTargetMouseEnter(event) {
43
- if (trigger === 'click' || opened) {
44
- return;
45
- }
46
- onToggle(true, event);
47
- };
48
- var handleTargetMouseLeave = function handleTargetMouseLeave(event) {
49
- if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {
50
- var _refs$floating$curren;
51
- if (trigger === 'click' || !opened || event.relatedTarget && refs.floating && (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 && _refs$floating$curren.contains(event.relatedTarget)) {
52
- return;
53
- }
54
- onToggle(false, event);
55
- }
56
- };
57
- var handleFloatingMouseLeave = function handleFloatingMouseLeave(event) {
58
- if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {
59
- var _refs$reference$curre;
60
- if (trigger === 'click' || !opened || event.relatedTarget && refs.reference && (_refs$reference$curre = refs.reference.current) !== null && _refs$reference$curre !== void 0 && _refs$reference$curre.contains(event.relatedTarget)) {
61
- return;
62
- }
63
- onToggle(false, event);
64
- }
65
- };
66
- return /*#__PURE__*/React.createElement("div", {
67
- id: wrappedId,
68
- style: {
69
- display: isInner ? 'block' : 'inline-block'
70
- },
71
- ref: ref
72
- }, /*#__PURE__*/React.createElement("div", {
73
- ref: refs.setReference,
74
- onClick: handleTargetClick,
75
- onMouseEnter: handleTargetMouseEnter,
76
- onMouseLeave: handleTargetMouseLeave
77
- }, target), opened && /*#__PURE__*/React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
78
- ref: refs.setFloating,
79
- onMouseLeave: handleFloatingMouseLeave,
80
- style: _objectSpread(_objectSpread({}, floatingStyles), {}, {
81
- zIndex: 1
82
- })
83
- }, children)));
84
- });
85
- // root - принимает ref контейнера портала.
86
- // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
87
- var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
88
- if (!portal) {
89
- return {
90
- id: wrappedId
91
- };
92
- }
93
- if (typeof portal === 'string') {
94
- return {
95
- id: portal
96
- };
97
- }
98
- return {
99
- root: portal
100
- };
101
- };
102
- export { FloatingPopover };
@@ -1,6 +0,0 @@
1
- export var getItemByFocused = function getItemByFocused(focusedPath, focusedToValueMap) {
2
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
3
- return "".concat(acc, "/").concat(n);
4
- }, '').replace(/^(\/)/, '');
5
- return focusedToValueMap.get(focusedPathAsString);
6
- };
@@ -1,3 +0,0 @@
1
- export var getItemId = function getItemId(treeId, value) {
2
- return "".concat(treeId, "-").concat(value);
3
- };
@@ -1,9 +0,0 @@
1
- export var getPlacement = function getPlacement(placement) {
2
- if (!placement) {
3
- return 'bottom-start';
4
- }
5
- if (placement === 'auto') {
6
- return placement;
7
- }
8
- return "".concat(placement, "-start");
9
- };
@@ -1,2 +0,0 @@
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);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
-
@@ -1,100 +0,0 @@
1
- import { objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { useFloating, autoPlacement, offset, flip, shift, FloatingPortal } from '@floating-ui/react';
3
- import React, { forwardRef } from 'react';
4
- import { safeUseId } from '@salutejs/plasma-core';
5
-
6
- var FloatingPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
7
- var target = _ref.target,
8
- children = _ref.children,
9
- opened = _ref.opened,
10
- onToggle = _ref.onToggle,
11
- placement = _ref.placement,
12
- portal = _ref.portal,
13
- _ref$offset = _ref.offset,
14
- offset$1 = _ref$offset === void 0 ? [0, 0] : _ref$offset,
15
- isInner = _ref.isInner,
16
- trigger = _ref.trigger;
17
- var _useFloating = useFloating({
18
- placement: placement === 'auto' ? undefined : placement,
19
- open: opened,
20
- middleware: [placement === 'auto' && autoPlacement(), offset({
21
- mainAxis: offset$1[1],
22
- crossAxis: offset$1[0]
23
- }), flip({
24
- fallbackAxisSideDirection: 'end'
25
- }), shift()]
26
- }),
27
- refs = _useFloating.refs,
28
- floatingStyles = _useFloating.floatingStyles;
29
- var wrappedId = safeUseId();
30
- var handleTargetClick = function handleTargetClick(event) {
31
- if (trigger === 'hover') {
32
- return;
33
- }
34
- if (onToggle) {
35
- onToggle(!opened, event);
36
- }
37
- };
38
- var handleTargetMouseEnter = function handleTargetMouseEnter(event) {
39
- if (trigger === 'click' || opened) {
40
- return;
41
- }
42
- onToggle(true, event);
43
- };
44
- var handleTargetMouseLeave = function handleTargetMouseLeave(event) {
45
- if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {
46
- var _refs$floating$curren;
47
- if (trigger === 'click' || !opened || event.relatedTarget && refs.floating && (_refs$floating$curren = refs.floating.current) !== null && _refs$floating$curren !== void 0 && _refs$floating$curren.contains(event.relatedTarget)) {
48
- return;
49
- }
50
- onToggle(false, event);
51
- }
52
- };
53
- var handleFloatingMouseLeave = function handleFloatingMouseLeave(event) {
54
- if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {
55
- var _refs$reference$curre;
56
- if (trigger === 'click' || !opened || event.relatedTarget && refs.reference && (_refs$reference$curre = refs.reference.current) !== null && _refs$reference$curre !== void 0 && _refs$reference$curre.contains(event.relatedTarget)) {
57
- return;
58
- }
59
- onToggle(false, event);
60
- }
61
- };
62
- return /*#__PURE__*/React.createElement("div", {
63
- id: wrappedId,
64
- style: {
65
- display: isInner ? 'block' : 'inline-block'
66
- },
67
- ref: ref
68
- }, /*#__PURE__*/React.createElement("div", {
69
- ref: refs.setReference,
70
- onClick: handleTargetClick,
71
- onMouseEnter: handleTargetMouseEnter,
72
- onMouseLeave: handleTargetMouseLeave
73
- }, target), opened && /*#__PURE__*/React.createElement(FloatingPortal, getFloatingPortalProps(portal, wrappedId), /*#__PURE__*/React.createElement("div", {
74
- ref: refs.setFloating,
75
- onMouseLeave: handleFloatingMouseLeave,
76
- style: _objectSpread2(_objectSpread2({}, floatingStyles), {}, {
77
- zIndex: 1
78
- })
79
- }, children)));
80
- });
81
- // root - принимает ref контейнера портала.
82
- // id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.
83
- var getFloatingPortalProps = function getFloatingPortalProps(portal, wrappedId) {
84
- if (!portal) {
85
- return {
86
- id: wrappedId
87
- };
88
- }
89
- if (typeof portal === 'string') {
90
- return {
91
- id: portal
92
- };
93
- }
94
- return {
95
- root: portal
96
- };
97
- };
98
-
99
- export { FloatingPopover };
100
- //# sourceMappingURL=FloatingPopover.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FloatingPopover.js","sources":["../../../src/components/Dropdown/FloatingPopover.tsx"],"sourcesContent":["import {\n flip,\n shift,\n useFloating,\n FloatingPortal,\n offset as offsetMiddleware,\n autoPlacement,\n} from '@floating-ui/react';\nimport React, { forwardRef, MouseEvent } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { FloatingPopoverProps } from './Dropdown.types';\n\nconst FloatingPopover = forwardRef<HTMLDivElement, FloatingPopoverProps>(\n ({ target, children, opened, onToggle, placement, portal, offset = [0, 0], isInner, trigger }, ref) => {\n const { refs, floatingStyles } = useFloating({\n placement: placement === 'auto' ? undefined : placement,\n open: opened,\n middleware: [\n placement === 'auto' && autoPlacement(),\n offsetMiddleware({ mainAxis: offset[1], crossAxis: offset[0] }),\n flip({ fallbackAxisSideDirection: 'end' }),\n shift(),\n ],\n });\n const wrappedId = safeUseId();\n\n const handleTargetClick = (event: MouseEvent<HTMLDivElement>) => {\n if (trigger === 'hover') {\n return;\n }\n\n if (onToggle) {\n onToggle(!opened, event);\n }\n };\n\n const handleTargetMouseEnter = (event: MouseEvent<HTMLDivElement>) => {\n if (trigger === 'click' || opened) {\n return;\n }\n\n onToggle(true, event);\n };\n\n const handleTargetMouseLeave = (event: MouseEvent<HTMLDivElement>) => {\n if (event.relatedTarget instanceof HTMLElement && refs.floating.current instanceof HTMLElement) {\n if (\n trigger === 'click' ||\n !opened ||\n (event.relatedTarget && refs.floating && refs.floating.current?.contains(event.relatedTarget))\n ) {\n return;\n }\n\n onToggle(false, event);\n }\n };\n\n const handleFloatingMouseLeave = (event: MouseEvent) => {\n if (event.relatedTarget instanceof HTMLElement && refs.reference.current instanceof HTMLElement) {\n if (\n trigger === 'click' ||\n !opened ||\n (event.relatedTarget && refs.reference && refs.reference.current?.contains(event.relatedTarget))\n ) {\n return;\n }\n\n onToggle(false, event);\n }\n };\n\n return (\n <div\n id={wrappedId}\n style={{\n display: isInner ? 'block' : 'inline-block',\n }}\n ref={ref}\n >\n <div\n ref={refs.setReference}\n onClick={handleTargetClick}\n onMouseEnter={handleTargetMouseEnter}\n onMouseLeave={handleTargetMouseLeave}\n >\n {target}\n </div>\n\n {opened && (\n <FloatingPortal {...getFloatingPortalProps(portal, wrappedId)}>\n <div\n ref={refs.setFloating}\n onMouseLeave={handleFloatingMouseLeave}\n style={{\n ...floatingStyles,\n zIndex: 1,\n }}\n >\n {children}\n </div>\n </FloatingPortal>\n )}\n </div>\n );\n },\n);\n\ntype FloatingPortalReturnedProps = {\n root?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;\n id?: string;\n};\n\n// root - принимает ref контейнера портала.\n// id - если есть портал - не используется, если портала нет - подставляется 'wrappedId'.\nconst getFloatingPortalProps = (\n portal: FloatingPopoverProps['portal'],\n wrappedId: string,\n): FloatingPortalReturnedProps => {\n if (!portal) {\n return { id: wrappedId };\n }\n\n if (typeof portal === 'string') {\n return { id: portal };\n }\n\n return { root: portal };\n};\n\nexport { FloatingPopover };\n"],"names":["FloatingPopover","forwardRef","_ref","ref","target","children","opened","onToggle","placement","portal","_ref$offset","offset","isInner","trigger","_useFloating","useFloating","undefined","open","middleware","autoPlacement","offsetMiddleware","mainAxis","crossAxis","flip","fallbackAxisSideDirection","shift","refs","floatingStyles","wrappedId","safeUseId","handleTargetClick","event","handleTargetMouseEnter","handleTargetMouseLeave","relatedTarget","HTMLElement","floating","current","_refs$floating$curren","contains","handleFloatingMouseLeave","reference","_refs$reference$curre","React","createElement","id","style","display","setReference","onClick","onMouseEnter","onMouseLeave","FloatingPortal","getFloatingPortalProps","setFloating","_objectSpread","zIndex","root"],"mappings":";;;;;AAaMA,IAAAA,eAAe,gBAAGC,UAAU,CAC9B,UAAAC,IAAA,EAA+FC,GAAG,EAAK;AAAA,EAAA,IAApGC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAEC,SAAS,GAAAN,IAAA,CAATM,SAAS;IAAEC,MAAM,GAAAP,IAAA,CAANO,MAAM;IAAAC,WAAA,GAAAR,IAAA,CAAES,MAAM;IAANA,QAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,CAAC,CAAC,EAAE,CAAC,CAAC,GAAAA,WAAA;IAAEE,OAAO,GAAAV,IAAA,CAAPU,OAAO;IAAEC,OAAO,GAAAX,IAAA,CAAPW,OAAO,CAAA;EACvF,IAAAC,YAAA,GAAiCC,WAAW,CAAC;AACzCP,MAAAA,SAAS,EAAEA,SAAS,KAAK,MAAM,GAAGQ,SAAS,GAAGR,SAAS;AACvDS,MAAAA,IAAI,EAAEX,MAAM;MACZY,UAAU,EAAE,CACRV,SAAS,KAAK,MAAM,IAAIW,aAAa,EAAE,EACvCC,MAAgB,CAAC;AAAEC,QAAAA,QAAQ,EAAEV,QAAM,CAAC,CAAC,CAAC;QAAEW,SAAS,EAAEX,QAAM,CAAC,CAAC,CAAA;OAAG,CAAC,EAC/DY,IAAI,CAAC;AAAEC,QAAAA,yBAAyB,EAAE,KAAA;AAAM,OAAC,CAAC,EAC1CC,KAAK,EAAE,CAAA;AAEf,KAAC,CAAC;IATMC,IAAI,GAAAZ,YAAA,CAAJY,IAAI;IAAEC,cAAc,GAAAb,YAAA,CAAda,cAAc,CAAA;AAU5B,EAAA,IAAMC,SAAS,GAAGC,SAAS,EAAE,CAAA;AAE7B,EAAA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAAiC,EAAK;IAC7D,IAAIlB,OAAO,KAAK,OAAO,EAAE;AACrB,MAAA,OAAA;AACJ,KAAA;AAEA,IAAA,IAAIN,QAAQ,EAAE;AACVA,MAAAA,QAAQ,CAAC,CAACD,MAAM,EAAEyB,KAAK,CAAC,CAAA;AAC5B,KAAA;GACH,CAAA;AAED,EAAA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAID,KAAiC,EAAK;AAClE,IAAA,IAAIlB,OAAO,KAAK,OAAO,IAAIP,MAAM,EAAE;AAC/B,MAAA,OAAA;AACJ,KAAA;AAEAC,IAAAA,QAAQ,CAAC,IAAI,EAAEwB,KAAK,CAAC,CAAA;GACxB,CAAA;AAED,EAAA,IAAME,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIF,KAAiC,EAAK;AAClE,IAAA,IAAIA,KAAK,CAACG,aAAa,YAAYC,WAAW,IAAIT,IAAI,CAACU,QAAQ,CAACC,OAAO,YAAYF,WAAW,EAAE;AAAA,MAAA,IAAAG,qBAAA,CAAA;AAC5F,MAAA,IACIzB,OAAO,KAAK,OAAO,IACnB,CAACP,MAAM,IACNyB,KAAK,CAACG,aAAa,IAAIR,IAAI,CAACU,QAAQ,IAAAE,CAAAA,qBAAA,GAAIZ,IAAI,CAACU,QAAQ,CAACC,OAAO,cAAAC,qBAAA,KAAA,KAAA,CAAA,IAArBA,qBAAA,CAAuBC,QAAQ,CAACR,KAAK,CAACG,aAAa,CAAE,EAChG;AACE,QAAA,OAAA;AACJ,OAAA;AAEA3B,MAAAA,QAAQ,CAAC,KAAK,EAAEwB,KAAK,CAAC,CAAA;AAC1B,KAAA;GACH,CAAA;AAED,EAAA,IAAMS,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIT,KAAiB,EAAK;AACpD,IAAA,IAAIA,KAAK,CAACG,aAAa,YAAYC,WAAW,IAAIT,IAAI,CAACe,SAAS,CAACJ,OAAO,YAAYF,WAAW,EAAE;AAAA,MAAA,IAAAO,qBAAA,CAAA;AAC7F,MAAA,IACI7B,OAAO,KAAK,OAAO,IACnB,CAACP,MAAM,IACNyB,KAAK,CAACG,aAAa,IAAIR,IAAI,CAACe,SAAS,IAAAC,CAAAA,qBAAA,GAAIhB,IAAI,CAACe,SAAS,CAACJ,OAAO,cAAAK,qBAAA,KAAA,KAAA,CAAA,IAAtBA,qBAAA,CAAwBH,QAAQ,CAACR,KAAK,CAACG,aAAa,CAAE,EAClG;AACE,QAAA,OAAA;AACJ,OAAA;AAEA3B,MAAAA,QAAQ,CAAC,KAAK,EAAEwB,KAAK,CAAC,CAAA;AAC1B,KAAA;GACH,CAAA;EAED,oBACIY,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACIC,IAAAA,EAAE,EAAEjB,SAAU;AACdkB,IAAAA,KAAK,EAAE;AACHC,MAAAA,OAAO,EAAEnC,OAAO,GAAG,OAAO,GAAG,cAAA;KAC/B;AACFT,IAAAA,GAAG,EAAEA,GAAAA;GAELwC,eAAAA,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IACIzC,GAAG,EAAEuB,IAAI,CAACsB,YAAa;AACvBC,IAAAA,OAAO,EAAEnB,iBAAkB;AAC3BoB,IAAAA,YAAY,EAAElB,sBAAuB;AACrCmB,IAAAA,YAAY,EAAElB,sBAAAA;GAEb7B,EAAAA,MACA,CAAC,EAELE,MAAM,iBACHqC,KAAA,CAAAC,aAAA,CAACQ,cAAc,EAAKC,sBAAsB,CAAC5C,MAAM,EAAEmB,SAAS,CAAC,eACzDe,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IACIzC,GAAG,EAAEuB,IAAI,CAAC4B,WAAY;AACtBH,IAAAA,YAAY,EAAEX,wBAAyB;AACvCM,IAAAA,KAAK,EAAAS,cAAA,CAAAA,cAAA,KACE5B,cAAc,CAAA,EAAA,EAAA,EAAA;AACjB6B,MAAAA,MAAM,EAAE,CAAA;AAAC,KAAA,CAAA;GAGZnD,EAAAA,QACA,CACO,CAEnB,CAAC,CAAA;AAEd,CACJ,EAAC;AAOD;AACA;AACA,IAAMgD,sBAAsB,GAAG,SAAzBA,sBAAsBA,CACxB5C,MAAsC,EACtCmB,SAAiB,EACa;EAC9B,IAAI,CAACnB,MAAM,EAAE;IACT,OAAO;AAAEoC,MAAAA,EAAE,EAAEjB,SAAAA;KAAW,CAAA;AAC5B,GAAA;AAEA,EAAA,IAAI,OAAOnB,MAAM,KAAK,QAAQ,EAAE;IAC5B,OAAO;AAAEoC,MAAAA,EAAE,EAAEpC,MAAAA;KAAQ,CAAA;AACzB,GAAA;EAEA,OAAO;AAAEgD,IAAAA,IAAI,EAAEhD,MAAAA;GAAQ,CAAA;AAC3B,CAAC;;;;"}
@@ -1,5 +0,0 @@
1
- .c1gkzlls{--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%;}
2
-
3
- .d1m97l2m{line-height:0;color:var(--text-secondary);}
4
- .doib72h{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);}
5
- .w6l2f0g{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;}.w6l2f0g:hover:not(.dropdown-item-is-disabled){cursor:pointer;background-color:var(--surface-transparent-secondary);}.w6l2f0g.dropdown-item-is-active{background-color:var(--surface-transparent-secondary);}.w6l2f0g.dropdown-item-is-disabled{opacity:0.4;cursor:not-allowed;}.w6l2f0g:focus{outline:none;}.w6l2f0g::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;}.w6l2f0g.dropdown-item-is-focused:before{outline:none;box-shadow:0 0 0 0.0625rem var(--surface-accent);}
@@ -1,9 +0,0 @@
1
- var getItemByFocused = function getItemByFocused(focusedPath, focusedToValueMap) {
2
- var focusedPathAsString = focusedPath.reduce(function (acc, n) {
3
- return "".concat(acc, "/").concat(n);
4
- }, '').replace(/^(\/)/, '');
5
- return focusedToValueMap.get(focusedPathAsString);
6
- };
7
-
8
- export { getItemByFocused };
9
- //# sourceMappingURL=getItemByFocused.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemByFocused.js","sources":["../../../../src/components/Dropdown/utils/getItemByFocused.ts"],"sourcesContent":["import { FocusedPathState } from '../reducers/focusedPathReducer';\nimport { FocusedToValueMapType } from '../hooks/useHashMaps';\n\nexport const getItemByFocused = (focusedPath: FocusedPathState, focusedToValueMap: FocusedToValueMapType) => {\n const focusedPathAsString = focusedPath.reduce((acc, n) => `${acc}/${n}`, '').replace(/^(\\/)/, '');\n\n return focusedToValueMap.get(focusedPathAsString);\n};\n"],"names":["getItemByFocused","focusedPath","focusedToValueMap","focusedPathAsString","reduce","acc","n","concat","replace","get"],"mappings":"AAGO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,WAA6B,EAAEC,iBAAwC,EAAK;EACzG,IAAMC,mBAAmB,GAAGF,WAAW,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,CAAC,EAAA;AAAA,IAAA,OAAA,EAAA,CAAAC,MAAA,CAAQF,GAAG,EAAAE,GAAAA,CAAAA,CAAAA,MAAA,CAAID,CAAC,CAAA,CAAA;GAAE,EAAE,EAAE,CAAC,CAACE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAElG,EAAA,OAAON,iBAAiB,CAACO,GAAG,CAACN,mBAAmB,CAAC,CAAA;AACrD;;;;"}
@@ -1,6 +0,0 @@
1
- var getItemId = function getItemId(treeId, value) {
2
- return "".concat(treeId, "-").concat(value);
3
- };
4
-
5
- export { getItemId };
6
- //# sourceMappingURL=getItemId.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemId.js","sources":["../../../../src/components/Dropdown/utils/getItemId.ts"],"sourcesContent":["export const getItemId = (treeId: string, value: string): string => {\n return `${treeId}-${value}`;\n};\n"],"names":["getItemId","treeId","value","concat"],"mappings":"AAAO,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAAc,EAAEC,KAAa,EAAa;AAChE,EAAA,OAAA,EAAA,CAAAC,MAAA,CAAUF,MAAM,EAAAE,GAAAA,CAAAA,CAAAA,MAAA,CAAID,KAAK,CAAA,CAAA;AAC7B;;;;"}
@@ -1,12 +0,0 @@
1
- var getPlacement = function getPlacement(placement) {
2
- if (!placement) {
3
- return 'bottom-start';
4
- }
5
- if (placement === 'auto') {
6
- return placement;
7
- }
8
- return "".concat(placement, "-start");
9
- };
10
-
11
- export { getPlacement };
12
- //# sourceMappingURL=getPlacement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPlacement.js","sources":["../../../../src/components/Dropdown/utils/getPlacement.ts"],"sourcesContent":["import type { DropdownProps, PlacementType } from '../Dropdown.types';\n\nexport const getPlacement = (placement: DropdownProps['placement']): PlacementType => {\n if (!placement) {\n return 'bottom-start';\n }\n\n if (placement === 'auto') {\n return placement;\n }\n\n return `${placement}-start` as PlacementType;\n};\n"],"names":["getPlacement","placement","concat"],"mappings":"IAEaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,SAAqC,EAAoB;EAClF,IAAI,CAACA,SAAS,EAAE;AACZ,IAAA,OAAO,cAAc,CAAA;AACzB,GAAA;EAEA,IAAIA,SAAS,KAAK,MAAM,EAAE;AACtB,IAAA,OAAOA,SAAS,CAAA;AACpB,GAAA;EAEA,OAAAC,EAAAA,CAAAA,MAAA,CAAUD,SAAS,EAAA,QAAA,CAAA,CAAA;AACvB;;;;"}
@@ -1,5 +0,0 @@
1
- .spxbau6 .popover-root{width:var(--spxbau6-0);}.spxbau6 .popover-target{width:100%;}
2
- .u1yey2x3{box-sizing:border-box;background:var(--surface-solid-card);box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);border-radius:var(--plasma-select-border-radius);width:var(--u1yey2x3-0);height:var(--u1yey2x3-1);overflow:var(--u1yey2x3-2);border:var(--plasma-select-popover-border-width) solid var(--plasma-select-popover-border-color);margin:var(--u1yey2x3-3);padding:var(--plasma-select-padding);}
3
- .bvro45w .popover-wrapper,.bvro45w .popover-target{display:block;}
4
- .ogpldc9{display:block;margin-bottom:var(--plasma-select-label-offset);color:var(--text-primary);font-family:var(--plasma-select-font-family);font-size:var(--plasma-select-font-size);font-style:var(--plasma-select-font-style);font-weight:var(--plasma-select-font-weight);-webkit-letter-spacing:var(--plasma-select-font-letter-spacing);-moz-letter-spacing:var(--plasma-select-font-letter-spacing);-ms-letter-spacing:var(--plasma-select-font-letter-spacing);letter-spacing:var(--plasma-select-font-letter-spacing);line-height:var(--plasma-select-font-line-height);}
5
- .h2ef052{margin-top:var(--plasma-select-helper-text-offset);color:var(--plasma-select-helper-text-color);font-family:var(--plasma-typo-body-xs-font-family);font-size:var(--plasma-typo-body-xs-font-size);font-style:var(--plasma-typo-body-xs-font-style);font-weight:var(--plasma-typo-body-xs-font-weight);-webkit-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);-moz-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);-ms-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);letter-spacing:var(--plasma-typo-body-xs-letter-spacing);line-height:var(--plasma-typo-body-xs-line-height);}