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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (732) 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.js +4 -10
  59. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  60. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  61. package/cjs/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  62. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  63. package/cjs/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  64. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  65. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  66. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  67. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  68. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  69. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  70. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  71. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  72. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  73. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  74. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  75. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  76. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  77. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  78. package/cjs/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  79. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -7
  80. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  81. package/cjs/components/DatePicker/RangeDate/RangeDate.js +1 -1
  82. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  83. package/cjs/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  84. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  85. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  86. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  87. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  88. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  89. package/cjs/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  90. package/cjs/components/Drawer/Drawer.js +5 -10
  91. package/cjs/components/Drawer/Drawer.js.map +1 -1
  92. package/cjs/components/Drawer/Drawer.styles.js +0 -4
  93. package/cjs/components/Drawer/Drawer.styles.js.map +1 -1
  94. package/cjs/components/Drawer/hooks/useDrawer.js +0 -4
  95. package/cjs/components/Drawer/hooks/useDrawer.js.map +1 -1
  96. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  97. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  98. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  99. package/cjs/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  100. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  101. package/cjs/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  102. package/cjs/components/Dropdown/Dropdown.js +3 -10
  103. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  104. package/cjs/components/Dropdown/Dropdown.styles.js +2 -3
  105. package/cjs/components/Dropdown/Dropdown.styles.js.map +1 -1
  106. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  107. package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  108. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  109. package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  110. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  111. package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  112. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  113. package/cjs/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  114. package/cjs/components/Editable/Editable.js +3 -4
  115. package/cjs/components/Editable/Editable.js.map +1 -1
  116. package/cjs/components/Editable/utils/clearSelection.js +0 -2
  117. package/cjs/components/Editable/utils/clearSelection.js.map +1 -1
  118. package/cjs/components/Editable/utils/selectText.js +0 -2
  119. package/cjs/components/Editable/utils/selectText.js.map +1 -1
  120. package/cjs/components/EmptyState/EmptyState.styles.js +1 -2
  121. package/cjs/components/EmptyState/EmptyState.styles.js.map +1 -1
  122. package/cjs/components/IconButton/IconButton.js +1 -1
  123. package/cjs/components/IconButton/IconButton.styles.js +0 -8
  124. package/cjs/components/IconButton/IconButton.styles.js.map +1 -1
  125. package/cjs/components/Modal/Modal.js +6 -8
  126. package/cjs/components/Modal/Modal.js.map +1 -1
  127. package/cjs/components/Modal/hooks/useModal.js +0 -4
  128. package/cjs/components/Modal/hooks/useModal.js.map +1 -1
  129. package/cjs/components/Notification/Notification.styles.js +2 -3
  130. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  131. package/cjs/components/Notification/NotificationsPortal.js +3 -4
  132. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  133. package/cjs/components/Pagination/Pagination.styles.js +1 -2
  134. package/cjs/components/Pagination/Pagination.styles.js.map +1 -1
  135. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  136. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  137. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  138. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  139. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  140. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  141. package/cjs/components/Popover/Popover.js +1 -1
  142. package/cjs/components/Popup/Popup.js +2 -2
  143. package/cjs/components/Popup/PopupContext.js +1 -1
  144. package/cjs/components/Range/Range.styles.js +0 -1
  145. package/cjs/components/Range/Range.styles.js.map +1 -1
  146. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  147. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  148. package/cjs/components/Select/Select.js +11 -12
  149. package/cjs/components/Select/Select.js.map +1 -1
  150. package/cjs/components/Select/Select.styles.js +2 -5
  151. package/cjs/components/Select/Select.styles.js.map +1 -1
  152. package/cjs/components/Select/hooks/usePathMaps.js +0 -2
  153. package/cjs/components/Select/hooks/usePathMaps.js.map +1 -1
  154. package/cjs/components/Select/ui/Inner/Inner.js +1 -2
  155. package/cjs/components/Select/ui/Inner/Inner.js.map +1 -1
  156. package/cjs/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  157. package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  158. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  159. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  160. package/cjs/components/Select/ui/Target/ui/Button/Button.js +1 -1
  161. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  162. package/cjs/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  163. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  164. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  165. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  166. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  167. package/cjs/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  168. package/cjs/components/Select/utils/getButtonLabel.js +0 -2
  169. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  170. package/cjs/components/Sheet/Sheet.js +3 -3
  171. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  172. package/cjs/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  173. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  174. package/cjs/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  175. package/cjs/components/Slider/Slider.css +13 -15
  176. package/cjs/components/Slider/Slider.js +2 -18
  177. package/cjs/components/Slider/Slider.js.map +1 -1
  178. package/cjs/components/Slider/Slider.tokens.js +17 -23
  179. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  180. package/cjs/components/Slider/components/Double/Double.css +8 -8
  181. package/cjs/components/Slider/components/Double/Double.js +24 -60
  182. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  183. package/cjs/components/Slider/components/Double/Double.styles.js +0 -1
  184. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -1
  185. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  186. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  187. package/cjs/components/Slider/components/Single/Single.css +14 -14
  188. package/cjs/components/Slider/components/Single/Single.js +34 -66
  189. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  190. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  191. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  192. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  193. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  194. package/cjs/components/Slider/components/SliderBase/SliderBase.js +13 -32
  195. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  196. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  197. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  198. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  199. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  200. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  201. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  202. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  203. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  204. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  205. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  206. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  207. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  208. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  209. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  210. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  211. package/cjs/components/Slider/utils/index.js +10 -28
  212. package/cjs/components/Slider/utils/index.js.map +1 -1
  213. package/cjs/components/Slider/variations/_view/base.js +1 -1
  214. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  215. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  216. package/cjs/components/Steps/Steps.js +1 -1
  217. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  218. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  219. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  220. package/cjs/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  221. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  222. package/cjs/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  223. package/cjs/components/TextArea/TextArea.js +2 -2
  224. package/cjs/components/TextArea/TextArea.styles.js +2 -3
  225. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  226. package/cjs/components/TextArea/ui/Hint/Hint.js +1 -2
  227. package/cjs/components/TextArea/ui/Hint/Hint.js.map +1 -1
  228. package/cjs/components/TextField/TextField.js +3 -3
  229. package/cjs/components/TextField/TextField.styles.js +1 -2
  230. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  231. package/cjs/components/TextField/ui/Hint/Hint.js +1 -2
  232. package/cjs/components/TextField/ui/Hint/Hint.js.map +1 -1
  233. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  234. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  235. package/cjs/components/Toast/Toast.styles.js +1 -1
  236. package/cjs/components/Toast/ToastController.js +1 -1
  237. package/cjs/components/Toast/utils.js +1 -2
  238. package/cjs/components/Toast/utils.js.map +1 -1
  239. package/cjs/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  240. package/cjs/components/Tooltip/Tooltip.js +2 -3
  241. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  242. package/cjs/components/ViewContainer/ViewContainer.js +38 -0
  243. package/cjs/components/ViewContainer/ViewContainer.js.map +1 -0
  244. package/cjs/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  245. package/cjs/components/ViewContainer/_view/base.js +9 -0
  246. package/cjs/components/ViewContainer/_view/base.js.map +1 -0
  247. package/cjs/components/ViewContainer/_view/base_x642ct.css +1 -0
  248. package/cjs/engines/index.js +0 -2
  249. package/cjs/engines/index.js.map +1 -1
  250. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -1
  251. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  252. package/cjs/index.css +15 -15
  253. package/cjs/index.js +51 -51
  254. package/cjs/utils/index.js +0 -5
  255. package/cjs/utils/index.js.map +1 -1
  256. package/emotion/cjs/components/Slider/Slider.js +2 -10
  257. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  258. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  259. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  260. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  261. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  262. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  263. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  264. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  265. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  266. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  267. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  268. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  269. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  270. package/emotion/cjs/components/ViewContainer/ViewContainer.js +49 -0
  271. package/emotion/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  272. package/emotion/cjs/components/ViewContainer/_view/base.js +8 -0
  273. package/emotion/cjs/components/ViewContainer/_view/tokens.json +1 -0
  274. package/emotion/cjs/components/ViewContainer/index.js +18 -0
  275. package/emotion/cjs/examples/_helpers.js +3 -14
  276. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  277. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  278. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  279. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  280. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  281. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  282. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  283. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  284. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  285. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  286. package/emotion/cjs/index.js +11 -0
  287. package/emotion/es/components/Slider/Slider.js +2 -11
  288. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  289. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  290. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  291. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  292. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  293. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  294. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  295. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  296. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  297. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  298. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  299. package/emotion/es/components/Slider/utils/index.js +10 -28
  300. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  301. package/emotion/es/components/ViewContainer/ViewContainer.js +40 -0
  302. package/emotion/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  303. package/emotion/es/components/ViewContainer/_view/base.js +2 -0
  304. package/emotion/es/components/ViewContainer/_view/tokens.json +1 -0
  305. package/emotion/es/components/ViewContainer/index.js +1 -0
  306. package/emotion/es/examples/_helpers.js +3 -14
  307. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  308. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  309. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  310. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  311. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  312. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  313. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  314. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  315. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  316. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  317. package/emotion/es/index.js +2 -1
  318. package/emotion/package.json +2 -1
  319. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -1
  320. package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +1 -1
  321. package/es/components/Attach/Attach.js +3 -4
  322. package/es/components/Attach/Attach.js.map +1 -1
  323. package/es/components/Attach/components/AttachButton/AttachButton.js +0 -1
  324. package/es/components/Attach/components/AttachButton/AttachButton.js.map +1 -1
  325. package/es/components/Attach/ui/Button/Button.styles.js +0 -1
  326. package/es/components/Attach/ui/Button/Button.styles.js.map +1 -1
  327. package/es/components/Attach/ui/Cell/Cell.styles.js +0 -2
  328. package/es/components/Attach/ui/Cell/Cell.styles.js.map +1 -1
  329. package/es/components/Attach/ui/IconButton/IconButton.styles.js +0 -1
  330. package/es/components/Attach/ui/IconButton/IconButton.styles.js.map +1 -1
  331. package/es/components/Attach/utils/getFileicon.js +3 -4
  332. package/es/components/Attach/utils/getFileicon.js.map +1 -1
  333. package/es/components/Attach/utils/index.js +0 -3
  334. package/es/components/Attach/utils/index.js.map +1 -1
  335. package/es/components/Autocomplete/Autocomplete.js +5 -6
  336. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  337. package/es/components/Autocomplete/Autocomplete.styles.js +2 -3
  338. package/es/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  339. package/es/components/Autocomplete/ui/TextField/TextField.styles.js +1 -2
  340. package/es/components/Autocomplete/ui/TextField/TextField.styles.js.map +1 -1
  341. package/es/components/Avatar/Avatar.js +2 -3
  342. package/es/components/Avatar/Avatar.js.map +1 -1
  343. package/es/components/Breadcrumbs/Breadcrumbs.styles.js +2 -4
  344. package/es/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -1
  345. package/es/components/Button/Button.styles.js +0 -3
  346. package/es/components/Button/Button.styles.js.map +1 -1
  347. package/es/components/Calendar/CalendarBase/CalendarBase.js +5 -5
  348. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +8 -8
  349. package/es/components/Calendar/hooks/useDays.js +2 -2
  350. package/es/components/Calendar/hooks/useKeyNavigation.js +1 -1
  351. package/es/components/Calendar/hooks/useMonths.js +2 -2
  352. package/es/components/Calendar/hooks/useQuarters.js +2 -2
  353. package/es/components/Calendar/hooks/useYears.js +2 -2
  354. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +4 -4
  355. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +5 -6
  356. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  357. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +0 -1
  358. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  359. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +4 -4
  360. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +4 -4
  361. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +4 -4
  362. package/es/components/Combobox/ComboboxNew/Combobox.js +11 -12
  363. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  364. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +2 -4
  365. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  366. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +0 -2
  367. package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
  368. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js +1 -2
  369. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.js.map +1 -1
  370. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +5 -6
  371. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
  372. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js +1 -3
  373. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  374. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js +1 -2
  375. package/es/components/Combobox/ComboboxNew/ui/Target/Target.styles.js.map +1 -1
  376. package/es/components/Combobox/ComboboxOld/Combobox.js +4 -10
  377. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  378. package/es/components/Combobox/ComboboxOld/Combobox.styles.js +0 -1
  379. package/es/components/Combobox/ComboboxOld/Combobox.styles.js.map +1 -1
  380. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js +0 -1
  381. package/es/components/Combobox/ComboboxOld/hooks/useFocusController.js.map +1 -1
  382. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js +1 -2
  383. package/es/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.js.map +1 -1
  384. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js +1 -10
  385. package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.js.map +1 -1
  386. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js +1 -10
  387. package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.js.map +1 -1
  388. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js +1 -10
  389. package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.js.map +1 -1
  390. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js +1 -10
  391. package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.js.map +1 -1
  392. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js +0 -2
  393. package/es/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.js.map +1 -1
  394. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.js +1 -1
  395. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js +1 -2
  396. package/es/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.js.map +1 -1
  397. package/es/components/DatePicker/DatePickerBase.styles.js +1 -7
  398. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  399. package/es/components/DatePicker/RangeDate/RangeDate.js +1 -1
  400. package/es/components/DatePicker/RangeDate/RangeDate.styles.js +0 -1
  401. package/es/components/DatePicker/RangeDate/RangeDate.styles.js.map +1 -1
  402. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js +1 -2
  403. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.js.map +1 -1
  404. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +2 -5
  405. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js.map +1 -1
  406. package/es/components/DatePicker/SingleDate/SingleDate.styles.js +0 -1
  407. package/es/components/DatePicker/SingleDate/SingleDate.styles.js.map +1 -1
  408. package/es/components/Drawer/Drawer.js +5 -10
  409. package/es/components/Drawer/Drawer.js.map +1 -1
  410. package/es/components/Drawer/Drawer.styles.js +0 -4
  411. package/es/components/Drawer/Drawer.styles.js.map +1 -1
  412. package/es/components/Drawer/hooks/useDrawer.js +0 -4
  413. package/es/components/Drawer/hooks/useDrawer.js.map +1 -1
  414. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js +0 -7
  415. package/es/components/Drawer/ui/DrawerContent/DrawerContent.js.map +1 -1
  416. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js +0 -7
  417. package/es/components/Drawer/ui/DrawerFooter/DrawerFooter.js.map +1 -1
  418. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js +0 -3
  419. package/es/components/Drawer/ui/DrawerHeader/DrawerHeader.js.map +1 -1
  420. package/es/components/Dropdown/Dropdown.js +3 -10
  421. package/es/components/Dropdown/Dropdown.js.map +1 -1
  422. package/es/components/Dropdown/Dropdown.styles.js +2 -3
  423. package/es/components/Dropdown/Dropdown.styles.js.map +1 -1
  424. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +1 -9
  425. package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
  426. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +1 -2
  427. package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
  428. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +0 -2
  429. package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -1
  430. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js +0 -1
  431. package/es/components/Dropdown/ui/DropdownOld/Dropdown.styles.js.map +1 -1
  432. package/es/components/Editable/Editable.js +3 -4
  433. package/es/components/Editable/Editable.js.map +1 -1
  434. package/es/components/Editable/utils/clearSelection.js +0 -2
  435. package/es/components/Editable/utils/clearSelection.js.map +1 -1
  436. package/es/components/Editable/utils/selectText.js +0 -2
  437. package/es/components/Editable/utils/selectText.js.map +1 -1
  438. package/es/components/EmptyState/EmptyState.styles.js +1 -2
  439. package/es/components/EmptyState/EmptyState.styles.js.map +1 -1
  440. package/es/components/IconButton/IconButton.js +1 -1
  441. package/es/components/IconButton/IconButton.styles.js +0 -8
  442. package/es/components/IconButton/IconButton.styles.js.map +1 -1
  443. package/es/components/Modal/Modal.js +6 -8
  444. package/es/components/Modal/Modal.js.map +1 -1
  445. package/es/components/Modal/hooks/useModal.js +0 -4
  446. package/es/components/Modal/hooks/useModal.js.map +1 -1
  447. package/es/components/Notification/Notification.styles.js +2 -3
  448. package/es/components/Notification/Notification.styles.js.map +1 -1
  449. package/es/components/Notification/NotificationsPortal.js +3 -4
  450. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  451. package/es/components/Pagination/Pagination.styles.js +1 -2
  452. package/es/components/Pagination/Pagination.styles.js.map +1 -1
  453. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -2
  454. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js.map +1 -1
  455. package/es/components/Panel/ui/PanelHeader/PanelHeader.js +1 -2
  456. package/es/components/Panel/ui/PanelHeader/PanelHeader.js.map +1 -1
  457. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -2
  458. package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
  459. package/es/components/Popover/Popover.js +1 -1
  460. package/es/components/Popup/Popup.js +2 -2
  461. package/es/components/Popup/PopupContext.js +1 -1
  462. package/es/components/Range/Range.styles.js +0 -1
  463. package/es/components/Range/Range.styles.js.map +1 -1
  464. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +4 -5
  465. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  466. package/es/components/Select/Select.js +11 -12
  467. package/es/components/Select/Select.js.map +1 -1
  468. package/es/components/Select/Select.styles.js +2 -5
  469. package/es/components/Select/Select.styles.js.map +1 -1
  470. package/es/components/Select/hooks/usePathMaps.js +0 -2
  471. package/es/components/Select/hooks/usePathMaps.js.map +1 -1
  472. package/es/components/Select/ui/Inner/Inner.js +1 -2
  473. package/es/components/Select/ui/Inner/Inner.js.map +1 -1
  474. package/es/components/Select/ui/Inner/ui/Item/Item.js +4 -5
  475. package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
  476. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +0 -1
  477. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  478. package/es/components/Select/ui/Target/ui/Button/Button.js +1 -1
  479. package/es/components/Select/ui/Target/ui/Button/Button.styles.js +1 -3
  480. package/es/components/Select/ui/Target/ui/Button/Button.styles.js.map +1 -1
  481. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +2 -2
  482. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js +1 -4
  483. package/es/components/Select/ui/Target/ui/Textfield/Textfield.styles.js.map +1 -1
  484. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js +1 -2
  485. package/es/components/Select/ui/Target/ui/Textfield/ui/Chip/Chip.styles.js.map +1 -1
  486. package/es/components/Select/utils/getButtonLabel.js +0 -2
  487. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  488. package/es/components/Sheet/Sheet.js +3 -3
  489. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js +2 -4
  490. package/es/components/Skeleton/LineSkeleton/LineSkeleton.js.map +1 -1
  491. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js +2 -4
  492. package/es/components/Skeleton/RectSkeleton/RectSkeleton.js.map +1 -1
  493. package/es/components/Slider/Slider.css +13 -15
  494. package/es/components/Slider/Slider.js +2 -18
  495. package/es/components/Slider/Slider.js.map +1 -1
  496. package/es/components/Slider/Slider.tokens.js +17 -23
  497. package/es/components/Slider/Slider.tokens.js.map +1 -1
  498. package/es/components/Slider/components/Double/Double.css +8 -8
  499. package/es/components/Slider/components/Double/Double.js +20 -56
  500. package/es/components/Slider/components/Double/Double.js.map +1 -1
  501. package/es/components/Slider/components/Double/Double.styles.js +0 -1
  502. package/es/components/Slider/components/Double/Double.styles.js.map +1 -1
  503. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js +0 -3
  504. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.js.map +1 -1
  505. package/es/components/Slider/components/Single/Single.css +14 -14
  506. package/es/components/Slider/components/Single/Single.js +35 -67
  507. package/es/components/Slider/components/Single/Single.js.map +1 -1
  508. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  509. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  510. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  511. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  512. package/es/components/Slider/components/SliderBase/SliderBase.js +13 -32
  513. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  514. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  515. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  516. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  517. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  518. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  519. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  520. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  521. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  522. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  523. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  524. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  525. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  526. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  527. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  528. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  529. package/es/components/Slider/utils/index.js +10 -28
  530. package/es/components/Slider/utils/index.js.map +1 -1
  531. package/es/components/Slider/variations/_view/base.js +1 -1
  532. package/es/components/Slider/variations/_view/base.js.map +1 -1
  533. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  534. package/es/components/Steps/Steps.js +1 -1
  535. package/es/components/Steps/ui/StepItem/StepItem.styles.js +0 -1
  536. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  537. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js +2 -3
  538. package/es/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.js.map +1 -1
  539. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js +2 -3
  540. package/es/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.js.map +1 -1
  541. package/es/components/TextArea/TextArea.js +2 -2
  542. package/es/components/TextArea/TextArea.styles.js +2 -3
  543. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  544. package/es/components/TextArea/ui/Hint/Hint.js +1 -2
  545. package/es/components/TextArea/ui/Hint/Hint.js.map +1 -1
  546. package/es/components/TextField/TextField.js +3 -3
  547. package/es/components/TextField/TextField.styles.js +1 -2
  548. package/es/components/TextField/TextField.styles.js.map +1 -1
  549. package/es/components/TextField/ui/Hint/Hint.js +1 -2
  550. package/es/components/TextField/ui/Hint/Hint.js.map +1 -1
  551. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -2
  552. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  553. package/es/components/Toast/Toast.styles.js +1 -1
  554. package/es/components/Toast/ToastController.js +1 -1
  555. package/es/components/Toast/utils.js +1 -2
  556. package/es/components/Toast/utils.js.map +1 -1
  557. package/es/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.js +1 -1
  558. package/es/components/Tooltip/Tooltip.js +2 -3
  559. package/es/components/Tooltip/Tooltip.js.map +1 -1
  560. package/es/components/ViewContainer/ViewContainer.js +33 -0
  561. package/es/components/ViewContainer/ViewContainer.js.map +1 -0
  562. package/es/components/ViewContainer/ViewContainer_yiqfcb.css +1 -0
  563. package/es/components/ViewContainer/_view/base.js +5 -0
  564. package/es/components/ViewContainer/_view/base.js.map +1 -0
  565. package/es/components/ViewContainer/_view/base_x642ct.css +1 -0
  566. package/es/engines/index.js +0 -2
  567. package/es/engines/index.js.map +1 -1
  568. package/es/hooks/useIsomorphicLayoutEffect.js +0 -1
  569. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  570. package/es/index.css +15 -15
  571. package/es/index.js +22 -24
  572. package/es/index.js.map +1 -1
  573. package/es/utils/index.js +0 -3
  574. package/es/utils/index.js.map +1 -1
  575. package/package.json +6 -2
  576. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  577. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  578. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  579. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  580. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  581. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  582. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  583. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  584. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  585. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  586. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  587. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  588. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  589. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  590. package/styled-components/cjs/components/ViewContainer/ViewContainer.js +40 -0
  591. package/styled-components/cjs/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  592. package/styled-components/cjs/components/ViewContainer/_view/base.js +8 -0
  593. package/styled-components/cjs/components/ViewContainer/_view/tokens.json +1 -0
  594. package/styled-components/cjs/components/ViewContainer/index.js +18 -0
  595. package/styled-components/cjs/examples/_helpers.js +3 -14
  596. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  597. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  598. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +16 -0
  599. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +11 -0
  600. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  601. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  602. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  603. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +16 -0
  604. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.js +11 -0
  605. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  606. package/styled-components/cjs/index.js +11 -0
  607. package/styled-components/es/components/Slider/Slider.js +2 -11
  608. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  609. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  610. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  611. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  612. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  613. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  614. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  615. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  616. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  617. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  618. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  619. package/styled-components/es/components/Slider/utils/index.js +10 -28
  620. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  621. package/styled-components/es/components/ViewContainer/ViewContainer.js +31 -0
  622. package/styled-components/es/components/ViewContainer/ViewContainer.template-doc.mdx +82 -0
  623. package/styled-components/es/components/ViewContainer/_view/base.js +2 -0
  624. package/styled-components/es/components/ViewContainer/_view/tokens.json +1 -0
  625. package/styled-components/es/components/ViewContainer/index.js +1 -0
  626. package/styled-components/es/examples/_helpers.js +3 -14
  627. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  628. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -90
  629. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.js +10 -0
  630. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.js +5 -0
  631. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  632. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  633. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -90
  634. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.config.js +10 -0
  635. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.js +5 -0
  636. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +65 -0
  637. package/styled-components/es/index.js +2 -1
  638. package/styled-components/package.json +2 -1
  639. package/types/components/Slider/Slider.d.ts.map +1 -1
  640. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  641. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  642. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  643. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  644. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  645. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  646. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  647. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  648. package/types/components/Slider/components/Single/Single.types.d.ts +7 -80
  649. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  650. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  651. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  652. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  653. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  654. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  655. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  656. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  657. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  658. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  659. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  660. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  661. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  662. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  663. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  664. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  665. package/types/components/Slider/utils/index.d.ts +8 -26
  666. package/types/components/Slider/utils/index.d.ts.map +1 -1
  667. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  668. package/types/components/ViewContainer/ViewContainer.d.ts +26 -0
  669. package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  670. package/types/components/ViewContainer/_view/base.d.ts +2 -0
  671. package/types/components/ViewContainer/_view/base.d.ts.map +1 -0
  672. package/types/components/ViewContainer/index.d.ts +2 -0
  673. package/types/components/ViewContainer/index.d.ts.map +1 -0
  674. package/types/examples/_helpers.d.ts.map +1 -1
  675. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  676. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -84
  677. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  678. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  679. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  680. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts +8 -0
  681. package/types/examples/plasma_b2c/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  682. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  683. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -84
  684. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  685. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts +9 -0
  686. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.config.d.ts.map +1 -0
  687. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts +8 -0
  688. package/types/examples/plasma_web/components/ViewContainer/ViewContainer.d.ts.map +1 -0
  689. package/types/index.d.ts +1 -0
  690. package/types/index.d.ts.map +1 -1
  691. package/types/utils/index.d.ts +1 -1
  692. package/types/utils/index.d.ts.map +1 -1
  693. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  694. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  695. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  696. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  697. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  698. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  699. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  700. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  701. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  702. package/emotion/cjs/examples/themes/declaration.d.ts +0 -4
  703. package/emotion/cjs/examples/themes/index.js +0 -15
  704. package/emotion/cjs/examples/themes/plasma_b2c.module.css +0 -984
  705. package/emotion/cjs/examples/themes/plasma_web.module.css +0 -984
  706. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  707. package/emotion/es/examples/themes/declaration.d.ts +0 -4
  708. package/emotion/es/examples/themes/index.js +0 -7
  709. package/emotion/es/examples/themes/plasma_b2c.module.css +0 -984
  710. package/emotion/es/examples/themes/plasma_web.module.css +0 -984
  711. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  712. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  713. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  714. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  715. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  716. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  717. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  718. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  719. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  720. package/styled-components/cjs/examples/themes/declaration.d.ts +0 -4
  721. package/styled-components/cjs/examples/themes/index.js +0 -15
  722. package/styled-components/cjs/examples/themes/plasma_b2c.module.css +0 -984
  723. package/styled-components/cjs/examples/themes/plasma_web.module.css +0 -984
  724. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  725. package/styled-components/es/examples/themes/declaration.d.ts +0 -4
  726. package/styled-components/es/examples/themes/index.js +0 -7
  727. package/styled-components/es/examples/themes/plasma_b2c.module.css +0 -984
  728. package/styled-components/es/examples/themes/plasma_web.module.css +0 -984
  729. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  730. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
  731. package/types/examples/themes/index.d.ts +0 -6
  732. package/types/examples/themes/index.d.ts.map +0 -1
@@ -7,12 +7,6 @@ exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  labelPlacementOuter: 'slider-label-placement-outer',
9
9
  labelPlacementInner: 'slider-label-placement-inner',
10
- labelPlacementBottom: 'slider-label-placement-bottom',
11
- labelAlignLeft: 'slider-label-align-left',
12
- labelAlignCenter: 'slider-label-align-center',
13
- labelAlignRight: 'slider-label-align-right',
14
- labelAlignNone: 'slider-label-align-none',
15
- labelContentReversed: 'slider-label-content-reversed',
16
10
  rangeValuesPlacementOuter: 'slider-range-values-placement-outer',
17
11
  rangeValuesPlacementInner: 'slider-range-values-placement-inner',
18
12
  maxRangeValue: 'slider-max-range-value',
@@ -21,17 +15,13 @@ var classes = exports.classes = {
21
15
  textFieldActive: 'slider-text-field-active',
22
16
  firstTextField: 'slider-first-text-field',
23
17
  secondTextField: 'slider-second-text-field',
24
- activeRangeValue: 'slider-active-range-value',
25
- verticalOrientation: 'slider-vertical-orientation',
26
- valuePlacementLeft: 'slider-value-placement-left',
27
- reversed: 'slider-reversed'
18
+ activeRangeValue: 'slider-active-range-value'
28
19
  };
29
20
  var tokens = exports.tokens = {
30
- size: '--plasma-slider-size',
21
+ height: '--plasma-slider-height',
31
22
  labelWrapperGap: '--plasma-slider-label-wrapper-gap',
32
23
  labelWrapperMarginBottom: '--plasma-slider-label-wrapper-margin-bottom',
33
24
  labelWrapperMarginRight: '--plasma-slider-label-wrapper-margin-right',
34
- labelWrapperVerticalMargin: '--plasma-slider-label-wrapper-vertical-margin',
35
25
  labelColor: '--plasma-slider-label-color',
36
26
  labelFontFamily: '--plasma-slider-label-font-family',
37
27
  labelFontSize: '--plasma-slider-label-font-size',
@@ -39,27 +29,31 @@ var tokens = exports.tokens = {
39
29
  labelFontWeight: '--plasma-slider-label-font-weight',
40
30
  labelLetterSpacing: '--plasma-slider-label-letter-spacing',
41
31
  labelLineHeight: '--plasma-slider-label-line-height',
32
+ rangeMinValueMargin: '--plasma-slider-range-min-value-margin',
33
+ rangeMaxValueMargin: '--plasma-slider-range-max-value-margin',
42
34
  rangeValueBottomOffset: '--plasma-slider-range-value-bottom-offset',
43
- rangeValueHorizontalMargin: '--plasma-slider-range-value-horizontal-margin',
44
- rangeValueHorizontalOffset: '--plasma-slider-range-value-horizontal-offset',
45
- rangeValueVerticalMargin: '--plasma-slider-range-value-vertical-margin',
46
35
  rangeValueColor: '--plasma-slider-range-value-color',
47
- valueFontFamily: '--plasma-slider-value-font-family',
48
- valueFontSize: '--plasma-slider-value-font-size',
49
- valueFontStyle: '--plasma-slider-value-font-style',
50
- valueFontWeight: '--plasma-slider-value-font-weight',
51
- valueLetterSpacing: '--plasma-slider-value-letter-spacing',
52
- valueLineHeight: '--plasma-slider-value-line-height',
36
+ rangeValueFontFamily: '--plasma-slider-range-value-font-family',
37
+ rangeValueFontSize: '--plasma-slider-range-value-font-size',
38
+ rangeValueFontStyle: '--plasma-slider-range-value-font-style',
39
+ rangeValueFontWeight: '--plasma-slider-range-value-font-weight',
40
+ rangeValueLetterSpacing: '--plasma-slider-range-value-letter-spacing',
41
+ rangeValueLineHeight: '--plasma-slider-range-value-line-height',
53
42
  doubleWrapperGap: '--plasma-slider-double-wrapper-gap',
54
43
  thumbSize: '--plasma-slider-thumb-size',
55
- thumbSizeLarge: '--plasma-slider-thumb-size-large',
56
44
  thumbBorder: '--plasma-slider-thumb-border',
57
45
  thumbBorderColor: '--plasma-slider-thumb-border-color',
58
46
  thumbBackgroundColor: '--plasma-slider-thumb-background-color',
59
47
  thumbFocusBorderColor: '--plasma-slider-thumb-focus-border-color',
60
48
  currentValueTopOffset: '--plasma-slider-current-value-top-offset',
49
+ currentValueFontFamily: '--plasma-slider-current-value-font-family',
50
+ currentValueFontSize: '--plasma-slider-current-value-font-size',
51
+ currentValueFontStyle: '--plasma-slider-current-value-font-style',
52
+ currentValueFontWeight: '--plasma-slider-current-value-font-weight',
53
+ currentValueLetterSpacing: '--plasma-slider-current-value-letter-spacing',
54
+ currentValueLineHeight: '--plasma-slider-current-value-line-height',
61
55
  railBackgroundColor: '--plasma-slider-rail-background-color',
62
- railThickness: '--plasma-slider-rail-thickness',
56
+ railHeight: '--plasma-slider-rail-height',
63
57
  railBorderRadius: '--plasma-slider-rail-border-radius',
64
58
  railIndent: '--plasma-slider-rail-indent',
65
59
  fillColor: '--plasma-slider-fill-color',
@@ -13,7 +13,7 @@ var _utils2 = /*#__PURE__*/require("../../utils");
13
13
  var _Slider = /*#__PURE__*/require("../../Slider.tokens");
14
14
  var _SliderBase2 = /*#__PURE__*/require("../SliderBase/SliderBase.styles");
15
15
  var _Double = /*#__PURE__*/require("./Double.styles");
16
- var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "pointerSize", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize", "name"];
16
+ var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize", "name"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
19
  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); }
@@ -46,8 +46,6 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
46
46
  labelContentLeft = _ref.labelContentLeft,
47
47
  _ref$size = _ref.size,
48
48
  size = _ref$size === void 0 ? 'm' : _ref$size,
49
- _ref$pointerSize = _ref.pointerSize,
50
- pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
51
49
  onChangeCommitted = _ref.onChangeCommitted,
52
50
  onChangeTextField = _ref.onChangeTextField,
53
51
  onBlurTextField = _ref.onBlurTextField,
@@ -74,30 +72,20 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
74
72
  setState = _useState2[1];
75
73
  var _useState3 = (0, _react.useState)(false),
76
74
  _useState4 = _slicedToArray(_useState3, 2),
77
- firstInputHovered = _useState4[0],
78
- setFirstInputHovered = _useState4[1];
75
+ firstInputActive = _useState4[0],
76
+ setFirstInputActive = _useState4[1];
79
77
  var _useState5 = (0, _react.useState)(false),
80
78
  _useState6 = _slicedToArray(_useState5, 2),
81
- firstInputFocused = _useState6[0],
82
- setFirstInputFocused = _useState6[1];
83
- var _useState7 = (0, _react.useState)(false),
79
+ secondInputActive = _useState6[0],
80
+ setSecondInputActive = _useState6[1];
81
+ var _useState7 = (0, _react.useState)(value[0]),
84
82
  _useState8 = _slicedToArray(_useState7, 2),
85
- secondInputHovered = _useState8[0],
86
- setSecondInputHovered = _useState8[1];
87
- var _useState9 = (0, _react.useState)(false),
83
+ firstValue = _useState8[0],
84
+ setFirstValue = _useState8[1];
85
+ var _useState9 = (0, _react.useState)(value[1]),
88
86
  _useState10 = _slicedToArray(_useState9, 2),
89
- secondInputFocused = _useState10[0],
90
- setSecondInputFocused = _useState10[1];
91
- var firstInputActive = firstInputHovered || firstInputFocused;
92
- var secondInputActive = secondInputHovered || secondInputFocused;
93
- var _useState11 = (0, _react.useState)(value[0]),
94
- _useState12 = _slicedToArray(_useState11, 2),
95
- firstValue = _useState12[0],
96
- setFirstValue = _useState12[1];
97
- var _useState13 = (0, _react.useState)(value[1]),
98
- _useState14 = _slicedToArray(_useState13, 2),
99
- secondValue = _useState14[0],
100
- setSecondValue = _useState14[1];
87
+ secondValue = _useState10[0],
88
+ setSecondValue = _useState10[1];
101
89
  var firstHandleRef = (0, _react.useRef)(null);
102
90
  var secondHandleRef = (0, _react.useRef)(null);
103
91
  var firstHandleValue = (0, _react.useRef)(value[0]);
@@ -122,16 +110,6 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
122
110
  });
123
111
  });
124
112
  }, [value, stepSize, min, max, setFirstValue, setSecondValue]);
125
- (0, _react.useEffect)(function () {
126
- var onMouseUp = function onMouseUp() {
127
- setFirstInputFocused(false);
128
- setSecondInputFocused(false);
129
- };
130
- window.addEventListener('mouseup', onMouseUp);
131
- return function () {
132
- window.removeEventListener('mouseup', onMouseUp);
133
- };
134
- }, []);
135
113
  var setStepSize = (0, _react.useCallback)(function (newStepSize) {
136
114
  setState(function (prevState) {
137
115
  return _objectSpread(_objectSpread({}, prevState), {}, {
@@ -273,20 +251,16 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
273
251
  ariaLabelLeft = _ref3[0],
274
252
  ariaLabelRight = _ref3[1];
275
253
  var currentFirstSliderValue = Math.max(state.firstValue, min);
276
- var settings = _utils2.sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
277
254
  return /*#__PURE__*/_react["default"].createElement(_Double.DoubleWrapper, null, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Double.LabelWrapper, null, labelContentLeft && /*#__PURE__*/_react["default"].createElement(_Double.LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/_react["default"].createElement(_Double.Label, null, label)), /*#__PURE__*/_react["default"].createElement(_Double.SliderWrapper, null, /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
278
255
  min: min,
279
256
  max: max,
280
- size: size,
281
257
  disabled: disabled,
282
258
  setStepSize: setStepSize,
283
259
  railFillWidth: state.railFillWidth,
284
- settings: settings,
285
- railFillXPosition: state.railFillXPosition,
286
- orientation: "horizontal"
260
+ settings: _utils2.sizeData[size],
261
+ railFillXPosition: state.railFillXPosition
287
262
  }, rest), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
288
263
  ref: firstHandleRef,
289
- size: pointerSize,
290
264
  stepSize: state.stepSize,
291
265
  multipleStepSize: multipleStepSize,
292
266
  onChangeCommitted: onFirstHandleChangeCommitted,
@@ -296,23 +270,18 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
296
270
  disabled: disabled,
297
271
  bounds: [min, state.secondValue],
298
272
  side: "left",
299
- orientation: "horizontal",
300
- position: state.xFirstHandle,
273
+ xPosition: state.xFirstHandle,
301
274
  zIndex: state.firstHandleZIndex,
302
275
  value: currentFirstSliderValue,
303
276
  ariaLabel: ariaLabelLeft,
304
- onMouseDown: function onMouseDown() {
305
- return setFirstInputFocused(true);
306
- },
307
277
  onMouseEnter: function onMouseEnter() {
308
- return setFirstInputHovered(true);
278
+ return setFirstInputActive(true);
309
279
  },
310
280
  onMouseLeave: function onMouseLeave() {
311
- return setFirstInputHovered(false);
281
+ return setFirstInputActive(false);
312
282
  }
313
283
  }), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
314
284
  ref: secondHandleRef,
315
- size: pointerSize,
316
285
  stepSize: state.stepSize,
317
286
  multipleStepSize: multipleStepSize,
318
287
  onChangeCommitted: onSecondHandleChangeCommitted,
@@ -323,19 +292,15 @@ var DoubleSlider = exports.DoubleSlider = function DoubleSlider(_ref) {
323
292
  disabled: disabled,
324
293
  bounds: [state.firstValue, max],
325
294
  side: "right",
326
- orientation: "horizontal",
327
- position: state.xSecondHandle,
295
+ xPosition: state.xSecondHandle,
328
296
  zIndex: state.secondHandleZIndex,
329
297
  value: Math.max(state.secondValue, min),
330
298
  ariaLabel: ariaLabelRight,
331
- onMouseDown: function onMouseDown() {
332
- return setSecondInputFocused(true);
333
- },
334
299
  onMouseEnter: function onMouseEnter() {
335
- return setSecondInputHovered(true);
300
+ return setSecondInputActive(true);
336
301
  },
337
302
  onMouseLeave: function onMouseLeave() {
338
- return setSecondInputHovered(false);
303
+ return setSecondInputActive(false);
339
304
  }
340
305
  })), /*#__PURE__*/_react["default"].createElement(_Double.InputsWrapper, null, /*#__PURE__*/_react["default"].createElement(_Double.StyledInput, {
341
306
  className: (0, _utils.cx)(_Slider.classes.firstTextField, firstInputActiveClass),
@@ -13,7 +13,7 @@ var _utils2 = /*#__PURE__*/require("../../../../utils");
13
13
  var _Slider = /*#__PURE__*/require("../../Slider.tokens");
14
14
  var _SliderBase2 = /*#__PURE__*/require("../SliderBase/SliderBase.styles");
15
15
  var _Single = /*#__PURE__*/require("./Single.styles");
16
- var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "labelContent", "sliderAlign", "showScale", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "scaleAlign", "multipleStepSize", "defaultValue", "size", "name", "pointerSize", "orientation", "reversed", "labelReversed"];
16
+ var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "multipleStepSize", "defaultValue", "size", "name"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
19
  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); }
@@ -41,35 +41,23 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
41
41
  ariaLabel = _ref.ariaLabel,
42
42
  label = _ref.label,
43
43
  labelContentLeft = _ref.labelContentLeft,
44
- labelContent = _ref.labelContent,
45
- _ref$sliderAlign = _ref.sliderAlign,
46
- sliderAlign = _ref$sliderAlign === void 0 ? 'left' : _ref$sliderAlign,
47
- showScale = _ref.showScale,
48
44
  showRangeValues = _ref.showRangeValues,
49
45
  showCurrentValue = _ref.showCurrentValue,
50
46
  hideMinValueDiff = _ref.hideMinValueDiff,
51
47
  hideMaxValueDiff = _ref.hideMaxValueDiff,
52
48
  _ref$labelPlacement = _ref.labelPlacement,
53
- labelPlacement = _ref$labelPlacement === void 0 ? 'top' : _ref$labelPlacement,
54
- rangeValuesPlacementOld = _ref.rangeValuesPlacement,
55
- _ref$scaleAlign = _ref.scaleAlign,
56
- scaleAlign = _ref$scaleAlign === void 0 ? 'bottom' : _ref$scaleAlign,
49
+ labelPlacement = _ref$labelPlacement === void 0 ? 'outer' : _ref$labelPlacement,
50
+ _ref$rangeValuesPlace = _ref.rangeValuesPlacement,
51
+ rangeValuesPlacement = _ref$rangeValuesPlace === void 0 ? 'outer' : _ref$rangeValuesPlace,
57
52
  _ref$multipleStepSize = _ref.multipleStepSize,
58
53
  multipleStepSize = _ref$multipleStepSize === void 0 ? 10 : _ref$multipleStepSize,
59
54
  defaultValue = _ref.defaultValue,
60
55
  _ref$size = _ref.size,
61
56
  size = _ref$size === void 0 ? 'm' : _ref$size,
62
57
  name = _ref.name,
63
- _ref$pointerSize = _ref.pointerSize,
64
- pointerSize = _ref$pointerSize === void 0 ? 'small' : _ref$pointerSize,
65
- _ref$orientation = _ref.orientation,
66
- orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
67
- reversed = _ref.reversed,
68
- labelReversed = _ref.labelReversed,
69
58
  rest = _objectWithoutProperties(_ref, _excluded);
70
- var isVertical = orientation === 'vertical';
71
59
  var _useState = (0, _react.useState)({
72
- handlePosition: 0,
60
+ xHandle: 0,
73
61
  stepSize: 0,
74
62
  railFillWidth: 0
75
63
  }),
@@ -85,28 +73,23 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
85
73
  _useState6 = _slicedToArray(_useState5, 2),
86
74
  endOffset = _useState6[0],
87
75
  setEndOffset = _useState6[1];
88
- var innerValue = (_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : min;
89
- var _useState7 = (0, _react.useState)(innerValue),
76
+ var _useState7 = (0, _react.useState)((_ref2 = value !== null && value !== void 0 ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : min),
90
77
  _useState8 = _slicedToArray(_useState7, 2),
91
78
  dragValue = _useState8[0],
92
79
  setDragValue = _useState8[1];
93
80
  var stepSize = state.stepSize;
94
- var innerShowScale = showRangeValues || showScale;
95
- var hasLabelContent = Boolean(label || labelContentLeft || labelContent) && (!isVertical || isVertical && sliderAlign !== 'none');
96
- var labelPlacementClass = !isVertical && (labelPlacement === 'outer' || labelPlacement === 'top') ? _Slider.classes.labelPlacementOuter : _Slider.classes.labelPlacementInner;
97
- var rangeValuesPlacement = rangeValuesPlacementOld === 'outer' || scaleAlign === 'bottom' ? 'outer' : 'inner';
98
- var scaleAlignClass = rangeValuesPlacement === 'outer' ? _Slider.classes.rangeValuesPlacementOuter : _Slider.classes.rangeValuesPlacementInner;
81
+ var hasLabelContent = label || labelContentLeft;
82
+ var labelPlacementClass = labelPlacement === 'outer' ? _Slider.classes.labelPlacementOuter : _Slider.classes.labelPlacementInner;
83
+ var rangeValuesPlacementClass = rangeValuesPlacement === 'outer' ? _Slider.classes.rangeValuesPlacementOuter : _Slider.classes.rangeValuesPlacementInner;
99
84
  var hideMinValueDiffClass = hideMinValueDiff && dragValue - min <= hideMinValueDiff ? _Slider.classes.hideMinValue : '';
100
85
  var hideMaxValueDiffClass = hideMaxValueDiff && max - dragValue <= hideMaxValueDiff ? _Slider.classes.hideMaxValue : '';
101
- var verticalOrientationClass = orientation === 'vertical' ? _Slider.classes.verticalOrientation : '';
102
86
  var startLabelRef = (0, _react.useRef)(null);
103
87
  var endLabelRef = (0, _react.useRef)(null);
104
88
  var activeFirstValue = dragValue === min ? _Slider.classes.activeRangeValue : undefined;
105
89
  var activeSecondValue = dragValue === max ? _Slider.classes.activeRangeValue : undefined;
106
90
  (0, _react.useEffect)(function () {
107
- var visibleValue = reversed ? max - dragValue + min : dragValue;
108
- var localValue = Math.min(Math.max(visibleValue, min), max) - min;
109
- if (!isVertical && rangeValuesPlacement === 'outer') {
91
+ var localValue = Math.min(Math.max(dragValue, min), max) - min;
92
+ if (rangeValuesPlacement === 'outer') {
110
93
  var _startLabelRef$curren, _endLabelRef$current;
111
94
  var startWidth = (_startLabelRef$curren = startLabelRef.current) === null || _startLabelRef$curren === void 0 ? void 0 : _startLabelRef$curren.offsetWidth;
112
95
  if ((0, _utils2.isNumber)(startWidth)) {
@@ -116,35 +99,30 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
116
99
  if ((0, _utils2.isNumber)(endWidth)) {
117
100
  setEndOffset(Number(endWidth));
118
101
  }
119
- } else if (isVertical && innerShowScale && sliderAlign !== 'center') {
120
- setStartOffset(12);
121
- setEndOffset(12);
122
102
  } else {
123
103
  setStartOffset(1);
124
104
  setEndOffset(1);
125
105
  }
126
106
  setState(function (prevState) {
127
107
  return _objectSpread(_objectSpread({}, prevState), {}, {
128
- handlePosition: stepSize * localValue,
108
+ xHandle: stepSize * localValue,
129
109
  railFillWidth: stepSize * localValue
130
110
  });
131
111
  });
132
- }, [dragValue, innerShowScale, labelPlacement, stepSize, rangeValuesPlacement, min, max, isVertical, reversed,
133
- // для перерасчета размеров
134
- sliderAlign, size]);
112
+ }, [dragValue, labelPlacement, stepSize, rangeValuesPlacement, min, max, setStartOffset, setEndOffset]);
135
113
  var setStepSize = (0, _react.useCallback)(function (newStepSize) {
136
114
  setState(function (prevState) {
137
115
  return _objectSpread(_objectSpread({}, prevState), {}, {
138
116
  stepSize: newStepSize
139
117
  });
140
118
  });
141
- }, []);
119
+ }, [setState]);
142
120
  var onHandleChange = function onHandleChange(handleValue, data) {
143
- var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
144
- var newHandlePosition = isVertical ? data.y : data.x;
121
+ var newHandleXPosition = data.x;
122
+ var newValue = Math.round(handleValue);
145
123
  setState(function (prevState) {
146
124
  return _objectSpread(_objectSpread({}, prevState), {}, {
147
- railFillWidth: newHandlePosition
125
+ railFillWidth: newHandleXPosition
148
126
  });
149
127
  });
150
128
  if (onChange) {
@@ -162,49 +140,41 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
162
140
  }
163
141
  setDragValue(newValue);
164
142
  };
165
- var onHandleChangeCommitted = (0, _react.useCallback)(function (handleValue, data) {
166
- var newValue = Math.round(reversed ? max - handleValue + min : handleValue);
143
+ var onHandleChangeCommitted = function onHandleChangeCommitted(handleValue, data) {
144
+ var newValue = Math.round(handleValue);
167
145
  if (onChangeCommitted) {
168
146
  onChangeCommitted(newValue);
169
147
  }
170
148
  setState(function (prevState) {
171
149
  return _objectSpread(_objectSpread({}, prevState), {}, {
172
- handlePosition: isVertical ? data.lastY : data.lastX,
173
- railFillWidth: isVertical ? data.lastY : data.lastX
150
+ xHandle: data.lastX,
151
+ railFillWidth: data.lastX
174
152
  });
175
153
  });
176
154
  setDragValue(newValue);
177
- }, [isVertical, min, max, reversed]);
178
- var labelVerticalPlacement = reversed ? 'bottom' : 'top';
179
- var valuePlacement = sliderAlign === 'right' ? 'left' : 'right';
180
- var settings = _utils.sizeData[size][pointerSize === 'large' ? 'large' : 'small'];
155
+ };
181
156
  return /*#__PURE__*/_react["default"].createElement(_Single.SingleWrapper, {
182
- className: (0, _utils2.cx)(labelPlacementClass, scaleAlignClass, verticalOrientationClass, sliderAlign === 'right' && _Slider.classes.labelAlignLeft, (sliderAlign === 'center' || sliderAlign === 'none') && _Slider.classes.labelAlignCenter, sliderAlign === 'left' && _Slider.classes.labelAlignRight, labelVerticalPlacement === 'bottom' && _Slider.classes.labelPlacementBottom, labelReversed && _Slider.classes.labelContentReversed)
183
- }, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Single.LabelWrapper, null, (labelContentLeft || labelContent) && /*#__PURE__*/_react["default"].createElement(_Single.LabelContent, null, labelContent), label && /*#__PURE__*/_react["default"].createElement(_Single.Label, null, label)), /*#__PURE__*/_react["default"].createElement(_Single.SliderBaseWrapper, {
184
- className: (0, _utils2.cx)(!isVertical && rangeValuesPlacement === 'outer' && _Slider.classes.rangeValuesPlacementOuter, !isVertical && rangeValuesPlacement !== 'outer' && _Slider.classes.rangeValuesPlacementInner, verticalOrientationClass)
185
- }, innerShowScale && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
157
+ className: labelPlacementClass
158
+ }, hasLabelContent && /*#__PURE__*/_react["default"].createElement(_Single.LabelWrapper, null, labelContentLeft && /*#__PURE__*/_react["default"].createElement(_Single.LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/_react["default"].createElement(_Single.Label, null, label)), /*#__PURE__*/_react["default"].createElement(_Single.SliderBaseWrapper, {
159
+ className: rangeValuesPlacementClass
160
+ }, showRangeValues && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
186
161
  ref: startLabelRef,
187
162
  className: (0, _utils2.cx)(hideMinValueDiffClass, activeFirstValue)
188
- }, reversed ? max : min), /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
163
+ }, min), /*#__PURE__*/_react["default"].createElement(_SliderBase.SliderBase, _extends({
189
164
  min: min,
190
165
  max: max,
191
166
  disabled: disabled,
192
- size: size,
193
- sliderAlign: sliderAlign,
194
167
  setStepSize: setStepSize,
195
168
  onChange: onHandleChangeCommitted,
196
169
  railFillWidth: state.railFillWidth,
197
- settings: settings,
170
+ settings: _utils.sizeData[size],
198
171
  labelPlacement: labelPlacement,
199
- rangeValuesPlacement: rangeValuesPlacement,
200
- orientation: orientation
172
+ rangeValuesPlacement: rangeValuesPlacement
201
173
  }, rest), /*#__PURE__*/_react["default"].createElement(_ui.Handler, {
202
- size: pointerSize,
203
- orientation: orientation,
204
174
  stepSize: state.stepSize,
205
175
  onChangeCommitted: onHandleChangeCommitted,
206
176
  onChange: onHandleChange,
207
- position: state.handlePosition,
177
+ xPosition: state.xHandle,
208
178
  min: min,
209
179
  max: max,
210
180
  startOffset: startOffset,
@@ -213,12 +183,11 @@ var SingleSlider = exports.SingleSlider = function SingleSlider(_ref) {
213
183
  disabled: disabled,
214
184
  ariaLabel: ariaLabel,
215
185
  multipleStepSize: multipleStepSize,
216
- showCurrentValue: showCurrentValue,
217
- valuePlacement: valuePlacement
218
- })), innerShowScale && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
186
+ showCurrentValue: showCurrentValue
187
+ })), showRangeValues && /*#__PURE__*/_react["default"].createElement(_Single.StyledRangeValue, {
219
188
  ref: endLabelRef,
220
189
  className: (0, _utils2.cx)(_Slider.classes.maxRangeValue, hideMaxValueDiffClass, activeSecondValue)
221
- }, reversed ? min : max)), /*#__PURE__*/_react["default"].createElement(_SliderBase2.InputHidden, _extends({
190
+ }, max)), /*#__PURE__*/_react["default"].createElement(_SliderBase2.InputHidden, _extends({
222
191
  name: name,
223
192
  type: "number",
224
193
  datatype: "slider-single",
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyledRangeValue = exports.SliderBaseWrapper = exports.SingleWrapper = exports.LabelWrapper = exports.LabelContent = exports.Label = void 0;
6
+ exports.StyledRangeValue = exports.SliderBaseWrapper = exports.SingleWrapper = exports.LabelWrapper = exports.LabelContentLeft = exports.Label = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
8
  var _Slider = /*#__PURE__*/require("../../Slider.tokens");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  var LabelWrapper = exports.LabelWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
11
11
  componentId: "plasma-new-hope__sc-1qm4elt-0"
12
12
  })(["color:var(", ");display:flex;gap:var(", ");"], _Slider.tokens.labelColor, _Slider.tokens.labelWrapperGap);
13
- var LabelContent = exports.LabelContent = /*#__PURE__*/_styledComponents["default"].div.withConfig({
13
+ var LabelContentLeft = exports.LabelContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
14
14
  componentId: "plasma-new-hope__sc-1qm4elt-1"
15
- })(["display:inline-flex;"]);
15
+ })([""]);
16
16
  var Label = exports.Label = /*#__PURE__*/_styledComponents["default"].label.withConfig({
17
17
  componentId: "plasma-new-hope__sc-1qm4elt-2"
18
18
  })(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Slider.tokens.labelFontFamily, _Slider.tokens.labelFontSize, _Slider.tokens.labelFontStyle, _Slider.tokens.labelFontWeight, _Slider.tokens.labelLetterSpacing, _Slider.tokens.labelLineHeight);
19
19
  var StyledRangeValue = exports.StyledRangeValue = /*#__PURE__*/_styledComponents["default"].span.withConfig({
20
20
  componentId: "plasma-new-hope__sc-1qm4elt-3"
21
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");transition:opacity 0.1s ease-in-out;&.", ",&.", "{opacity:0;}&.", "{color:var(", ");}"], _Slider.tokens.rangeValueColor, _Slider.tokens.valueFontFamily, _Slider.tokens.valueFontSize, _Slider.tokens.valueFontStyle, _Slider.tokens.valueFontWeight, _Slider.tokens.valueLetterSpacing, _Slider.tokens.valueLineHeight, _Slider.classes.hideMinValue, _Slider.classes.hideMaxValue, _Slider.classes.activeRangeValue, _Slider.tokens.labelColor);
21
+ })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");transition:opacity 0.1s ease-in-out;&.", ",&.", "{opacity:0;}&.", "{color:var(", ");}"], _Slider.tokens.rangeValueColor, _Slider.tokens.rangeValueFontFamily, _Slider.tokens.rangeValueFontSize, _Slider.tokens.rangeValueFontStyle, _Slider.tokens.rangeValueFontWeight, _Slider.tokens.rangeValueLetterSpacing, _Slider.tokens.rangeValueLineHeight, _Slider.classes.hideMinValue, _Slider.classes.hideMaxValue, _Slider.classes.activeRangeValue, _Slider.tokens.labelColor);
22
22
  var SliderBaseWrapper = exports.SliderBaseWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
23
23
  componentId: "plasma-new-hope__sc-1qm4elt-4"
24
- })(["position:relative;display:flex;flex:1;&.", "{", "{position:absolute;bottom:calc(var(", ") * -1.5 - var(", "));left:0;&.", "{left:unset;right:0;}}}&.", "{align-items:center;", "{margin-right:var(", ");&.", "{margin-right:0;margin-left:var(", ");}}}"], _Slider.classes.rangeValuesPlacementOuter, StyledRangeValue, _Slider.tokens.railThickness, _Slider.tokens.rangeValueBottomOffset, _Slider.classes.maxRangeValue, _Slider.classes.rangeValuesPlacementInner, StyledRangeValue, _Slider.tokens.rangeValueHorizontalMargin, _Slider.classes.maxRangeValue, _Slider.tokens.rangeValueHorizontalMargin);
24
+ })(["position:relative;display:flex;flex:1;&.", "{", "{position:absolute;bottom:var(", ");left:0;&.", "{left:unset;right:0;}}}&.", "{align-items:center;", "{margin-right:var(", ");&.", "{margin-right:0;margin-left:var(", ");}}}"], _Slider.classes.rangeValuesPlacementOuter, StyledRangeValue, _Slider.tokens.rangeValueBottomOffset, _Slider.classes.maxRangeValue, _Slider.classes.rangeValuesPlacementInner, StyledRangeValue, _Slider.tokens.rangeMinValueMargin, _Slider.classes.maxRangeValue, _Slider.tokens.rangeMaxValueMargin);
25
25
  var SingleWrapper = exports.SingleWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
26
26
  componentId: "plasma-new-hope__sc-1qm4elt-5"
27
- })(["display:flex;opacity:var(", ");&.", "{flex-direction:column;", "{margin-bottom:var(", ");}}&.", "{", "{margin-right:var(", ");}}&.", "{flex-direction:column;align-items:center;&.", "{", "{flex-direction:column-reverse;}&.", "{", "{flex-direction:column;}&.", "{", "{flex-direction:column-reverse;}}}&.", "{", "{flex-direction:column;}}}", "{align-items:center;}", "{width:var(", ");}&.", "{", "{margin-right:0;margin-bottom:var(", ");}}&.", "{align-items:flex-end;", "{flex-direction:row-reverse;}}&.", "{align-items:flex-start;}&.", "{flex-direction:column-reverse;", "{margin-top:var(", ");margin-right:0;margin-bottom:0;}}}&.", "{flex-direction:column;align-items:center;justify-content:center;", "{flex-direction:column;align-items:center;justify-content:center;}&.", "{", "{position:static;bottom:0;left:0;margin-bottom:var(", ");&.", "{left:0;right:0;bottom:0;margin-top:var(", ");margin-bottom:0;}}}&.", ",&.", "{", "{margin-right:0;margin-bottom:0;position:absolute;top:0;right:calc( var(", ") / 2 + var(", ") / 2 + var(", ") );&.", "{margin-right:0;margin-left:0;top:auto;bottom:0;}}}&.", "{", "{left:calc(var(", ") + var(", "));}}}"], _Slider.tokens.disabledOpacity, _Slider.classes.labelPlacementOuter, LabelWrapper, _Slider.tokens.labelWrapperMarginBottom, _Slider.classes.labelPlacementInner, LabelWrapper, _Slider.tokens.labelWrapperMarginRight, _Slider.classes.verticalOrientation, _Slider.classes.labelAlignCenter, LabelWrapper, _Slider.classes.labelPlacementBottom, LabelWrapper, _Slider.classes.labelContentReversed, LabelWrapper, _Slider.classes.labelContentReversed, LabelWrapper, LabelWrapper, SliderBaseWrapper, _Slider.tokens.size, _Slider.classes.labelPlacementInner, LabelWrapper, _Slider.tokens.labelWrapperVerticalMargin, _Slider.classes.labelAlignLeft, LabelWrapper, _Slider.classes.labelAlignRight, _Slider.classes.labelPlacementBottom, LabelWrapper, _Slider.tokens.labelWrapperVerticalMargin, _Slider.classes.verticalOrientation, SliderBaseWrapper, _Slider.classes.labelAlignCenter, StyledRangeValue, _Slider.tokens.rangeValueVerticalMargin, _Slider.classes.maxRangeValue, _Slider.tokens.rangeValueVerticalMargin, _Slider.classes.labelAlignLeft, _Slider.classes.labelAlignRight, StyledRangeValue, _Slider.tokens.railThickness, _Slider.tokens.size, _Slider.tokens.rangeValueHorizontalOffset, _Slider.classes.maxRangeValue, _Slider.classes.labelAlignRight, StyledRangeValue, _Slider.tokens.size, _Slider.tokens.railThickness);
27
+ })(["display:flex;opacity:var(", ");&.", "{flex-direction:column;", "{margin-bottom:var(", ");}}&.", "{", "{margin-right:var(", ");}}"], _Slider.tokens.disabledOpacity, _Slider.classes.labelPlacementOuter, LabelWrapper, _Slider.tokens.labelWrapperMarginBottom, _Slider.classes.labelPlacementInner, LabelWrapper, _Slider.tokens.labelWrapperMarginRight);
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SliderBase = void 0;
8
8
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
9
  var _hooks = /*#__PURE__*/require("../../../../hooks");
10
- var _Slider = /*#__PURE__*/require("../../Slider.tokens");
11
- var _utils = /*#__PURE__*/require("../../../../utils");
12
10
  var _SliderBase = /*#__PURE__*/require("./SliderBase.styles");
13
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -24,9 +22,6 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
24
22
  labelPlacement = _ref.labelPlacement,
25
23
  rangeValuesPlacement = _ref.rangeValuesPlacement,
26
24
  onChange = _ref.onChange,
27
- orientation = _ref.orientation,
28
- size = _ref.size,
29
- sliderAlign = _ref.sliderAlign,
30
25
  _ref$settings = _ref.settings,
31
26
  settings = _ref$settings === void 0 ? {} : _ref$settings;
32
27
  var _settings$indent = settings.indent,
@@ -35,43 +30,34 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
35
30
  fontSizeMultiplier = _settings$fontSizeMul === void 0 ? 16 : _settings$fontSizeMul;
36
31
  var ref = (0, _react.useRef)(null);
37
32
  var gap = indent * fontSizeMultiplier * 2;
38
- var isVertical = orientation === 'vertical';
39
33
  (0, _react.useEffect)(function () {
40
34
  var resizeHandler = function resizeHandler() {
41
35
  if (ref.current) {
42
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
36
+ var railSize = ref.current.offsetWidth - gap;
43
37
  var totalSteps = max - min;
44
38
  setStepSize(railSize / totalSteps);
45
39
  }
46
40
  };
47
41
  resizeHandler();
48
- }, [labelPlacement, rangeValuesPlacement, gap, isVertical,
49
- // для перерасчета размеров
50
- size, sliderAlign]);
42
+ }, [labelPlacement, rangeValuesPlacement]);
51
43
  var onHandleChange = function onHandleChange(e) {
52
44
  if (!onChange || disabled) {
53
45
  return;
54
46
  }
55
47
  var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
56
48
  x = _e$currentTarget$getB.x,
57
- width = _e$currentTarget$getB.width,
58
- y = _e$currentTarget$getB.y,
59
- height = _e$currentTarget$getB.height;
60
- var lastPos = isVertical ? e.clientY - y : e.clientX - x;
61
- var sliderWidth = isVertical ? height : width;
62
- var position = min + lastPos / (sliderWidth - gap) * (max - min);
49
+ width = _e$currentTarget$getB.width;
50
+ var lastX = e.clientX - x;
51
+ var position = min + lastX / (width - gap) * (max - min);
63
52
  var result = Math.max(min, Math.min(max, position));
64
- var data = isVertical ? {
65
- lastY: lastPos
66
- } : {
67
- lastX: lastPos
68
- };
69
- onChange(result, data);
53
+ onChange(result, {
54
+ lastX: lastX
55
+ });
70
56
  };
71
57
  (0, _hooks.useIsomorphicLayoutEffect)(function () {
72
58
  var resizeHandler = function resizeHandler() {
73
59
  if (ref.current) {
74
- var railSize = isVertical ? ref.current.offsetHeight - gap : ref.current.offsetWidth - gap;
60
+ var railSize = ref.current.offsetWidth - gap;
75
61
  var totalSteps = max - min;
76
62
  setStepSize(railSize / totalSteps);
77
63
  }
@@ -81,18 +67,13 @@ var SliderBase = exports.SliderBase = function SliderBase(_ref) {
81
67
  return function () {
82
68
  return window.removeEventListener('resize', resizeHandler);
83
69
  };
84
- }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement, isVertical]);
85
- var fillStyle = isVertical ? {
86
- top: "".concat(railFillXPosition, "px"),
87
- height: "".concat(railFillWidth, "px"),
88
- width: '100%'
89
- } : {
70
+ }, [min, max, setStepSize, gap, labelPlacement, rangeValuesPlacement]);
71
+ var fillStyle = {
90
72
  left: "".concat(railFillXPosition, "px"),
91
73
  width: "".concat(railFillWidth, "px")
92
74
  };
93
75
  return /*#__PURE__*/_react["default"].createElement(_SliderBase.Slider, {
94
- ref: ref,
95
- className: (0, _utils.cx)(orientation === 'vertical' && _Slider.classes.verticalOrientation)
76
+ ref: ref
96
77
  }, /*#__PURE__*/_react["default"].createElement(_SliderBase.RailWrap, {
97
78
  "aria-hidden": "true",
98
79
  onMouseDown: onHandleChange
@@ -8,15 +8,15 @@ var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/requir
8
8
  var _mixins = /*#__PURE__*/require("../../../../mixins");
9
9
  var _Slider = /*#__PURE__*/require("../../Slider.tokens");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var Rail = exports.Rail = /*#__PURE__*/_styledComponents["default"].div.withConfig({
12
- componentId: "plasma-new-hope__sc-ik0bjb-0"
13
- })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], _Slider.tokens.railThickness, _Slider.tokens.railBorderRadius, _Slider.tokens.railBackgroundColor);
14
11
  var Slider = exports.Slider = /*#__PURE__*/_styledComponents["default"].div.withConfig({
15
- componentId: "plasma-new-hope__sc-ik0bjb-1"
16
- })(["flex:1;position:relative;user-select:none;height:var(", ");&.", "{width:var(", ");height:auto;", "{top:0;left:50%;transform:translateX(-50%);width:var(", ");height:100%;}}"], _Slider.tokens.size, _Slider.classes.verticalOrientation, _Slider.tokens.size, Rail, _Slider.tokens.railThickness);
12
+ componentId: "plasma-new-hope__sc-ik0bjb-0"
13
+ })(["flex:1;position:relative;user-select:none;height:var(", ");"], _Slider.tokens.height);
17
14
  var RailWrap = exports.RailWrap = /*#__PURE__*/_styledComponents["default"].div.withConfig({
18
- componentId: "plasma-new-hope__sc-ik0bjb-2"
15
+ componentId: "plasma-new-hope__sc-ik0bjb-1"
19
16
  })(["height:100%;"]);
17
+ var Rail = exports.Rail = /*#__PURE__*/_styledComponents["default"].div.withConfig({
18
+ componentId: "plasma-new-hope__sc-ik0bjb-2"
19
+ })(["position:relative;top:50%;height:var(", ");border-radius:var(", ");background-color:var(", ");overflow:hidden;transform:translateY(-50%);"], _Slider.tokens.railHeight, _Slider.tokens.railBorderRadius, _Slider.tokens.railBackgroundColor);
20
20
  var Fill = exports.Fill = /*#__PURE__*/_styledComponents["default"].div.withConfig({
21
21
  componentId: "plasma-new-hope__sc-ik0bjb-3"
22
22
  })(["position:absolute;height:100%;top:0;left:0;background:var(", ");width:0;"], _Slider.tokens.fillColor);