@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,7 +1,5 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
2
  import { useIsomorphicLayoutEffect } from '../../../../hooks';
3
- import { classes } from '../../Slider.tokens';
4
- import { cx } from '../../../../utils';
5
3
  import { Fill, Rail, RailWrap, Slider } from './SliderBase.styles';
6
4
  export var SliderBase = function SliderBase(_ref) {
7
5
  var max = _ref.max,
@@ -15,9 +13,6 @@ export var SliderBase = function SliderBase(_ref) {
15
13
  labelPlacement = _ref.labelPlacement,
16
14
  rangeValuesPlacement = _ref.rangeValuesPlacement,
17
15
  onChange = _ref.onChange,
18
- orientation = _ref.orientation,
19
- size = _ref.size,
20
- sliderAlign = _ref.sliderAlign,
21
16
  _ref$settings = _ref.settings,
22
17
  settings = _ref$settings === void 0 ? {} : _ref$settings;
23
18
  var _settings$indent = settings.indent,
@@ -26,43 +21,34 @@ export var SliderBase = function SliderBase(_ref) {
26
21
  fontSizeMultiplier = _settings$fontSizeMul === void 0 ? 16 : _settings$fontSizeMul;
27
22
  var ref = useRef(null);
28
23
  var gap = indent * fontSizeMultiplier * 2;
29
- var isVertical = orientation === 'vertical';
30
24
  useEffect(function () {
31
25
  var resizeHandler = function resizeHandler() {
32
26
  if (ref.current) {
33
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
27
+ var railSize = ref.current.offsetWidth - gap;
34
28
  var totalSteps = max - min;
35
29
  setStepSize(railSize / totalSteps);
36
30
  }
37
31
  };
38
32
  resizeHandler();
39
- }, [labelPlacement, rangeValuesPlacement, gap, isVertical,
40
- // для перерасчета размеров
41
- size, sliderAlign]);
33
+ }, [labelPlacement, rangeValuesPlacement]);
42
34
  var onHandleChange = function onHandleChange(e) {
43
35
  if (!onChange || disabled) {
44
36
  return;
45
37
  }
46
38
  var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
47
39
  x = _e$currentTarget$getB.x,
48
- width = _e$currentTarget$getB.width,
49
- y = _e$currentTarget$getB.y,
50
- height = _e$currentTarget$getB.height;
51
- var lastPos = isVertical ? e.clientY - y : e.clientX - x;
52
- var sliderWidth = isVertical ? height : width;
53
- var position = min + lastPos / (sliderWidth - gap) * (max - min);
40
+ width = _e$currentTarget$getB.width;
41
+ var lastX = e.clientX - x;
42
+ var position = min + lastX / (width - gap) * (max - min);
54
43
  var result = Math.max(min, Math.min(max, position));
55
- var data = isVertical ? {
56
- lastY: lastPos
57
- } : {
58
- lastX: lastPos
59
- };
60
- onChange(result, data);
44
+ onChange(result, {
45
+ lastX: lastX
46
+ });
61
47
  };
62
48
  useIsomorphicLayoutEffect(function () {
63
49
  var resizeHandler = function resizeHandler() {
64
50
  if (ref.current) {
65
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
51
+ var railSize = ref.current.offsetWidth - gap;
66
52
  var totalSteps = max - min;
67
53
  setStepSize(railSize / totalSteps);
68
54
  }
@@ -72,18 +58,13 @@ export var SliderBase = function SliderBase(_ref) {
72
58
  return function () {
73
59
  return window.removeEventListener('resize', resizeHandler);
74
60
  };
75
- }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement, isVertical]);
76
- var fillStyle = isVertical ? {
77
- top: "".concat(railFillXPosition, "px"),
78
- height: "".concat(railFillWidth, "px"),
79
- width: '100%'
80
- } : {
61
+ }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement]);
62
+ var fillStyle = {
81
63
  left: "".concat(railFillXPosition, "px"),
82
64
  width: "".concat(railFillWidth, "px")
83
65
  };
84
66
  return /*#__PURE__*/React.createElement(Slider, {
85
- ref: ref,
86
- className: cx(orientation === 'vertical' && classes.verticalOrientation)
67
+ ref: ref
87
68
  }, /*#__PURE__*/React.createElement(RailWrap, {
88
69
  "aria-hidden": "true",
89
70
  onMouseDown: onHandleChange
@@ -1,17 +1,13 @@
1
1
  import _styled from "@emotion/styled/base";
2
2
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
3
  import { applyHidden } from '../../../../mixins';
4
- import { classes, tokens } from '../../Slider.tokens';
5
- export var Rail = /*#__PURE__*/_styled("div", {
6
- target: "e1nkxkag4",
7
- label: "plasma-new-hope__Rail"
8
- })("position:relative;top:50%;height:var(", tokens.railThickness, ");border-radius:var(", tokens.railBorderRadius, ");background-color:var(", tokens.railBackgroundColor, ");overflow:hidden;transform:translateY(-50%);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLOEIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TbGlkZXIvY29tcG9uZW50cy9TbGlkZXJCYXNlL1NsaWRlckJhc2Uuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhcHBseUhpZGRlbiB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFJhaWwgPSBzdHlsZWQuZGl2YFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICB0b3A6IDUwJTtcblxuICAgIGhlaWdodDogdmFyKCR7dG9rZW5zLnJhaWxUaGlja25lc3N9KTtcblxuICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5yYWlsQm9yZGVyUmFkaXVzfSk7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLnJhaWxCYWNrZ3JvdW5kQ29sb3J9K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okens } from '../../Slider.tokens';
9
5
  export var Slider = /*#__PURE__*/_styled("div", {
10
- target: "e1nkxkag3",
6
+ target: "e1nkxkag4",
11
7
  label: "plasma-new-hope__Slider"
12
- })("flex:1;position:relative;user-select:none;height:var(", tokens.size, ");&.", classes.verticalOrientation, "{width:var(", tokens.size, ");height:auto;", Rail, "{top:0;left:50%;transform:translateX(-50%);width:var(", tokens.railThickness, ");height:100%;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQmdDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgYXBwbHlIaWRkZW4gfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vU2xpZGVyLnRva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBSYWlsID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdG9wOiA1MCU7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5yYWlsVGhpY2tuZXNzfSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMucmFpbEJvcmRlclJhZGl1c30p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uaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
8
+ })("flex:1;position:relative;user-select:none;height:var(", tokens.height, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLZ0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TbGlkZXIvY29tcG9uZW50cy9TbGlkZXJCYXNlL1NsaWRlckJhc2Uuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBhcHBseUhpZGRlbiB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFNsaWRlciA9IHN0eWxlZC5kaXZgXG4gICAgZmxleDogMTtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdXNlci1zZWxlY3Q6IG5vbmU7XG4gICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMuaGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgUmFpbFdyYXAgPSBzdHlsZWQuZGl2YFxuICAgIGhlaWdodDogMTAwJTtcbmA7XG5cbmV4cG9ydCBjb25zdCBSYWlsID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdG9wOiA1MCU7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5yYWlsSGVpZ2h0fSk7XG5cbiAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMucmFpbEJvcmRlclJhZGl1c30pO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigke3Rva2Vucy5yYWlsQmFja2dyb3VuZENvbG9yfSk7XG5cbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBGaWxsID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIGJhY2tncm91bmQ6IHZhcigke3Rva2Vucy5maWxsQ29sb3J9KTtcbiAgICB3aWR0aDogMDtcbmA7XG5cbmV4cG9ydCBjb25zdCBJbnB1dEhpZGRlbiA9IHN0eWxlZC5pbnB1dGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */"));
13
9
  export var RailWrap = /*#__PURE__*/_styled("div", {
14
- target: "e1nkxkag2",
10
+ target: "e1nkxkag3",
15
11
  label: "plasma-new-hope__RailWrap"
16
12
  })(process.env.NODE_ENV === "production" ? {
17
13
  name: "13udsys",
@@ -19,14 +15,18 @@ export var RailWrap = /*#__PURE__*/_styled("div", {
19
15
  } : {
20
16
  name: "13udsys",
21
17
  styles: "height:100%",
22
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQ2tDIiwiZmlsZS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1dGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */",
23
19
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
20
  });
21
+ export var Rail = /*#__PURE__*/_styled("div", {
22
+ target: "e1nkxkag2",
23
+ label: "plasma-new-hope__Rail"
24
+ })("position:relative;top:50%;height:var(", tokens.railHeight, ");border-radius:var(", tokens.railBorderRadius, ");background-color:var(", tokens.railBackgroundColor, ");overflow:hidden;transform:translateY(-50%);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQjhCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgYXBwbHlIaWRkZW4gfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vU2xpZGVyLnRva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBTbGlkZXIgPSBzdHlsZWQuZGl2YFxuICAgIGZsZXg6IDE7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHVzZXItc2VsZWN0OiBub25lO1xuICAgIGhlaWdodDogdmFyKCR7dG9rZW5zLmhlaWdodH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IFJhaWxXcmFwID0gc3R5bGVkLmRpdmBcbiAgICBoZWlnaHQ6IDEwMCU7XG5gO1xuXG5leHBvcnQgY29uc3QgUmFpbCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHRvcDogNTAlO1xuXG4gICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMucmFpbEhlaWdodH0pO1xuXG4gICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLnJhaWxCb3JkZXJSYWRpdXN9KTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMucmFpbEJhY2tncm91bmRDb2xvcn0pO1xuXG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTUwJSk7XG5gO1xuXG5leHBvcnQgY29uc3QgRmlsbCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMuZmlsbENvbG9yfSk7XG4gICAgd2lkdGg6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRIaWRkZW4gPSBzdHlsZWQuaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
25
25
  export var Fill = /*#__PURE__*/_styled("div", {
26
26
  target: "e1nkxkag1",
27
27
  label: "plasma-new-hope__Fill"
28
- })("position:absolute;height:100%;top:0;left:0;background:var(", tokens.fillColor, ");width:0;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2x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Gg6IHZhcigke3Rva2Vucy5zaXplfSk7XG4gICAgICAgIGhlaWdodDogYXV0bztcblxuICAgICAgICAke1JhaWx9IHtcbiAgICAgICAgICAgIHRvcDogMDtcbiAgICAgICAgICAgIGxlZnQ6IDUwJTtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKTtcbiAgICAgICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMucmFpbFRoaWNrbmVzc30pO1xuICAgICAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICB9XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFJhaWxXcmFwID0gc3R5bGVkLmRpdmBcbiAgICBoZWlnaHQ6IDEwMCU7XG5gO1xuXG5leHBvcnQgY29uc3QgRmlsbCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMuZmlsbENvbG9yfSk7XG4gICAgd2lkdGg6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRIaWRkZW4gPSBzdHlsZWQuaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
28
+ })("position:absolute;height:100%;top:0;left:0;background:var(", tokens.fillColor, ");width:0;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QjhCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3Ny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0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMuZmlsbENvbG9yfSk7XG4gICAgd2lkdGg6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRIaWRkZW4gPSBzdHlsZWQuaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
29
29
  export var InputHidden = /*#__PURE__*/_styled("input", {
30
30
  target: "e1nkxkag0",
31
31
  label: "plasma-new-hope__InputHidden"
32
- })( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRHVDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgYXBwbHlIaWRkZW4gfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vU2xpZGVyLnRva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBSYWlsID0gc3R5bGVkLmRpdmBcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdG9wOiA1MCU7XG5cbiAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5y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mlsbENvbG9yfSk7XG4gICAgd2lkdGg6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRIaWRkZW4gPSBzdHlsZWQuaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
32
+ })( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQ3VDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL2NvbXBvbmVudHMvU2xpZGVyQmFzZS9TbGlkZXJCYXNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgYXBwbHlIaWRkZW4gfSBmcm9tICcuLi8uLi8uLi8uLi9taXhpbnMnO1xuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vU2xpZGVyLnRva2Vucyc7XG5cbmV4cG9ydCBjb25zdCBTbGlkZXIgPSBzdHlsZWQuZGl2YFxuICAgIGZsZXg6IDE7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHVzZXItc2VsZWN0OiBub25lO1xuICAgIGhlaWdodDogdmFyKCR7dG9rZW5zLmhlaWdodH0pO1xuYDtcblxuZXhwb3J0IGNvbnN0IFJhaWxXcmFwID0gc3R5bGVkLmRpdmBcbiAgICBoZWlnaHQ6IDEwMCU7XG5gO1xuXG5leHBvcnQgY29uc3QgUmFpbCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHRvcDogNTAlO1xuXG4gICAgaGVpZ2h0OiB2YXIoJHt0b2tlbnMucmFpbEhlaWdodH0pO1xuXG4gICAgYm9yZGVyLXJhZGl1czogdmFyKCR7dG9rZW5zLnJhaWxCb3JkZXJSYWRpdXN9KTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoJHt0b2tlbnMucmFpbEJhY2tncm91bmRDb2xvcn0pO1xuXG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTUwJSk7XG5gO1xuXG5leHBvcnQgY29uc3QgRmlsbCA9IHN0eWxlZC5kaXZgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMuZmlsbENvbG9yfSk7XG4gICAgd2lkdGg6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgSW5wdXRIaWRkZW4gPSBzdHlsZWQuaW5wdXRgXG4gICAgJHthcHBseUhpZGRlbigpfTtcbmA7XG4iXX0= */"));
@@ -1,9 +1,5 @@
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
- var _excluded = ["size", "orientation", "stepSize", "onChangeCommitted", "onChange", "position", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value", "valuePlacement"];
1
+ var _excluded = ["stepSize", "onChangeCommitted", "onChange", "xPosition", "min", "max", "bounds", "zIndex", "disabled", "side", "showCurrentValue", "startOffset", "endOffset", "value"];
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
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
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -14,23 +10,28 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
11
  import React, { useRef, forwardRef } from 'react';
16
12
  import Draggable from 'react-draggable';
17
- import { cx } from '../../../../utils';
18
13
  import { getSliderThumbValue, getOffsets } from '../../utils';
19
14
  import { Thumb } from '../Thumb/Thumb';
20
- import { classes } from '../../Slider.tokens';
21
15
  import { HandlerStyled, StyledValue } from './Handler.styles';
22
- import { computeKeyPressData } from './computeKeyPressData';
23
16
 
24
17
  // TODO: PLASMA-1707
25
18
 
19
+ var KeyboardSupport = {
20
+ PageUp: 33,
21
+ PageDown: 34,
22
+ End: 35,
23
+ Home: 36,
24
+ ArrowLeft: 37,
25
+ ArrowUp: 38,
26
+ ArrowRight: 39,
27
+ ArrowDown: 40
28
+ };
26
29
  export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
27
- var size = _ref.size,
28
- orientation = _ref.orientation,
29
- stepSize = _ref.stepSize,
30
+ var stepSize = _ref.stepSize,
30
31
  onChangeCommitted = _ref.onChangeCommitted,
31
32
  onChange = _ref.onChange,
32
- _ref$position = _ref.position,
33
- position = _ref$position === void 0 ? 0 : _ref$position,
33
+ _ref$xPosition = _ref.xPosition,
34
+ xPosition = _ref$xPosition === void 0 ? 0 : _ref$xPosition,
34
35
  min = _ref.min,
35
36
  max = _ref.max,
36
37
  _ref$bounds = _ref.bounds,
@@ -45,88 +46,122 @@ export var Handler = /*#__PURE__*/forwardRef(function (_ref, ref) {
45
46
  _ref$endOffset = _ref.endOffset,
46
47
  endOffset = _ref$endOffset === void 0 ? 0 : _ref$endOffset,
47
48
  value = _ref.value,
48
- valuePlacement = _ref.valuePlacement,
49
49
  rest = _objectWithoutProperties(_ref, _excluded);
50
- var isVertical = orientation === 'vertical';
51
50
  var lastOnChangeValue = useRef();
52
- var _getOffsets = getOffsets(ref, side, isVertical),
51
+ var _getOffsets = getOffsets(ref, side),
53
52
  _getOffsets2 = _slicedToArray(_getOffsets, 2),
54
- startClientOffset = _getOffsets2[0],
55
- endClientOffset = _getOffsets2[1];
53
+ offsetLeft = _getOffsets2[0],
54
+ offsetRight = _getOffsets2[1];
56
55
  var _bounds = _slicedToArray(bounds, 2),
57
- startValueBound = _bounds[0],
58
- endValueBound = _bounds[1];
59
- var startPositionBound = startValueBound ? (startValueBound - min) * stepSize : null;
60
- var endPositionBound = endValueBound ? (endValueBound - min) * stepSize : null;
61
- var dragPosition = typeof position === 'number' ? {
62
- x: isVertical ? 0 : position,
63
- y: isVertical ? position : 0
56
+ leftValueBound = _bounds[0],
57
+ rightValueBound = _bounds[1];
58
+ var leftPositionBound = leftValueBound ? (leftValueBound - min) * stepSize : null;
59
+ var rightPositionBound = rightValueBound ? (rightValueBound - min) * stepSize : null;
60
+ var position = typeof xPosition === 'number' ? {
61
+ x: xPosition,
62
+ y: 0
64
63
  } : undefined;
65
64
  var tabIndex = disabled ? -1 : 0;
66
- var computedBounds = _defineProperty(_defineProperty({}, isVertical ? 'top' : 'left', (startPositionBound !== null && startPositionBound !== void 0 ? startPositionBound : 0) - (startClientOffset ? stepSize : 0)), isVertical ? 'bottom' : 'right', (endPositionBound !== null && endPositionBound !== void 0 ? endPositionBound : stepSize * (max - min)) - (endClientOffset ? stepSize : 0));
67
- var showCurrentValueCondition = showCurrentValue && (position >= startOffset && position <= max * stepSize - endOffset || position === 0 && value !== 0);
65
+ var computedBounds = {
66
+ left: (leftPositionBound !== null && leftPositionBound !== void 0 ? leftPositionBound : 0) - (offsetLeft ? stepSize : 0),
67
+ right: (rightPositionBound !== null && rightPositionBound !== void 0 ? rightPositionBound : stepSize * (max - min)) - (offsetRight ? stepSize : 0)
68
+ };
69
+ var showCurrentValueCondition = showCurrentValue && (xPosition >= startOffset && xPosition <= max * stepSize - endOffset || xPosition === 0 && value !== 0);
68
70
  var onDrag = function onDrag(_, data) {
69
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
71
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
70
72
  if (lastOnChangeValue.current !== newValue) {
71
73
  onChange === null || onChange === void 0 || onChange(newValue, data);
72
74
  lastOnChangeValue.current = newValue;
73
75
  }
74
76
  };
75
77
  var onStop = function onStop(_, data) {
76
- var newValue = getSliderThumbValue(isVertical ? data.y : data.x, stepSize, min, max);
78
+ var newValue = getSliderThumbValue(data.x, stepSize, min, max);
77
79
  onChangeCommitted && onChangeCommitted(newValue, data);
78
80
  };
79
81
  var onKeyPress = function onKeyPress(event) {
80
82
  event.persist();
81
- var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
82
- var data = computeKeyPressData(event, {
83
- isVertical: isVertical,
84
- stepSize: stepSize,
85
- position: position,
86
- max: max,
87
- computedMultipleSteps: computedMultipleSteps
88
- });
89
- if (!data) {
83
+ var keyCode = event.keyCode,
84
+ target = event.target;
85
+ if (!Object.values(KeyboardSupport).includes(keyCode)) {
90
86
  return;
91
87
  }
88
+ var ArrowUp = KeyboardSupport.ArrowUp,
89
+ ArrowRight = KeyboardSupport.ArrowRight,
90
+ ArrowDown = KeyboardSupport.ArrowDown,
91
+ ArrowLeft = KeyboardSupport.ArrowLeft,
92
+ Home = KeyboardSupport.Home,
93
+ End = KeyboardSupport.End,
94
+ PageDown = KeyboardSupport.PageDown,
95
+ PageUp = KeyboardSupport.PageUp;
96
+ var computedMultipleSteps = stepSize * (rest.multipleStepSize / 100 * max);
97
+ var data = {
98
+ x: 0,
99
+ deltaX: stepSize,
100
+ lastX: xPosition,
101
+ y: 0,
102
+ deltaY: 0,
103
+ lastY: 0,
104
+ node: target
105
+ };
106
+ switch (keyCode) {
107
+ case ArrowUp:
108
+ case ArrowRight:
109
+ data.x = xPosition + stepSize;
110
+ break;
111
+ case ArrowDown:
112
+ case ArrowLeft:
113
+ data.x = xPosition - stepSize;
114
+ data.deltaX = -stepSize;
115
+ break;
116
+ case PageUp:
117
+ data.x = xPosition + computedMultipleSteps;
118
+ data.deltaX = computedMultipleSteps;
119
+ break;
120
+ case PageDown:
121
+ data.x = xPosition - computedMultipleSteps;
122
+ data.deltaX = -computedMultipleSteps;
123
+ break;
124
+ case End:
125
+ data.x = max * stepSize;
126
+ break;
127
+ case Home:
128
+ data.x = 0;
129
+ break;
130
+ default:
131
+ data.x = 0;
132
+ }
92
133
  var left = computedBounds.left,
93
- right = computedBounds.right,
94
- top = computedBounds.top,
95
- bottom = computedBounds.bottom;
134
+ right = computedBounds.right;
96
135
 
97
136
  /*
98
137
  * INFO: Находим значение в диапазоне между указанными левой и правой границами.
99
- * Или между верхней и нижней
100
138
  * Необходимо для правильного расчета положения SliderThumb.
101
139
  * см. функция clamp
102
140
  */
103
- var boundedValue = isVertical ? Math.max(Math.min(bottom, data.y), top) : Math.max(Math.min(right, data.x), left);
141
+ var boundedValue = Math.max(Math.min(right, data.x), left);
104
142
  var computedValue = getSliderThumbValue(boundedValue, stepSize, min, max);
105
143
  lastOnChangeValue.current = computedValue;
106
144
  onChangeCommitted && onChangeCommitted(computedValue, data);
107
145
  };
108
146
  return /*#__PURE__*/React.createElement(Draggable, {
109
- axis: isVertical ? 'y' : 'x',
147
+ axis: "x",
110
148
  bounds: computedBounds,
111
- grid: isVertical ? [1, stepSize] : [stepSize, 1],
149
+ grid: [stepSize, 1],
112
150
  onStop: onStop,
113
151
  onDrag: onDrag,
114
- position: dragPosition,
152
+ position: position,
115
153
  disabled: disabled
116
154
  }, /*#__PURE__*/React.createElement(HandlerStyled, {
117
155
  ref: ref,
118
156
  style: {
119
157
  zIndex: zIndex
120
158
  },
121
- className: cx(isVertical && classes.verticalOrientation, valuePlacement === 'left' && classes.valuePlacementLeft),
122
- isLarge: size === 'large',
123
159
  onKeyDown: onKeyPress
124
- }, size !== 'none' && /*#__PURE__*/React.createElement(Thumb, _extends({
160
+ }, /*#__PURE__*/React.createElement(Thumb, _extends({
125
161
  tabIndex: tabIndex,
126
162
  min: min,
127
163
  max: max,
128
164
  value: value,
129
- disabled: disabled,
130
- orientation: orientation
165
+ disabled: disabled
131
166
  }, rest)), showCurrentValueCondition && /*#__PURE__*/React.createElement(StyledValue, null, value)));
132
167
  });
@@ -1,13 +1,19 @@
1
1
  import _styled from "@emotion/styled/base";
2
- import { classes, tokens } from '../../Slider.tokens';
3
- export var StyledValue = /*#__PURE__*/_styled("span", {
4
- target: "e1o9stmr1",
5
- label: "plasma-new-hope__StyledValue"
6
- })("position:absolute;z-index:1;top:var(", tokens.currentValueTopOffset, ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", tokens.valueFontFamily, ");font-size:var(", tokens.valueFontSize, ");font-style:var(", tokens.valueFontStyle, ");font-weight:var(", tokens.valueFontWeight, ");letter-spacing:var(", tokens.valueLetterSpacing, ");line-height:var(", tokens.valueLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSWtFIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL1NsaWRlci50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVmFsdWUgPSBzdHlsZWQuc3Bhbjx7IGlzTGFyZ2VUaHVtYj86IGJvb2xlYW4gfT5gXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHotaW5kZXg6IDE7XG4gICAgdG9wOiB2YXIoJHt0b2tlbnMuY3VycmVudFZhbHVlVG9wT2Zmc2V0fSk7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpb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xpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXG4gICAgICAgICR7U3R5bGVkVmFsdWV9IHtcbiAgICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgICAgIHRvcDogMDtcbiAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgbGVmdDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gKHZhcigke3Rva2Vucy5zaXplfSkgLSB2YXIoLS10aHVtYi1zaXplKSkgLyAyICsgMC4yNXJlbSk7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LXN0YXJ0O1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudmFsdWVQbGFjZW1lbnRMZWZ0fSB7XG4gICAgICAgICR7U3R5bGVkVmFsdWV9IHtcbiAgICAgICAgICAgIGxlZnQ6IGF1dG87XG4gICAgICAgICAgICByaWdodDogY2FsYyh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gKHZhcigke3Rva2Vucy5zaXplfSkgLSB2YXIoLS10aHVtYi1zaXplKSkgLyAyICsgMC4zMTI1cmVtKTtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ import { tokens } from '../../Slider.tokens';
7
4
  export var HandlerStyled = /*#__PURE__*/_styled("div", {
8
- target: "e1o9stmr0",
5
+ target: "e1o9stmr1",
9
6
  label: "plasma-new-hope__HandlerStyled"
10
- })("cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center;--thumb-size:", function (_ref) {
11
- var isLarge = _ref.isLarge;
12
- return isLarge ? "var(".concat(tokens.thumbSizeLarge, ")") : "var(".concat(tokens.thumbSize, ")");
13
- }, ";&.", classes.verticalOrientation, "{right:0;bottom:auto;align-items:flex-start;justify-content:center;", StyledValue, "{margin:0;top:0;bottom:0;right:0;left:calc(var(", tokens.size, ") - (var(", tokens.size, ") - var(--thumb-size)) / 2 + 0.25rem);align-items:center;justify-content:flex-start;}}&.", classes.valuePlacementLeft, "{", StyledValue, "{left:auto;right:calc(var(", tokens.size, ") - (var(", tokens.size, ") - var(--thumb-size)) / 2 + 0.3125rem);justify-content:flex-end;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUI4RCIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1NsaWRlci91aS9IYW5kbGVyL0hhbmRsZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZhbHVlID0gc3R5bGVkLnNwYW48eyBpc0xhcmdlVGh1bWI/OiBib29sZWFuIH0+YFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB6LWluZGV4OiAxO1xuICAgIHRvcDogdmFyKCR7dG9rZW5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XG5cbiAgICAmLiR7Y2xhc3Nlcy52ZXJ0aWNhbE9yaWVudGF0aW9ufSB7XG4gICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICBib3R0b206IGF1dG87XG4gICAgICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblxuICAgICAgICAke1N0eWxlZFZhbHVlfSB7XG4gICAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICBib3R0b206IDA7XG4gICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgIGxlZnQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSAtICh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gdmFyKC0tdGh1bWItc2l6ZSkpIC8gMiArIDAuMjVyZW0pO1xuICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgICYuJHtjbGFzc2VzLnZhbHVlUGxhY2VtZW50TGVmdH0ge1xuICAgICAgICAke1N0eWxlZFZhbHVlfSB7XG4gICAgICAgICAgICBsZWZ0OiBhdXRvO1xuICAgICAgICAgICAgcmlnaHQ6IGNhbGModmFyKCR7dG9rZW5zLnNpemV9KSAtICh2YXIoJHt0b2tlbnMuc2l6ZX0pIC0gdmFyKC0tdGh1bWItc2l6ZSkpIC8gMiArIDAuMzEyNXJlbSk7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
7
+ })(process.env.NODE_ENV === "production" ? {
8
+ name: "1dnu1tq",
9
+ styles: "cursor:pointer;position:absolute;z-index:1;top:0;left:0"
10
+ } : {
11
+ name: "1dnu1tq",
12
+ styles: "cursor:pointer;position:abs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vbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy5jdXJyZW50VmFsdWVGb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy5jdXJyZW50VmFsdWVGb250U3R5bGV9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUZvbnRXZWlnaHR9KTtcbiAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */",
14
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15
+ });
16
+ export var StyledValue = /*#__PURE__*/_styled("span", {
17
+ target: "e1o9stmr0",
18
+ label: "plasma-new-hope__StyledValue"
19
+ })("position:absolute;z-index:1;top:var(", tokens.currentValueTopOffset, ");text-align:center;width:100%;margin-left:-0.125rem;display:flex;justify-content:center;font-family:var(", tokens.currentValueFontFamily, ");font-size:var(", tokens.currentValueFontSize, ");font-style:var(", tokens.currentValueFontStyle, ");font-weight:var(", tokens.currentValueFontWeight, ");letter-spacing:var(", tokens.currentValueLetterSpacing, ");line-height:var(", tokens.currentValueLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmRsZXIvSGFuZGxlci5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWXNDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL0hhbmR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WhlaWdodDogdmFyKCR7dG9rZW5zLmN1cnJlbnRWYWx1ZUxpbmVIZWlnaHR9KTtcbmA7XG4iXX0= */"));
@@ -1,4 +1,4 @@
1
- var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled", "orientation"];
1
+ var _excluded = ["min", "max", "value", "ariaValueMin", "ariaLabel", "disabled"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,7 +12,6 @@ export var Thumb = function Thumb(_ref) {
12
12
  ariaValueMin = _ref$ariaValueMin === void 0 ? min : _ref$ariaValueMin,
13
13
  ariaLabel = _ref.ariaLabel,
14
14
  disabled = _ref.disabled,
15
- orientation = _ref.orientation,
16
15
  rest = _objectWithoutProperties(_ref, _excluded);
17
16
  return /*#__PURE__*/React.createElement(ThumbBase, _extends({
18
17
  role: "slider",
@@ -21,6 +20,6 @@ export var Thumb = function Thumb(_ref) {
21
20
  "aria-valuemax": max,
22
21
  "aria-valuenow": value,
23
22
  disabled: disabled,
24
- "aria-orientation": orientation
23
+ "aria-orientation": "horizontal"
25
24
  }, rest));
26
25
  };
@@ -4,9 +4,9 @@ import { tokens } from '../../Slider.tokens';
4
4
  export var ThumbBase = /*#__PURE__*/_styled("div", {
5
5
  target: "e1lys3110",
6
6
  label: "plasma-new-hope__ThumbBase"
7
- })("width:var(--thumb-size);height:var(--thumb-size);min-width:var(--thumb-size);min-height:var(--thumb-size);position:relative;border-radius:50%;box-sizing:border-box;background:var(", tokens.thumbBackgroundColor, ");margin:0.0625rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", tokens.thumbBorderColor, ");margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", tokens.thumbFocusBorderColor, ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", /*#__PURE__*/addFocus({
8
- outlineOffset: '0.0625rem',
7
+ })("width:var(", tokens.thumbSize, ");height:var(", tokens.thumbSize, ");position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(", tokens.thumbBackgroundColor, ");margin:0.125rem;transition:border-color 0.1s ease-in-out;&:after{background:var(", tokens.thumbBorderColor, ");margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}&:not([disabled]):hover:after,&:not([disabled]):active:after{background:var(", tokens.thumbFocusBorderColor, ");}&[disabled]{cursor:not-allowed;}&:focus{outline:none;}", /*#__PURE__*/addFocus({
8
+ outlineOffset: '0.125rem',
9
9
  outlineSize: '0.125rem',
10
10
  outlineRadius: '50%',
11
11
  outlineColor: /*#__PURE__*/"var(".concat(tokens.thumbFocusBorderColor, ")")
12
- }), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL1RodW1iL1RodW1iLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1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Gluc2V0OiAwO1xuICAgICAgICB6LWluZGV4OiAtMTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogaW5oZXJpdDtcbiAgICB9XG5cbiAgICAmOm5vdChbZGlzYWJsZWRdKTpob3ZlcjphZnRlcixcbiAgICAmOm5vdChbZGlzYWJsZWRdKTphY3RpdmU6YWZ0ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGh1bWJGb2N1c0JvcmRlckNvbG9yfSk7XG4gICAgfVxuXG4gICAgJltkaXNhYmxlZF0ge1xuICAgICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgIH1cblxuICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgIH1cblxuICAgICR7YWRkRm9jdXMoe1xuICAgICAgICBvdXRsaW5lT2Zmc2V0OiAnMC4wNjI1cmVtJyxcbiAgICAgICAgb3V0bGluZVNpemU6ICcwLjEyNXJlbScsXG4gICAgICAgIG91dGxpbmVSYWRpdXM6ICc1MCUnLFxuICAgICAgICBvdXRsaW5lQ29sb3I6IGB2YXIoJHt0b2tlbnMudGh1bWJGb2N1c0JvcmRlckNvbG9yfSlgLFxuICAgIH0pfVxuYDtcbiJdfQ== */"));
12
+ }), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3VpL1RodW1iL1RodW1iLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLMkQiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9TbGlkZXIvdWkvVGh1bWIvVGh1bWIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZ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YWNrZ3JvdW5kOiB2YXIoJHt0b2tlbnMudGh1bWJGb2N1c0JvcmRlckNvbG9yfSk7XG4gICAgfVxuXG4gICAgJltkaXNhYmxlZF0ge1xuICAgICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgIH1cblxuICAgICY6Zm9jdXMge1xuICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgIH1cblxuICAgICR7YWRkRm9jdXMoe1xuICAgICAgICBvdXRsaW5lT2Zmc2V0OiAnMC4xMjVyZW0nLFxuICAgICAgICBvdXRsaW5lU2l6ZTogJzAuMTI1cmVtJyxcbiAgICAgICAgb3V0bGluZVJhZGl1czogJzUwJScsXG4gICAgICAgIG91dGxpbmVDb2xvcjogYHZhcigke3Rva2Vucy50aHVtYkZvY3VzQm9yZGVyQ29sb3J9KWAsXG4gICAgfSl9XG5gO1xuIl19 */"));
@@ -6,8 +6,8 @@
6
6
  * @param {number} max
7
7
  * @return {number}
8
8
  */
9
- export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max) {
10
- var newValue = Math.round(handleCenterPosRelative / stepSize) + min;
9
+ export function getSliderThumbValue(handleCenterXRelative, stepSize, min, max) {
10
+ var newValue = Math.round(handleCenterXRelative / stepSize) + min;
11
11
  return Math.min(Math.max(newValue, min), max);
12
12
  }
13
13
 
@@ -18,11 +18,11 @@ export function getSliderThumbValue(handleCenterPosRelative, stepSize, min, max)
18
18
  * @param {'left' | 'right'} side
19
19
  * @return Array<number>
20
20
  */
21
- export function getOffsets(ref, side, isVertical) {
21
+ export function getOffsets(ref, side) {
22
22
  if (!ref || !('current' in ref) || !ref.current || !side) {
23
23
  return [0, 0];
24
24
  }
25
- var size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;
25
+ var size = ref.current.clientWidth;
26
26
  if (side === 'left') {
27
27
  return [0, size];
28
28
  }
@@ -33,33 +33,15 @@ export function getOffsets(ref, side, isVertical) {
33
33
  }
34
34
  export var sizeData = {
35
35
  s: {
36
- small: {
37
- indent: 0.5,
38
- fontSizeMultiplier: 16
39
- },
40
- large: {
41
- indent: 0.625,
42
- fontSizeMultiplier: 16
43
- }
36
+ indent: 0.5,
37
+ fontSizeMultiplier: 16
44
38
  },
45
39
  m: {
46
- small: {
47
- indent: 0.5,
48
- fontSizeMultiplier: 16
49
- },
50
- large: {
51
- indent: 0.625,
52
- fontSizeMultiplier: 16
53
- }
40
+ indent: 0.75,
41
+ fontSizeMultiplier: 16
54
42
  },
55
43
  l: {
56
- small: {
57
- indent: 0.5,
58
- fontSizeMultiplier: 16
59
- },
60
- large: {
61
- indent: 0.625,
62
- fontSizeMultiplier: 16
63
- }
44
+ indent: 0.75,
45
+ fontSizeMultiplier: 16
64
46
  }
65
47
  };
@@ -1,3 +1,2 @@
1
1
  import { css } from '@emotion/react';
2
- import { classes } from '../../Slider.tokens';
3
- export var base = /*#__PURE__*/css("&.", classes.verticalOrientation, "{height:100%;display:inline-flex;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMgfSBmcm9tICcuLi8uLi9TbGlkZXIudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke2NsYXNzZXMudmVydGljYWxPcmllbnRhdGlvbn0ge1xuICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIH1cbmA7XG4iXX0= */"));
2
+ export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvU2xpZGVyL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYGA7XG4iXX0= */"));