@salutejs/plasma-new-hope 0.84.0-canary.1213.9187563305.0 → 0.84.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (440) hide show
  1. package/cjs/components/Button/Button.css +6 -9
  2. package/cjs/components/Button/Button.js +2 -16
  3. package/cjs/components/Button/Button.js.map +1 -1
  4. package/cjs/components/Button/Button.styles.js +10 -31
  5. package/cjs/components/Button/Button.styles.js.map +1 -1
  6. package/cjs/components/Button/Button.styles_uqvh6u.css +5 -0
  7. package/cjs/components/Button/Button.tokens.js +0 -5
  8. package/cjs/components/Button/Button.tokens.js.map +1 -1
  9. package/cjs/components/Button/variations/_stretching/base.js +1 -1
  10. package/cjs/components/Button/variations/_stretching/base.js.map +1 -1
  11. package/{es/components/Button/variations/_stretching/base_hy8dc.css → cjs/components/Button/variations/_stretching/base_1lx0ute.css} +1 -1
  12. package/cjs/components/ButtonGroup/ButtonGroup.css +2 -2
  13. package/cjs/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  14. package/cjs/components/ButtonGroup/ButtonGroup.tokens.js.map +1 -1
  15. package/cjs/components/ButtonGroup/variations/_orientation/base.js +1 -1
  16. package/cjs/components/ButtonGroup/variations/_orientation/base.js.map +1 -1
  17. package/{es/components/ButtonGroup/variations/_orientation/base_y7z7cs.css → cjs/components/ButtonGroup/variations/_orientation/base_p85v51.css} +1 -1
  18. package/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
  19. package/cjs/components/ButtonGroup/variations/_view/base.js.map +1 -1
  20. package/cjs/components/ButtonGroup/variations/_view/base_6k3uip.css +1 -0
  21. package/cjs/components/Combobox/hooks/useFocusController.js +1 -0
  22. package/cjs/components/Combobox/hooks/useFocusController.js.map +1 -1
  23. package/cjs/components/Drawer/Drawer.css +6 -9
  24. package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +6 -9
  25. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.css +6 -9
  26. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  27. package/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js.map +1 -1
  28. package/cjs/components/IconButton/IconButton.css +7 -10
  29. package/cjs/components/IconButton/IconButton.styles.js +1 -1
  30. package/cjs/components/IconButton/{IconButton.styles_7v8g0e.css → IconButton.styles_1hknr37.css} +1 -1
  31. package/cjs/components/Notification/Notification.css +6 -9
  32. package/cjs/components/Notification/NotificationsProvider.css +6 -9
  33. package/cjs/components/Pagination/Pagination.css +8 -11
  34. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +6 -9
  35. package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +6 -9
  36. package/cjs/components/Select/Select.css +6 -9
  37. package/cjs/components/Select/ui/SelectTarget/SelectTarget.css +6 -9
  38. package/cjs/components/Slider/Slider.css +69 -0
  39. package/cjs/components/Slider/Slider.js +48 -0
  40. package/cjs/components/Slider/Slider.js.map +1 -0
  41. package/cjs/components/Slider/Slider.tokens.js +79 -0
  42. package/cjs/components/Slider/Slider.tokens.js.map +1 -0
  43. package/cjs/components/Slider/components/Double/Double.css +62 -0
  44. package/cjs/components/Slider/components/Double/Double.js +306 -0
  45. package/cjs/components/Slider/components/Double/Double.js.map +1 -0
  46. package/cjs/components/Slider/components/Double/Double.styles.js +61 -0
  47. package/cjs/components/Slider/components/Double/Double.styles.js.map +1 -0
  48. package/cjs/components/Slider/components/Double/Double.styles_1jhda4u.css +7 -0
  49. package/cjs/components/Slider/components/Single/Single.css +16 -0
  50. package/cjs/components/Slider/components/Single/Single.js +164 -0
  51. package/cjs/components/Slider/components/Single/Single.js.map +1 -0
  52. package/cjs/components/Slider/components/Single/Single.styles.js +45 -0
  53. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -0
  54. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  55. package/cjs/components/Slider/components/SliderBase/SliderBase.css +4 -0
  56. package/cjs/components/Slider/components/SliderBase/SliderBase.js +82 -0
  57. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -0
  58. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +33 -0
  59. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -0
  60. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +4 -0
  61. package/cjs/components/Slider/ui/Handler/Handler.css +4 -0
  62. package/cjs/components/Slider/ui/Handler/Handler.js +168 -0
  63. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -0
  64. package/cjs/components/Slider/ui/Handler/Handler.styles.js +21 -0
  65. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -0
  66. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  67. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -0
  68. package/cjs/components/Slider/ui/Thumb/Thumb.js +31 -0
  69. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -0
  70. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +15 -0
  71. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -0
  72. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  73. package/cjs/components/Slider/utils/index.js +56 -0
  74. package/cjs/components/Slider/utils/index.js.map +1 -0
  75. package/cjs/components/Slider/variations/_disabled/base.js +9 -0
  76. package/cjs/components/Slider/variations/_disabled/base.js.map +1 -0
  77. package/cjs/components/Slider/variations/_disabled/base_x642ct.css +1 -0
  78. package/cjs/components/Slider/variations/_size/base.js +9 -0
  79. package/cjs/components/Slider/variations/_size/base.js.map +1 -0
  80. package/cjs/components/Slider/variations/_size/base_x642ct.css +1 -0
  81. package/cjs/components/Slider/variations/_view/base.js +9 -0
  82. package/cjs/components/Slider/variations/_view/base.js.map +1 -0
  83. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  84. package/cjs/components/TextField/TextField.js +12 -3
  85. package/cjs/components/TextField/TextField.js.map +1 -1
  86. package/cjs/components/Toast/Toast.css +6 -9
  87. package/cjs/components/Toast/ToastController.css +6 -9
  88. package/cjs/engines/common.js +4 -0
  89. package/cjs/engines/common.js.map +1 -1
  90. package/cjs/engines/index.js.map +1 -1
  91. package/cjs/hooks/useIsomorphicLayoutEffect.js +15 -0
  92. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  93. package/cjs/index.css +34 -12
  94. package/cjs/index.js +14 -0
  95. package/cjs/index.js.map +1 -1
  96. package/cjs/utils/canUseDOM.js +12 -0
  97. package/cjs/utils/canUseDOM.js.map +1 -0
  98. package/cjs/utils/index.js.map +1 -1
  99. package/es/components/Button/Button.css +6 -9
  100. package/es/components/Button/Button.js +3 -17
  101. package/es/components/Button/Button.js.map +1 -1
  102. package/es/components/Button/Button.styles.js +11 -29
  103. package/es/components/Button/Button.styles.js.map +1 -1
  104. package/es/components/Button/Button.styles_uqvh6u.css +5 -0
  105. package/es/components/Button/Button.tokens.js +0 -5
  106. package/es/components/Button/Button.tokens.js.map +1 -1
  107. package/es/components/Button/variations/_stretching/base.js +1 -1
  108. package/es/components/Button/variations/_stretching/base.js.map +1 -1
  109. package/{cjs/components/Button/variations/_stretching/base_hy8dc.css → es/components/Button/variations/_stretching/base_1lx0ute.css} +1 -1
  110. package/es/components/ButtonGroup/ButtonGroup.css +2 -2
  111. package/es/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  112. package/es/components/ButtonGroup/ButtonGroup.tokens.js.map +1 -1
  113. package/es/components/ButtonGroup/variations/_orientation/base.js +1 -1
  114. package/es/components/ButtonGroup/variations/_orientation/base.js.map +1 -1
  115. package/{cjs/components/ButtonGroup/variations/_orientation/base_y7z7cs.css → es/components/ButtonGroup/variations/_orientation/base_p85v51.css} +1 -1
  116. package/es/components/ButtonGroup/variations/_view/base.js +1 -1
  117. package/es/components/ButtonGroup/variations/_view/base.js.map +1 -1
  118. package/es/components/ButtonGroup/variations/_view/base_6k3uip.css +1 -0
  119. package/es/components/Combobox/hooks/useFocusController.js +1 -0
  120. package/es/components/Combobox/hooks/useFocusController.js.map +1 -1
  121. package/es/components/Drawer/Drawer.css +6 -9
  122. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +6 -9
  123. package/es/components/Header/ui/HeaderArrow/HeaderArrow.css +6 -9
  124. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  125. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js.map +1 -1
  126. package/es/components/IconButton/IconButton.css +7 -10
  127. package/es/components/IconButton/IconButton.styles.js +1 -1
  128. package/es/components/IconButton/{IconButton.styles_7v8g0e.css → IconButton.styles_1hknr37.css} +1 -1
  129. package/es/components/Notification/Notification.css +6 -9
  130. package/es/components/Notification/NotificationsProvider.css +6 -9
  131. package/es/components/Pagination/Pagination.css +8 -11
  132. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +6 -9
  133. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +6 -9
  134. package/es/components/Select/Select.css +6 -9
  135. package/es/components/Select/ui/SelectTarget/SelectTarget.css +6 -9
  136. package/es/components/Slider/Slider.css +69 -0
  137. package/es/components/Slider/Slider.js +43 -0
  138. package/es/components/Slider/Slider.js.map +1 -0
  139. package/es/components/Slider/Slider.tokens.js +74 -0
  140. package/es/components/Slider/Slider.tokens.js.map +1 -0
  141. package/es/components/Slider/components/Double/Double.css +62 -0
  142. package/es/components/Slider/components/Double/Double.js +302 -0
  143. package/es/components/Slider/components/Double/Double.js.map +1 -0
  144. package/es/components/Slider/components/Double/Double.styles.js +51 -0
  145. package/es/components/Slider/components/Double/Double.styles.js.map +1 -0
  146. package/es/components/Slider/components/Double/Double.styles_1jhda4u.css +7 -0
  147. package/es/components/Slider/components/Single/Single.css +16 -0
  148. package/es/components/Slider/components/Single/Single.js +160 -0
  149. package/es/components/Slider/components/Single/Single.js.map +1 -0
  150. package/es/components/Slider/components/Single/Single.styles.js +36 -0
  151. package/es/components/Slider/components/Single/Single.styles.js.map +1 -0
  152. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  153. package/es/components/Slider/components/SliderBase/SliderBase.css +4 -0
  154. package/es/components/Slider/components/SliderBase/SliderBase.js +78 -0
  155. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -0
  156. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +26 -0
  157. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -0
  158. package/es/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +4 -0
  159. package/es/components/Slider/ui/Handler/Handler.css +4 -0
  160. package/es/components/Slider/ui/Handler/Handler.js +164 -0
  161. package/es/components/Slider/ui/Handler/Handler.js.map +1 -0
  162. package/es/components/Slider/ui/Handler/Handler.styles.js +16 -0
  163. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -0
  164. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  165. package/es/components/Slider/ui/Thumb/Thumb.css +1 -0
  166. package/es/components/Slider/ui/Thumb/Thumb.js +27 -0
  167. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -0
  168. package/es/components/Slider/ui/Thumb/Thumb.styles.js +11 -0
  169. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -0
  170. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  171. package/es/components/Slider/utils/index.js +50 -0
  172. package/es/components/Slider/utils/index.js.map +1 -0
  173. package/es/components/Slider/variations/_disabled/base.js +5 -0
  174. package/es/components/Slider/variations/_disabled/base.js.map +1 -0
  175. package/es/components/Slider/variations/_disabled/base_x642ct.css +1 -0
  176. package/es/components/Slider/variations/_size/base.js +5 -0
  177. package/es/components/Slider/variations/_size/base.js.map +1 -0
  178. package/es/components/Slider/variations/_size/base_x642ct.css +1 -0
  179. package/es/components/Slider/variations/_view/base.js +5 -0
  180. package/es/components/Slider/variations/_view/base.js.map +1 -0
  181. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  182. package/es/components/TextField/TextField.js +12 -3
  183. package/es/components/TextField/TextField.js.map +1 -1
  184. package/es/components/Toast/Toast.css +6 -9
  185. package/es/components/Toast/ToastController.css +6 -9
  186. package/es/engines/common.js +4 -0
  187. package/es/engines/common.js.map +1 -1
  188. package/es/engines/index.js.map +1 -1
  189. package/es/hooks/useIsomorphicLayoutEffect.js +11 -0
  190. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  191. package/es/index.css +34 -12
  192. package/es/index.js +8 -0
  193. package/es/index.js.map +1 -1
  194. package/es/utils/canUseDOM.js +8 -0
  195. package/es/utils/canUseDOM.js.map +1 -0
  196. package/es/utils/index.js.map +1 -1
  197. package/package.json +3 -2
  198. package/styled-components/cjs/components/Button/Button.js +2 -16
  199. package/styled-components/cjs/components/Button/Button.styles.js +12 -20
  200. package/styled-components/cjs/components/Button/Button.template-doc.mdx +0 -42
  201. package/styled-components/cjs/components/Button/Button.tokens.js +0 -5
  202. package/styled-components/cjs/components/Button/variations/_stretching/base.js +1 -1
  203. package/styled-components/cjs/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  204. package/styled-components/cjs/components/ButtonGroup/variations/_orientation/base.js +1 -2
  205. package/styled-components/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
  206. package/styled-components/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  207. package/styled-components/cjs/components/Slider/Slider.js +47 -0
  208. package/styled-components/cjs/components/Slider/Slider.tokens.js +77 -0
  209. package/styled-components/cjs/components/Slider/Slider.types.js +5 -0
  210. package/styled-components/cjs/components/Slider/components/Double/Double.js +318 -0
  211. package/styled-components/cjs/components/Slider/components/Double/Double.styles.js +36 -0
  212. package/styled-components/cjs/components/Slider/components/Double/Double.types.js +5 -0
  213. package/styled-components/cjs/components/Slider/components/Single/Single.js +176 -0
  214. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +27 -0
  215. package/styled-components/cjs/components/Slider/components/Single/Single.types.js +5 -0
  216. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +83 -0
  217. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +21 -0
  218. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.types.js +5 -0
  219. package/styled-components/cjs/components/Slider/components/index.js +27 -0
  220. package/styled-components/cjs/components/Slider/index.js +32 -0
  221. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +177 -0
  222. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -0
  223. package/styled-components/cjs/components/Slider/ui/Handler/Handler.types.js +5 -0
  224. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +32 -0
  225. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +18 -0
  226. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.types.js +5 -0
  227. package/styled-components/cjs/components/Slider/ui/index.js +63 -0
  228. package/styled-components/cjs/components/Slider/utils/index.js +55 -0
  229. package/styled-components/cjs/components/Slider/variations/_disabled/base.js +8 -0
  230. package/styled-components/cjs/components/Slider/variations/_disabled/tokens.json +4 -0
  231. package/styled-components/cjs/components/Slider/variations/_size/base.js +8 -0
  232. package/styled-components/cjs/components/Slider/variations/_size/tokens.json +0 -0
  233. package/styled-components/cjs/components/Slider/variations/_view/base.js +8 -0
  234. package/styled-components/cjs/components/Slider/variations/_view/tokens.json +0 -0
  235. package/styled-components/cjs/components/TextField/TextField.js +12 -3
  236. package/styled-components/cjs/engines/common.js +4 -0
  237. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  238. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +21 -67
  239. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  240. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  241. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +29 -0
  242. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.js +16 -0
  243. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +169 -0
  244. package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +19 -19
  245. package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +28 -90
  246. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  247. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  248. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +29 -0
  249. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.js +16 -0
  250. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +168 -0
  251. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +19 -19
  252. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +28 -90
  253. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  254. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  255. package/styled-components/cjs/hooks/index.js +8 -1
  256. package/styled-components/cjs/hooks/useIsomorphicLayoutEffect.js +12 -0
  257. package/styled-components/cjs/index.js +11 -0
  258. package/styled-components/cjs/utils/canUseDOM.js +11 -0
  259. package/styled-components/cjs/utils/index.js +7 -0
  260. package/styled-components/es/components/Button/Button.js +3 -17
  261. package/styled-components/es/components/Button/Button.styles.js +11 -19
  262. package/styled-components/es/components/Button/Button.template-doc.mdx +0 -42
  263. package/styled-components/es/components/Button/Button.tokens.js +0 -5
  264. package/styled-components/es/components/Button/variations/_stretching/base.js +1 -1
  265. package/styled-components/es/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  266. package/styled-components/es/components/ButtonGroup/variations/_orientation/base.js +2 -3
  267. package/styled-components/es/components/ButtonGroup/variations/_view/base.js +1 -1
  268. package/styled-components/es/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  269. package/styled-components/es/components/Slider/Slider.js +38 -0
  270. package/styled-components/es/components/Slider/Slider.tokens.js +71 -0
  271. package/styled-components/es/components/Slider/Slider.types.js +1 -0
  272. package/styled-components/es/components/Slider/components/Double/Double.js +310 -0
  273. package/styled-components/es/components/Slider/components/Double/Double.styles.js +29 -0
  274. package/styled-components/es/components/Slider/components/Double/Double.types.js +1 -0
  275. package/styled-components/es/components/Slider/components/Single/Single.js +168 -0
  276. package/styled-components/es/components/Slider/components/Single/Single.styles.js +20 -0
  277. package/styled-components/es/components/Slider/components/Single/Single.types.js +1 -0
  278. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +74 -0
  279. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +14 -0
  280. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.types.js +1 -0
  281. package/styled-components/es/components/Slider/components/index.js +3 -0
  282. package/styled-components/es/components/Slider/index.js +3 -0
  283. package/styled-components/es/components/Slider/ui/Handler/Handler.js +168 -0
  284. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -0
  285. package/styled-components/es/components/Slider/ui/Handler/Handler.types.js +1 -0
  286. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +25 -0
  287. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +11 -0
  288. package/styled-components/es/components/Slider/ui/Thumb/Thumb.types.js +1 -0
  289. package/styled-components/es/components/Slider/ui/index.js +5 -0
  290. package/styled-components/es/components/Slider/utils/index.js +47 -0
  291. package/styled-components/es/components/Slider/variations/_disabled/base.js +2 -0
  292. package/styled-components/es/components/Slider/variations/_disabled/tokens.json +4 -0
  293. package/styled-components/es/components/Slider/variations/_size/base.js +2 -0
  294. package/styled-components/es/components/Slider/variations/_size/tokens.json +0 -0
  295. package/styled-components/es/components/Slider/variations/_view/base.js +2 -0
  296. package/styled-components/es/components/Slider/variations/_view/tokens.json +0 -0
  297. package/styled-components/es/components/TextField/TextField.js +12 -3
  298. package/styled-components/es/engines/common.js +4 -0
  299. package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  300. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +21 -67
  301. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  302. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  303. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +23 -0
  304. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.js +10 -0
  305. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +169 -0
  306. package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +19 -19
  307. package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +28 -90
  308. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  309. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  310. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +23 -0
  311. package/styled-components/es/examples/plasma_web/components/Slider/Slider.js +10 -0
  312. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +168 -0
  313. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +19 -19
  314. package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +28 -90
  315. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  316. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  317. package/styled-components/es/hooks/index.js +2 -1
  318. package/styled-components/es/hooks/useIsomorphicLayoutEffect.js +7 -0
  319. package/styled-components/es/index.js +2 -1
  320. package/styled-components/es/utils/canUseDOM.js +5 -0
  321. package/styled-components/es/utils/index.js +1 -0
  322. package/types/components/Button/Button.d.ts.map +1 -1
  323. package/types/components/Button/Button.styles.d.ts +1 -5
  324. package/types/components/Button/Button.styles.d.ts.map +1 -1
  325. package/types/components/Button/Button.tokens.d.ts +0 -5
  326. package/types/components/Button/Button.tokens.d.ts.map +1 -1
  327. package/types/components/Button/Button.types.d.ts +4 -16
  328. package/types/components/Button/Button.types.d.ts.map +1 -1
  329. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts +0 -1
  330. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts.map +1 -1
  331. package/types/components/ButtonGroup/variations/_orientation/base.d.ts.map +1 -1
  332. package/types/components/ButtonGroup/variations/_view/base.d.ts.map +1 -1
  333. package/types/components/Header/ui/HeaderArrow/HeaderArrow.d.ts.map +1 -1
  334. package/types/components/Notification/Notification.styles.d.ts +1 -43
  335. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  336. package/types/components/Pagination/Pagination.styles.d.ts +2 -86
  337. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  338. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +1 -43
  339. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts.map +1 -1
  340. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts +1 -43
  341. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +1 -1
  342. package/types/components/Slider/Slider.d.ts +27 -0
  343. package/types/components/Slider/Slider.d.ts.map +1 -0
  344. package/types/components/Slider/Slider.tokens.d.ts +72 -0
  345. package/types/components/Slider/Slider.tokens.d.ts.map +1 -0
  346. package/types/components/Slider/Slider.types.d.ts +3 -0
  347. package/types/components/Slider/Slider.types.d.ts.map +1 -0
  348. package/types/components/Slider/components/Double/Double.d.ts +4 -0
  349. package/types/components/Slider/components/Double/Double.d.ts.map +1 -0
  350. package/types/components/Slider/components/Double/Double.styles.d.ts +43 -0
  351. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -0
  352. package/types/components/Slider/components/Double/Double.types.d.ts +65 -0
  353. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -0
  354. package/types/components/Slider/components/Single/Single.d.ts +4 -0
  355. package/types/components/Slider/components/Single/Single.d.ts.map +1 -0
  356. package/types/components/Slider/components/Single/Single.styles.d.ts +8 -0
  357. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -0
  358. package/types/components/Slider/components/Single/Single.types.d.ts +55 -0
  359. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -0
  360. package/types/components/Slider/components/SliderBase/SliderBase.d.ts +4 -0
  361. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -0
  362. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +6 -0
  363. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -0
  364. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +45 -0
  365. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -0
  366. package/types/components/Slider/components/index.d.ts +6 -0
  367. package/types/components/Slider/components/index.d.ts.map +1 -0
  368. package/types/components/Slider/index.d.ts +6 -0
  369. package/types/components/Slider/index.d.ts.map +1 -0
  370. package/types/components/Slider/ui/Handler/Handler.d.ts +9 -0
  371. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -0
  372. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +4 -0
  373. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -0
  374. package/types/components/Slider/ui/Handler/Handler.types.d.ts +24 -0
  375. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -0
  376. package/types/components/Slider/ui/Thumb/Thumb.d.ts +4 -0
  377. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -0
  378. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts +5 -0
  379. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -0
  380. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +12 -0
  381. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -0
  382. package/types/components/Slider/ui/index.d.ts +6 -0
  383. package/types/components/Slider/ui/index.d.ts.map +1 -0
  384. package/types/components/Slider/utils/index.d.ts +33 -0
  385. package/types/components/Slider/utils/index.d.ts.map +1 -0
  386. package/types/components/Slider/variations/_disabled/base.d.ts +2 -0
  387. package/types/components/Slider/variations/_disabled/base.d.ts.map +1 -0
  388. package/types/components/Slider/variations/_size/base.d.ts +2 -0
  389. package/types/components/Slider/variations/_size/base.d.ts.map +1 -0
  390. package/types/components/Slider/variations/_view/base.d.ts +2 -0
  391. package/types/components/Slider/variations/_view/base.d.ts.map +1 -0
  392. package/types/components/TextField/TextField.d.ts.map +1 -1
  393. package/types/components/Toast/Toast.styles.d.ts +1 -43
  394. package/types/components/Toast/Toast.styles.d.ts.map +1 -1
  395. package/types/components/Toast/utils.d.ts +1 -43
  396. package/types/components/Toast/utils.d.ts.map +1 -1
  397. package/types/engines/common.d.ts +3 -3
  398. package/types/engines/common.d.ts.map +1 -1
  399. package/types/engines/index.d.ts +1 -1
  400. package/types/engines/index.d.ts.map +1 -1
  401. package/types/engines/types.d.ts +4 -0
  402. package/types/engines/types.d.ts.map +1 -1
  403. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts.map +1 -1
  404. package/types/examples/plasma_b2c/components/Button/Button.d.ts +1 -43
  405. package/types/examples/plasma_b2c/components/Button/Button.d.ts.map +1 -1
  406. package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  407. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +1 -43
  408. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -1
  409. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts +22 -0
  410. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -0
  411. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +21 -0
  412. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -0
  413. package/types/examples/plasma_web/components/Button/Button.config.d.ts.map +1 -1
  414. package/types/examples/plasma_web/components/Button/Button.d.ts +1 -43
  415. package/types/examples/plasma_web/components/Button/Button.d.ts.map +1 -1
  416. package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  417. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +1 -43
  418. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -1
  419. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts +22 -0
  420. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -0
  421. package/types/examples/plasma_web/components/Slider/Slider.d.ts +21 -0
  422. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -0
  423. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -1
  424. package/types/examples/sds_engineer/components/Button/Button.d.ts +1 -43
  425. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -1
  426. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  427. package/types/hooks/index.d.ts +1 -0
  428. package/types/hooks/index.d.ts.map +1 -1
  429. package/types/hooks/useIsomorphicLayoutEffect.d.ts +6 -0
  430. package/types/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  431. package/types/index.d.ts +1 -0
  432. package/types/index.d.ts.map +1 -1
  433. package/types/utils/canUseDOM.d.ts +6 -0
  434. package/types/utils/canUseDOM.d.ts.map +1 -0
  435. package/types/utils/index.d.ts +1 -0
  436. package/types/utils/index.d.ts.map +1 -1
  437. package/cjs/components/Button/Button.styles_1oz1dew.css +0 -8
  438. package/cjs/components/ButtonGroup/variations/_view/base_1n9gznw.css +0 -1
  439. package/es/components/Button/Button.styles_1oz1dew.css +0 -8
  440. package/es/components/ButtonGroup/variations/_view/base_1n9gznw.css +0 -1
@@ -0,0 +1,302 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { useState, useRef, useEffect, useCallback } from 'react';
3
+ import { SliderBase } from '../SliderBase/SliderBase.js';
4
+ import { Handler } from '../../ui/Handler/Handler.js';
5
+ import '@linaria/react';
6
+ import { sizeData } from '../../utils/index.js';
7
+ import { cx } from '../../../../utils/index.js';
8
+ import { classes } from '../../Slider.tokens.js';
9
+ import { DoubleWrapper, LabelWrapper, LabelContentLeft, Label, SliderWrapper, InputsWrapper, StyledInput } from './Double.styles.js';
10
+ import { isNumber } from '../../../../utils/isNumber.js';
11
+
12
+ var _excluded = ["min", "max", "value", "disabled", "label", "labelContentLeft", "size", "onChangeCommitted", "onChangeTextField", "onBlurTextField", "onKeyDownTextField", "onChange", "ariaLabel", "multipleStepSize"];
13
+ function getXCenterHandle(handle) {
14
+ var _handle$parentElement;
15
+ var containerX = ((_handle$parentElement = handle.parentElement) === null || _handle$parentElement === void 0 || (_handle$parentElement = _handle$parentElement.getBoundingClientRect()) === null || _handle$parentElement === void 0 ? void 0 : _handle$parentElement.x) || 0;
16
+ var handleRect = handle.getBoundingClientRect();
17
+ var handlePosition = handleRect.x;
18
+ return handlePosition - containerX;
19
+ }
20
+ var DoubleSlider = function DoubleSlider(_ref) {
21
+ var min = _ref.min,
22
+ max = _ref.max,
23
+ value = _ref.value,
24
+ disabled = _ref.disabled,
25
+ label = _ref.label,
26
+ labelContentLeft = _ref.labelContentLeft,
27
+ _ref$size = _ref.size,
28
+ size = _ref$size === void 0 ? 'm' : _ref$size,
29
+ onChangeCommitted = _ref.onChangeCommitted,
30
+ onChangeTextField = _ref.onChangeTextField,
31
+ onBlurTextField = _ref.onBlurTextField,
32
+ onKeyDownTextField = _ref.onKeyDownTextField,
33
+ onChange = _ref.onChange,
34
+ ariaLabel = _ref.ariaLabel,
35
+ _ref$multipleStepSize = _ref.multipleStepSize,
36
+ multipleStepSize = _ref$multipleStepSize === void 0 ? 10 : _ref$multipleStepSize,
37
+ rest = _objectWithoutProperties(_ref, _excluded);
38
+ var _useState = useState({
39
+ stepSize: 0,
40
+ railFillWidth: 0,
41
+ railFillXPosition: 0,
42
+ xFirstHandle: 0,
43
+ xSecondHandle: 0,
44
+ firstHandleZIndex: 100,
45
+ secondHandleZIndex: 101,
46
+ firstValue: value[0],
47
+ secondValue: value[1]
48
+ }),
49
+ _useState2 = _slicedToArray(_useState, 2),
50
+ state = _useState2[0],
51
+ setState = _useState2[1];
52
+ var _useState3 = useState(false),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ firstInputActive = _useState4[0],
55
+ setFirstInputActive = _useState4[1];
56
+ var _useState5 = useState(false),
57
+ _useState6 = _slicedToArray(_useState5, 2),
58
+ secondInputActive = _useState6[0],
59
+ setSecondInputActive = _useState6[1];
60
+ var _useState7 = useState(value[0]),
61
+ _useState8 = _slicedToArray(_useState7, 2),
62
+ firstValue = _useState8[0],
63
+ setFirstValue = _useState8[1];
64
+ var _useState9 = useState(value[1]),
65
+ _useState10 = _slicedToArray(_useState9, 2),
66
+ secondValue = _useState10[0],
67
+ setSecondValue = _useState10[1];
68
+ var firstHandleRef = useRef(null);
69
+ var secondHandleRef = useRef(null);
70
+ var firstHandleValue = useRef(value[0]);
71
+ var secondHandleValue = useRef(value[1]);
72
+ var stepSize = state.stepSize;
73
+ var hasLabelContent = label || labelContentLeft;
74
+ var firstInputActiveClass = firstInputActive && !disabled ? classes.textFieldActive : undefined;
75
+ var secondInputActiveClass = secondInputActive && !disabled ? classes.textFieldActive : undefined;
76
+ useEffect(function () {
77
+ var firstLocalValue = Math.min(Math.max(value[0], min), max) - min;
78
+ var secondLocalValue = Math.min(Math.max(value[1], min), max) - min;
79
+ setFirstValue(value[0]);
80
+ setSecondValue(value[1]);
81
+ setState(function (prevState) {
82
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
83
+ railFillXPosition: stepSize * firstLocalValue,
84
+ railFillWidth: stepSize * secondLocalValue - stepSize * firstLocalValue,
85
+ xFirstHandle: stepSize * firstLocalValue,
86
+ xSecondHandle: stepSize * secondLocalValue
87
+ });
88
+ });
89
+ }, [value, stepSize, min, max, setFirstValue, setSecondValue]);
90
+ var setStepSize = useCallback(function (newStepSize) {
91
+ setState(function (prevState) {
92
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
93
+ stepSize: newStepSize
94
+ });
95
+ });
96
+ }, [setState]);
97
+ var onFirstHandleChange = function onFirstHandleChange(handleValue, data) {
98
+ if (!(secondHandleRef !== null && secondHandleRef !== void 0 && secondHandleRef.current)) {
99
+ return;
100
+ }
101
+ var newHandleXPosition = data.x;
102
+ var secondHandleXPosition = getXCenterHandle(secondHandleRef.current);
103
+ var fillWidth = secondHandleXPosition - newHandleXPosition;
104
+ firstHandleValue.current = handleValue;
105
+ setFirstValue(handleValue);
106
+ setState(function (prevState) {
107
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
108
+ firstHandleZIndex: 101,
109
+ secondHandleZIndex: 100,
110
+ railFillWidth: fillWidth < 0 ? 0 : fillWidth,
111
+ railFillXPosition: newHandleXPosition
112
+ });
113
+ });
114
+ if (onChange) {
115
+ onChange([handleValue, value[1]]);
116
+ }
117
+ };
118
+ var onFirstHandleChangeCommitted = function onFirstHandleChangeCommitted(handleValue, data) {
119
+ if (!(secondHandleRef !== null && secondHandleRef !== void 0 && secondHandleRef.current)) {
120
+ return;
121
+ }
122
+ var newHandleXPosition = data.x;
123
+ var secondHandleXPosition = getXCenterHandle(secondHandleRef.current);
124
+ var fillWidth = secondHandleXPosition - newHandleXPosition;
125
+ firstHandleValue.current = handleValue;
126
+ setFirstValue(handleValue);
127
+ if (onChangeCommitted) {
128
+ onChangeCommitted([handleValue, value[1]]);
129
+ }
130
+ setState(function (prevState) {
131
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
132
+ firstValue: handleValue,
133
+ xFirstHandle: data.x,
134
+ railFillWidth: fillWidth < 0 ? 0 : fillWidth,
135
+ railFillXPosition: newHandleXPosition
136
+ });
137
+ });
138
+ };
139
+ var onFirstTextfieldChange = function onFirstTextfieldChange(event) {
140
+ if (!isNumber(event.target.value)) {
141
+ return;
142
+ }
143
+ var handleValue = Number(event.target.value);
144
+ setFirstValue(handleValue);
145
+ if (onChangeTextField) {
146
+ onChangeTextField([handleValue, secondValue], event);
147
+ }
148
+ };
149
+ var onFirstTextfieldBlur = function onFirstTextfieldBlur(event) {
150
+ if (!isNumber(event.target.value)) {
151
+ return;
152
+ }
153
+ var handleValue = Number(event.target.value);
154
+ setFirstValue(handleValue);
155
+ if (onBlurTextField) {
156
+ onBlurTextField && onBlurTextField([handleValue, secondValue], event);
157
+ }
158
+ };
159
+ var onSecondHandleChange = function onSecondHandleChange(handleValue, data) {
160
+ if (!(firstHandleRef !== null && firstHandleRef !== void 0 && firstHandleRef.current)) {
161
+ return;
162
+ }
163
+ var firstXHandleXPosition = getXCenterHandle(firstHandleRef.current);
164
+ var newHandleXPosition = data.x;
165
+ var fillWidth = newHandleXPosition - firstXHandleXPosition;
166
+ secondHandleValue.current = handleValue;
167
+ setSecondValue(handleValue);
168
+ setState(function (prevState) {
169
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
170
+ firstHandleZIndex: 100,
171
+ secondHandleZIndex: 101,
172
+ railFillWidth: fillWidth < 0 ? 0 : fillWidth,
173
+ railFillXPosition: firstXHandleXPosition
174
+ });
175
+ });
176
+ if (onChange) {
177
+ onChange([value[0], handleValue]);
178
+ }
179
+ };
180
+ var onSecondHandleChangeCommitted = function onSecondHandleChangeCommitted(handleValue, data) {
181
+ if (!(firstHandleRef !== null && firstHandleRef !== void 0 && firstHandleRef.current)) {
182
+ return;
183
+ }
184
+ var firstXHandleXPosition = getXCenterHandle(firstHandleRef.current);
185
+ var newHandleXPosition = data.x;
186
+ var fillWidth = newHandleXPosition - firstXHandleXPosition;
187
+ secondHandleValue.current = handleValue;
188
+ if (onChangeCommitted) {
189
+ onChangeCommitted([value[0], handleValue]);
190
+ }
191
+ setSecondValue(handleValue);
192
+ setState(function (prevState) {
193
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
194
+ secondValue: handleValue,
195
+ xSecondHandle: data.x,
196
+ railFillWidth: fillWidth < 0 ? 0 : fillWidth,
197
+ railFillXPosition: firstXHandleXPosition
198
+ });
199
+ });
200
+ };
201
+ var onSecondTextfieldChange = function onSecondTextfieldChange(event) {
202
+ if (!isNumber(event.target.value)) {
203
+ return;
204
+ }
205
+ var handleValue = Number(event.target.value);
206
+ setSecondValue(handleValue);
207
+ if (onChangeTextField) {
208
+ onChangeTextField([firstValue, handleValue], event);
209
+ }
210
+ };
211
+ var onSecondTextfieldBlur = function onSecondTextfieldBlur(event) {
212
+ if (!isNumber(event.target.value)) {
213
+ return;
214
+ }
215
+ var handleValue = Number(event.target.value);
216
+ setSecondValue(handleValue);
217
+ if (onBlurTextField) {
218
+ onBlurTextField([firstValue, handleValue], event);
219
+ }
220
+ };
221
+ var onTextfieldKeyDown = function onTextfieldKeyDown(event) {
222
+ if (onKeyDownTextField) {
223
+ onKeyDownTextField([firstValue, secondValue], event);
224
+ }
225
+ };
226
+ var _ref2 = ariaLabel || [],
227
+ _ref3 = _slicedToArray(_ref2, 2),
228
+ ariaLabelLeft = _ref3[0],
229
+ ariaLabelRight = _ref3[1];
230
+ var currentFirstSliderValue = Math.max(state.firstValue, min);
231
+ return /*#__PURE__*/React.createElement(DoubleWrapper, null, hasLabelContent && /*#__PURE__*/React.createElement(LabelWrapper, null, labelContentLeft && /*#__PURE__*/React.createElement(LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/React.createElement(Label, null, label)), /*#__PURE__*/React.createElement(SliderWrapper, null, /*#__PURE__*/React.createElement(SliderBase, _extends({
232
+ min: min,
233
+ max: max,
234
+ disabled: disabled,
235
+ setStepSize: setStepSize,
236
+ railFillWidth: state.railFillWidth,
237
+ settings: sizeData[size],
238
+ railFillXPosition: state.railFillXPosition
239
+ }, rest), /*#__PURE__*/React.createElement(Handler, {
240
+ ref: firstHandleRef,
241
+ stepSize: state.stepSize,
242
+ multipleStepSize: multipleStepSize,
243
+ onChangeCommitted: onFirstHandleChangeCommitted,
244
+ onChange: onFirstHandleChange,
245
+ min: min,
246
+ max: state.secondValue,
247
+ disabled: disabled,
248
+ bounds: [min, state.secondValue],
249
+ side: "left",
250
+ xPosition: state.xFirstHandle,
251
+ zIndex: state.firstHandleZIndex,
252
+ value: currentFirstSliderValue,
253
+ ariaLabel: ariaLabelLeft,
254
+ onMouseEnter: function onMouseEnter() {
255
+ return setFirstInputActive(true);
256
+ },
257
+ onMouseLeave: function onMouseLeave() {
258
+ return setFirstInputActive(false);
259
+ }
260
+ }), /*#__PURE__*/React.createElement(Handler, {
261
+ ref: secondHandleRef,
262
+ stepSize: state.stepSize,
263
+ multipleStepSize: multipleStepSize,
264
+ onChangeCommitted: onSecondHandleChangeCommitted,
265
+ onChange: onSecondHandleChange,
266
+ min: min,
267
+ ariaValueMin: currentFirstSliderValue,
268
+ max: max,
269
+ disabled: disabled,
270
+ bounds: [state.firstValue, max],
271
+ side: "right",
272
+ xPosition: state.xSecondHandle,
273
+ zIndex: state.secondHandleZIndex,
274
+ value: Math.max(state.secondValue, min),
275
+ ariaLabel: ariaLabelRight,
276
+ onMouseEnter: function onMouseEnter() {
277
+ return setSecondInputActive(true);
278
+ },
279
+ onMouseLeave: function onMouseLeave() {
280
+ return setSecondInputActive(false);
281
+ }
282
+ })), /*#__PURE__*/React.createElement(InputsWrapper, null, /*#__PURE__*/React.createElement(StyledInput, {
283
+ className: cx(classes.firstTextField, firstInputActiveClass),
284
+ enumerationType: "plain",
285
+ disabled: disabled,
286
+ value: firstValue,
287
+ onChange: onFirstTextfieldChange,
288
+ onBlur: onFirstTextfieldBlur,
289
+ onKeyDown: onTextfieldKeyDown
290
+ }), /*#__PURE__*/React.createElement(StyledInput, {
291
+ className: cx(classes.secondTextField, secondInputActiveClass),
292
+ enumerationType: "plain",
293
+ disabled: disabled,
294
+ value: secondValue,
295
+ onChange: onSecondTextfieldChange,
296
+ onBlur: onSecondTextfieldBlur,
297
+ onKeyDown: onTextfieldKeyDown
298
+ }))));
299
+ };
300
+
301
+ export { DoubleSlider };
302
+ //# sourceMappingURL=Double.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Double.js","sources":["../../../../../src/components/Slider/components/Double/Double.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport type { FC, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';\n\nimport { SliderBase } from '../SliderBase/SliderBase';\nimport { Handler } from '../../ui';\nimport type { HandlerProps } from '../../ui';\nimport { sizeData } from '../../utils';\nimport { cx, isNumber } from '../../../../utils';\nimport { classes } from '../../Slider.tokens';\n\nimport { DoubleSliderProps } from './Double.types';\nimport {\n SliderWrapper,\n InputsWrapper,\n Label,\n LabelContentLeft,\n LabelWrapper,\n StyledInput,\n DoubleWrapper,\n} from './Double.styles';\n\nfunction getXCenterHandle(handle: HTMLDivElement) {\n const containerX = handle.parentElement?.getBoundingClientRect()?.x || 0;\n const handleRect = handle.getBoundingClientRect();\n const handlePosition = handleRect.x;\n return handlePosition - containerX;\n}\n\nexport const DoubleSlider: FC<DoubleSliderProps> = ({\n min,\n max,\n value,\n disabled,\n label,\n labelContentLeft,\n size = 'm',\n onChangeCommitted,\n onChangeTextField,\n onBlurTextField,\n onKeyDownTextField,\n onChange,\n ariaLabel,\n multipleStepSize = 10,\n ...rest\n}) => {\n const [state, setState] = useState({\n stepSize: 0,\n railFillWidth: 0,\n railFillXPosition: 0,\n xFirstHandle: 0,\n xSecondHandle: 0,\n firstHandleZIndex: 100,\n secondHandleZIndex: 101,\n firstValue: value[0],\n secondValue: value[1],\n });\n const [firstInputActive, setFirstInputActive] = useState(false);\n const [secondInputActive, setSecondInputActive] = useState(false);\n\n const [firstValue, setFirstValue] = useState<number>(value[0]);\n const [secondValue, setSecondValue] = useState<number>(value[1]);\n\n const firstHandleRef = useRef<HTMLDivElement | null>(null);\n const secondHandleRef = useRef<HTMLDivElement | null>(null);\n\n const firstHandleValue = useRef<number>(value[0]);\n const secondHandleValue = useRef<number>(value[1]);\n\n const { stepSize } = state;\n\n const hasLabelContent = label || labelContentLeft;\n const firstInputActiveClass = firstInputActive && !disabled ? classes.textFieldActive : undefined;\n const secondInputActiveClass = secondInputActive && !disabled ? classes.textFieldActive : undefined;\n\n useEffect(() => {\n const firstLocalValue = Math.min(Math.max(value[0], min), max) - min;\n const secondLocalValue = Math.min(Math.max(value[1], min), max) - min;\n\n setFirstValue(value[0]);\n setSecondValue(value[1]);\n\n setState((prevState) => ({\n ...prevState,\n railFillXPosition: stepSize * firstLocalValue,\n railFillWidth: stepSize * secondLocalValue - stepSize * firstLocalValue,\n xFirstHandle: stepSize * firstLocalValue,\n xSecondHandle: stepSize * secondLocalValue,\n }));\n }, [value, stepSize, min, max, setFirstValue, setSecondValue]);\n\n const setStepSize = useCallback(\n (newStepSize: number) => {\n setState((prevState) => ({\n ...prevState,\n stepSize: newStepSize,\n }));\n },\n [setState],\n );\n\n const onFirstHandleChange: NonNullable<HandlerProps['onChange']> = (handleValue, data) => {\n if (!secondHandleRef?.current) {\n return;\n }\n const newHandleXPosition = data.x;\n const secondHandleXPosition = getXCenterHandle(secondHandleRef.current);\n const fillWidth = secondHandleXPosition - newHandleXPosition;\n\n firstHandleValue.current = handleValue;\n\n setFirstValue(handleValue);\n\n setState((prevState) => ({\n ...prevState,\n firstHandleZIndex: 101,\n secondHandleZIndex: 100,\n railFillWidth: fillWidth < 0 ? 0 : fillWidth,\n railFillXPosition: newHandleXPosition,\n }));\n if (onChange) {\n onChange([handleValue, value[1]]);\n }\n };\n\n const onFirstHandleChangeCommitted: NonNullable<HandlerProps['onChangeCommitted']> = (handleValue, data) => {\n if (!secondHandleRef?.current) {\n return;\n }\n const newHandleXPosition = data.x;\n const secondHandleXPosition = getXCenterHandle(secondHandleRef.current);\n const fillWidth = secondHandleXPosition - newHandleXPosition;\n\n firstHandleValue.current = handleValue;\n\n setFirstValue(handleValue);\n if (onChangeCommitted) {\n onChangeCommitted([handleValue, value[1]]);\n }\n\n setState((prevState) => ({\n ...prevState,\n firstValue: handleValue,\n xFirstHandle: data.x,\n railFillWidth: fillWidth < 0 ? 0 : fillWidth,\n railFillXPosition: newHandleXPosition,\n }));\n };\n\n const onFirstTextfieldChange = (event: ChangeEvent<HTMLInputElement>) => {\n if (!isNumber(event.target.value)) {\n return;\n }\n\n const handleValue = Number(event.target.value);\n\n setFirstValue(handleValue);\n if (onChangeTextField) {\n onChangeTextField([handleValue, secondValue], event);\n }\n };\n\n const onFirstTextfieldBlur = (event: FocusEvent<HTMLInputElement>) => {\n if (!isNumber(event.target.value)) {\n return;\n }\n\n const handleValue = Number(event.target.value);\n\n setFirstValue(handleValue);\n if (onBlurTextField) {\n onBlurTextField && onBlurTextField([handleValue, secondValue], event);\n }\n };\n\n const onSecondHandleChange: NonNullable<HandlerProps['onChange']> = (handleValue, data) => {\n if (!firstHandleRef?.current) {\n return;\n }\n const firstXHandleXPosition = getXCenterHandle(firstHandleRef.current);\n\n const newHandleXPosition = data.x;\n const fillWidth = newHandleXPosition - firstXHandleXPosition;\n\n secondHandleValue.current = handleValue;\n\n setSecondValue(handleValue);\n setState((prevState) => ({\n ...prevState,\n firstHandleZIndex: 100,\n secondHandleZIndex: 101,\n railFillWidth: fillWidth < 0 ? 0 : fillWidth,\n railFillXPosition: firstXHandleXPosition,\n }));\n if (onChange) {\n onChange([value[0], handleValue]);\n }\n };\n\n const onSecondHandleChangeCommitted: NonNullable<HandlerProps['onChangeCommitted']> = (handleValue, data) => {\n if (!firstHandleRef?.current) {\n return;\n }\n const firstXHandleXPosition = getXCenterHandle(firstHandleRef.current);\n\n const newHandleXPosition = data.x;\n const fillWidth = newHandleXPosition - firstXHandleXPosition;\n\n secondHandleValue.current = handleValue;\n\n if (onChangeCommitted) {\n onChangeCommitted([value[0], handleValue]);\n }\n\n setSecondValue(handleValue);\n setState((prevState) => ({\n ...prevState,\n secondValue: handleValue,\n xSecondHandle: data.x,\n railFillWidth: fillWidth < 0 ? 0 : fillWidth,\n railFillXPosition: firstXHandleXPosition,\n }));\n };\n\n const onSecondTextfieldChange = (event: ChangeEvent<HTMLInputElement>) => {\n if (!isNumber(event.target.value)) {\n return;\n }\n const handleValue = Number(event.target.value);\n\n setSecondValue(handleValue);\n if (onChangeTextField) {\n onChangeTextField([firstValue, handleValue], event);\n }\n };\n\n const onSecondTextfieldBlur = (event: FocusEvent<HTMLInputElement>) => {\n if (!isNumber(event.target.value)) {\n return;\n }\n\n const handleValue = Number(event.target.value);\n\n setSecondValue(handleValue);\n if (onBlurTextField) {\n onBlurTextField([firstValue, handleValue], event);\n }\n };\n\n const onTextfieldKeyDown = (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => {\n if (onKeyDownTextField) {\n onKeyDownTextField([firstValue, secondValue], event);\n }\n };\n\n const [ariaLabelLeft, ariaLabelRight] = ariaLabel || [];\n const currentFirstSliderValue = Math.max(state.firstValue, min);\n\n return (\n <DoubleWrapper>\n {hasLabelContent && (\n <LabelWrapper>\n {labelContentLeft && <LabelContentLeft>{labelContentLeft}</LabelContentLeft>}\n {label && <Label>{label}</Label>}\n </LabelWrapper>\n )}\n <SliderWrapper>\n <SliderBase\n min={min}\n max={max}\n disabled={disabled}\n setStepSize={setStepSize}\n railFillWidth={state.railFillWidth}\n settings={sizeData[size]}\n railFillXPosition={state.railFillXPosition}\n {...rest}\n >\n <Handler\n ref={firstHandleRef}\n stepSize={state.stepSize}\n multipleStepSize={multipleStepSize}\n onChangeCommitted={onFirstHandleChangeCommitted}\n onChange={onFirstHandleChange}\n min={min}\n max={state.secondValue}\n disabled={disabled}\n bounds={[min, state.secondValue]}\n side=\"left\"\n xPosition={state.xFirstHandle}\n zIndex={state.firstHandleZIndex}\n value={currentFirstSliderValue}\n ariaLabel={ariaLabelLeft}\n onMouseEnter={() => setFirstInputActive(true)}\n onMouseLeave={() => setFirstInputActive(false)}\n />\n <Handler\n ref={secondHandleRef}\n stepSize={state.stepSize}\n multipleStepSize={multipleStepSize}\n onChangeCommitted={onSecondHandleChangeCommitted}\n onChange={onSecondHandleChange}\n min={min}\n ariaValueMin={currentFirstSliderValue}\n max={max}\n disabled={disabled}\n bounds={[state.firstValue, max]}\n side=\"right\"\n xPosition={state.xSecondHandle}\n zIndex={state.secondHandleZIndex}\n value={Math.max(state.secondValue, min)}\n ariaLabel={ariaLabelRight}\n onMouseEnter={() => setSecondInputActive(true)}\n onMouseLeave={() => setSecondInputActive(false)}\n />\n </SliderBase>\n\n <InputsWrapper>\n <StyledInput\n className={cx(classes.firstTextField, firstInputActiveClass)}\n enumerationType=\"plain\"\n disabled={disabled}\n value={firstValue}\n onChange={onFirstTextfieldChange}\n onBlur={onFirstTextfieldBlur}\n onKeyDown={onTextfieldKeyDown}\n />\n <StyledInput\n className={cx(classes.secondTextField, secondInputActiveClass)}\n enumerationType=\"plain\"\n disabled={disabled}\n value={secondValue}\n onChange={onSecondTextfieldChange}\n onBlur={onSecondTextfieldBlur}\n onKeyDown={onTextfieldKeyDown}\n />\n </InputsWrapper>\n </SliderWrapper>\n </DoubleWrapper>\n );\n};\n"],"names":["getXCenterHandle","handle","_handle$parentElement","containerX","parentElement","getBoundingClientRect","x","handleRect","handlePosition","DoubleSlider","_ref","min","max","value","disabled","label","labelContentLeft","_ref$size","size","onChangeCommitted","onChangeTextField","onBlurTextField","onKeyDownTextField","onChange","ariaLabel","_ref$multipleStepSize","multipleStepSize","rest","_objectWithoutProperties","_excluded","_useState","useState","stepSize","railFillWidth","railFillXPosition","xFirstHandle","xSecondHandle","firstHandleZIndex","secondHandleZIndex","firstValue","secondValue","_useState2","_slicedToArray","state","setState","_useState3","_useState4","firstInputActive","setFirstInputActive","_useState5","_useState6","secondInputActive","setSecondInputActive","_useState7","_useState8","setFirstValue","_useState9","_useState10","setSecondValue","firstHandleRef","useRef","secondHandleRef","firstHandleValue","secondHandleValue","hasLabelContent","firstInputActiveClass","classes","textFieldActive","undefined","secondInputActiveClass","useEffect","firstLocalValue","Math","secondLocalValue","prevState","_objectSpread","setStepSize","useCallback","newStepSize","onFirstHandleChange","handleValue","data","current","newHandleXPosition","secondHandleXPosition","fillWidth","onFirstHandleChangeCommitted","onFirstTextfieldChange","event","isNumber","target","Number","onFirstTextfieldBlur","onSecondHandleChange","firstXHandleXPosition","onSecondHandleChangeCommitted","onSecondTextfieldChange","onSecondTextfieldBlur","onTextfieldKeyDown","_ref2","_ref3","ariaLabelLeft","ariaLabelRight","currentFirstSliderValue","React","createElement","DoubleWrapper","LabelWrapper","LabelContentLeft","Label","SliderWrapper","SliderBase","_extends","settings","sizeData","Handler","ref","bounds","side","xPosition","zIndex","onMouseEnter","onMouseLeave","ariaValueMin","InputsWrapper","StyledInput","className","cx","firstTextField","enumerationType","onBlur","onKeyDown","secondTextField"],"mappings":";;;;;;;;;;;;AAqBA,SAASA,gBAAgBA,CAACC,MAAsB,EAAE;AAAA,EAAA,IAAAC,qBAAA,CAAA;EAC9C,IAAMC,UAAU,GAAG,CAAA,CAAAD,qBAAA,GAAAD,MAAM,CAACG,aAAa,MAAAF,IAAAA,IAAAA,qBAAA,KAAAA,KAAAA,CAAAA,IAAAA,CAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,qBAAqB,EAAE,MAAA,IAAA,IAAAH,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA7CA,qBAAA,CAA+CI,CAAC,KAAI,CAAC,CAAA;AACxE,EAAA,IAAMC,UAAU,GAAGN,MAAM,CAACI,qBAAqB,EAAE,CAAA;AACjD,EAAA,IAAMG,cAAc,GAAGD,UAAU,CAACD,CAAC,CAAA;EACnC,OAAOE,cAAc,GAAGL,UAAU,CAAA;AACtC,CAAA;IAEaM,YAAmC,GAAG,SAAtCA,YAAmCA,CAAAC,IAAA,EAgB1C;AAAA,EAAA,IAfFC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IACHC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,KAAK,GAAAL,IAAA,CAALK,K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,QAAS;AACnBD,IAAAA,KAAK,EAAE2B,WAAY;AACnBjB,IAAAA,QAAQ,EAAEyE,uBAAwB;AAClCkC,IAAAA,MAAM,EAAEjC,qBAAsB;AAC9BkC,IAAAA,SAAS,EAAEjC,kBAAAA;GACd,CACU,CACJ,CACJ,CAAC,CAAA;AAExB;;;;"}
@@ -0,0 +1,51 @@
1
+ import './Double.styles_1jhda4u.css';
2
+ import { styled } from '@linaria/react';
3
+ import '@linaria/core';
4
+ import { component, mergeConfig } from '../../../../engines/common.js';
5
+ import { textFieldConfig } from '../../../TextField/TextField.js';
6
+
7
+ var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig);
8
+ var TextField = /*#__PURE__*/component(mergedConfig);
9
+ var LabelWrapper = /*#__PURE__*/styled('div')({
10
+ name: "LabelWrapper",
11
+ "class": "lcs82cd",
12
+ propsAsIs: false
13
+ });
14
+ var LabelContentLeft = /*#__PURE__*/styled('div')({
15
+ name: "LabelContentLeft",
16
+ "class": "l1tvgbgq",
17
+ propsAsIs: false
18
+ });
19
+ var Label = /*#__PURE__*/styled('label')({
20
+ name: "Label",
21
+ "class": "l1at2q9b",
22
+ propsAsIs: false
23
+ });
24
+ var InputsWrapper = /*#__PURE__*/styled('div')({
25
+ name: "InputsWrapper",
26
+ "class": "i11dc2og",
27
+ propsAsIs: false
28
+ });
29
+
30
+ // NOTE: переопределение токенов TextField
31
+ var _exp12 = function _exp12() {
32
+ return TextField;
33
+ };
34
+ var StyledInput = /*#__PURE__*/styled(_exp12())({
35
+ name: "StyledInput",
36
+ "class": "s4zvp7i",
37
+ propsAsIs: true
38
+ });
39
+ var DoubleWrapper = /*#__PURE__*/styled('div')({
40
+ name: "DoubleWrapper",
41
+ "class": "d3kvcjo",
42
+ propsAsIs: false
43
+ });
44
+ var SliderWrapper = /*#__PURE__*/styled('div')({
45
+ name: "SliderWrapper",
46
+ "class": "s11ntvbh",
47
+ propsAsIs: false
48
+ });
49
+
50
+ export { DoubleWrapper, InputsWrapper, Label, LabelContentLeft, LabelWrapper, SliderWrapper, StyledInput };
51
+ //# sourceMappingURL=Double.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Double.styles.js","sources":["../../../../../src/components/Slider/components/Double/Double.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { classes, tokens } from '../../Slider.tokens';\nimport { component, mergeConfig } from '../../../../engines';\nimport { textFieldConfig, textFieldTokens } from '../../../TextField';\n\nconst mergedConfig = mergeConfig(textFieldConfig);\nconst TextField = component(mergedConfig);\n\nexport const LabelWrapper = styled.div`\n color: var(${tokens.labelColor});\n\n display: flex;\n gap: var(${tokens.labelWrapperGap});\n margin-bottom: var(${tokens.labelWrapperMarginBottom});\n`;\n\nexport const LabelContentLeft = styled.div``;\n\nexport const Label = styled.label`\n font-family: var(${tokens.labelFontFamily});\n font-size: var(${tokens.labelFontSize});\n font-style: var(${tokens.labelFontStyle});\n font-weight: var(${tokens.labelFontWeight});\n letter-spacing: var(${tokens.labelLetterSpacing});\n line-height: var(${tokens.labelLineHeight});\n`;\n\nexport const InputsWrapper = styled.div`\n display: flex;\n gap: var(${tokens.textFieldWrapperGap});\n margin-top: var(${tokens.doubleWrapperGap});\n`;\n\n// NOTE: переопределение токенов TextField\nexport const StyledInput = styled(TextField)`\n flex: 1;\n \n ${textFieldTokens.color}: var(${tokens.textFieldColor});\n ${textFieldTokens.backgroundColor}: var(${tokens.textFieldBackgroundColor});\n ${textFieldTokens.caretColor}: var(${tokens.textFieldCaretColor});\n ${textFieldTokens.placeholderColor}: var(${tokens.textFieldPlaceholderColor});\n ${textFieldTokens.disabledOpacity}: var(${tokens.disabledOpacity});\n\n ${textFieldTokens.height}: var(${tokens.textFieldHeight});\n ${textFieldTokens.padding}: var(${tokens.textFieldPadding});\n ${textFieldTokens.borderRadius}: var(${tokens.textFieldBorderRadius});\n\n ${textFieldTokens.fontFamily}: var(${tokens.textFieldFontFamily});\n ${textFieldTokens.fontSize}: var(${tokens.textFieldFontSize});\n ${textFieldTokens.fontStyle}: var(${tokens.textFieldFontStyle});\n ${textFieldTokens.fontWeight}: var(${tokens.textFieldFontWeight});\n ${textFieldTokens.letterSpacing}: var(${tokens.textFieldLetterSpacing});\n ${textFieldTokens.lineHeight}: var(${tokens.textFieldLineHeight});\n\n &.${classes.firstTextField} > div {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n &.${classes.secondTextField} > div {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n input:focus, &.${classes.textFieldActive} {\n ${textFieldTokens.color}: var(${tokens.textFiledFocusColor});\n }\n`;\n\nexport const DoubleWrapper = styled.div`\n opacity: var(${tokens.disabledOpacity});\n`;\n\nexport const SliderWrapper = styled.div``;\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","TextField","component","LabelWrapper","styled","name","class","propsAsIs","LabelContentLeft","Label","InputsWrapper","_exp12","StyledInput","DoubleWrapper","SliderWrapper"],"mappings":";;;;;AAMA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,eAAe,CAAC,CAAA;AACjD,IAAMC,SAAS,gBAAGC,SAAS,CAACJ,YAAY,CAAC,CAAA;AAElC,IAAMK,YAAY,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,cAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAMjC,EAAA;AAEM,IAAMC,gBAAgB,gBAAGJ,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM,EAAA;AAErC,IAAME,KAAK,gBAAGL,MAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,OAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAO1B,EAAA;AAEM,IAAMG,aAAa,gBAAGN,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIlC,EAAA;;AAED;AAAA,IAAAI,MAAA,GAjCkBA,SAiClBA,MAAAA,GAAA;AAAA,EAAA,OACkCV,SAAS,CAAA;AAAA,CAAA,CAAA;AAApC,IAAMW,WAAW,gBAAGR,MAAM,CAAAO,MAAA,EAAA,CAAA,CAAA;AAAAN,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAiChC,EAAA;AAEM,IAAMM,aAAa,gBAAGT,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAElC,EAAA;AAEM,IAAMO,aAAa,gBAAGV,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAM;;;;"}
@@ -0,0 +1,7 @@
1
+ .lcs82cd{color:var(--plasma-slider-label-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-slider-label-wrapper-gap);margin-bottom:var(--plasma-slider-label-wrapper-margin-bottom);}
2
+
3
+ .l1at2q9b{font-family:var(--plasma-slider-label-font-family);font-size:var(--plasma-slider-label-font-size);font-style:var(--plasma-slider-label-font-style);font-weight:var(--plasma-slider-label-font-weight);-webkit-letter-spacing:var(--plasma-slider-label-letter-spacing);-moz-letter-spacing:var(--plasma-slider-label-letter-spacing);-ms-letter-spacing:var(--plasma-slider-label-letter-spacing);letter-spacing:var(--plasma-slider-label-letter-spacing);line-height:var(--plasma-slider-label-line-height);}
4
+ .i11dc2og{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-slider-text-field-wrapper-gap);margin-top:var(--plasma-slider-double-wrapper-gap);}
5
+ .s4zvp7i{-webkit-flex:1;-ms-flex:1;flex:1;--plasma-textfield-color:var(--plasma-slider-text-field-color);--plasma-textfield-bg-color:var(--plasma-slider-text-field-background-color);--plasma-textfield__caret-color:var(--plasma-slider-text-field-caret-color);--plasma-textfield__placeholder-color:var(--plasma-slider-text-field-placeholder-color);--plasma-textfield-disabled-opacity:var(--plasma-slider-disabled-opacity);--plasma-textfield-height:var(--plasma-slider-text-field-height);--plasma-textfield-padding:var(--plasma-slider-text-field-padding);--plasma-textfield-border-radius:var(--plasma-slider-text-field-border-radius);--plasma-textfield-font-family:var(--plasma-slider-text-field-font-family);--plasma-textfield-font-size:var(--plasma-slider-text-field-font-size);--plasma-textfield-font-style:var(--plasma-slider-text-field-font-style);--plasma-textfield-font-weight:var(--plasma-slider-text-field-font-weight);--plasma-textfield-letter-spacing:var(--plasma-slider-text-field-letter-spacing);--plasma-textfield-line-height:var(--plasma-slider-text-field-line-height);}.s4zvp7i.slider-first-text-field > div{border-top-right-radius:0;border-bottom-right-radius:0;}.s4zvp7i.slider-second-text-field > div{border-top-left-radius:0;border-bottom-left-radius:0;}.s4zvp7i input:focus,.s4zvp7i.slider-text-field-active{--plasma-textfield-color:var(--plasma-slider-text-field-focus-color);}
6
+ .d3kvcjo{opacity:var(--plasma-slider-disabled-opacity);}
7
+
@@ -0,0 +1,16 @@
1
+ .SliderBase_styles_7is2ll_s33crq1__0c0959e2{-webkit-flex:1;-ms-flex:1;flex:1;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:var(--plasma-slider-height);}
2
+ .SliderBase_styles_7is2ll_rnaoqfb__0c0959e2{height:100%;}
3
+ .SliderBase_styles_7is2ll_r1bro5xo__0c0959e2{position:relative;top:50%;height:var(--plasma-slider-rail-height);border-radius:var(--plasma-slider-rail-border-radius);background-color:var(--plasma-slider-rail-background-color);overflow:hidden;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);}
4
+ .SliderBase_styles_7is2ll_fdg7yhg__0c0959e2{position:absolute;height:100%;top:0;left:0;background:var(--plasma-slider-fill-color);width:0;}
5
+
6
+ .Handler_styles_8crx5z_h1tnrnip__2d4342c7{cursor:pointer;position:absolute;z-index:1;top:0;left:0;}
7
+ .Handler_styles_8crx5z_s12uu2lj__2d4342c7{position:absolute;z-index:1;top:var(--plasma-slider-current-value-top-offset);text-align:center;width:100%;margin-left:-0.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-family:var(--plasma-slider-current-value-font-family);font-size:var(--plasma-slider-current-value-font-size);font-style:var(--plasma-slider-current-value-font-style);font-weight:var(--plasma-slider-current-value-font-weight);-webkit-letter-spacing:var(--plasma-slider-current-value-letter-spacing);-moz-letter-spacing:var(--plasma-slider-current-value-letter-spacing);-ms-letter-spacing:var(--plasma-slider-current-value-letter-spacing);letter-spacing:var(--plasma-slider-current-value-letter-spacing);line-height:var(--plasma-slider-current-value-line-height);}
8
+
9
+ .Thumb_styles_4w4gzn_tqbdf8b__14129a5b{width:var(--plasma-slider-thumb-size);height:var(--plasma-slider-thumb-size);position:relative;left:-0.125rem;top:-0.125rem;border-radius:50%;box-sizing:border-box;background:var(--plasma-slider-thumb-background-color);margin:0.125rem;-webkit-transition:border-color 0.1s ease-in-out;transition:border-color 0.1s ease-in-out;position:relative;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:after{background:var(--plasma-slider-thumb-border-color);margin:-0.125rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:not([disabled]):hover:after,.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:not([disabled]):active:after{background:var(--plasma-slider-thumb-focus-border-color);}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b[disabled]{cursor:not-allowed;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b:focus{outline:none;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b::before{content:'';position:absolute;top:0.125rem;left:0.125rem;right:0.125rem;bottom:0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.125rem solid transparent;border-radius:50%;-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.Thumb_styles_4w4gzn_tqbdf8b__14129a5b.Thumb_styles_4w4gzn_focusVisible__14129a5b:focus::before,.Thumb_styles_4w4gzn_tqbdf8b__14129a5b[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem var(--plasma-slider-thumb-focus-border-color);}
10
+
11
+ .Single_styles_1r9f1e0_l1p4kc08__4db690dd{color:var(--plasma-slider-label-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-slider-label-wrapper-gap);}
12
+
13
+ .Single_styles_1r9f1e0_lozb535__4db690dd{font-family:var(--plasma-slider-label-font-family);font-size:var(--plasma-slider-label-font-size);font-style:var(--plasma-slider-label-font-style);font-weight:var(--plasma-slider-label-font-weight);-webkit-letter-spacing:var(--plasma-slider-label-letter-spacing);-moz-letter-spacing:var(--plasma-slider-label-letter-spacing);-ms-letter-spacing:var(--plasma-slider-label-letter-spacing);letter-spacing:var(--plasma-slider-label-letter-spacing);line-height:var(--plasma-slider-label-line-height);}
14
+ .Single_styles_1r9f1e0_s1w9icbd__4db690dd{color:var(--plasma-slider-range-value-color);font-family:var(--plasma-slider-range-value-font-family);font-size:var(--plasma-slider-range-value-font-size);font-style:var(--plasma-slider-range-value-font-style);font-weight:var(--plasma-slider-range-value-font-weight);-webkit-letter-spacing:var(--plasma-slider-range-value-letter-spacing);-moz-letter-spacing:var(--plasma-slider-range-value-letter-spacing);-ms-letter-spacing:var(--plasma-slider-range-value-letter-spacing);letter-spacing:var(--plasma-slider-range-value-letter-spacing);line-height:var(--plasma-slider-range-value-line-height);-webkit-transition:opacity 0.1s ease-in-out;transition:opacity 0.1s ease-in-out;}.Single_styles_1r9f1e0_s1w9icbd__4db690dd.Single_styles_1r9f1e0_sliderHideMinValue__4db690dd,.Single_styles_1r9f1e0_s1w9icbd__4db690dd.Single_styles_1r9f1e0_sliderHideMaxValue__4db690dd{opacity:0;}.Single_styles_1r9f1e0_s1w9icbd__4db690dd.Single_styles_1r9f1e0_sliderActiveRangeValue__4db690dd{color:var(--plasma-slider-label-color);}
15
+ .Single_styles_1r9f1e0_s1d2sfgl__4db690dd{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;}.Single_styles_1r9f1e0_s1d2sfgl__4db690dd.Single_styles_1r9f1e0_sliderRangeValuesPlacementOuter__4db690dd .Single_styles_1r9f1e0_s1w9icbd__4db690dd{position:absolute;bottom:var(--plasma-slider-range-value-bottom-offset);left:0;}.Single_styles_1r9f1e0_s1d2sfgl__4db690dd.Single_styles_1r9f1e0_sliderRangeValuesPlacementOuter__4db690dd .Single_styles_1r9f1e0_s1w9icbd__4db690dd.Single_styles_1r9f1e0_sliderMaxRangeValue__4db690dd{left:unset;right:0;}.Single_styles_1r9f1e0_s1d2sfgl__4db690dd.Single_styles_1r9f1e0_sliderRangeValuesPlacementInner__4db690dd{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Single_styles_1r9f1e0_s1d2sfgl__4db690dd.Single_styles_1r9f1e0_sliderRangeValuesPlacementInner__4db690dd .Single_styles_1r9f1e0_s1w9icbd__4db690dd{margin-right:var(--plasma-slider-range-min-value-margin);}.Single_styles_1r9f1e0_s1d2sfgl__4db690dd.Single_styles_1r9f1e0_sliderRangeValuesPlacementInner__4db690dd .Single_styles_1r9f1e0_s1w9icbd__4db690dd.Single_styles_1r9f1e0_sliderMaxRangeValue__4db690dd{margin-right:0;margin-left:var(--plasma-slider-range-max-value-margin);}
16
+ .Single_styles_1r9f1e0_ss3ujqx__4db690dd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;opacity:var(--plasma-slider-disabled-opacity);}.Single_styles_1r9f1e0_ss3ujqx__4db690dd.Single_styles_1r9f1e0_sliderLabelPlacementOuter__4db690dd{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.Single_styles_1r9f1e0_ss3ujqx__4db690dd.Single_styles_1r9f1e0_sliderLabelPlacementOuter__4db690dd .Single_styles_1r9f1e0_l1p4kc08__4db690dd{margin-bottom:var(--plasma-slider-label-wrapper-margin-bottom);}.Single_styles_1r9f1e0_ss3ujqx__4db690dd.Single_styles_1r9f1e0_sliderLabelPlacementInner__4db690dd .Single_styles_1r9f1e0_l1p4kc08__4db690dd{margin-right:var(--plasma-slider-label-wrapper-margin-right);}
@@ -0,0 +1,160 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { useState, useRef, useEffect, useCallback } from 'react';
3
+ import { SliderBase } from '../SliderBase/SliderBase.js';
4
+ import { Handler } from '../../ui/Handler/Handler.js';
5
+ import '@linaria/react';
6
+ import { sizeData } from '../../utils/index.js';
7
+ import { cx } from '../../../../utils/index.js';
8
+ import { classes } from '../../Slider.tokens.js';
9
+ import { SingleWrapper, LabelWrapper, LabelContentLeft, Label, SliderBaseWrapper, StyledRangeValue } from './Single.styles.js';
10
+ import { isNumber } from '../../../../utils/isNumber.js';
11
+
12
+ var _excluded = ["min", "max", "value", "disabled", "onChangeCommitted", "onChange", "ariaLabel", "label", "labelContentLeft", "showRangeValues", "showCurrentValue", "hideMinValueDiff", "hideMaxValueDiff", "labelPlacement", "rangeValuesPlacement", "multipleStepSize", "size"];
13
+ var SingleSlider = function SingleSlider(_ref) {
14
+ var min = _ref.min,
15
+ max = _ref.max,
16
+ value = _ref.value,
17
+ disabled = _ref.disabled,
18
+ onChangeCommitted = _ref.onChangeCommitted,
19
+ onChange = _ref.onChange,
20
+ ariaLabel = _ref.ariaLabel,
21
+ label = _ref.label,
22
+ labelContentLeft = _ref.labelContentLeft,
23
+ showRangeValues = _ref.showRangeValues,
24
+ showCurrentValue = _ref.showCurrentValue,
25
+ hideMinValueDiff = _ref.hideMinValueDiff,
26
+ hideMaxValueDiff = _ref.hideMaxValueDiff,
27
+ _ref$labelPlacement = _ref.labelPlacement,
28
+ labelPlacement = _ref$labelPlacement === void 0 ? 'outer' : _ref$labelPlacement,
29
+ _ref$rangeValuesPlace = _ref.rangeValuesPlacement,
30
+ rangeValuesPlacement = _ref$rangeValuesPlace === void 0 ? 'outer' : _ref$rangeValuesPlace,
31
+ _ref$multipleStepSize = _ref.multipleStepSize,
32
+ multipleStepSize = _ref$multipleStepSize === void 0 ? 10 : _ref$multipleStepSize,
33
+ _ref$size = _ref.size,
34
+ size = _ref$size === void 0 ? 'm' : _ref$size,
35
+ rest = _objectWithoutProperties(_ref, _excluded);
36
+ var _useState = useState({
37
+ xHandle: 0,
38
+ stepSize: 0,
39
+ railFillWidth: 0
40
+ }),
41
+ _useState2 = _slicedToArray(_useState, 2),
42
+ state = _useState2[0],
43
+ setState = _useState2[1];
44
+ var _useState3 = useState(0),
45
+ _useState4 = _slicedToArray(_useState3, 2),
46
+ startOffset = _useState4[0],
47
+ setStartOffset = _useState4[1];
48
+ var _useState5 = useState(0),
49
+ _useState6 = _slicedToArray(_useState5, 2),
50
+ endOffset = _useState6[0],
51
+ setEndOffset = _useState6[1];
52
+ var _useState7 = useState(value),
53
+ _useState8 = _slicedToArray(_useState7, 2),
54
+ dragValue = _useState8[0],
55
+ setDragValue = _useState8[1];
56
+ var stepSize = state.stepSize;
57
+ var hasLabelContent = label || labelContentLeft;
58
+ var labelPlacementClass = labelPlacement === 'outer' ? classes.labelPlacementOuter : classes.labelPlacementInner;
59
+ var rangeValuesPlacementClass = rangeValuesPlacement === 'outer' ? classes.rangeValuesPlacementOuter : classes.rangeValuesPlacementInner;
60
+ var hideMinValueDiffClass = hideMinValueDiff && value - min <= hideMinValueDiff ? classes.hideMinValue : '';
61
+ var hideMaxValueDiffClass = hideMaxValueDiff && max - value <= hideMaxValueDiff ? classes.hideMaxValue : '';
62
+ var startLabelRef = useRef(null);
63
+ var endLabelRef = useRef(null);
64
+ var activeFirstValue = dragValue === min ? classes.activeRangeValue : undefined;
65
+ var activeSecondValue = dragValue === max ? classes.activeRangeValue : undefined;
66
+ useEffect(function () {
67
+ var localValue = Math.min(Math.max(value, min), max) - min;
68
+ if (rangeValuesPlacement === 'outer') {
69
+ var _startLabelRef$curren, _endLabelRef$current;
70
+ var startWidth = (_startLabelRef$curren = startLabelRef.current) === null || _startLabelRef$curren === void 0 ? void 0 : _startLabelRef$curren.offsetWidth;
71
+ if (isNumber(startWidth)) {
72
+ setStartOffset(Number(startWidth));
73
+ }
74
+ var endWidth = (_endLabelRef$current = endLabelRef.current) === null || _endLabelRef$current === void 0 ? void 0 : _endLabelRef$current.offsetWidth;
75
+ if (isNumber(endWidth)) {
76
+ setEndOffset(Number(endWidth));
77
+ }
78
+ } else {
79
+ setStartOffset(1);
80
+ setEndOffset(1);
81
+ }
82
+ setState(function (prevState) {
83
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
84
+ xHandle: stepSize * localValue,
85
+ railFillWidth: stepSize * localValue
86
+ });
87
+ });
88
+ }, [value, labelPlacement, stepSize, rangeValuesPlacement, min, max, setStartOffset, setEndOffset]);
89
+ var setStepSize = useCallback(function (newStepSize) {
90
+ setState(function (prevState) {
91
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
92
+ stepSize: newStepSize
93
+ });
94
+ });
95
+ }, [setState]);
96
+ var onHandleChange = function onHandleChange(handleValue, data) {
97
+ var newHandleXPosition = data.x;
98
+ var newValue = Math.round(handleValue);
99
+ setState(function (prevState) {
100
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
101
+ railFillWidth: newHandleXPosition
102
+ });
103
+ });
104
+ if (onChange) {
105
+ onChange(newValue);
106
+ }
107
+ setDragValue(newValue);
108
+ };
109
+ var onHandleChangeCommitted = function onHandleChangeCommitted(handleValue, data) {
110
+ var newValue = Math.round(handleValue);
111
+ if (onChangeCommitted) {
112
+ onChangeCommitted(newValue);
113
+ }
114
+ setState(function (prevState) {
115
+ return _objectSpread2(_objectSpread2({}, prevState), {}, {
116
+ xHandle: data.lastX,
117
+ railFillWidth: data.lastX
118
+ });
119
+ });
120
+ setDragValue(newValue);
121
+ };
122
+ return /*#__PURE__*/React.createElement(SingleWrapper, {
123
+ className: labelPlacementClass
124
+ }, hasLabelContent && /*#__PURE__*/React.createElement(LabelWrapper, null, labelContentLeft && /*#__PURE__*/React.createElement(LabelContentLeft, null, labelContentLeft), label && /*#__PURE__*/React.createElement(Label, null, label)), /*#__PURE__*/React.createElement(SliderBaseWrapper, {
125
+ className: rangeValuesPlacementClass
126
+ }, showRangeValues && /*#__PURE__*/React.createElement(StyledRangeValue, {
127
+ ref: startLabelRef,
128
+ className: cx(hideMinValueDiffClass, activeFirstValue)
129
+ }, min), /*#__PURE__*/React.createElement(SliderBase, _extends({
130
+ min: min,
131
+ max: max,
132
+ disabled: disabled,
133
+ setStepSize: setStepSize,
134
+ onChange: onHandleChangeCommitted,
135
+ railFillWidth: state.railFillWidth,
136
+ settings: sizeData[size],
137
+ labelPlacement: labelPlacement,
138
+ rangeValuesPlacement: rangeValuesPlacement
139
+ }, rest), /*#__PURE__*/React.createElement(Handler, {
140
+ stepSize: state.stepSize,
141
+ onChangeCommitted: onHandleChangeCommitted,
142
+ onChange: onHandleChange,
143
+ xPosition: state.xHandle,
144
+ min: min,
145
+ max: max,
146
+ startOffset: startOffset,
147
+ endOffset: endOffset,
148
+ value: dragValue,
149
+ disabled: disabled,
150
+ ariaLabel: ariaLabel,
151
+ multipleStepSize: multipleStepSize,
152
+ showCurrentValue: showCurrentValue
153
+ })), showRangeValues && /*#__PURE__*/React.createElement(StyledRangeValue, {
154
+ ref: endLabelRef,
155
+ className: cx(classes.maxRangeValue, hideMaxValueDiffClass, activeSecondValue)
156
+ }, max)));
157
+ };
158
+
159
+ export { SingleSlider };
160
+ //# sourceMappingURL=Single.js.map